@proton/wrap-constants 0.2.24 → 0.2.26
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 +2 -1
- package/dist/parsers/pool.d.ts +1 -0
- package/dist/wrap-constants.cjs.development.js +13 -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 +13 -3
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/coins.ts +15 -4
- package/src/parsers/pool.ts +1 -0
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.26",
|
|
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": "323e799b481829d9c251d54dcc8beac4fac48215"
|
|
48
48
|
}
|
package/src/coins.ts
CHANGED
|
@@ -29,7 +29,8 @@ export enum Chains {
|
|
|
29
29
|
RippleMainnet = 'Ripple',
|
|
30
30
|
SolanaMainnet = 'Solana',
|
|
31
31
|
MetalXTestnet = 'Metal X-Chain (Testnet)',
|
|
32
|
-
MetalCTestnet = 'Metal C-Chain (Testnet)'
|
|
32
|
+
MetalCTestnet = 'Metal C-Chain (Testnet)',
|
|
33
|
+
MetalCMainnet = 'Metal C-Chain'
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export enum Networks {
|
|
@@ -262,8 +263,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
262
263
|
coingeckoId: 'metal'
|
|
263
264
|
},
|
|
264
265
|
{
|
|
265
|
-
allowSwap:
|
|
266
|
-
allowBridge:
|
|
266
|
+
allowSwap: true,
|
|
267
|
+
allowBridge: true,
|
|
267
268
|
allowLend: false,
|
|
268
269
|
allowBorrow: false,
|
|
269
270
|
name: 'Metal Blockchain',
|
|
@@ -281,10 +282,20 @@ export const initializeCoins = (protonChain: string): {
|
|
|
281
282
|
contract: '',
|
|
282
283
|
provider: Providers.METAL,
|
|
283
284
|
hasWithdrawMemo: false
|
|
285
|
+
}]: []),
|
|
286
|
+
...(IS_MAINNET ? [{
|
|
287
|
+
wallet: 'METAL',
|
|
288
|
+
symbol: 'METAL',
|
|
289
|
+
chain: Chains.EthereumMainnet,
|
|
290
|
+
network: Networks.ERC20,
|
|
291
|
+
precision: 18,
|
|
292
|
+
contract: '',
|
|
293
|
+
provider: Providers.FIREBLOCKS,
|
|
294
|
+
hasWithdrawMemo: false
|
|
284
295
|
}]: [])
|
|
285
296
|
],
|
|
286
297
|
image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png',
|
|
287
|
-
coingeckoId: ''
|
|
298
|
+
coingeckoId: 'metal-blockchain'
|
|
288
299
|
},
|
|
289
300
|
{
|
|
290
301
|
allowSwap: true,
|