@proton/wrap-constants 0.2.70 → 0.2.71
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 +1 -0
- package/dist/wrap-constants.cjs.development.js +25 -26
- 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 +25 -26
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/coins.ts +26 -25
package/dist/coins.d.ts
CHANGED
|
@@ -107,6 +107,7 @@ export declare const explorerLinkByChain: {
|
|
|
107
107
|
"Metal X-Chain (Testnet)": (txid: string) => string;
|
|
108
108
|
"Metal C-Chain (Testnet)": (txid: string) => string;
|
|
109
109
|
"Metal C-Chain": (txid: string) => string;
|
|
110
|
+
"XDC Network": (txid: string) => string;
|
|
110
111
|
};
|
|
111
112
|
export declare const protonExplorerTxUrl: (chain: string, txId: string, traces?: boolean | undefined) => string;
|
|
112
113
|
export declare const initializeCoins: (protonChain: string) => {
|
|
@@ -122,6 +122,8 @@ var explorerLinkByChain = (_explorerLinkByChain = {}, _explorerLinkByChain[expor
|
|
|
122
122
|
return "https://tahoe.metaltrace.io/tx/" + txid;
|
|
123
123
|
}, _explorerLinkByChain[exports.Chains.MetalCMainnet] = function (txid) {
|
|
124
124
|
return "https://metalscan.io/tx/" + txid;
|
|
125
|
+
}, _explorerLinkByChain[exports.Chains.XDCMainnet] = function (txid) {
|
|
126
|
+
return "https://xdc.blocksscan.io/txs/" + txid;
|
|
125
127
|
}, _explorerLinkByChain);
|
|
126
128
|
var protonExplorerTxUrl = function protonExplorerTxUrl(chain, txId, traces) {
|
|
127
129
|
return chain === 'proton' ? explorerLinkByChain[exports.Chains.ProtonMainnet](txId, traces) : explorerLinkByChain[exports.Chains.ProtonTestnet](txId, traces);
|
|
@@ -441,32 +443,29 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
441
443
|
}] : []),
|
|
442
444
|
image: 'https://assets.coingecko.com/coins/images/26045/small/euro-coin.png?1655394420',
|
|
443
445
|
coingeckoId: 'euro-coin'
|
|
444
|
-
},
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
// coingeckoId: 'xdce-crowd-sale'
|
|
468
|
-
// },
|
|
469
|
-
{
|
|
446
|
+
}, {
|
|
447
|
+
allowSwap: false,
|
|
448
|
+
allowBridge: IS_MAINNET,
|
|
449
|
+
allowLend: false,
|
|
450
|
+
allowBorrow: false,
|
|
451
|
+
name: 'XDC Network',
|
|
452
|
+
coin: 'XDC',
|
|
453
|
+
xtokenSymbol: 'XDC',
|
|
454
|
+
xtokenPrecision: 4,
|
|
455
|
+
xtokenContract: 'xtokens',
|
|
456
|
+
wallets: [].concat(IS_MAINNET ? [{
|
|
457
|
+
wallet: 'XDC',
|
|
458
|
+
symbol: 'XDC',
|
|
459
|
+
chain: exports.Chains.XDCMainnet,
|
|
460
|
+
network: exports.Networks.Mainnet,
|
|
461
|
+
precision: 18,
|
|
462
|
+
contract: '',
|
|
463
|
+
provider: exports.Providers.FIREBLOCKS,
|
|
464
|
+
hasWithdrawMemo: false
|
|
465
|
+
}] : []),
|
|
466
|
+
image: 'https://assets.coingecko.com/coins/images/2912/small/xdc-icon.png?1633700890',
|
|
467
|
+
coingeckoId: 'xdce-crowd-sale'
|
|
468
|
+
}, {
|
|
470
469
|
allowSwap: false,
|
|
471
470
|
allowBridge: IS_MAINNET,
|
|
472
471
|
allowLend: false,
|