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

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,