@proton/wrap-constants 0.2.9 → 0.2.10
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 +4 -2
- package/dist/constants.d.ts +2 -1
- package/dist/wrap-constants.cjs.development.js +14 -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 +14 -3
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/coins.ts +15 -3
- package/src/constants.ts +7 -3
package/dist/coins.d.ts
CHANGED
|
@@ -26,7 +26,8 @@ export declare enum Chains {
|
|
|
26
26
|
PolygonMainnet = "Polygon",
|
|
27
27
|
TerraMainnet = "Terra",
|
|
28
28
|
RippleMainnet = "Ripple",
|
|
29
|
-
SolanaMainnet = "Solana"
|
|
29
|
+
SolanaMainnet = "Solana",
|
|
30
|
+
MetalXTestnet = "Metal X-Chain (Testnet)"
|
|
30
31
|
}
|
|
31
32
|
export declare enum Networks {
|
|
32
33
|
Mainnet = "mainnet",
|
|
@@ -34,7 +35,8 @@ export declare enum Networks {
|
|
|
34
35
|
Ropsten = "ropsten",
|
|
35
36
|
ERC20 = "erc20",
|
|
36
37
|
BEP20 = "bep20",
|
|
37
|
-
XLM = "xlm"
|
|
38
|
+
XLM = "xlm",
|
|
39
|
+
AVM = "avm"
|
|
38
40
|
}
|
|
39
41
|
export declare const similarChains: {
|
|
40
42
|
Ethereum: Chains[];
|
package/dist/constants.d.ts
CHANGED
|
@@ -39,7 +39,8 @@ export declare const initializeConstants: (chain: string) => {
|
|
|
39
39
|
WRAP_AUTH_ACTION: string;
|
|
40
40
|
METAL_ENDPOINT: string;
|
|
41
41
|
METAL_PROTON_ENDPOINT: string;
|
|
42
|
-
|
|
42
|
+
METAL_DEX_HTTP_ENDPOINT: string;
|
|
43
|
+
METAL_DEX_WS_ENDPOINT: string;
|
|
43
44
|
PROTON_ENDPOINTS: string[];
|
|
44
45
|
CHAIN_ID: string;
|
|
45
46
|
CHAIN: string;
|
|
@@ -38,6 +38,7 @@ var _similarChains, _explorerLinkByChain;
|
|
|
38
38
|
Chains["TerraMainnet"] = "Terra";
|
|
39
39
|
Chains["RippleMainnet"] = "Ripple";
|
|
40
40
|
Chains["SolanaMainnet"] = "Solana";
|
|
41
|
+
Chains["MetalXTestnet"] = "Metal X-Chain (Testnet)";
|
|
41
42
|
})(exports.Chains || (exports.Chains = {}));
|
|
42
43
|
|
|
43
44
|
(function (Networks) {
|
|
@@ -47,6 +48,7 @@ var _similarChains, _explorerLinkByChain;
|
|
|
47
48
|
Networks["ERC20"] = "erc20";
|
|
48
49
|
Networks["BEP20"] = "bep20";
|
|
49
50
|
Networks["XLM"] = "xlm";
|
|
51
|
+
Networks["AVM"] = "avm";
|
|
50
52
|
})(exports.Networks || (exports.Networks = {}));
|
|
51
53
|
|
|
52
54
|
var similarChains = (_similarChains = {}, _similarChains[exports.Chains.EthereumMainnet] = [exports.Chains.BinanceBEP20], _similarChains[exports.Chains.BinanceBEP20] = [exports.Chains.EthereumMainnet], _similarChains);
|
|
@@ -217,7 +219,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
217
219
|
coingeckoId: 'metal'
|
|
218
220
|
}, {
|
|
219
221
|
allowSwap: IS_MAINNET,
|
|
220
|
-
allowBridge:
|
|
222
|
+
allowBridge: IS_TESTNET,
|
|
221
223
|
allowLend: false,
|
|
222
224
|
allowBorrow: false,
|
|
223
225
|
name: 'Metal Blockchain',
|
|
@@ -225,7 +227,15 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
225
227
|
xtokenSymbol: 'METAL',
|
|
226
228
|
xtokenPrecision: 8,
|
|
227
229
|
xtokenContract: 'xtokens',
|
|
228
|
-
wallets: []
|
|
230
|
+
wallets: [].concat(IS_TESTNET ? [{
|
|
231
|
+
wallet: 'METAL',
|
|
232
|
+
symbol: 'METAL',
|
|
233
|
+
chain: exports.Chains.MetalXTestnet,
|
|
234
|
+
network: exports.Networks.AVM,
|
|
235
|
+
precision: 9,
|
|
236
|
+
contract: '',
|
|
237
|
+
hasWithdrawMemo: true
|
|
238
|
+
}] : []),
|
|
229
239
|
image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png',
|
|
230
240
|
coingeckoId: ''
|
|
231
241
|
}, {
|
|
@@ -1125,7 +1135,8 @@ var initializeConstants = function initializeConstants(chain) {
|
|
|
1125
1135
|
WRAP_AUTH_ACTION: WRAP_AUTH_ACTION,
|
|
1126
1136
|
METAL_ENDPOINT: chain === 'proton' ? 'https://cirrus.metalpay.com' : 'https://cirrus-dev.metalpay.com',
|
|
1127
1137
|
METAL_PROTON_ENDPOINT: chain === 'proton' ? 'https://api.protonchain.com' : 'https://api-dev.protonchain.com',
|
|
1128
|
-
|
|
1138
|
+
METAL_DEX_HTTP_ENDPOINT: chain === 'proton' ? 'https://metallicus-dbapi-dev01.binfra.one/dex' : 'https://metallicus-dbapi-dev01.binfra.one/dex',
|
|
1139
|
+
METAL_DEX_WS_ENDPOINT: chain === 'proton' ? 'wss://metallicus-dbapi-dev01.binfra.one/dexws' : 'wss://metallicus-dbapi-dev01.binfra.one/dexws',
|
|
1129
1140
|
PROTON_ENDPOINTS: chain === 'proton' ? ['https://metal-proton-rpc.global.binfra.one', 'https://proton.greymass.com', 'https://proton.eoscafeblock.com', 'https://proton.cryptolions.io', 'https://proton.eosusa.news'] : ['https://metal-protontest-rpc.global.binfra.one', 'https://testnet.protonchain.com'],
|
|
1130
1141
|
CHAIN_ID: chain === 'proton' ? '384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0' : '71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd',
|
|
1131
1142
|
CHAIN: chain,
|