update au schema

This commit is contained in:
TheJuze
2024-06-12 11:01:51 +03:00
parent 1b045b7481
commit f515d880f1
3 changed files with 5 additions and 4 deletions

4
package-lock.json generated
View File

@@ -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": {

View File

@@ -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",

View File

@@ -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,