@proton/wrap-constants 0.2.178 → 0.2.180
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/index.d.ts +2 -0
- package/dist/index.js +13 -11
- package/dist/index.mjs +13 -11
- package/package.json +2 -2
- package/src/coins.ts +14 -10
package/dist/index.d.ts
CHANGED
|
@@ -116,6 +116,8 @@ declare const explorerLinkByChain: {
|
|
|
116
116
|
"Metal C-Chain (Testnet)": (txid: string) => string;
|
|
117
117
|
"Metal C-Chain": (txid: string) => string;
|
|
118
118
|
"XDC Network": (txid: string) => string;
|
|
119
|
+
"Metal L2 (Testnet)": (txid: string) => string;
|
|
120
|
+
"Metal L2": (txid: string) => string;
|
|
119
121
|
};
|
|
120
122
|
declare const protonExplorerTxUrl: (chain: string, txId: string, traces?: boolean | undefined) => string;
|
|
121
123
|
declare const initializeCoins: (protonChain: string) => {
|
package/dist/index.js
CHANGED
|
@@ -243,7 +243,9 @@ var explorerLinkByChain = {
|
|
|
243
243
|
["Metal X-Chain (Testnet)" /* MetalXTestnet */]: (txid) => `https://metalscan.io/tx/${txid}`,
|
|
244
244
|
["Metal C-Chain (Testnet)" /* MetalCTestnet */]: (txid) => `https://tahoe.metaltrace.io/tx/${txid}`,
|
|
245
245
|
["Metal C-Chain" /* MetalCMainnet */]: (txid) => `https://metalscan.io/tx/${txid}`,
|
|
246
|
-
["XDC Network" /* XDCMainnet */]: (txid) => `https://xdc.blocksscan.io/txs/${txid}
|
|
246
|
+
["XDC Network" /* XDCMainnet */]: (txid) => `https://xdc.blocksscan.io/txs/${txid}`,
|
|
247
|
+
["Metal L2 (Testnet)" /* MetalL2Testnet */]: (txid) => `https://testnet.explorer.metall2.com/tx/${txid}`,
|
|
248
|
+
["Metal L2" /* MetalL2Mainnet */]: (txid) => `https://explorer.metall2.com/tx/${txid}`
|
|
247
249
|
};
|
|
248
250
|
var protonExplorerTxUrl = (chain, txId, traces) => chain === "proton" ? explorerLinkByChain["Proton" /* ProtonMainnet */](txId, traces) : explorerLinkByChain["Proton (Testnet)" /* ProtonTestnet */](txId, traces);
|
|
249
251
|
var initializeCoins = (protonChain) => {
|
|
@@ -370,16 +372,16 @@ var initializeCoins = (protonChain) => {
|
|
|
370
372
|
xtokenContract: "xtokens",
|
|
371
373
|
wallets: [
|
|
372
374
|
...IS_MAINNET ? [
|
|
373
|
-
{
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
}
|
|
375
|
+
// {
|
|
376
|
+
// wallet: "MTL",
|
|
377
|
+
// symbol: "MTL",
|
|
378
|
+
// chain: Chains.EthereumMainnet,
|
|
379
|
+
// network: Networks.ERC20,
|
|
380
|
+
// precision: 8,
|
|
381
|
+
// contract: "0xF433089366899D83A9F26A773D59EC7ECF30355E",
|
|
382
|
+
// provider: Providers.FIREBLOCKS,
|
|
383
|
+
// hasWithdrawMemo: false,
|
|
384
|
+
// },
|
|
383
385
|
] : [
|
|
384
386
|
{
|
|
385
387
|
wallet: "MTL-METALL2",
|
package/dist/index.mjs
CHANGED
|
@@ -88,7 +88,9 @@ var explorerLinkByChain = {
|
|
|
88
88
|
["Metal X-Chain (Testnet)" /* MetalXTestnet */]: (txid) => `https://metalscan.io/tx/${txid}`,
|
|
89
89
|
["Metal C-Chain (Testnet)" /* MetalCTestnet */]: (txid) => `https://tahoe.metaltrace.io/tx/${txid}`,
|
|
90
90
|
["Metal C-Chain" /* MetalCMainnet */]: (txid) => `https://metalscan.io/tx/${txid}`,
|
|
91
|
-
["XDC Network" /* XDCMainnet */]: (txid) => `https://xdc.blocksscan.io/txs/${txid}
|
|
91
|
+
["XDC Network" /* XDCMainnet */]: (txid) => `https://xdc.blocksscan.io/txs/${txid}`,
|
|
92
|
+
["Metal L2 (Testnet)" /* MetalL2Testnet */]: (txid) => `https://testnet.explorer.metall2.com/tx/${txid}`,
|
|
93
|
+
["Metal L2" /* MetalL2Mainnet */]: (txid) => `https://explorer.metall2.com/tx/${txid}`
|
|
92
94
|
};
|
|
93
95
|
var protonExplorerTxUrl = (chain, txId, traces) => chain === "proton" ? explorerLinkByChain["Proton" /* ProtonMainnet */](txId, traces) : explorerLinkByChain["Proton (Testnet)" /* ProtonTestnet */](txId, traces);
|
|
94
96
|
var initializeCoins = (protonChain) => {
|
|
@@ -215,16 +217,16 @@ var initializeCoins = (protonChain) => {
|
|
|
215
217
|
xtokenContract: "xtokens",
|
|
216
218
|
wallets: [
|
|
217
219
|
...IS_MAINNET ? [
|
|
218
|
-
{
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
220
|
+
// {
|
|
221
|
+
// wallet: "MTL",
|
|
222
|
+
// symbol: "MTL",
|
|
223
|
+
// chain: Chains.EthereumMainnet,
|
|
224
|
+
// network: Networks.ERC20,
|
|
225
|
+
// precision: 8,
|
|
226
|
+
// contract: "0xF433089366899D83A9F26A773D59EC7ECF30355E",
|
|
227
|
+
// provider: Providers.FIREBLOCKS,
|
|
228
|
+
// hasWithdrawMemo: false,
|
|
229
|
+
// },
|
|
228
230
|
] : [
|
|
229
231
|
{
|
|
230
232
|
wallet: "MTL-METALL2",
|
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.180",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"resolutions": {
|
|
41
41
|
"typescript": "4.5"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "dd250b7f9d1380d0a2211761ef6eda7eee428c2e"
|
|
44
44
|
}
|
package/src/coins.ts
CHANGED
|
@@ -148,6 +148,10 @@ export const explorerLinkByChain = {
|
|
|
148
148
|
[Chains.MetalCMainnet]: (txid: string) => `https://metalscan.io/tx/${txid}`,
|
|
149
149
|
[Chains.XDCMainnet]: (txid: string) =>
|
|
150
150
|
`https://xdc.blocksscan.io/txs/${txid}`,
|
|
151
|
+
[Chains.MetalL2Testnet]: (txid: string) =>
|
|
152
|
+
`https://testnet.explorer.metall2.com/tx/${txid}`,
|
|
153
|
+
[Chains.MetalL2Mainnet]: (txid: string) =>
|
|
154
|
+
`https://explorer.metall2.com/tx/${txid}`,
|
|
151
155
|
};
|
|
152
156
|
|
|
153
157
|
export const protonExplorerTxUrl = (
|
|
@@ -302,16 +306,16 @@ export const initializeCoins = (
|
|
|
302
306
|
wallets: [
|
|
303
307
|
...(IS_MAINNET
|
|
304
308
|
? [
|
|
305
|
-
{
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
},
|
|
309
|
+
// {
|
|
310
|
+
// wallet: "MTL",
|
|
311
|
+
// symbol: "MTL",
|
|
312
|
+
// chain: Chains.EthereumMainnet,
|
|
313
|
+
// network: Networks.ERC20,
|
|
314
|
+
// precision: 8,
|
|
315
|
+
// contract: "0xF433089366899D83A9F26A773D59EC7ECF30355E",
|
|
316
|
+
// provider: Providers.FIREBLOCKS,
|
|
317
|
+
// hasWithdrawMemo: false,
|
|
318
|
+
// },
|
|
315
319
|
]
|
|
316
320
|
: [
|
|
317
321
|
{
|