mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
update au schema
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.23.0-rc1",
|
||||
"version": "0.23.0-rc2",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.23.0-rc1",
|
||||
"version": "0.23.0-rc2",
|
||||
"hasInstallScript": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.23.0-rc1",
|
||||
"version": "0.23.0-rc2",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -86,7 +86,7 @@ export const fullOrderSchema = z.object({
|
||||
ro: z.boolean().optional(), // is reversed order
|
||||
sc: z.string().optional(), // source chain
|
||||
tc: z.string().optional(), // target chain
|
||||
ir: z.string().optional(), // is refundable
|
||||
ir: z.boolean().optional(), // is refundable
|
||||
sh: z.string().optional(), // secret hash
|
||||
}).transform((val) => ({
|
||||
...val,
|
||||
@@ -112,6 +112,7 @@ export const fullOrderSchema = z.object({
|
||||
sourceChain: o.sc,
|
||||
targetChain: o.tc,
|
||||
isRefundable: o.ir,
|
||||
secretHash: o.sh,
|
||||
subOrders: o.c.map((so) => ({
|
||||
pair: so.P,
|
||||
exchange: so.e,
|
||||
|
||||
Reference in New Issue
Block a user