@proton/wrap-constants 0.2.72 → 0.2.74
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/index.d.ts +5 -1
- package/dist/index.js +455 -373
- package/dist/index.mjs +455 -373
- package/package.json +5 -3
- package/src/coins.ts +1407 -1199
- package/src/constants.ts +6 -1
package/dist/index.js
CHANGED
|
@@ -336,16 +336,18 @@ var initializeCoins = (protonChain) => {
|
|
|
336
336
|
xtokenPrecision: 8,
|
|
337
337
|
xtokenContract: "xtokens",
|
|
338
338
|
wallets: [
|
|
339
|
-
...IS_MAINNET ? [
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
339
|
+
...IS_MAINNET ? [
|
|
340
|
+
{
|
|
341
|
+
wallet: "MTL",
|
|
342
|
+
symbol: "MTL",
|
|
343
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
344
|
+
network: "erc20" /* ERC20 */,
|
|
345
|
+
precision: 8,
|
|
346
|
+
contract: "0xF433089366899D83A9F26A773D59EC7ECF30355E",
|
|
347
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
348
|
+
hasWithdrawMemo: false
|
|
349
|
+
}
|
|
350
|
+
] : []
|
|
349
351
|
],
|
|
350
352
|
image: "https://www.proton.org/images/tokens/xtokensXMT.png",
|
|
351
353
|
coingeckoId: "metal"
|
|
@@ -361,16 +363,18 @@ var initializeCoins = (protonChain) => {
|
|
|
361
363
|
xtokenPrecision: 8,
|
|
362
364
|
xtokenContract: "xtokens",
|
|
363
365
|
wallets: [
|
|
364
|
-
...IS_TESTNET ? [
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
366
|
+
...IS_TESTNET ? [
|
|
367
|
+
{
|
|
368
|
+
wallet: "METAL",
|
|
369
|
+
symbol: "METAL",
|
|
370
|
+
chain: "Metal C-Chain (Testnet)" /* MetalCTestnet */,
|
|
371
|
+
network: "evm" /* EVM */,
|
|
372
|
+
precision: 18,
|
|
373
|
+
contract: "",
|
|
374
|
+
provider: "metal" /* METAL */,
|
|
375
|
+
hasWithdrawMemo: false
|
|
376
|
+
}
|
|
377
|
+
] : [],
|
|
374
378
|
...IS_MAINNET ? [
|
|
375
379
|
{
|
|
376
380
|
wallet: "METAL",
|
|
@@ -408,26 +412,30 @@ var initializeCoins = (protonChain) => {
|
|
|
408
412
|
xtokenPrecision: 8,
|
|
409
413
|
xtokenContract: "xtokens",
|
|
410
414
|
wallets: [
|
|
411
|
-
...IS_MAINNET ? [
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
415
|
+
...IS_MAINNET ? [
|
|
416
|
+
{
|
|
417
|
+
wallet: "BTC",
|
|
418
|
+
symbol: "BTC",
|
|
419
|
+
chain: "Bitcoin" /* BitcoinMainnet */,
|
|
420
|
+
network: "mainnet" /* Mainnet */,
|
|
421
|
+
precision: 8,
|
|
422
|
+
contract: void 0,
|
|
423
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
424
|
+
hasWithdrawMemo: false
|
|
425
|
+
}
|
|
426
|
+
] : [],
|
|
427
|
+
...IS_TESTNET ? [
|
|
428
|
+
{
|
|
429
|
+
wallet: "BTC",
|
|
430
|
+
symbol: "BTC",
|
|
431
|
+
chain: "Bitcoin (Testnet)" /* BitcoinTestnet */,
|
|
432
|
+
network: "testnet" /* Testnet */,
|
|
433
|
+
precision: 8,
|
|
434
|
+
contract: void 0,
|
|
435
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
436
|
+
hasWithdrawMemo: false
|
|
437
|
+
}
|
|
438
|
+
] : []
|
|
431
439
|
],
|
|
432
440
|
image: "https://www.proton.org/images/tokens/xtokensXBTC.png",
|
|
433
441
|
coingeckoId: "bitcoin"
|
|
@@ -443,26 +451,30 @@ var initializeCoins = (protonChain) => {
|
|
|
443
451
|
xtokenPrecision: 8,
|
|
444
452
|
xtokenContract: "xtokens",
|
|
445
453
|
wallets: [
|
|
446
|
-
...IS_MAINNET ? [
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
454
|
+
...IS_MAINNET ? [
|
|
455
|
+
{
|
|
456
|
+
wallet: "ETH",
|
|
457
|
+
symbol: "ETH",
|
|
458
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
459
|
+
network: "mainnet" /* Mainnet */,
|
|
460
|
+
precision: 18,
|
|
461
|
+
contract: "0x0000000000000000000000000000000000000000",
|
|
462
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
463
|
+
hasWithdrawMemo: false
|
|
464
|
+
}
|
|
465
|
+
] : [],
|
|
466
|
+
...IS_TESTNET ? [
|
|
467
|
+
{
|
|
468
|
+
wallet: "ETH",
|
|
469
|
+
symbol: "ETH",
|
|
470
|
+
chain: "Ethereum (Ropsten)" /* EthereumRopsten */,
|
|
471
|
+
network: "ropsten" /* Ropsten */,
|
|
472
|
+
precision: 18,
|
|
473
|
+
contract: "0x0000000000000000000000000000000000000000",
|
|
474
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
475
|
+
hasWithdrawMemo: false
|
|
476
|
+
}
|
|
477
|
+
] : []
|
|
466
478
|
],
|
|
467
479
|
image: "https://www.proton.org/images/tokens/xtokensXETH.png",
|
|
468
480
|
coingeckoId: "ethereum"
|
|
@@ -492,36 +504,42 @@ var initializeCoins = (protonChain) => {
|
|
|
492
504
|
xtokenPrecision: 6,
|
|
493
505
|
xtokenContract: "xtokens",
|
|
494
506
|
wallets: [
|
|
495
|
-
...IS_MAINNET ? [
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
507
|
+
...IS_MAINNET ? [
|
|
508
|
+
{
|
|
509
|
+
wallet: "USDT",
|
|
510
|
+
symbol: "USDT",
|
|
511
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
512
|
+
network: "erc20" /* ERC20 */,
|
|
513
|
+
precision: 6,
|
|
514
|
+
contract: "0xDAC17F958D2EE523A2206206994597C13D831EC7",
|
|
515
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
516
|
+
hasWithdrawMemo: false
|
|
517
|
+
}
|
|
518
|
+
] : [],
|
|
519
|
+
...IS_MAINNET ? [
|
|
520
|
+
{
|
|
521
|
+
wallet: "USDT-BEP20",
|
|
522
|
+
symbol: "USDT",
|
|
523
|
+
chain: "Binance (BEP20)" /* BinanceBEP20 */,
|
|
524
|
+
network: "bep20" /* BEP20 */,
|
|
525
|
+
precision: 18,
|
|
526
|
+
contract: "0x55d398326f99059fF775485246999027B3197955",
|
|
527
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
528
|
+
hasWithdrawMemo: false
|
|
529
|
+
}
|
|
530
|
+
] : [],
|
|
531
|
+
...IS_TESTNET ? [
|
|
532
|
+
{
|
|
533
|
+
wallet: "USDT",
|
|
534
|
+
symbol: "USDT",
|
|
535
|
+
chain: "Ethereum (Ropsten)" /* EthereumRopsten */,
|
|
536
|
+
network: "ropsten" /* Ropsten */,
|
|
537
|
+
precision: 6,
|
|
538
|
+
contract: "0xDAC17F958D2EE523A2206206994597C13D831EC7",
|
|
539
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
540
|
+
hasWithdrawMemo: false
|
|
541
|
+
}
|
|
542
|
+
] : []
|
|
525
543
|
],
|
|
526
544
|
image: "https://www.proton.org/images/tokens/xtokensXUSDT.png",
|
|
527
545
|
coingeckoId: "tether"
|
|
@@ -537,16 +555,18 @@ var initializeCoins = (protonChain) => {
|
|
|
537
555
|
xtokenPrecision: 6,
|
|
538
556
|
xtokenContract: "xtokens",
|
|
539
557
|
wallets: [
|
|
540
|
-
...IS_MAINNET ? [
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
558
|
+
...IS_MAINNET ? [
|
|
559
|
+
{
|
|
560
|
+
wallet: "TUSD",
|
|
561
|
+
symbol: "TUSD",
|
|
562
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
563
|
+
network: "erc20" /* ERC20 */,
|
|
564
|
+
precision: 18,
|
|
565
|
+
contract: "0x0000000000085D4780B73119B644AE5ECD22B376",
|
|
566
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
567
|
+
hasWithdrawMemo: false
|
|
568
|
+
}
|
|
569
|
+
] : []
|
|
550
570
|
],
|
|
551
571
|
image: "https://www.proton.org/images/tokens/xtokensXTUSD.png",
|
|
552
572
|
coingeckoId: "true-usd"
|
|
@@ -562,16 +582,18 @@ var initializeCoins = (protonChain) => {
|
|
|
562
582
|
xtokenPrecision: 6,
|
|
563
583
|
xtokenContract: "xtokens",
|
|
564
584
|
wallets: [
|
|
565
|
-
...IS_MAINNET ? [
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
585
|
+
...IS_MAINNET ? [
|
|
586
|
+
{
|
|
587
|
+
wallet: "EUROC",
|
|
588
|
+
symbol: "EUROC-ERC20",
|
|
589
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
590
|
+
network: "erc20" /* ERC20 */,
|
|
591
|
+
precision: 6,
|
|
592
|
+
contract: "0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c",
|
|
593
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
594
|
+
hasWithdrawMemo: false
|
|
595
|
+
}
|
|
596
|
+
] : []
|
|
575
597
|
],
|
|
576
598
|
image: "https://assets.coingecko.com/coins/images/26045/small/euro-coin.png?1655394420",
|
|
577
599
|
coingeckoId: "euro-coin"
|
|
@@ -587,16 +609,18 @@ var initializeCoins = (protonChain) => {
|
|
|
587
609
|
xtokenPrecision: 4,
|
|
588
610
|
xtokenContract: "xtokens",
|
|
589
611
|
wallets: [
|
|
590
|
-
...IS_MAINNET ? [
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
612
|
+
...IS_MAINNET ? [
|
|
613
|
+
{
|
|
614
|
+
wallet: "XDC",
|
|
615
|
+
symbol: "XDC",
|
|
616
|
+
chain: "XDC Network" /* XDCMainnet */,
|
|
617
|
+
network: "mainnet" /* Mainnet */,
|
|
618
|
+
precision: 18,
|
|
619
|
+
contract: "",
|
|
620
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
621
|
+
hasWithdrawMemo: false
|
|
622
|
+
}
|
|
623
|
+
] : []
|
|
600
624
|
],
|
|
601
625
|
image: "https://assets.coingecko.com/coins/images/2912/small/xdc-icon.png?1633700890",
|
|
602
626
|
coingeckoId: "xdce-crowd-sale"
|
|
@@ -612,16 +636,18 @@ var initializeCoins = (protonChain) => {
|
|
|
612
636
|
xtokenPrecision: 6,
|
|
613
637
|
xtokenContract: "xtokens",
|
|
614
638
|
wallets: [
|
|
615
|
-
...IS_MAINNET ? [
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
639
|
+
...IS_MAINNET ? [
|
|
640
|
+
{
|
|
641
|
+
wallet: "PAX",
|
|
642
|
+
symbol: "PAX",
|
|
643
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
644
|
+
network: "erc20" /* ERC20 */,
|
|
645
|
+
precision: 18,
|
|
646
|
+
contract: "0x8E870D67F660D95D5BE530380D0EC0BD388289E1",
|
|
647
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
648
|
+
hasWithdrawMemo: false
|
|
649
|
+
}
|
|
650
|
+
] : []
|
|
625
651
|
],
|
|
626
652
|
image: "https://www.proton.org/images/tokens/xtokensXPAX.png",
|
|
627
653
|
coingeckoId: "paxos-standard"
|
|
@@ -637,26 +663,30 @@ var initializeCoins = (protonChain) => {
|
|
|
637
663
|
xtokenPrecision: 8,
|
|
638
664
|
xtokenContract: "xtokens",
|
|
639
665
|
wallets: [
|
|
640
|
-
...IS_MAINNET ? [
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
666
|
+
...IS_MAINNET ? [
|
|
667
|
+
{
|
|
668
|
+
wallet: "PAXG",
|
|
669
|
+
symbol: "PAXG",
|
|
670
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
671
|
+
network: "erc20" /* ERC20 */,
|
|
672
|
+
precision: 18,
|
|
673
|
+
contract: "0x45804880DE22913DAFE09F4980848ECE6ECBAF78",
|
|
674
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
675
|
+
hasWithdrawMemo: false
|
|
676
|
+
}
|
|
677
|
+
] : [],
|
|
678
|
+
...IS_TESTNET ? [
|
|
679
|
+
{
|
|
680
|
+
wallet: "PAXG",
|
|
681
|
+
symbol: "PAXG",
|
|
682
|
+
chain: "Ethereum (Ropsten)" /* EthereumRopsten */,
|
|
683
|
+
network: "ropsten" /* Ropsten */,
|
|
684
|
+
precision: 18,
|
|
685
|
+
contract: "0x45804880DE22913DAFE09F4980848ECE6ECBAF78",
|
|
686
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
687
|
+
hasWithdrawMemo: false
|
|
688
|
+
}
|
|
689
|
+
] : []
|
|
660
690
|
],
|
|
661
691
|
image: "https://www.proton.org/images/tokens/xtokensXPAXG.png",
|
|
662
692
|
coingeckoId: "pax-gold"
|
|
@@ -676,7 +706,7 @@ var initializeCoins = (protonChain) => {
|
|
|
676
706
|
coingeckoId: ""
|
|
677
707
|
},
|
|
678
708
|
{
|
|
679
|
-
allowSwap:
|
|
709
|
+
allowSwap: false,
|
|
680
710
|
allowBridge: false,
|
|
681
711
|
allowLend: false,
|
|
682
712
|
allowBorrow: false,
|
|
@@ -714,26 +744,30 @@ var initializeCoins = (protonChain) => {
|
|
|
714
744
|
xtokenPrecision: 6,
|
|
715
745
|
xtokenContract: "xtokens",
|
|
716
746
|
wallets: [
|
|
717
|
-
...IS_MAINNET ? [
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
747
|
+
...IS_MAINNET ? [
|
|
748
|
+
{
|
|
749
|
+
wallet: "UNI",
|
|
750
|
+
symbol: "UNI",
|
|
751
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
752
|
+
network: "erc20" /* ERC20 */,
|
|
753
|
+
precision: 18,
|
|
754
|
+
contract: "0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984",
|
|
755
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
756
|
+
hasWithdrawMemo: false
|
|
757
|
+
}
|
|
758
|
+
] : [],
|
|
759
|
+
...IS_TESTNET ? [
|
|
760
|
+
{
|
|
761
|
+
wallet: "UNI",
|
|
762
|
+
symbol: "UNI",
|
|
763
|
+
chain: "Ethereum (Ropsten)" /* EthereumRopsten */,
|
|
764
|
+
network: "ropsten" /* Ropsten */,
|
|
765
|
+
precision: 18,
|
|
766
|
+
contract: "0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984",
|
|
767
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
768
|
+
hasWithdrawMemo: false
|
|
769
|
+
}
|
|
770
|
+
] : []
|
|
737
771
|
],
|
|
738
772
|
image: "https://www.proton.org/images/tokens/xtokensXUNI.png",
|
|
739
773
|
coingeckoId: "uniswap"
|
|
@@ -749,16 +783,18 @@ var initializeCoins = (protonChain) => {
|
|
|
749
783
|
xtokenPrecision: 6,
|
|
750
784
|
xtokenContract: "xtokens",
|
|
751
785
|
wallets: [
|
|
752
|
-
...IS_MAINNET ? [
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
786
|
+
...IS_MAINNET ? [
|
|
787
|
+
{
|
|
788
|
+
wallet: "1INCH",
|
|
789
|
+
symbol: "1INCH",
|
|
790
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
791
|
+
network: "erc20" /* ERC20 */,
|
|
792
|
+
precision: 18,
|
|
793
|
+
contract: "0x111111111117DC0AA78B770FA6A738034120C302",
|
|
794
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
795
|
+
hasWithdrawMemo: false
|
|
796
|
+
}
|
|
797
|
+
] : []
|
|
762
798
|
],
|
|
763
799
|
image: "https://www.proton.org/images/tokens/xtokensXINCH.png",
|
|
764
800
|
coingeckoId: "1inch"
|
|
@@ -774,16 +810,18 @@ var initializeCoins = (protonChain) => {
|
|
|
774
810
|
xtokenPrecision: 6,
|
|
775
811
|
xtokenContract: "xtokens",
|
|
776
812
|
wallets: [
|
|
777
|
-
...IS_MAINNET ? [
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
813
|
+
...IS_MAINNET ? [
|
|
814
|
+
{
|
|
815
|
+
wallet: "LINK",
|
|
816
|
+
symbol: "LINK",
|
|
817
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
818
|
+
network: "erc20" /* ERC20 */,
|
|
819
|
+
precision: 18,
|
|
820
|
+
contract: "0x514910771AF9CA656AF840DFF83E8264ECF986CA",
|
|
821
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
822
|
+
hasWithdrawMemo: false
|
|
823
|
+
}
|
|
824
|
+
] : []
|
|
787
825
|
],
|
|
788
826
|
image: "https://www.proton.org/images/tokens/xtokensXLINK.png",
|
|
789
827
|
coingeckoId: "chainlink"
|
|
@@ -799,26 +837,30 @@ var initializeCoins = (protonChain) => {
|
|
|
799
837
|
xtokenPrecision: 8,
|
|
800
838
|
xtokenContract: "xtokens",
|
|
801
839
|
wallets: [
|
|
802
|
-
...IS_MAINNET ? [
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
840
|
+
...IS_MAINNET ? [
|
|
841
|
+
{
|
|
842
|
+
wallet: "LTC",
|
|
843
|
+
symbol: "LTC",
|
|
844
|
+
chain: "Litecoin" /* LitecoinMainnet */,
|
|
845
|
+
network: "mainnet" /* Mainnet */,
|
|
846
|
+
precision: 8,
|
|
847
|
+
contract: void 0,
|
|
848
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
849
|
+
hasWithdrawMemo: false
|
|
850
|
+
}
|
|
851
|
+
] : [],
|
|
852
|
+
...IS_TESTNET ? [
|
|
853
|
+
{
|
|
854
|
+
wallet: "LTC",
|
|
855
|
+
symbol: "LTC",
|
|
856
|
+
chain: "Litecoin (Testnet)" /* LitecoinTestnet */,
|
|
857
|
+
network: "testnet" /* Testnet */,
|
|
858
|
+
precision: 8,
|
|
859
|
+
contract: void 0,
|
|
860
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
861
|
+
hasWithdrawMemo: false
|
|
862
|
+
}
|
|
863
|
+
] : []
|
|
822
864
|
],
|
|
823
865
|
image: "https://www.proton.org/images/tokens/xtokensXLTC.png",
|
|
824
866
|
coingeckoId: "litecoin"
|
|
@@ -834,26 +876,30 @@ var initializeCoins = (protonChain) => {
|
|
|
834
876
|
xtokenPrecision: 8,
|
|
835
877
|
xtokenContract: "xtokens",
|
|
836
878
|
wallets: [
|
|
837
|
-
...IS_MAINNET ? [
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
879
|
+
...IS_MAINNET ? [
|
|
880
|
+
{
|
|
881
|
+
wallet: "BCH",
|
|
882
|
+
symbol: "BCH",
|
|
883
|
+
chain: "Bitcoin Cash" /* BitcoinCashMainnet */,
|
|
884
|
+
network: "mainnet" /* Mainnet */,
|
|
885
|
+
precision: 8,
|
|
886
|
+
contract: void 0,
|
|
887
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
888
|
+
hasWithdrawMemo: false
|
|
889
|
+
}
|
|
890
|
+
] : [],
|
|
891
|
+
...IS_TESTNET ? [
|
|
892
|
+
{
|
|
893
|
+
wallet: "BCH",
|
|
894
|
+
symbol: "BCH",
|
|
895
|
+
chain: "Bitcoin Cash (Testnet)" /* BitcoinCashTestnet */,
|
|
896
|
+
network: "testnet" /* Testnet */,
|
|
897
|
+
precision: 8,
|
|
898
|
+
contract: void 0,
|
|
899
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
900
|
+
hasWithdrawMemo: false
|
|
901
|
+
}
|
|
902
|
+
] : []
|
|
857
903
|
],
|
|
858
904
|
image: "https://www.proton.org/images/tokens/xtokensXBCH.png",
|
|
859
905
|
coingeckoId: "bitcoin-cash"
|
|
@@ -869,16 +915,18 @@ var initializeCoins = (protonChain) => {
|
|
|
869
915
|
xtokenPrecision: 4,
|
|
870
916
|
xtokenContract: "xtokens",
|
|
871
917
|
wallets: [
|
|
872
|
-
...IS_MAINNET ? [
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
918
|
+
...IS_MAINNET ? [
|
|
919
|
+
{
|
|
920
|
+
wallet: "LUNR",
|
|
921
|
+
symbol: "LUNR",
|
|
922
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
923
|
+
network: "erc20" /* ERC20 */,
|
|
924
|
+
precision: 4,
|
|
925
|
+
contract: void 0,
|
|
926
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
927
|
+
hasWithdrawMemo: false
|
|
928
|
+
}
|
|
929
|
+
] : []
|
|
882
930
|
],
|
|
883
931
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xlunr.png",
|
|
884
932
|
coingeckoId: "lunr-token"
|
|
@@ -894,26 +942,30 @@ var initializeCoins = (protonChain) => {
|
|
|
894
942
|
xtokenPrecision: 6,
|
|
895
943
|
xtokenContract: "xtokens",
|
|
896
944
|
wallets: [
|
|
897
|
-
...IS_MAINNET ? [
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
945
|
+
...IS_MAINNET ? [
|
|
946
|
+
{
|
|
947
|
+
wallet: "XLM",
|
|
948
|
+
symbol: "XLM",
|
|
949
|
+
chain: "Stellar" /* StellarMainnet */,
|
|
950
|
+
network: "mainnet" /* Mainnet */,
|
|
951
|
+
precision: 7,
|
|
952
|
+
contract: void 0,
|
|
953
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
954
|
+
hasWithdrawMemo: true
|
|
955
|
+
}
|
|
956
|
+
] : [],
|
|
957
|
+
...IS_TESTNET ? [
|
|
958
|
+
{
|
|
959
|
+
wallet: "XLM",
|
|
960
|
+
symbol: "XLM",
|
|
961
|
+
chain: "Stellar (Testnet)" /* StellarTestnet */,
|
|
962
|
+
network: "testnet" /* Testnet */,
|
|
963
|
+
precision: 7,
|
|
964
|
+
contract: void 0,
|
|
965
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
966
|
+
hasWithdrawMemo: true
|
|
967
|
+
}
|
|
968
|
+
] : []
|
|
917
969
|
],
|
|
918
970
|
image: "https://www.proton.org/images/tokens/xtokensXXLM.png",
|
|
919
971
|
coingeckoId: "stellar"
|
|
@@ -943,16 +995,18 @@ var initializeCoins = (protonChain) => {
|
|
|
943
995
|
xtokenPrecision: 8,
|
|
944
996
|
xtokenContract: "xtokens",
|
|
945
997
|
wallets: [
|
|
946
|
-
...IS_MAINNET ? [
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
998
|
+
...IS_MAINNET ? [
|
|
999
|
+
{
|
|
1000
|
+
wallet: "DOT",
|
|
1001
|
+
symbol: "DOT",
|
|
1002
|
+
chain: "Polkadot" /* PolkadotMainnet */,
|
|
1003
|
+
network: "mainnet" /* Mainnet */,
|
|
1004
|
+
precision: 10,
|
|
1005
|
+
contract: void 0,
|
|
1006
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1007
|
+
hasWithdrawMemo: false
|
|
1008
|
+
}
|
|
1009
|
+
] : []
|
|
956
1010
|
],
|
|
957
1011
|
image: "https://www.proton.org/images/tokens/xtokensXDOT.png",
|
|
958
1012
|
coingeckoId: "polkadot"
|
|
@@ -968,16 +1022,18 @@ var initializeCoins = (protonChain) => {
|
|
|
968
1022
|
xtokenPrecision: 8,
|
|
969
1023
|
xtokenContract: "xtokens",
|
|
970
1024
|
wallets: [
|
|
971
|
-
...IS_MAINNET ? [
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
1025
|
+
...IS_MAINNET ? [
|
|
1026
|
+
{
|
|
1027
|
+
wallet: "BNB",
|
|
1028
|
+
symbol: "BNB",
|
|
1029
|
+
chain: "Binance (BEP20)" /* BinanceBEP20 */,
|
|
1030
|
+
network: "bep20" /* BEP20 */,
|
|
1031
|
+
precision: 18,
|
|
1032
|
+
contract: void 0,
|
|
1033
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1034
|
+
hasWithdrawMemo: false
|
|
1035
|
+
}
|
|
1036
|
+
] : []
|
|
981
1037
|
],
|
|
982
1038
|
image: "https://www.proton.org/images/tokens/xtokensXBNB.png",
|
|
983
1039
|
coingeckoId: "binancecoin"
|
|
@@ -1018,26 +1074,30 @@ var initializeCoins = (protonChain) => {
|
|
|
1018
1074
|
xtokenPrecision: 4,
|
|
1019
1075
|
xtokenContract: "xtokens",
|
|
1020
1076
|
wallets: [
|
|
1021
|
-
...IS_MAINNET ? [
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1077
|
+
...IS_MAINNET ? [
|
|
1078
|
+
{
|
|
1079
|
+
wallet: "EOS",
|
|
1080
|
+
symbol: "EOS",
|
|
1081
|
+
chain: "EOS" /* EosMainnet */,
|
|
1082
|
+
network: "mainnet" /* Mainnet */,
|
|
1083
|
+
precision: 4,
|
|
1084
|
+
contract: void 0,
|
|
1085
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1086
|
+
hasWithdrawMemo: true
|
|
1087
|
+
}
|
|
1088
|
+
] : [],
|
|
1089
|
+
...IS_TESTNET ? [
|
|
1090
|
+
{
|
|
1091
|
+
wallet: "EOS",
|
|
1092
|
+
symbol: "EOS",
|
|
1093
|
+
chain: "EOS (Jungle Testnet)" /* EosTestnet */,
|
|
1094
|
+
network: "testnet" /* Testnet */,
|
|
1095
|
+
precision: 4,
|
|
1096
|
+
contract: void 0,
|
|
1097
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1098
|
+
hasWithdrawMemo: true
|
|
1099
|
+
}
|
|
1100
|
+
] : []
|
|
1041
1101
|
],
|
|
1042
1102
|
image: "https://www.proton.org/images/tokens/xtokensXEOS.png",
|
|
1043
1103
|
coingeckoId: "eos"
|
|
@@ -1053,16 +1113,18 @@ var initializeCoins = (protonChain) => {
|
|
|
1053
1113
|
xtokenPrecision: 6,
|
|
1054
1114
|
xtokenContract: "xtokens",
|
|
1055
1115
|
wallets: [
|
|
1056
|
-
...IS_MAINNET ? [
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1116
|
+
...IS_MAINNET ? [
|
|
1117
|
+
{
|
|
1118
|
+
wallet: "DOGE",
|
|
1119
|
+
symbol: "DOGE",
|
|
1120
|
+
chain: "Dogecoin" /* DogeMainnet */,
|
|
1121
|
+
network: "mainnet" /* Mainnet */,
|
|
1122
|
+
precision: 8,
|
|
1123
|
+
contract: void 0,
|
|
1124
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1125
|
+
hasWithdrawMemo: false
|
|
1126
|
+
}
|
|
1127
|
+
] : []
|
|
1066
1128
|
],
|
|
1067
1129
|
image: "https://www.proton.org/images/tokens/xtokensXDOGE.png",
|
|
1068
1130
|
coingeckoId: "dogecoin"
|
|
@@ -1078,16 +1140,18 @@ var initializeCoins = (protonChain) => {
|
|
|
1078
1140
|
xtokenPrecision: 6,
|
|
1079
1141
|
xtokenContract: "xtokens",
|
|
1080
1142
|
wallets: [
|
|
1081
|
-
...IS_MAINNET ? [
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1143
|
+
...IS_MAINNET ? [
|
|
1144
|
+
{
|
|
1145
|
+
wallet: "ADA",
|
|
1146
|
+
symbol: "ADA",
|
|
1147
|
+
chain: "Cardano" /* CardanoMainnet */,
|
|
1148
|
+
network: "mainnet" /* Mainnet */,
|
|
1149
|
+
precision: 6,
|
|
1150
|
+
contract: void 0,
|
|
1151
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1152
|
+
hasWithdrawMemo: false
|
|
1153
|
+
}
|
|
1154
|
+
] : []
|
|
1091
1155
|
],
|
|
1092
1156
|
image: "https://www.proton.org/images/tokens/xtokensXADA.png",
|
|
1093
1157
|
coingeckoId: "cardano"
|
|
@@ -1129,16 +1193,18 @@ var initializeCoins = (protonChain) => {
|
|
|
1129
1193
|
xtokenPrecision: 6,
|
|
1130
1194
|
xtokenContract: "xtokens",
|
|
1131
1195
|
wallets: [
|
|
1132
|
-
...IS_MAINNET ? [
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1196
|
+
...IS_MAINNET ? [
|
|
1197
|
+
{
|
|
1198
|
+
wallet: "UST",
|
|
1199
|
+
symbol: "UST",
|
|
1200
|
+
chain: "Terra" /* TerraMainnet */,
|
|
1201
|
+
network: "mainnet" /* Mainnet */,
|
|
1202
|
+
precision: 6,
|
|
1203
|
+
contract: void 0,
|
|
1204
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1205
|
+
hasWithdrawMemo: true
|
|
1206
|
+
}
|
|
1207
|
+
] : []
|
|
1142
1208
|
],
|
|
1143
1209
|
image: "https://www.proton.org/images/tokens/xtokensXUST.png",
|
|
1144
1210
|
coingeckoId: "terrausd"
|
|
@@ -1154,16 +1220,18 @@ var initializeCoins = (protonChain) => {
|
|
|
1154
1220
|
xtokenPrecision: 6,
|
|
1155
1221
|
xtokenContract: "xtokens",
|
|
1156
1222
|
wallets: [
|
|
1157
|
-
...IS_MAINNET ? [
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1223
|
+
...IS_MAINNET ? [
|
|
1224
|
+
{
|
|
1225
|
+
wallet: "SOL",
|
|
1226
|
+
symbol: "SOL",
|
|
1227
|
+
chain: "Solana" /* SolanaMainnet */,
|
|
1228
|
+
network: "mainnet" /* Mainnet */,
|
|
1229
|
+
precision: 9,
|
|
1230
|
+
contract: void 0,
|
|
1231
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1232
|
+
hasWithdrawMemo: false
|
|
1233
|
+
}
|
|
1234
|
+
] : []
|
|
1167
1235
|
],
|
|
1168
1236
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xsol.png",
|
|
1169
1237
|
coingeckoId: "solana"
|
|
@@ -1179,16 +1247,18 @@ var initializeCoins = (protonChain) => {
|
|
|
1179
1247
|
xtokenPrecision: 6,
|
|
1180
1248
|
xtokenContract: "xtokens",
|
|
1181
1249
|
wallets: [
|
|
1182
|
-
...IS_MAINNET ? [
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1250
|
+
...IS_MAINNET ? [
|
|
1251
|
+
{
|
|
1252
|
+
wallet: "XRP",
|
|
1253
|
+
symbol: "XRP",
|
|
1254
|
+
chain: "Ripple" /* RippleMainnet */,
|
|
1255
|
+
network: "mainnet" /* Mainnet */,
|
|
1256
|
+
precision: 6,
|
|
1257
|
+
contract: void 0,
|
|
1258
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1259
|
+
hasWithdrawMemo: true
|
|
1260
|
+
}
|
|
1261
|
+
] : []
|
|
1192
1262
|
],
|
|
1193
1263
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xxrp.png",
|
|
1194
1264
|
coingeckoId: "ripple"
|
|
@@ -1232,16 +1302,18 @@ var initializeCoins = (protonChain) => {
|
|
|
1232
1302
|
xtokenPrecision: 8,
|
|
1233
1303
|
xtokenContract: "xtokens",
|
|
1234
1304
|
wallets: [
|
|
1235
|
-
...IS_MAINNET ? [
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1305
|
+
...IS_MAINNET ? [
|
|
1306
|
+
{
|
|
1307
|
+
wallet: "MATIC",
|
|
1308
|
+
symbol: "MATIC",
|
|
1309
|
+
chain: "Polygon" /* PolygonMainnet */,
|
|
1310
|
+
network: "mainnet" /* Mainnet */,
|
|
1311
|
+
precision: 18,
|
|
1312
|
+
contract: "0x0000000000000000000000000000000000000000",
|
|
1313
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1314
|
+
hasWithdrawMemo: false
|
|
1315
|
+
}
|
|
1316
|
+
] : []
|
|
1245
1317
|
],
|
|
1246
1318
|
image: "https://www.proton.org/images/tokens/xtokensXMATIC.png",
|
|
1247
1319
|
coingeckoId: "matic-network"
|
|
@@ -1271,16 +1343,18 @@ var initializeCoins = (protonChain) => {
|
|
|
1271
1343
|
xtokenPrecision: 6,
|
|
1272
1344
|
xtokenContract: "xtokens",
|
|
1273
1345
|
wallets: [
|
|
1274
|
-
...IS_TESTNET ? [
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1346
|
+
...IS_TESTNET ? [
|
|
1347
|
+
{
|
|
1348
|
+
wallet: "HBAR",
|
|
1349
|
+
symbol: "HBAR",
|
|
1350
|
+
chain: "Hedera (Testnet)" /* HederaTestnet */,
|
|
1351
|
+
network: "testnet" /* Testnet */,
|
|
1352
|
+
precision: 8,
|
|
1353
|
+
contract: void 0,
|
|
1354
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1355
|
+
hasWithdrawMemo: true
|
|
1356
|
+
}
|
|
1357
|
+
] : []
|
|
1284
1358
|
],
|
|
1285
1359
|
image: "https://www.proton.org/images/tokens/xtokensXHBAR.png",
|
|
1286
1360
|
coingeckoId: "hedera-hashgraph"
|
|
@@ -1291,7 +1365,9 @@ var initializeCoins = (protonChain) => {
|
|
|
1291
1365
|
return new Set(chains).size !== chains.length;
|
|
1292
1366
|
});
|
|
1293
1367
|
if (walletWithDuplicateChains) {
|
|
1294
|
-
throw new Error(
|
|
1368
|
+
throw new Error(
|
|
1369
|
+
`Coin ${walletWithDuplicateChains.coin} has duplicate chains in wallet`
|
|
1370
|
+
);
|
|
1295
1371
|
}
|
|
1296
1372
|
return {
|
|
1297
1373
|
allCoins: coins,
|
|
@@ -1300,7 +1376,9 @@ var initializeCoins = (protonChain) => {
|
|
|
1300
1376
|
lendCoins: coins.filter((coin) => coin.allowLend),
|
|
1301
1377
|
borrowCoins: coins.filter((coin) => coin.allowBorrow),
|
|
1302
1378
|
loanCoins: coins.filter((coin) => coin.allowLend || coin.allowBorrow),
|
|
1303
|
-
allEnabledCoins: coins.filter(
|
|
1379
|
+
allEnabledCoins: coins.filter(
|
|
1380
|
+
(coin) => coin.allowSwap || coin.allowBridge || coin.xtokenSymbol === "XMD"
|
|
1381
|
+
)
|
|
1304
1382
|
};
|
|
1305
1383
|
};
|
|
1306
1384
|
|
|
@@ -1461,6 +1539,10 @@ var initializeConstants = (chain) => {
|
|
|
1461
1539
|
BORROW_COINS: borrowCoins,
|
|
1462
1540
|
LOAN_COINS: loanCoins,
|
|
1463
1541
|
ALL_COINS: allCoins,
|
|
1542
|
+
XMD_CONTRACT: "xmd.treasury",
|
|
1543
|
+
XMD_TOKEN_CONTRACT: "xmd.token",
|
|
1544
|
+
XMD_SYMBOL_CODE: "XMD",
|
|
1545
|
+
XMD_DECIMALS: 6,
|
|
1464
1546
|
findBridgeCoinWalletByXtokenAndChain(xtokenSymbol, chain2) {
|
|
1465
1547
|
const bridgeCoin = constants.BRIDGE_COINS.find((bridgeCoin2) => bridgeCoin2.xtokenSymbol === xtokenSymbol);
|
|
1466
1548
|
if (!bridgeCoin)
|