mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-15 22:52:36 +03:00
OP-2818 [Swap] Show order route path and benefits in Swap UI
Updated SwapInfo schemas for WS and REST. Small type updates.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.15.22-rc.0",
|
||||
"version": "0.15.22-rc.1",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/esm/index.js",
|
||||
"module": "./lib/esm/index.js",
|
||||
|
||||
@@ -25,11 +25,11 @@ const swapInfoSchemaBase = baseMessageSchema.extend({
|
||||
as: z.object({ // execution alternatives
|
||||
e: z.string().array(), // exchanges
|
||||
ps: z.string().array(), // path
|
||||
mo: z.number().nullable(), // market amount out
|
||||
mi: z.number().nullable(), // market amount in
|
||||
mo: z.number().optional(), // market amount out
|
||||
mi: z.number().optional(), // market amount in
|
||||
mp: z.number(), // market price
|
||||
aa: z.number().nullable(), // available amount in
|
||||
aao: z.number().nullable(), // available amount out
|
||||
aa: z.number().optional(), // available amount in
|
||||
aao: z.number().optional(), // available amount out
|
||||
}).array(),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user