mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
au update schema
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.22.0-rc13",
|
||||
"version": "0.22.0-rc14",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -84,6 +84,8 @@ export const fullOrderSchema = z.object({
|
||||
E: z.enum(executionTypes).optional(),
|
||||
C: z.string().optional(), // trigger condition
|
||||
ro: z.boolean().optional(), // is reversed order
|
||||
sc: z.boolean().optional(), // source chain
|
||||
tc: z.boolean().optional(), // target chain
|
||||
}).transform((val) => ({
|
||||
...val,
|
||||
k: 'full' as const,
|
||||
@@ -105,6 +107,8 @@ export const fullOrderSchema = z.object({
|
||||
executionType: o.E,
|
||||
triggerCondition: o.C,
|
||||
isReversedOrder: o.ro,
|
||||
sorceChain: o.sc,
|
||||
targetChain: o.tc,
|
||||
subOrders: o.c.map((so) => ({
|
||||
pair: so.P,
|
||||
exchange: so.e,
|
||||
|
||||
Reference in New Issue
Block a user