@chainflip/utils 2.1.4-bsc-dev.1 → 2.1.5

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.
@@ -16,13 +16,7 @@ const chainflipAssets = [
16
16
  "SolUsdt",
17
17
  "HubDot",
18
18
  "HubUsdt",
19
- "HubUsdc",
20
- "Bnb",
21
- "BscUsdc",
22
- "BscUsdt",
23
- "BscWbtc",
24
- "Trx",
25
- "TronUsdt"
19
+ "HubUsdc"
26
20
  ];
27
21
  const legacyChainflipAssets = ["Dot"];
28
22
  const priceAssets = [
@@ -35,17 +29,12 @@ const priceAssets = [
35
29
  "Fine"
36
30
  ];
37
31
  const baseChainflipAssets = chainflipAssets.filter((asset) => asset !== "Usdc");
38
- const chainflipEvmChains = [
39
- "Ethereum",
40
- "Arbitrum",
41
- "Bsc"
42
- ];
32
+ const chainflipEvmChains = ["Ethereum", "Arbitrum"];
43
33
  const chainflipChains = [
44
34
  ...chainflipEvmChains,
45
35
  "Bitcoin",
46
36
  "Solana",
47
- "Assethub",
48
- "Tron"
37
+ "Assethub"
49
38
  ];
50
39
  const legacyChainflipChains = ["Polkadot"];
51
40
  const chainflipNetworks = [
@@ -59,9 +48,7 @@ const addressTypes = [
59
48
  "Btc",
60
49
  "Arb",
61
50
  "Sol",
62
- "Hub",
63
- "Bsc",
64
- "Tron"
51
+ "Hub"
65
52
  ];
66
53
  const legacyAddressTypes = ["Dot"];
67
54
  function readAssetValue(map, asset) {
@@ -142,36 +129,6 @@ const assetConstants = {
142
129
  chain: "Assethub",
143
130
  symbol: "USDT",
144
131
  decimals: 6
145
- },
146
- Bnb: {
147
- chain: "Bsc",
148
- symbol: "BNB",
149
- decimals: 18
150
- },
151
- BscUsdc: {
152
- chain: "Bsc",
153
- symbol: "USDC",
154
- decimals: 18
155
- },
156
- BscUsdt: {
157
- chain: "Bsc",
158
- symbol: "USDT",
159
- decimals: 18
160
- },
161
- BscWbtc: {
162
- chain: "Bsc",
163
- symbol: "WBTC",
164
- decimals: 18
165
- },
166
- Trx: {
167
- chain: "Tron",
168
- symbol: "TRX",
169
- decimals: 6
170
- },
171
- TronUsdt: {
172
- chain: "Tron",
173
- symbol: "USDT",
174
- decimals: 6
175
132
  }
176
133
  };
177
134
  const anyAssetConstants = {
@@ -183,13 +140,11 @@ const anyAssetConstants = {
183
140
  }
184
141
  };
185
142
  const assetSymbols = [
186
- "BNB",
187
143
  "BTC",
188
144
  "DOT",
189
145
  "ETH",
190
146
  "FLIP",
191
147
  "SOL",
192
- "TRX",
193
148
  "USDC",
194
149
  "USDT",
195
150
  "WBTC"
@@ -265,30 +220,6 @@ const chainConstants = {
265
220
  gasAsset: "HubDot",
266
221
  addressType: "Hub",
267
222
  blockTimeSeconds: 3
268
- },
269
- Bsc: {
270
- chainflipAssets: [
271
- "Bnb",
272
- "BscUsdc",
273
- "BscUsdt",
274
- "BscWbtc"
275
- ],
276
- assets: [
277
- "BNB",
278
- "USDC",
279
- "USDT",
280
- "WBTC"
281
- ],
282
- gasAsset: "Bnb",
283
- addressType: "Bsc",
284
- blockTimeSeconds: .45
285
- },
286
- Tron: {
287
- chainflipAssets: ["Trx", "TronUsdt"],
288
- assets: ["TRX", "USDT"],
289
- gasAsset: "Trx",
290
- addressType: "Tron",
291
- blockTimeSeconds: 3
292
223
  }
293
224
  };
294
225
  const anyChainConstants = {
@@ -361,30 +292,6 @@ const internalAssetToRpcAsset = {
361
292
  HubUsdc: {
362
293
  chain: "Assethub",
363
294
  asset: "USDC"
364
- },
365
- Bnb: {
366
- chain: "Bsc",
367
- asset: "BNB"
368
- },
369
- BscUsdc: {
370
- chain: "Bsc",
371
- asset: "USDC"
372
- },
373
- BscUsdt: {
374
- chain: "Bsc",
375
- asset: "USDT"
376
- },
377
- BscWbtc: {
378
- chain: "Bsc",
379
- asset: "WBTC"
380
- },
381
- Trx: {
382
- chain: "Tron",
383
- asset: "TRX"
384
- },
385
- TronUsdt: {
386
- chain: "Tron",
387
- asset: "USDT"
388
295
  }
389
296
  };
390
297
  const anyInternalAssetToRpcAsset = {
@@ -399,9 +306,7 @@ const chainContractId = {
399
306
  Bitcoin: 3,
400
307
  Arbitrum: 4,
401
308
  Solana: 5,
402
- Assethub: 6,
403
- Bsc: 7,
404
- Tron: 8
309
+ Assethub: 6
405
310
  };
406
311
  const assetContractId = {
407
312
  Eth: 1,
@@ -418,13 +323,7 @@ const assetContractId = {
418
323
  HubUsdc: 13,
419
324
  Wbtc: 14,
420
325
  ArbUsdt: 15,
421
- SolUsdt: 16,
422
- Bnb: 17,
423
- BscUsdt: 18,
424
- BscUsdc: 21,
425
- BscWbtc: 22,
426
- Trx: 19,
427
- TronUsdt: 20
326
+ SolUsdt: 16
428
327
  };
429
328
  function getInternalAsset(asset, assert = true) {
430
329
  const internalAsset = {
@@ -450,16 +349,6 @@ function getInternalAsset(asset, assert = true) {
450
349
  USDC: "HubUsdc",
451
350
  USDT: "HubUsdt",
452
351
  DOT: "HubDot"
453
- },
454
- Bsc: {
455
- BNB: "Bnb",
456
- USDC: "BscUsdc",
457
- USDT: "BscUsdt",
458
- WBTC: "BscWbtc"
459
- },
460
- Tron: {
461
- TRX: "Trx",
462
- USDT: "TronUsdt"
463
352
  }
464
353
  }[asset.chain]?.[asset.asset];
465
354
  if (internalAsset) return internalAsset;
@@ -502,13 +391,7 @@ const chainflipAssetToPriceAssetMap = {
502
391
  HubUsdt: "Usdt",
503
392
  Flip: null,
504
393
  HubDot: null,
505
- Wbtc: "Btc",
506
- Bnb: null,
507
- BscUsdc: "Usdc",
508
- BscUsdt: "Usdt",
509
- BscWbtc: "Btc",
510
- Trx: null,
511
- TronUsdt: "Usdt"
394
+ Wbtc: "Btc"
512
395
  };
513
396
  function isChainflipAsset(asset) {
514
397
  return chainflipAssets.includes(asset);
@@ -1,5 +1,5 @@
1
1
  //#region src/chainflip.d.ts
2
- declare const chainflipAssets: readonly ["Usdc", "Usdt", "Wbtc", "Flip", "Eth", "Btc", "ArbUsdc", "ArbUsdt", "ArbEth", "Sol", "SolUsdc", "SolUsdt", "HubDot", "HubUsdt", "HubUsdc", "Bnb", "BscUsdc", "BscUsdt", "BscWbtc", "Trx", "TronUsdt"];
2
+ declare const chainflipAssets: readonly ["Usdc", "Usdt", "Wbtc", "Flip", "Eth", "Btc", "ArbUsdc", "ArbUsdt", "ArbEth", "Sol", "SolUsdc", "SolUsdt", "HubDot", "HubUsdt", "HubUsdc"];
3
3
  declare const legacyChainflipAssets: readonly ["Dot"];
4
4
  type ChainflipAsset = (typeof chainflipAssets)[number];
5
5
  type LegacyChainflipAsset = (typeof legacyChainflipAssets)[number];
@@ -9,16 +9,16 @@ type PriceAsset = (typeof priceAssets)[number];
9
9
  type BaseChainflipAsset = Exclude<ChainflipAsset, 'Usdc'>;
10
10
  type AnyBaseChainflipAsset = Exclude<AnyChainflipAsset, 'Usdc'>;
11
11
  declare const baseChainflipAssets: BaseChainflipAsset[];
12
- declare const chainflipEvmChains: readonly ["Ethereum", "Arbitrum", "Bsc"];
12
+ declare const chainflipEvmChains: readonly ["Ethereum", "Arbitrum"];
13
13
  type ChainflipEvmChain = (typeof chainflipEvmChains)[number];
14
- declare const chainflipChains: readonly ["Ethereum", "Arbitrum", "Bsc", "Bitcoin", "Solana", "Assethub", "Tron"];
14
+ declare const chainflipChains: readonly ["Ethereum", "Arbitrum", "Bitcoin", "Solana", "Assethub"];
15
15
  type ChainflipChain = (typeof chainflipChains)[number];
16
16
  declare const legacyChainflipChains: readonly ["Polkadot"];
17
17
  type LegacyChainflipChain = (typeof legacyChainflipChains)[number];
18
18
  type AnyChainflipChain = ChainflipChain | LegacyChainflipChain;
19
19
  declare const chainflipNetworks: readonly ["backspin", "sisyphos", "perseverance", "mainnet"];
20
20
  type ChainflipNetwork = (typeof chainflipNetworks)[number];
21
- declare const addressTypes: readonly ["Eth", "Btc", "Arb", "Sol", "Hub", "Bsc", "Tron"];
21
+ declare const addressTypes: readonly ["Eth", "Btc", "Arb", "Sol", "Hub"];
22
22
  type AddressType = (typeof addressTypes)[number];
23
23
  declare const legacyAddressTypes: readonly ["Dot"];
24
24
  type LegacyAddressType = (typeof legacyAddressTypes)[number];
@@ -140,36 +140,6 @@ declare const assetConstants: {
140
140
  readonly symbol: "USDT";
141
141
  readonly decimals: 6;
142
142
  };
143
- readonly Bnb: {
144
- readonly chain: "Bsc";
145
- readonly symbol: "BNB";
146
- readonly decimals: 18;
147
- };
148
- readonly BscUsdc: {
149
- readonly chain: "Bsc";
150
- readonly symbol: "USDC";
151
- readonly decimals: 18;
152
- };
153
- readonly BscUsdt: {
154
- readonly chain: "Bsc";
155
- readonly symbol: "USDT";
156
- readonly decimals: 18;
157
- };
158
- readonly BscWbtc: {
159
- readonly chain: "Bsc";
160
- readonly symbol: "WBTC";
161
- readonly decimals: 18;
162
- };
163
- readonly Trx: {
164
- readonly chain: "Tron";
165
- readonly symbol: "TRX";
166
- readonly decimals: 6;
167
- };
168
- readonly TronUsdt: {
169
- readonly chain: "Tron";
170
- readonly symbol: "USDT";
171
- readonly decimals: 6;
172
- };
173
143
  };
174
144
  declare const anyAssetConstants: {
175
145
  readonly Dot: {
@@ -252,38 +222,8 @@ declare const anyAssetConstants: {
252
222
  readonly symbol: "USDT";
253
223
  readonly decimals: 6;
254
224
  };
255
- readonly Bnb: {
256
- readonly chain: "Bsc";
257
- readonly symbol: "BNB";
258
- readonly decimals: 18;
259
- };
260
- readonly BscUsdc: {
261
- readonly chain: "Bsc";
262
- readonly symbol: "USDC";
263
- readonly decimals: 18;
264
- };
265
- readonly BscUsdt: {
266
- readonly chain: "Bsc";
267
- readonly symbol: "USDT";
268
- readonly decimals: 18;
269
- };
270
- readonly BscWbtc: {
271
- readonly chain: "Bsc";
272
- readonly symbol: "WBTC";
273
- readonly decimals: 18;
274
- };
275
- readonly Trx: {
276
- readonly chain: "Tron";
277
- readonly symbol: "TRX";
278
- readonly decimals: 6;
279
- };
280
- readonly TronUsdt: {
281
- readonly chain: "Tron";
282
- readonly symbol: "USDT";
283
- readonly decimals: 6;
284
- };
285
225
  };
286
- declare const assetSymbols: readonly ["BNB", "BTC", "DOT", "ETH", "FLIP", "SOL", "TRX", "USDC", "USDT", "WBTC"];
226
+ declare const assetSymbols: readonly ["BTC", "DOT", "ETH", "FLIP", "SOL", "USDC", "USDT", "WBTC"];
287
227
  type AssetSymbol = (typeof assetSymbols)[number];
288
228
  declare const chainConstants: {
289
229
  readonly Ethereum: {
@@ -321,20 +261,6 @@ declare const chainConstants: {
321
261
  readonly addressType: "Hub";
322
262
  readonly blockTimeSeconds: 3;
323
263
  };
324
- readonly Bsc: {
325
- readonly chainflipAssets: ["Bnb", "BscUsdc", "BscUsdt", "BscWbtc"];
326
- readonly assets: ["BNB", "USDC", "USDT", "WBTC"];
327
- readonly gasAsset: "Bnb";
328
- readonly addressType: "Bsc";
329
- readonly blockTimeSeconds: 0.45;
330
- };
331
- readonly Tron: {
332
- readonly chainflipAssets: ["Trx", "TronUsdt"];
333
- readonly assets: ["TRX", "USDT"];
334
- readonly gasAsset: "Trx";
335
- readonly addressType: "Tron";
336
- readonly blockTimeSeconds: 3;
337
- };
338
264
  };
339
265
  declare const anyChainConstants: {
340
266
  readonly Polkadot: {
@@ -379,20 +305,6 @@ declare const anyChainConstants: {
379
305
  readonly addressType: "Hub";
380
306
  readonly blockTimeSeconds: 3;
381
307
  };
382
- readonly Bsc: {
383
- readonly chainflipAssets: ["Bnb", "BscUsdc", "BscUsdt", "BscWbtc"];
384
- readonly assets: ["BNB", "USDC", "USDT", "WBTC"];
385
- readonly gasAsset: "Bnb";
386
- readonly addressType: "Bsc";
387
- readonly blockTimeSeconds: 0.45;
388
- };
389
- readonly Tron: {
390
- readonly chainflipAssets: ["Trx", "TronUsdt"];
391
- readonly assets: ["TRX", "USDT"];
392
- readonly gasAsset: "Trx";
393
- readonly addressType: "Tron";
394
- readonly blockTimeSeconds: 3;
395
- };
396
308
  };
397
309
  declare const internalAssetToRpcAsset: InternalAssetMap<AssetAndChain>;
398
310
  declare const anyInternalAssetToRpcAsset: AnyInternalAssetMap<AnyAssetAndChain>;
@@ -1,5 +1,5 @@
1
1
  //#region src/chainflip.d.ts
2
- declare const chainflipAssets: readonly ["Usdc", "Usdt", "Wbtc", "Flip", "Eth", "Btc", "ArbUsdc", "ArbUsdt", "ArbEth", "Sol", "SolUsdc", "SolUsdt", "HubDot", "HubUsdt", "HubUsdc", "Bnb", "BscUsdc", "BscUsdt", "BscWbtc", "Trx", "TronUsdt"];
2
+ declare const chainflipAssets: readonly ["Usdc", "Usdt", "Wbtc", "Flip", "Eth", "Btc", "ArbUsdc", "ArbUsdt", "ArbEth", "Sol", "SolUsdc", "SolUsdt", "HubDot", "HubUsdt", "HubUsdc"];
3
3
  declare const legacyChainflipAssets: readonly ["Dot"];
4
4
  type ChainflipAsset = (typeof chainflipAssets)[number];
5
5
  type LegacyChainflipAsset = (typeof legacyChainflipAssets)[number];
@@ -9,16 +9,16 @@ type PriceAsset = (typeof priceAssets)[number];
9
9
  type BaseChainflipAsset = Exclude<ChainflipAsset, 'Usdc'>;
10
10
  type AnyBaseChainflipAsset = Exclude<AnyChainflipAsset, 'Usdc'>;
11
11
  declare const baseChainflipAssets: BaseChainflipAsset[];
12
- declare const chainflipEvmChains: readonly ["Ethereum", "Arbitrum", "Bsc"];
12
+ declare const chainflipEvmChains: readonly ["Ethereum", "Arbitrum"];
13
13
  type ChainflipEvmChain = (typeof chainflipEvmChains)[number];
14
- declare const chainflipChains: readonly ["Ethereum", "Arbitrum", "Bsc", "Bitcoin", "Solana", "Assethub", "Tron"];
14
+ declare const chainflipChains: readonly ["Ethereum", "Arbitrum", "Bitcoin", "Solana", "Assethub"];
15
15
  type ChainflipChain = (typeof chainflipChains)[number];
16
16
  declare const legacyChainflipChains: readonly ["Polkadot"];
17
17
  type LegacyChainflipChain = (typeof legacyChainflipChains)[number];
18
18
  type AnyChainflipChain = ChainflipChain | LegacyChainflipChain;
19
19
  declare const chainflipNetworks: readonly ["backspin", "sisyphos", "perseverance", "mainnet"];
20
20
  type ChainflipNetwork = (typeof chainflipNetworks)[number];
21
- declare const addressTypes: readonly ["Eth", "Btc", "Arb", "Sol", "Hub", "Bsc", "Tron"];
21
+ declare const addressTypes: readonly ["Eth", "Btc", "Arb", "Sol", "Hub"];
22
22
  type AddressType = (typeof addressTypes)[number];
23
23
  declare const legacyAddressTypes: readonly ["Dot"];
24
24
  type LegacyAddressType = (typeof legacyAddressTypes)[number];
@@ -140,36 +140,6 @@ declare const assetConstants: {
140
140
  readonly symbol: "USDT";
141
141
  readonly decimals: 6;
142
142
  };
143
- readonly Bnb: {
144
- readonly chain: "Bsc";
145
- readonly symbol: "BNB";
146
- readonly decimals: 18;
147
- };
148
- readonly BscUsdc: {
149
- readonly chain: "Bsc";
150
- readonly symbol: "USDC";
151
- readonly decimals: 18;
152
- };
153
- readonly BscUsdt: {
154
- readonly chain: "Bsc";
155
- readonly symbol: "USDT";
156
- readonly decimals: 18;
157
- };
158
- readonly BscWbtc: {
159
- readonly chain: "Bsc";
160
- readonly symbol: "WBTC";
161
- readonly decimals: 18;
162
- };
163
- readonly Trx: {
164
- readonly chain: "Tron";
165
- readonly symbol: "TRX";
166
- readonly decimals: 6;
167
- };
168
- readonly TronUsdt: {
169
- readonly chain: "Tron";
170
- readonly symbol: "USDT";
171
- readonly decimals: 6;
172
- };
173
143
  };
174
144
  declare const anyAssetConstants: {
175
145
  readonly Dot: {
@@ -252,38 +222,8 @@ declare const anyAssetConstants: {
252
222
  readonly symbol: "USDT";
253
223
  readonly decimals: 6;
254
224
  };
255
- readonly Bnb: {
256
- readonly chain: "Bsc";
257
- readonly symbol: "BNB";
258
- readonly decimals: 18;
259
- };
260
- readonly BscUsdc: {
261
- readonly chain: "Bsc";
262
- readonly symbol: "USDC";
263
- readonly decimals: 18;
264
- };
265
- readonly BscUsdt: {
266
- readonly chain: "Bsc";
267
- readonly symbol: "USDT";
268
- readonly decimals: 18;
269
- };
270
- readonly BscWbtc: {
271
- readonly chain: "Bsc";
272
- readonly symbol: "WBTC";
273
- readonly decimals: 18;
274
- };
275
- readonly Trx: {
276
- readonly chain: "Tron";
277
- readonly symbol: "TRX";
278
- readonly decimals: 6;
279
- };
280
- readonly TronUsdt: {
281
- readonly chain: "Tron";
282
- readonly symbol: "USDT";
283
- readonly decimals: 6;
284
- };
285
225
  };
286
- declare const assetSymbols: readonly ["BNB", "BTC", "DOT", "ETH", "FLIP", "SOL", "TRX", "USDC", "USDT", "WBTC"];
226
+ declare const assetSymbols: readonly ["BTC", "DOT", "ETH", "FLIP", "SOL", "USDC", "USDT", "WBTC"];
287
227
  type AssetSymbol = (typeof assetSymbols)[number];
288
228
  declare const chainConstants: {
289
229
  readonly Ethereum: {
@@ -321,20 +261,6 @@ declare const chainConstants: {
321
261
  readonly addressType: "Hub";
322
262
  readonly blockTimeSeconds: 3;
323
263
  };
324
- readonly Bsc: {
325
- readonly chainflipAssets: ["Bnb", "BscUsdc", "BscUsdt", "BscWbtc"];
326
- readonly assets: ["BNB", "USDC", "USDT", "WBTC"];
327
- readonly gasAsset: "Bnb";
328
- readonly addressType: "Bsc";
329
- readonly blockTimeSeconds: 0.45;
330
- };
331
- readonly Tron: {
332
- readonly chainflipAssets: ["Trx", "TronUsdt"];
333
- readonly assets: ["TRX", "USDT"];
334
- readonly gasAsset: "Trx";
335
- readonly addressType: "Tron";
336
- readonly blockTimeSeconds: 3;
337
- };
338
264
  };
339
265
  declare const anyChainConstants: {
340
266
  readonly Polkadot: {
@@ -379,20 +305,6 @@ declare const anyChainConstants: {
379
305
  readonly addressType: "Hub";
380
306
  readonly blockTimeSeconds: 3;
381
307
  };
382
- readonly Bsc: {
383
- readonly chainflipAssets: ["Bnb", "BscUsdc", "BscUsdt", "BscWbtc"];
384
- readonly assets: ["BNB", "USDC", "USDT", "WBTC"];
385
- readonly gasAsset: "Bnb";
386
- readonly addressType: "Bsc";
387
- readonly blockTimeSeconds: 0.45;
388
- };
389
- readonly Tron: {
390
- readonly chainflipAssets: ["Trx", "TronUsdt"];
391
- readonly assets: ["TRX", "USDT"];
392
- readonly gasAsset: "Trx";
393
- readonly addressType: "Tron";
394
- readonly blockTimeSeconds: 3;
395
- };
396
308
  };
397
309
  declare const internalAssetToRpcAsset: InternalAssetMap<AssetAndChain>;
398
310
  declare const anyInternalAssetToRpcAsset: AnyInternalAssetMap<AnyAssetAndChain>;
@@ -14,13 +14,7 @@ const chainflipAssets = [
14
14
  "SolUsdt",
15
15
  "HubDot",
16
16
  "HubUsdt",
17
- "HubUsdc",
18
- "Bnb",
19
- "BscUsdc",
20
- "BscUsdt",
21
- "BscWbtc",
22
- "Trx",
23
- "TronUsdt"
17
+ "HubUsdc"
24
18
  ];
25
19
  const legacyChainflipAssets = ["Dot"];
26
20
  const priceAssets = [
@@ -33,17 +27,12 @@ const priceAssets = [
33
27
  "Fine"
34
28
  ];
35
29
  const baseChainflipAssets = chainflipAssets.filter((asset) => asset !== "Usdc");
36
- const chainflipEvmChains = [
37
- "Ethereum",
38
- "Arbitrum",
39
- "Bsc"
40
- ];
30
+ const chainflipEvmChains = ["Ethereum", "Arbitrum"];
41
31
  const chainflipChains = [
42
32
  ...chainflipEvmChains,
43
33
  "Bitcoin",
44
34
  "Solana",
45
- "Assethub",
46
- "Tron"
35
+ "Assethub"
47
36
  ];
48
37
  const legacyChainflipChains = ["Polkadot"];
49
38
  const chainflipNetworks = [
@@ -57,9 +46,7 @@ const addressTypes = [
57
46
  "Btc",
58
47
  "Arb",
59
48
  "Sol",
60
- "Hub",
61
- "Bsc",
62
- "Tron"
49
+ "Hub"
63
50
  ];
64
51
  const legacyAddressTypes = ["Dot"];
65
52
  function readAssetValue(map, asset) {
@@ -140,36 +127,6 @@ const assetConstants = {
140
127
  chain: "Assethub",
141
128
  symbol: "USDT",
142
129
  decimals: 6
143
- },
144
- Bnb: {
145
- chain: "Bsc",
146
- symbol: "BNB",
147
- decimals: 18
148
- },
149
- BscUsdc: {
150
- chain: "Bsc",
151
- symbol: "USDC",
152
- decimals: 18
153
- },
154
- BscUsdt: {
155
- chain: "Bsc",
156
- symbol: "USDT",
157
- decimals: 18
158
- },
159
- BscWbtc: {
160
- chain: "Bsc",
161
- symbol: "WBTC",
162
- decimals: 18
163
- },
164
- Trx: {
165
- chain: "Tron",
166
- symbol: "TRX",
167
- decimals: 6
168
- },
169
- TronUsdt: {
170
- chain: "Tron",
171
- symbol: "USDT",
172
- decimals: 6
173
130
  }
174
131
  };
175
132
  const anyAssetConstants = {
@@ -181,13 +138,11 @@ const anyAssetConstants = {
181
138
  }
182
139
  };
183
140
  const assetSymbols = [
184
- "BNB",
185
141
  "BTC",
186
142
  "DOT",
187
143
  "ETH",
188
144
  "FLIP",
189
145
  "SOL",
190
- "TRX",
191
146
  "USDC",
192
147
  "USDT",
193
148
  "WBTC"
@@ -263,30 +218,6 @@ const chainConstants = {
263
218
  gasAsset: "HubDot",
264
219
  addressType: "Hub",
265
220
  blockTimeSeconds: 3
266
- },
267
- Bsc: {
268
- chainflipAssets: [
269
- "Bnb",
270
- "BscUsdc",
271
- "BscUsdt",
272
- "BscWbtc"
273
- ],
274
- assets: [
275
- "BNB",
276
- "USDC",
277
- "USDT",
278
- "WBTC"
279
- ],
280
- gasAsset: "Bnb",
281
- addressType: "Bsc",
282
- blockTimeSeconds: .45
283
- },
284
- Tron: {
285
- chainflipAssets: ["Trx", "TronUsdt"],
286
- assets: ["TRX", "USDT"],
287
- gasAsset: "Trx",
288
- addressType: "Tron",
289
- blockTimeSeconds: 3
290
221
  }
291
222
  };
292
223
  const anyChainConstants = {
@@ -359,30 +290,6 @@ const internalAssetToRpcAsset = {
359
290
  HubUsdc: {
360
291
  chain: "Assethub",
361
292
  asset: "USDC"
362
- },
363
- Bnb: {
364
- chain: "Bsc",
365
- asset: "BNB"
366
- },
367
- BscUsdc: {
368
- chain: "Bsc",
369
- asset: "USDC"
370
- },
371
- BscUsdt: {
372
- chain: "Bsc",
373
- asset: "USDT"
374
- },
375
- BscWbtc: {
376
- chain: "Bsc",
377
- asset: "WBTC"
378
- },
379
- Trx: {
380
- chain: "Tron",
381
- asset: "TRX"
382
- },
383
- TronUsdt: {
384
- chain: "Tron",
385
- asset: "USDT"
386
293
  }
387
294
  };
388
295
  const anyInternalAssetToRpcAsset = {
@@ -397,9 +304,7 @@ const chainContractId = {
397
304
  Bitcoin: 3,
398
305
  Arbitrum: 4,
399
306
  Solana: 5,
400
- Assethub: 6,
401
- Bsc: 7,
402
- Tron: 8
307
+ Assethub: 6
403
308
  };
404
309
  const assetContractId = {
405
310
  Eth: 1,
@@ -416,13 +321,7 @@ const assetContractId = {
416
321
  HubUsdc: 13,
417
322
  Wbtc: 14,
418
323
  ArbUsdt: 15,
419
- SolUsdt: 16,
420
- Bnb: 17,
421
- BscUsdt: 18,
422
- BscUsdc: 21,
423
- BscWbtc: 22,
424
- Trx: 19,
425
- TronUsdt: 20
324
+ SolUsdt: 16
426
325
  };
427
326
  function getInternalAsset(asset, assert = true) {
428
327
  const internalAsset = {
@@ -448,16 +347,6 @@ function getInternalAsset(asset, assert = true) {
448
347
  USDC: "HubUsdc",
449
348
  USDT: "HubUsdt",
450
349
  DOT: "HubDot"
451
- },
452
- Bsc: {
453
- BNB: "Bnb",
454
- USDC: "BscUsdc",
455
- USDT: "BscUsdt",
456
- WBTC: "BscWbtc"
457
- },
458
- Tron: {
459
- TRX: "Trx",
460
- USDT: "TronUsdt"
461
350
  }
462
351
  }[asset.chain]?.[asset.asset];
463
352
  if (internalAsset) return internalAsset;
@@ -500,13 +389,7 @@ const chainflipAssetToPriceAssetMap = {
500
389
  HubUsdt: "Usdt",
501
390
  Flip: null,
502
391
  HubDot: null,
503
- Wbtc: "Btc",
504
- Bnb: null,
505
- BscUsdc: "Usdc",
506
- BscUsdt: "Usdt",
507
- BscWbtc: "Btc",
508
- Trx: null,
509
- TronUsdt: "Usdt"
392
+ Wbtc: "Btc"
510
393
  };
511
394
  function isChainflipAsset(asset) {
512
395
  return chainflipAssets.includes(asset);
package/dist/consts.cjs CHANGED
@@ -219,6 +219,10 @@ const brokerAliasMap = {
219
219
  cFJ3dosNpW1X2GniSPsUKzWMnJW7NBBcNbimUBDnxa1Cfb551: {
220
220
  name: "OrangeRock",
221
221
  twitter: "@orangerock.xyz"
222
+ },
223
+ cFLTrurprjV8jTV1yXop6Px8bG1hk4JKV6rgvQJU9nkneDYwg: {
224
+ name: "CoolWallet",
225
+ twitter: "@coolwallet"
222
226
  }
223
227
  };
224
228
  const lpAliasMap = {
package/dist/consts.mjs CHANGED
@@ -217,6 +217,10 @@ const brokerAliasMap = {
217
217
  cFJ3dosNpW1X2GniSPsUKzWMnJW7NBBcNbimUBDnxa1Cfb551: {
218
218
  name: "OrangeRock",
219
219
  twitter: "@orangerock.xyz"
220
+ },
221
+ cFLTrurprjV8jTV1yXop6Px8bG1hk4JKV6rgvQJU9nkneDYwg: {
222
+ name: "CoolWallet",
223
+ twitter: "@coolwallet"
220
224
  }
221
225
  };
222
226
  const lpAliasMap = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/utils",
3
- "version": "2.1.4-bsc-dev.1",
3
+ "version": "2.1.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",