add eps field to swap

This commit is contained in:
Dmitriy Pavlov
2023-08-10 14:19:04 +03:00
parent b92ba570f8
commit 452da5ad87
3 changed files with 9 additions and 3 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@orionprotocol/sdk",
"version": "0.19.46",
"version": "0.19.48-dev.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@orionprotocol/sdk",
"version": "0.19.46",
"version": "0.19.48-dev.1",
"license": "ISC",
"dependencies": {
"@babel/runtime": "^7.21.0",

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.19.48-dev.1",
"version": "0.19.48-dev.1-rc-0",
"description": "Orion Protocol SDK",
"main": "./lib/index.cjs",
"module": "./lib/index.js",

View File

@@ -34,6 +34,12 @@ const swapInfoSchemaBase = baseMessageSchema.extend({
}).optional(),
as: alternativeSchema.array(),
anm: z.record(z.string()).optional(), // address to ERC20 names
eps: z.array(z.object({
p: z.string(),
ai: z.string().toUpperCase(),
ao: z.string().toUpperCase(),
f: z.string().toUpperCase(),
}))
});
const swapInfoSchemaByAmountIn = swapInfoSchemaBase.extend({