anm field: schema

This commit is contained in:
Aleksandr Kraiz
2023-07-04 09:58:35 +04:00
parent a1393b0079
commit 4e1aeb0f86
2 changed files with 3 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ const swapInfoSchemaBase = baseMessageSchema.extend({
sp: z.number(), // safe price (with safe deviation but without slippage)
}).optional(),
as: alternativeSchema.array(),
anm: z.record(z.string()).optional(), // address to ERC20 names
});
const swapInfoSchemaByAmountIn = swapInfoSchemaBase.extend({