@chainflip/rpc 2.2.2 → 2.3.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/parsers.cjs CHANGED
@@ -48,6 +48,10 @@ const chainAssetMapFactory = (parser, _defaultValue) => zod.z.object({
48
48
  Tron: zod.z.object({
49
49
  TRX: parser,
50
50
  USDT: parser
51
+ }),
52
+ Bsc: zod.z.object({
53
+ BNB: parser,
54
+ USDT: parser
51
55
  })
52
56
  });
53
57
  const chainBaseAssetMapFactory = (parser, _defaultValue) => zod.z.object({
@@ -76,6 +80,10 @@ const chainBaseAssetMapFactory = (parser, _defaultValue) => zod.z.object({
76
80
  Tron: zod.z.object({
77
81
  TRX: parser,
78
82
  USDT: parser
83
+ }),
84
+ Bsc: zod.z.object({
85
+ BNB: parser,
86
+ USDT: parser
79
87
  })
80
88
  });
81
89
  const chainMapFactory = (parser, _defaultValue = null) => zod.z.object({
@@ -84,7 +92,8 @@ const chainMapFactory = (parser, _defaultValue = null) => zod.z.object({
84
92
  Arbitrum: parser,
85
93
  Solana: parser,
86
94
  Assethub: parser,
87
- Tron: parser
95
+ Tron: parser,
96
+ Bsc: parser
88
97
  });
89
98
  const rpcAssetSchema = zod.z.union([
90
99
  zod.z.object({
@@ -154,6 +163,14 @@ const rpcAssetSchema = zod.z.union([
154
163
  zod.z.object({
155
164
  chain: zod.z.literal("Tron"),
156
165
  asset: zod.z.literal("USDT")
166
+ }),
167
+ zod.z.object({
168
+ chain: zod.z.literal("Bsc"),
169
+ asset: zod.z.literal("BNB")
170
+ }),
171
+ zod.z.object({
172
+ chain: zod.z.literal("Bsc"),
173
+ asset: zod.z.literal("USDT")
157
174
  })
158
175
  ]);
159
176
  const networkFee = zod.z.object({
@@ -333,6 +350,7 @@ const requestSwapParameterEncoding = zod.z.discriminatedUnion("chain", [
333
350
  }),
334
351
  evmBrokerRequestSwapParameterEncoding.extend({ chain: zod.z.literal("Ethereum") }),
335
352
  evmBrokerRequestSwapParameterEncoding.extend({ chain: zod.z.literal("Arbitrum") }),
353
+ evmBrokerRequestSwapParameterEncoding.extend({ chain: zod.z.literal("Bsc") }),
336
354
  zod.z.object({
337
355
  chain: zod.z.literal("Tron"),
338
356
  to: tronAddress,