@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/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.2.
|
|
8
|
+
"version": "0.2.71",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"resolutions": {
|
|
45
45
|
"typescript": "4.5"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "1f608fe090427d0d7b85433f8be3c51da6f8479f"
|
|
48
48
|
}
|
package/src/coins.ts
CHANGED
|
@@ -115,6 +115,7 @@ export const explorerLinkByChain = {
|
|
|
115
115
|
[Chains.MetalXTestnet] : (txid: string) => `https://metalscan.io/tx/${txid}`,
|
|
116
116
|
[Chains.MetalCTestnet] : (txid: string) => `https://tahoe.metaltrace.io/tx/${txid}`,
|
|
117
117
|
[Chains.MetalCMainnet] : (txid: string) => `https://metalscan.io/tx/${txid}`,
|
|
118
|
+
[Chains.XDCMainnet] : (txid: string) => `https://xdc.blocksscan.io/txs/${txid}`,
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
export const protonExplorerTxUrl = (chain: string, txId: string, traces?: boolean) => chain === 'proton'
|
|
@@ -492,31 +493,31 @@ export const initializeCoins = (protonChain: string): {
|
|
|
492
493
|
image: 'https://assets.coingecko.com/coins/images/26045/small/euro-coin.png?1655394420',
|
|
493
494
|
coingeckoId: 'euro-coin'
|
|
494
495
|
},
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
496
|
+
{
|
|
497
|
+
allowSwap: false,
|
|
498
|
+
allowBridge: IS_MAINNET,
|
|
499
|
+
allowLend: false,
|
|
500
|
+
allowBorrow: false,
|
|
501
|
+
name: 'XDC Network',
|
|
502
|
+
coin: 'XDC',
|
|
503
|
+
xtokenSymbol: 'XDC',
|
|
504
|
+
xtokenPrecision: 4,
|
|
505
|
+
xtokenContract: 'xtokens',
|
|
506
|
+
wallets: [
|
|
507
|
+
...(IS_MAINNET ? [{
|
|
508
|
+
wallet: 'XDC',
|
|
509
|
+
symbol: 'XDC',
|
|
510
|
+
chain: Chains.XDCMainnet,
|
|
511
|
+
network: Networks.Mainnet,
|
|
512
|
+
precision: 18,
|
|
513
|
+
contract: '',
|
|
514
|
+
provider: Providers.FIREBLOCKS,
|
|
515
|
+
hasWithdrawMemo: false
|
|
516
|
+
}]: [])
|
|
517
|
+
],
|
|
518
|
+
image: 'https://assets.coingecko.com/coins/images/2912/small/xdc-icon.png?1633700890',
|
|
519
|
+
coingeckoId: 'xdce-crowd-sale'
|
|
520
|
+
},
|
|
520
521
|
{
|
|
521
522
|
allowSwap: false,
|
|
522
523
|
allowBridge: IS_MAINNET,
|