@proton/wrap-constants 0.2.33 → 0.2.35
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 +3 -0
- package/dist/parsers/deposit.d.ts +3 -0
- package/dist/wrap-constants.cjs.development.js +9 -2
- 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 +9 -2
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/coins.ts +4 -1
- package/src/parsers/deposit.ts +1 -0
package/dist/coins.d.ts
CHANGED
|
@@ -103,6 +103,9 @@ export declare const explorerLinkByChain: {
|
|
|
103
103
|
Terra: (txid: string) => string;
|
|
104
104
|
Ripple: (txid: string) => string;
|
|
105
105
|
Solana: (txid: string) => string;
|
|
106
|
+
"Metal X-Chain (Testnet)": (txid: string) => string;
|
|
107
|
+
"Metal C-Chain (Testnet)": (txid: string) => string;
|
|
108
|
+
"Metal C-Chain": (txid: string) => string;
|
|
106
109
|
};
|
|
107
110
|
export declare const protonExplorerTxUrl: (chain: string, txId: string, traces?: boolean | undefined) => string;
|
|
108
111
|
export declare const initializeCoins: (protonChain: string) => {
|
|
@@ -9,13 +9,16 @@ export declare const depositBodyParser: z.ZodObject<{
|
|
|
9
9
|
hash: z.ZodString;
|
|
10
10
|
coin: z.ZodString;
|
|
11
11
|
wallet: z.ZodString;
|
|
12
|
+
network: z.ZodOptional<z.ZodString>;
|
|
12
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
network?: string | undefined;
|
|
13
15
|
id: string;
|
|
14
16
|
type: Type;
|
|
15
17
|
hash: string;
|
|
16
18
|
coin: string;
|
|
17
19
|
wallet: string;
|
|
18
20
|
}, {
|
|
21
|
+
network?: string | undefined;
|
|
19
22
|
id: string;
|
|
20
23
|
type: Type;
|
|
21
24
|
hash: string;
|
|
@@ -115,10 +115,16 @@ var explorerLinkByChain = (_explorerLinkByChain = {}, _explorerLinkByChain[expor
|
|
|
115
115
|
return "https://xrpscan.com/tx/" + txid;
|
|
116
116
|
}, _explorerLinkByChain[exports.Chains.SolanaMainnet] = function (txid) {
|
|
117
117
|
return "https://explorer.solana.com/tx/" + txid;
|
|
118
|
+
}, _explorerLinkByChain[exports.Chains.MetalXTestnet] = function (txid) {
|
|
119
|
+
return "https://metalscan.io/tx/" + txid;
|
|
120
|
+
}, _explorerLinkByChain[exports.Chains.MetalCTestnet] = function (txid) {
|
|
121
|
+
return "https://tahoe.metaltrace.io/tx/" + txid;
|
|
122
|
+
}, _explorerLinkByChain[exports.Chains.MetalCMainnet] = function (txid) {
|
|
123
|
+
return "https://metalscan.io/tx/" + txid;
|
|
118
124
|
}, _explorerLinkByChain);
|
|
119
125
|
var protonExplorerTxUrl = function protonExplorerTxUrl(chain, txId, traces) {
|
|
120
126
|
return chain === 'proton' ? explorerLinkByChain[exports.Chains.ProtonMainnet](txId, traces) : explorerLinkByChain[exports.Chains.ProtonTestnet](txId, traces);
|
|
121
|
-
}; // Initialize
|
|
127
|
+
}; // Initialize.
|
|
122
128
|
|
|
123
129
|
var initializeCoins = function initializeCoins(protonChain) {
|
|
124
130
|
var IS_MAINNET = protonChain === 'proton';
|
|
@@ -1346,7 +1352,8 @@ var depositBodyParser = /*#__PURE__*/z.object({
|
|
|
1346
1352
|
type: /*#__PURE__*/z.nativeEnum(exports.Type),
|
|
1347
1353
|
hash: /*#__PURE__*/z.string(),
|
|
1348
1354
|
coin: /*#__PURE__*/z.string(),
|
|
1349
|
-
wallet: /*#__PURE__*/z.string()
|
|
1355
|
+
wallet: /*#__PURE__*/z.string(),
|
|
1356
|
+
network: /*#__PURE__*/z.string().optional() // "erc29"
|
|
1350
1357
|
|
|
1351
1358
|
});
|
|
1352
1359
|
var transactionParser = /*#__PURE__*/z.object({
|