@proton/wrap-constants 0.2.178 → 0.2.179

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 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) => {
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) => {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.178",
8
+ "version": "0.2.179",
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": "683d3753ce1bd1431d2ce2e80aeb367659724cd9"
43
+ "gitHead": "e5a6f205da05b8c87735895d4c21a369b2dfd683"
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 = (