diff --git a/package.json b/package.json index fd600d8..bb45a32 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.19.31", + "version": "0.19.32-rc1", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", @@ -108,4 +108,4 @@ "overrides": { "tsconfig-paths": "^4.0.0" } -} \ No newline at end of file +} diff --git a/src/services/Aggregator/schemas/swapInfoSchema.ts b/src/services/Aggregator/schemas/swapInfoSchema.ts index 8ceb2f5..26b7947 100644 --- a/src/services/Aggregator/schemas/swapInfoSchema.ts +++ b/src/services/Aggregator/schemas/swapInfoSchema.ts @@ -39,6 +39,7 @@ const swapInfoBase = z.object({ orderInfo: orderInfoSchema, isThroughPoolOrCurve: z.boolean(), }).array(), + anm: z.record(z.string()).optional(), // address to ERC20 names }); const swapInfoByAmountIn = swapInfoBase.extend({ diff --git a/src/services/Aggregator/ws/index.ts b/src/services/Aggregator/ws/index.ts index f71b9ac..6f8d1d0 100644 --- a/src/services/Aggregator/ws/index.ts +++ b/src/services/Aggregator/ws/index.ts @@ -567,6 +567,7 @@ class AggregatorWS { availableAmountIn: item.aa, availableAmountOut: item.aao, })), + assetsNameMapping: json.anm, }; switch (json.k) { // kind diff --git a/src/types.ts b/src/types.ts index 6005172..e6ba37d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -229,6 +229,7 @@ export type SwapInfoBase = { safePrice: number } | undefined alternatives: SwapInfoAlternative[] + assetsNameMapping?: Partial> | undefined } export type SwapInfoByAmountIn = SwapInfoBase & {