@proton/wrap-constants 0.0.44 → 0.0.48
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 +5 -1
- package/dist/wrap-constants.cjs.development.js +96 -54
- 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 +96 -54
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/coins.ts +109 -62
|
@@ -30,6 +30,8 @@ var Chains;
|
|
|
30
30
|
Chains["AvalancheCChain"] = "Avalanche C-Chain";
|
|
31
31
|
Chains["PolygonMainnet"] = "Polygon";
|
|
32
32
|
Chains["TerraMainnet"] = "Terra";
|
|
33
|
+
Chains["RippleMainnet"] = "Ripple";
|
|
34
|
+
Chains["SolanaMainnet"] = "Solana";
|
|
33
35
|
})(Chains || (Chains = {}));
|
|
34
36
|
|
|
35
37
|
var Networks;
|
|
@@ -94,6 +96,10 @@ var explorerLinkByChain = (_explorerLinkByChain = {}, _explorerLinkByChain[Chain
|
|
|
94
96
|
return "https://polygonscan.com/tx/" + txid;
|
|
95
97
|
}, _explorerLinkByChain[Chains.TerraMainnet] = function (txid) {
|
|
96
98
|
return "https://terra.stake.id/?#/tx/" + txid;
|
|
99
|
+
}, _explorerLinkByChain[Chains.RippleMainnet] = function (txid) {
|
|
100
|
+
return "https://xrpscan.com/tx/" + txid;
|
|
101
|
+
}, _explorerLinkByChain[Chains.SolanaMainnet] = function (txid) {
|
|
102
|
+
return "https://explorer.solana.com/tx/" + txid;
|
|
97
103
|
}, _explorerLinkByChain);
|
|
98
104
|
var initializeCoins = function initializeCoins(protonChain) {
|
|
99
105
|
var IS_MAINNET = protonChain === 'proton';
|
|
@@ -252,7 +258,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
252
258
|
image: 'https://www.protonchain.com/images/tokens/xtokensXETH.png',
|
|
253
259
|
coingeckoId: 'ethereum'
|
|
254
260
|
}, {
|
|
255
|
-
allowSwap:
|
|
261
|
+
allowSwap: true,
|
|
256
262
|
allowBridge: false,
|
|
257
263
|
allowLend: false,
|
|
258
264
|
allowBorrow: false,
|
|
@@ -263,7 +269,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
263
269
|
xtokenContract: 'loan.token',
|
|
264
270
|
wallets: [],
|
|
265
271
|
image: 'https://www.protonchain.com/images/tokens/loan.tokenLOAN.png',
|
|
266
|
-
coingeckoId: ''
|
|
272
|
+
coingeckoId: 'proton-loan'
|
|
267
273
|
}, {
|
|
268
274
|
allowSwap: IS_MAINNET,
|
|
269
275
|
allowBridge: true,
|
|
@@ -334,7 +340,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
334
340
|
hasWithdrawMemo: false
|
|
335
341
|
}] : []),
|
|
336
342
|
image: 'https://www.protonchain.com/images/tokens/xtokensXPAX.png',
|
|
337
|
-
coingeckoId: '
|
|
343
|
+
coingeckoId: 'paxos-standard'
|
|
338
344
|
}, {
|
|
339
345
|
allowSwap: false,
|
|
340
346
|
allowBridge: true,
|
|
@@ -648,7 +654,93 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
648
654
|
}] : []),
|
|
649
655
|
image: 'https://www.protonchain.com/images/tokens/xtokensXADA.png',
|
|
650
656
|
coingeckoId: 'cardano'
|
|
657
|
+
}, // Adding
|
|
658
|
+
{
|
|
659
|
+
allowSwap: false,
|
|
660
|
+
allowBridge: IS_MAINNET,
|
|
661
|
+
allowLend: false,
|
|
662
|
+
allowBorrow: false,
|
|
663
|
+
name: 'Terra',
|
|
664
|
+
coin: 'LUNA',
|
|
665
|
+
xtokenSymbol: 'XLUNA',
|
|
666
|
+
xtokenPrecision: 6,
|
|
667
|
+
xtokenContract: 'xtokens',
|
|
668
|
+
wallets: [].concat(IS_MAINNET ? [{
|
|
669
|
+
wallet: 'LUNA',
|
|
670
|
+
symbol: 'LUNA',
|
|
671
|
+
chain: Chains.TerraMainnet,
|
|
672
|
+
network: Networks.Mainnet,
|
|
673
|
+
precision: 6,
|
|
674
|
+
contract: undefined,
|
|
675
|
+
hasWithdrawMemo: true
|
|
676
|
+
}] : []),
|
|
677
|
+
image: 'https://www.protonchain.com/images/tokens/xtokensXLUNA.png',
|
|
678
|
+
coingeckoId: 'terra-luna'
|
|
651
679
|
}, {
|
|
680
|
+
allowSwap: false,
|
|
681
|
+
allowBridge: IS_MAINNET,
|
|
682
|
+
allowLend: false,
|
|
683
|
+
allowBorrow: false,
|
|
684
|
+
name: 'TerraUSD',
|
|
685
|
+
coin: 'UST',
|
|
686
|
+
xtokenSymbol: 'XUST',
|
|
687
|
+
xtokenPrecision: 6,
|
|
688
|
+
xtokenContract: 'xtokens',
|
|
689
|
+
wallets: [].concat(IS_MAINNET ? [{
|
|
690
|
+
wallet: 'UST',
|
|
691
|
+
symbol: 'UST',
|
|
692
|
+
chain: Chains.TerraMainnet,
|
|
693
|
+
network: Networks.Mainnet,
|
|
694
|
+
precision: 6,
|
|
695
|
+
contract: undefined,
|
|
696
|
+
hasWithdrawMemo: true
|
|
697
|
+
}] : []),
|
|
698
|
+
image: 'https://www.protonchain.com/images/tokens/xtokensXUST.png',
|
|
699
|
+
coingeckoId: 'terrausd'
|
|
700
|
+
}, {
|
|
701
|
+
allowSwap: false,
|
|
702
|
+
allowBridge: IS_MAINNET,
|
|
703
|
+
allowLend: false,
|
|
704
|
+
allowBorrow: false,
|
|
705
|
+
name: 'Solana',
|
|
706
|
+
coin: 'SOL',
|
|
707
|
+
xtokenSymbol: 'XSOL',
|
|
708
|
+
xtokenPrecision: 6,
|
|
709
|
+
xtokenContract: 'xtokens',
|
|
710
|
+
wallets: [].concat(IS_MAINNET ? [{
|
|
711
|
+
wallet: 'SOL',
|
|
712
|
+
symbol: 'SOL',
|
|
713
|
+
chain: Chains.SolanaMainnet,
|
|
714
|
+
network: Networks.Mainnet,
|
|
715
|
+
precision: 9,
|
|
716
|
+
contract: undefined,
|
|
717
|
+
hasWithdrawMemo: false
|
|
718
|
+
}] : []),
|
|
719
|
+
image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xsol.png',
|
|
720
|
+
coingeckoId: 'solana'
|
|
721
|
+
}, {
|
|
722
|
+
allowSwap: false,
|
|
723
|
+
allowBridge: IS_MAINNET,
|
|
724
|
+
allowLend: false,
|
|
725
|
+
allowBorrow: false,
|
|
726
|
+
name: 'Ripple',
|
|
727
|
+
coin: 'XRP',
|
|
728
|
+
xtokenSymbol: 'XXRP',
|
|
729
|
+
xtokenPrecision: 6,
|
|
730
|
+
xtokenContract: 'xtokens',
|
|
731
|
+
wallets: [].concat(IS_MAINNET ? [{
|
|
732
|
+
wallet: 'XRP',
|
|
733
|
+
symbol: 'XRP',
|
|
734
|
+
chain: Chains.RippleMainnet,
|
|
735
|
+
network: Networks.Mainnet,
|
|
736
|
+
precision: 6,
|
|
737
|
+
contract: undefined,
|
|
738
|
+
hasWithdrawMemo: true
|
|
739
|
+
}] : []),
|
|
740
|
+
image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xxrp.png',
|
|
741
|
+
coingeckoId: 'ripple'
|
|
742
|
+
}, // Future
|
|
743
|
+
{
|
|
652
744
|
allowSwap: false,
|
|
653
745
|
allowBridge: false,
|
|
654
746
|
allowLend: false,
|
|
@@ -659,14 +751,6 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
659
751
|
xtokenPrecision: 9,
|
|
660
752
|
xtokenContract: 'xtokens',
|
|
661
753
|
wallets: [].concat(IS_MAINNET ? [{
|
|
662
|
-
wallet: 'AVAX',
|
|
663
|
-
symbol: 'AVAX',
|
|
664
|
-
chain: Chains.AvalancheXChain,
|
|
665
|
-
network: Networks.Mainnet,
|
|
666
|
-
precision: 9,
|
|
667
|
-
contract: undefined,
|
|
668
|
-
hasWithdrawMemo: false
|
|
669
|
-
}, {
|
|
670
754
|
wallet: 'AVAX',
|
|
671
755
|
symbol: 'AVAX',
|
|
672
756
|
chain: Chains.AvalancheCChain,
|
|
@@ -698,48 +782,6 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
698
782
|
}] : []),
|
|
699
783
|
image: 'https://www.protonchain.com/images/tokens/xtokensXMATIC.png',
|
|
700
784
|
coingeckoId: 'matic-network'
|
|
701
|
-
}, {
|
|
702
|
-
allowSwap: false,
|
|
703
|
-
allowBridge: false,
|
|
704
|
-
allowLend: false,
|
|
705
|
-
allowBorrow: false,
|
|
706
|
-
name: 'Luna',
|
|
707
|
-
coin: 'LUNA',
|
|
708
|
-
xtokenSymbol: 'XLUNA',
|
|
709
|
-
xtokenPrecision: 6,
|
|
710
|
-
xtokenContract: 'xtokens',
|
|
711
|
-
wallets: [].concat(IS_MAINNET ? [{
|
|
712
|
-
wallet: 'LUNA',
|
|
713
|
-
symbol: 'LUNA',
|
|
714
|
-
chain: Chains.TerraMainnet,
|
|
715
|
-
network: Networks.Mainnet,
|
|
716
|
-
precision: 6,
|
|
717
|
-
contract: undefined,
|
|
718
|
-
hasWithdrawMemo: true
|
|
719
|
-
}] : []),
|
|
720
|
-
image: 'https://www.protonchain.com/images/tokens/xtokensXLUNA.png',
|
|
721
|
-
coingeckoId: 'terra-luna'
|
|
722
|
-
}, {
|
|
723
|
-
allowSwap: false,
|
|
724
|
-
allowBridge: false,
|
|
725
|
-
allowLend: false,
|
|
726
|
-
allowBorrow: false,
|
|
727
|
-
name: 'TerraUSD',
|
|
728
|
-
coin: 'UST',
|
|
729
|
-
xtokenSymbol: 'XUST',
|
|
730
|
-
xtokenPrecision: 6,
|
|
731
|
-
xtokenContract: 'xtokens',
|
|
732
|
-
wallets: [].concat(IS_MAINNET ? [{
|
|
733
|
-
wallet: 'UST',
|
|
734
|
-
symbol: 'UST',
|
|
735
|
-
chain: Chains.TerraMainnet,
|
|
736
|
-
network: Networks.Mainnet,
|
|
737
|
-
precision: 6,
|
|
738
|
-
contract: undefined,
|
|
739
|
-
hasWithdrawMemo: true
|
|
740
|
-
}] : []),
|
|
741
|
-
image: 'https://www.protonchain.com/images/tokens/xtokensXUST.png',
|
|
742
|
-
coingeckoId: 'terrausd'
|
|
743
785
|
}, {
|
|
744
786
|
allowSwap: false,
|
|
745
787
|
allowBridge: IS_TESTNET,
|
|
@@ -757,7 +799,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
757
799
|
network: Networks.Testnet,
|
|
758
800
|
precision: 8,
|
|
759
801
|
contract: undefined,
|
|
760
|
-
hasWithdrawMemo:
|
|
802
|
+
hasWithdrawMemo: true
|
|
761
803
|
}] : []),
|
|
762
804
|
image: 'https://www.protonchain.com/images/tokens/xtokensXHBAR.png',
|
|
763
805
|
coingeckoId: 'hedera-hashgraph'
|