@proton/wrap-constants 0.2.8 → 0.2.11
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/coins.d.ts +9 -2
- package/dist/constants.d.ts +2 -1
- package/dist/parsers/dex.d.ts +12 -0
- package/dist/wrap-constants.cjs.development.js +77 -3
- package/dist/wrap-constants.cjs.development.js.map +1 -1
- package/dist/wrap-constants.cjs.production.min.js +1 -1
- package/dist/wrap-constants.cjs.production.min.js.map +1 -1
- package/dist/wrap-constants.esm.js +80 -4
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/coins.ts +65 -3
- package/src/constants.ts +7 -3
- package/src/parsers/dex.ts +14 -0
|
@@ -34,6 +34,7 @@ var Chains;
|
|
|
34
34
|
Chains["TerraMainnet"] = "Terra";
|
|
35
35
|
Chains["RippleMainnet"] = "Ripple";
|
|
36
36
|
Chains["SolanaMainnet"] = "Solana";
|
|
37
|
+
Chains["MetalXTestnet"] = "Metal X-Chain (Testnet)";
|
|
37
38
|
})(Chains || (Chains = {}));
|
|
38
39
|
|
|
39
40
|
var Networks;
|
|
@@ -45,9 +46,17 @@ var Networks;
|
|
|
45
46
|
Networks["ERC20"] = "erc20";
|
|
46
47
|
Networks["BEP20"] = "bep20";
|
|
47
48
|
Networks["XLM"] = "xlm";
|
|
49
|
+
Networks["AVM"] = "avm";
|
|
48
50
|
})(Networks || (Networks = {}));
|
|
49
51
|
|
|
50
52
|
var similarChains = (_similarChains = {}, _similarChains[Chains.EthereumMainnet] = [Chains.BinanceBEP20], _similarChains[Chains.BinanceBEP20] = [Chains.EthereumMainnet], _similarChains);
|
|
53
|
+
var Providers;
|
|
54
|
+
|
|
55
|
+
(function (Providers) {
|
|
56
|
+
Providers["FIREBLOCKS"] = "fireblocks";
|
|
57
|
+
Providers["METAL"] = "metal";
|
|
58
|
+
})(Providers || (Providers = {}));
|
|
59
|
+
|
|
51
60
|
var explorerLinkByChain = (_explorerLinkByChain = {}, _explorerLinkByChain[Chains.BitcoinMainnet] = function (txid) {
|
|
52
61
|
return "https://blockchain.com/btc/tx/" + txid;
|
|
53
62
|
}, _explorerLinkByChain[Chains.BitcoinTestnet] = function (txid) {
|
|
@@ -127,6 +136,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
127
136
|
network: Networks.ERC20,
|
|
128
137
|
precision: 4,
|
|
129
138
|
contract: '0xD7EFB00D12C2C13131FD319336FDF952525DA2AF',
|
|
139
|
+
provider: Providers.FIREBLOCKS,
|
|
130
140
|
hasWithdrawMemo: false
|
|
131
141
|
}, {
|
|
132
142
|
wallet: 'XPR-BEP20',
|
|
@@ -135,6 +145,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
135
145
|
network: Networks.BEP20,
|
|
136
146
|
precision: 4,
|
|
137
147
|
contract: '0x5DE3939B2F811A61D830E6F52D13B066881412AB',
|
|
148
|
+
provider: Providers.FIREBLOCKS,
|
|
138
149
|
hasWithdrawMemo: false
|
|
139
150
|
}] : []),
|
|
140
151
|
image: 'https://www.proton.org/images/tokens/eosio-tokenXPR.png',
|
|
@@ -156,6 +167,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
156
167
|
network: Networks.ERC20,
|
|
157
168
|
precision: 6,
|
|
158
169
|
contract: '0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48',
|
|
170
|
+
provider: Providers.FIREBLOCKS,
|
|
159
171
|
hasWithdrawMemo: false
|
|
160
172
|
}, {
|
|
161
173
|
wallet: 'USDC-BEP20',
|
|
@@ -164,6 +176,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
164
176
|
network: Networks.BEP20,
|
|
165
177
|
precision: 18,
|
|
166
178
|
contract: '0x8AC76A51CC950D9822D68B83FE1AD97B32CD580D',
|
|
179
|
+
provider: Providers.FIREBLOCKS,
|
|
167
180
|
hasWithdrawMemo: false
|
|
168
181
|
}, {
|
|
169
182
|
wallet: 'USDC-XLM',
|
|
@@ -172,6 +185,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
172
185
|
network: Networks.XLM,
|
|
173
186
|
precision: 7,
|
|
174
187
|
contract: undefined,
|
|
188
|
+
provider: Providers.FIREBLOCKS,
|
|
175
189
|
hasWithdrawMemo: true
|
|
176
190
|
}] : [], IS_TESTNET ? [{
|
|
177
191
|
wallet: 'USDC',
|
|
@@ -180,6 +194,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
180
194
|
network: Networks.Ropsten,
|
|
181
195
|
precision: 6,
|
|
182
196
|
contract: '0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48',
|
|
197
|
+
provider: Providers.FIREBLOCKS,
|
|
183
198
|
hasWithdrawMemo: false
|
|
184
199
|
}, {
|
|
185
200
|
wallet: 'USDC-XLM',
|
|
@@ -188,6 +203,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
188
203
|
network: Networks.XLM,
|
|
189
204
|
precision: 7,
|
|
190
205
|
contract: undefined,
|
|
206
|
+
provider: Providers.FIREBLOCKS,
|
|
191
207
|
hasWithdrawMemo: true
|
|
192
208
|
}] : []),
|
|
193
209
|
image: 'https://www.proton.org/images/tokens/xtokensXUSDC.png',
|
|
@@ -209,13 +225,14 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
209
225
|
network: Networks.ERC20,
|
|
210
226
|
precision: 8,
|
|
211
227
|
contract: '0xF433089366899D83A9F26A773D59EC7ECF30355E',
|
|
228
|
+
provider: Providers.FIREBLOCKS,
|
|
212
229
|
hasWithdrawMemo: false
|
|
213
230
|
}] : []),
|
|
214
231
|
image: 'https://www.proton.org/images/tokens/xtokensXMT.png',
|
|
215
232
|
coingeckoId: 'metal'
|
|
216
233
|
}, {
|
|
217
234
|
allowSwap: IS_MAINNET,
|
|
218
|
-
allowBridge:
|
|
235
|
+
allowBridge: IS_TESTNET,
|
|
219
236
|
allowLend: false,
|
|
220
237
|
allowBorrow: false,
|
|
221
238
|
name: 'Metal Blockchain',
|
|
@@ -223,7 +240,16 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
223
240
|
xtokenSymbol: 'METAL',
|
|
224
241
|
xtokenPrecision: 8,
|
|
225
242
|
xtokenContract: 'xtokens',
|
|
226
|
-
wallets: []
|
|
243
|
+
wallets: [].concat(IS_TESTNET ? [{
|
|
244
|
+
wallet: 'METAL',
|
|
245
|
+
symbol: 'METAL',
|
|
246
|
+
chain: Chains.MetalXTestnet,
|
|
247
|
+
network: Networks.AVM,
|
|
248
|
+
precision: 9,
|
|
249
|
+
contract: '',
|
|
250
|
+
provider: Providers.METAL,
|
|
251
|
+
hasWithdrawMemo: true
|
|
252
|
+
}] : []),
|
|
227
253
|
image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png',
|
|
228
254
|
coingeckoId: ''
|
|
229
255
|
}, {
|
|
@@ -243,6 +269,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
243
269
|
network: Networks.Mainnet,
|
|
244
270
|
precision: 8,
|
|
245
271
|
contract: undefined,
|
|
272
|
+
provider: Providers.FIREBLOCKS,
|
|
246
273
|
hasWithdrawMemo: false
|
|
247
274
|
}] : [], IS_TESTNET ? [{
|
|
248
275
|
wallet: 'BTC',
|
|
@@ -251,6 +278,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
251
278
|
network: Networks.Testnet,
|
|
252
279
|
precision: 8,
|
|
253
280
|
contract: undefined,
|
|
281
|
+
provider: Providers.FIREBLOCKS,
|
|
254
282
|
hasWithdrawMemo: false
|
|
255
283
|
}] : []),
|
|
256
284
|
image: 'https://www.proton.org/images/tokens/xtokensXBTC.png',
|
|
@@ -272,6 +300,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
272
300
|
network: Networks.Mainnet,
|
|
273
301
|
precision: 18,
|
|
274
302
|
contract: '0x0000000000000000000000000000000000000000',
|
|
303
|
+
provider: Providers.FIREBLOCKS,
|
|
275
304
|
hasWithdrawMemo: false
|
|
276
305
|
}] : [], IS_TESTNET ? [{
|
|
277
306
|
wallet: 'ETH',
|
|
@@ -280,6 +309,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
280
309
|
network: Networks.Ropsten,
|
|
281
310
|
precision: 18,
|
|
282
311
|
contract: '0x0000000000000000000000000000000000000000',
|
|
312
|
+
provider: Providers.FIREBLOCKS,
|
|
283
313
|
hasWithdrawMemo: false
|
|
284
314
|
}] : []),
|
|
285
315
|
image: 'https://www.proton.org/images/tokens/xtokensXETH.png',
|
|
@@ -314,6 +344,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
314
344
|
network: Networks.ERC20,
|
|
315
345
|
precision: 6,
|
|
316
346
|
contract: '0xDAC17F958D2EE523A2206206994597C13D831EC7',
|
|
347
|
+
provider: Providers.FIREBLOCKS,
|
|
317
348
|
hasWithdrawMemo: false
|
|
318
349
|
}] : [], IS_MAINNET ? [{
|
|
319
350
|
wallet: 'USDT-BEP20',
|
|
@@ -322,6 +353,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
322
353
|
network: Networks.BEP20,
|
|
323
354
|
precision: 18,
|
|
324
355
|
contract: '0x55d398326f99059fF775485246999027B3197955',
|
|
356
|
+
provider: Providers.FIREBLOCKS,
|
|
325
357
|
hasWithdrawMemo: false
|
|
326
358
|
}] : [], IS_TESTNET ? [{
|
|
327
359
|
wallet: 'USDT',
|
|
@@ -330,6 +362,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
330
362
|
network: Networks.Ropsten,
|
|
331
363
|
precision: 6,
|
|
332
364
|
contract: '0xDAC17F958D2EE523A2206206994597C13D831EC7',
|
|
365
|
+
provider: Providers.FIREBLOCKS,
|
|
333
366
|
hasWithdrawMemo: false
|
|
334
367
|
}] : []),
|
|
335
368
|
image: 'https://www.proton.org/images/tokens/xtokensXUSDT.png',
|
|
@@ -351,6 +384,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
351
384
|
network: Networks.ERC20,
|
|
352
385
|
precision: 18,
|
|
353
386
|
contract: '0x0000000000085D4780B73119B644AE5ECD22B376',
|
|
387
|
+
provider: Providers.FIREBLOCKS,
|
|
354
388
|
hasWithdrawMemo: false
|
|
355
389
|
}] : []),
|
|
356
390
|
image: 'https://www.proton.org/images/tokens/xtokensXTUSD.png',
|
|
@@ -372,6 +406,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
372
406
|
network: Networks.ERC20,
|
|
373
407
|
precision: 18,
|
|
374
408
|
contract: '0x8E870D67F660D95D5BE530380D0EC0BD388289E1',
|
|
409
|
+
provider: Providers.FIREBLOCKS,
|
|
375
410
|
hasWithdrawMemo: false
|
|
376
411
|
}] : []),
|
|
377
412
|
image: 'https://www.proton.org/images/tokens/xtokensXPAX.png',
|
|
@@ -393,6 +428,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
393
428
|
network: Networks.ERC20,
|
|
394
429
|
precision: 18,
|
|
395
430
|
contract: '0x45804880DE22913DAFE09F4980848ECE6ECBAF78',
|
|
431
|
+
provider: Providers.FIREBLOCKS,
|
|
396
432
|
hasWithdrawMemo: false
|
|
397
433
|
}] : [], IS_TESTNET ? [{
|
|
398
434
|
wallet: 'PAXG',
|
|
@@ -401,6 +437,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
401
437
|
network: Networks.Ropsten,
|
|
402
438
|
precision: 18,
|
|
403
439
|
contract: '0x45804880DE22913DAFE09F4980848ECE6ECBAF78',
|
|
440
|
+
provider: Providers.FIREBLOCKS,
|
|
404
441
|
hasWithdrawMemo: false
|
|
405
442
|
}] : []),
|
|
406
443
|
image: 'https://www.proton.org/images/tokens/xtokensXPAXG.png',
|
|
@@ -461,6 +498,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
461
498
|
network: Networks.ERC20,
|
|
462
499
|
precision: 18,
|
|
463
500
|
contract: '0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984',
|
|
501
|
+
provider: Providers.FIREBLOCKS,
|
|
464
502
|
hasWithdrawMemo: false
|
|
465
503
|
}] : [], IS_TESTNET ? [{
|
|
466
504
|
wallet: 'UNI',
|
|
@@ -469,6 +507,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
469
507
|
network: Networks.Ropsten,
|
|
470
508
|
precision: 18,
|
|
471
509
|
contract: '0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984',
|
|
510
|
+
provider: Providers.FIREBLOCKS,
|
|
472
511
|
hasWithdrawMemo: false
|
|
473
512
|
}] : []),
|
|
474
513
|
image: 'https://www.proton.org/images/tokens/xtokensXUNI.png',
|
|
@@ -490,6 +529,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
490
529
|
network: Networks.ERC20,
|
|
491
530
|
precision: 18,
|
|
492
531
|
contract: '0x111111111117DC0AA78B770FA6A738034120C302',
|
|
532
|
+
provider: Providers.FIREBLOCKS,
|
|
493
533
|
hasWithdrawMemo: false
|
|
494
534
|
}] : []),
|
|
495
535
|
image: 'https://www.proton.org/images/tokens/xtokensXINCH.png',
|
|
@@ -511,6 +551,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
511
551
|
network: Networks.ERC20,
|
|
512
552
|
precision: 18,
|
|
513
553
|
contract: '0x514910771AF9CA656AF840DFF83E8264ECF986CA',
|
|
554
|
+
provider: Providers.FIREBLOCKS,
|
|
514
555
|
hasWithdrawMemo: false
|
|
515
556
|
}] : []),
|
|
516
557
|
image: 'https://www.proton.org/images/tokens/xtokensXLINK.png',
|
|
@@ -532,6 +573,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
532
573
|
network: Networks.Mainnet,
|
|
533
574
|
precision: 8,
|
|
534
575
|
contract: undefined,
|
|
576
|
+
provider: Providers.FIREBLOCKS,
|
|
535
577
|
hasWithdrawMemo: false
|
|
536
578
|
}] : [], IS_TESTNET ? [{
|
|
537
579
|
wallet: 'LTC',
|
|
@@ -540,6 +582,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
540
582
|
network: Networks.Testnet,
|
|
541
583
|
precision: 8,
|
|
542
584
|
contract: undefined,
|
|
585
|
+
provider: Providers.FIREBLOCKS,
|
|
543
586
|
hasWithdrawMemo: false
|
|
544
587
|
}] : []),
|
|
545
588
|
image: 'https://www.proton.org/images/tokens/xtokensXLTC.png',
|
|
@@ -561,6 +604,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
561
604
|
network: Networks.Mainnet,
|
|
562
605
|
precision: 8,
|
|
563
606
|
contract: undefined,
|
|
607
|
+
provider: Providers.FIREBLOCKS,
|
|
564
608
|
hasWithdrawMemo: false
|
|
565
609
|
}] : [], IS_TESTNET ? [{
|
|
566
610
|
wallet: 'BCH',
|
|
@@ -569,6 +613,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
569
613
|
network: Networks.Testnet,
|
|
570
614
|
precision: 8,
|
|
571
615
|
contract: undefined,
|
|
616
|
+
provider: Providers.FIREBLOCKS,
|
|
572
617
|
hasWithdrawMemo: false
|
|
573
618
|
}] : []),
|
|
574
619
|
image: 'https://www.proton.org/images/tokens/xtokensXBCH.png',
|
|
@@ -590,6 +635,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
590
635
|
network: Networks.Mainnet,
|
|
591
636
|
precision: 7,
|
|
592
637
|
contract: undefined,
|
|
638
|
+
provider: Providers.FIREBLOCKS,
|
|
593
639
|
hasWithdrawMemo: true
|
|
594
640
|
}] : [], IS_TESTNET ? [{
|
|
595
641
|
wallet: 'XLM',
|
|
@@ -598,6 +644,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
598
644
|
network: Networks.Testnet,
|
|
599
645
|
precision: 7,
|
|
600
646
|
contract: undefined,
|
|
647
|
+
provider: Providers.FIREBLOCKS,
|
|
601
648
|
hasWithdrawMemo: true
|
|
602
649
|
}] : []),
|
|
603
650
|
image: 'https://www.proton.org/images/tokens/xtokensXXLM.png',
|
|
@@ -632,6 +679,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
632
679
|
network: Networks.Mainnet,
|
|
633
680
|
precision: 10,
|
|
634
681
|
contract: undefined,
|
|
682
|
+
provider: Providers.FIREBLOCKS,
|
|
635
683
|
hasWithdrawMemo: false
|
|
636
684
|
}] : []),
|
|
637
685
|
image: 'https://www.proton.org/images/tokens/xtokensXDOT.png',
|
|
@@ -653,6 +701,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
653
701
|
network: Networks.BEP20,
|
|
654
702
|
precision: 18,
|
|
655
703
|
contract: undefined,
|
|
704
|
+
provider: Providers.FIREBLOCKS,
|
|
656
705
|
hasWithdrawMemo: false
|
|
657
706
|
}] : []),
|
|
658
707
|
image: 'https://www.proton.org/images/tokens/xtokensXBNB.png',
|
|
@@ -674,6 +723,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
674
723
|
network: Networks.BEP20,
|
|
675
724
|
precision: 18,
|
|
676
725
|
contract: '0xe9e7cea3dedca5984780bafc599bd69add087d56',
|
|
726
|
+
provider: Providers.FIREBLOCKS,
|
|
677
727
|
hasWithdrawMemo: false
|
|
678
728
|
}] : []),
|
|
679
729
|
image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xbusd.png',
|
|
@@ -695,6 +745,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
695
745
|
network: Networks.Mainnet,
|
|
696
746
|
precision: 4,
|
|
697
747
|
contract: undefined,
|
|
748
|
+
provider: Providers.FIREBLOCKS,
|
|
698
749
|
hasWithdrawMemo: true
|
|
699
750
|
}] : [], IS_TESTNET ? [{
|
|
700
751
|
wallet: 'EOS',
|
|
@@ -703,6 +754,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
703
754
|
network: Networks.Testnet,
|
|
704
755
|
precision: 4,
|
|
705
756
|
contract: undefined,
|
|
757
|
+
provider: Providers.FIREBLOCKS,
|
|
706
758
|
hasWithdrawMemo: true
|
|
707
759
|
}] : []),
|
|
708
760
|
image: 'https://www.proton.org/images/tokens/xtokensXEOS.png',
|
|
@@ -724,6 +776,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
724
776
|
network: Networks.Mainnet,
|
|
725
777
|
precision: 8,
|
|
726
778
|
contract: undefined,
|
|
779
|
+
provider: Providers.FIREBLOCKS,
|
|
727
780
|
hasWithdrawMemo: false
|
|
728
781
|
}] : []),
|
|
729
782
|
image: 'https://www.proton.org/images/tokens/xtokensXDOGE.png',
|
|
@@ -745,6 +798,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
745
798
|
network: Networks.Mainnet,
|
|
746
799
|
precision: 6,
|
|
747
800
|
contract: undefined,
|
|
801
|
+
provider: Providers.FIREBLOCKS,
|
|
748
802
|
hasWithdrawMemo: false
|
|
749
803
|
}] : []),
|
|
750
804
|
image: 'https://www.proton.org/images/tokens/xtokensXADA.png',
|
|
@@ -767,6 +821,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
767
821
|
network: Networks.Mainnet,
|
|
768
822
|
precision: 6,
|
|
769
823
|
contract: undefined,
|
|
824
|
+
provider: Providers.FIREBLOCKS,
|
|
770
825
|
hasWithdrawMemo: true
|
|
771
826
|
}] : []),
|
|
772
827
|
image: 'https://www.proton.org/images/tokens/xtokensXLUNA.png',
|
|
@@ -788,6 +843,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
788
843
|
network: Networks.Mainnet,
|
|
789
844
|
precision: 6,
|
|
790
845
|
contract: undefined,
|
|
846
|
+
provider: Providers.FIREBLOCKS,
|
|
791
847
|
hasWithdrawMemo: true
|
|
792
848
|
}] : []),
|
|
793
849
|
image: 'https://www.proton.org/images/tokens/xtokensXUST.png',
|
|
@@ -809,6 +865,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
809
865
|
network: Networks.Mainnet,
|
|
810
866
|
precision: 9,
|
|
811
867
|
contract: undefined,
|
|
868
|
+
provider: Providers.FIREBLOCKS,
|
|
812
869
|
hasWithdrawMemo: false
|
|
813
870
|
}] : []),
|
|
814
871
|
image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xsol.png',
|
|
@@ -830,6 +887,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
830
887
|
network: Networks.Mainnet,
|
|
831
888
|
precision: 6,
|
|
832
889
|
contract: undefined,
|
|
890
|
+
provider: Providers.FIREBLOCKS,
|
|
833
891
|
hasWithdrawMemo: true
|
|
834
892
|
}] : []),
|
|
835
893
|
image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xxrp.png',
|
|
@@ -852,6 +910,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
852
910
|
network: Networks.Mainnet,
|
|
853
911
|
precision: 9,
|
|
854
912
|
contract: undefined,
|
|
913
|
+
provider: Providers.FIREBLOCKS,
|
|
855
914
|
hasWithdrawMemo: false
|
|
856
915
|
}] : []),
|
|
857
916
|
image: 'https://www.proton.org/images/tokens/xtokensXAVAX.png',
|
|
@@ -873,6 +932,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
873
932
|
network: Networks.Mainnet,
|
|
874
933
|
precision: 18,
|
|
875
934
|
contract: '0x0000000000000000000000000000000000000000',
|
|
935
|
+
provider: Providers.FIREBLOCKS,
|
|
876
936
|
hasWithdrawMemo: false
|
|
877
937
|
}] : []),
|
|
878
938
|
image: 'https://www.proton.org/images/tokens/xtokensXMATIC.png',
|
|
@@ -894,6 +954,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
894
954
|
network: Networks.Testnet,
|
|
895
955
|
precision: 8,
|
|
896
956
|
contract: undefined,
|
|
957
|
+
provider: Providers.FIREBLOCKS,
|
|
897
958
|
hasWithdrawMemo: true
|
|
898
959
|
}] : []),
|
|
899
960
|
image: 'https://www.proton.org/images/tokens/xtokensXHBAR.png',
|
|
@@ -1123,7 +1184,8 @@ var initializeConstants = function initializeConstants(chain) {
|
|
|
1123
1184
|
WRAP_AUTH_ACTION: WRAP_AUTH_ACTION,
|
|
1124
1185
|
METAL_ENDPOINT: chain === 'proton' ? 'https://cirrus.metalpay.com' : 'https://cirrus-dev.metalpay.com',
|
|
1125
1186
|
METAL_PROTON_ENDPOINT: chain === 'proton' ? 'https://api.protonchain.com' : 'https://api-dev.protonchain.com',
|
|
1126
|
-
|
|
1187
|
+
METAL_DEX_HTTP_ENDPOINT: chain === 'proton' ? 'https://metallicus-dbapi-dev01.binfra.one/dex' : 'https://metallicus-dbapi-dev01.binfra.one/dex',
|
|
1188
|
+
METAL_DEX_WS_ENDPOINT: chain === 'proton' ? 'wss://metallicus-dbapi-dev01.binfra.one/dexws' : 'wss://metallicus-dbapi-dev01.binfra.one/dexws',
|
|
1127
1189
|
PROTON_ENDPOINTS: chain === 'proton' ? ['https://metal-proton-rpc.global.binfra.one', 'https://proton.greymass.com', 'https://proton.eoscafeblock.com', 'https://proton.cryptolions.io', 'https://proton.eosusa.news'] : ['https://metal-protontest-rpc.global.binfra.one', 'https://testnet.protonchain.com'],
|
|
1128
1190
|
CHAIN_ID: chain === 'proton' ? '384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0' : '71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd',
|
|
1129
1191
|
CHAIN: chain,
|
|
@@ -1354,6 +1416,7 @@ var wrapParser = /*#__PURE__*/z.object({
|
|
|
1354
1416
|
confirmations: /*#__PURE__*/z.number()
|
|
1355
1417
|
});
|
|
1356
1418
|
|
|
1419
|
+
var _TOPICS;
|
|
1357
1420
|
var numTransform = /*#__PURE__*/z.string().regex(/\d+/).transform(Number);
|
|
1358
1421
|
var ohlcvParser = /*#__PURE__*/z.object({
|
|
1359
1422
|
time: /*#__PURE__*/z.number(),
|
|
@@ -1470,6 +1533,19 @@ var logStatus;
|
|
|
1470
1533
|
logStatus["DELETE"] = "delete";
|
|
1471
1534
|
})(logStatus || (logStatus = {}));
|
|
1472
1535
|
|
|
1536
|
+
var ITopics;
|
|
1537
|
+
|
|
1538
|
+
(function (ITopics) {
|
|
1539
|
+
ITopics["TRADES"] = "TRADES";
|
|
1540
|
+
ITopics["ORDERS"] = "ORDERS";
|
|
1541
|
+
})(ITopics || (ITopics = {}));
|
|
1542
|
+
|
|
1543
|
+
var TOPICS = (_TOPICS = {}, _TOPICS[ITopics.TRADES] = {
|
|
1544
|
+
topic: ITopics.TRADES
|
|
1545
|
+
}, _TOPICS[ITopics.ORDERS] = {
|
|
1546
|
+
topic: ITopics.ORDERS
|
|
1547
|
+
}, _TOPICS);
|
|
1548
|
+
|
|
1473
1549
|
var isSameToken = function isSameToken(token1, token2) {
|
|
1474
1550
|
return token1.xtokenSymbol === token2.xtokenSymbol && token1.xtokenPrecision === token2.xtokenPrecision && token1.xtokenContract === token2.xtokenContract;
|
|
1475
1551
|
};
|
|
@@ -1766,5 +1842,5 @@ var applyDiscountToFee = function applyDiscountToFee(fee, staked) {
|
|
|
1766
1842
|
}
|
|
1767
1843
|
};
|
|
1768
1844
|
|
|
1769
|
-
export { Chains, ExtendedAssetParser, FEE_FACTOR, Graph, ILink, INode, Networks, Status, Type, WRAP_AUTH_ACTION, WRAP_CONTRACT, accountParser, addressParser, applyDiscountToFee, authorizationParser, authorizationsParser, baseActionParser, baseActionSerializedParser, bloksRatesParser, compute_liquidity, compute_transfer, compute_transfer_curve, createAbstractAuthParser, depositBodyParser, depthParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, generateAddressBodyParser, generateAddressResponse, generateAuthParser, getDepthParser, getOhlcvParser, getOrderHistoryParser, getTradesParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, logStatus, median, ohlcvParser, orderHistoryParser, orderSide, orderType, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, protonExplorerTxUrl, rateParser, similarChains, singleActionTransactionParser, syncParser, tradeParser, transactionParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
|
|
1845
|
+
export { Chains, ExtendedAssetParser, FEE_FACTOR, Graph, ILink, INode, ITopics, Networks, Providers, Status, TOPICS, Type, WRAP_AUTH_ACTION, WRAP_CONTRACT, accountParser, addressParser, applyDiscountToFee, authorizationParser, authorizationsParser, baseActionParser, baseActionSerializedParser, bloksRatesParser, compute_liquidity, compute_transfer, compute_transfer_curve, createAbstractAuthParser, depositBodyParser, depthParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, generateAddressBodyParser, generateAddressResponse, generateAuthParser, getDepthParser, getOhlcvParser, getOrderHistoryParser, getTradesParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, logStatus, median, ohlcvParser, orderHistoryParser, orderSide, orderType, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, protonExplorerTxUrl, rateParser, similarChains, singleActionTransactionParser, syncParser, tradeParser, transactionParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
|
|
1770
1846
|
//# sourceMappingURL=wrap-constants.esm.js.map
|