anm field: schema

This commit is contained in:
Aleksandr Kraiz
2023-07-04 09:58:35 +04:00
parent a1393b0079
commit 4e1aeb0f86
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.19.30",
"version": "0.19.31",
"description": "Orion Protocol SDK",
"main": "./lib/index.cjs",
"module": "./lib/index.js",
@@ -108,4 +108,4 @@
"overrides": {
"tsconfig-paths": "^4.0.0"
}
}
}

View File

@@ -33,6 +33,7 @@ const swapInfoSchemaBase = baseMessageSchema.extend({
sp: z.number(), // safe price (with safe deviation but without slippage)
}).optional(),
as: alternativeSchema.array(),
anm: z.record(z.string()).optional(), // address to ERC20 names
});
const swapInfoSchemaByAmountIn = swapInfoSchemaBase.extend({