@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/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.2.
|
|
8
|
+
"version": "0.2.35",
|
|
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": "9b3a36867ef6504daed87b3c7b4749377c73cef5"
|
|
48
48
|
}
|
package/src/coins.ts
CHANGED
|
@@ -111,13 +111,16 @@ export const explorerLinkByChain = {
|
|
|
111
111
|
[Chains.TerraMainnet] : (txid: string) => `https://terra.stake.id/?#/tx/${txid}`,
|
|
112
112
|
[Chains.RippleMainnet] : (txid: string) => `https://xrpscan.com/tx/${txid}`,
|
|
113
113
|
[Chains.SolanaMainnet] : (txid: string) => `https://explorer.solana.com/tx/${txid}`,
|
|
114
|
+
[Chains.MetalXTestnet] : (txid: string) => `https://metalscan.io/tx/${txid}`,
|
|
115
|
+
[Chains.MetalCTestnet] : (txid: string) => `https://tahoe.metaltrace.io/tx/${txid}`,
|
|
116
|
+
[Chains.MetalCMainnet] : (txid: string) => `https://metalscan.io/tx/${txid}`,
|
|
114
117
|
}
|
|
115
118
|
|
|
116
119
|
export const protonExplorerTxUrl = (chain: string, txId: string, traces?: boolean) => chain === 'proton'
|
|
117
120
|
? explorerLinkByChain[Chains.ProtonMainnet](txId, traces)
|
|
118
121
|
: explorerLinkByChain[Chains.ProtonTestnet](txId, traces)
|
|
119
122
|
|
|
120
|
-
// Initialize
|
|
123
|
+
// Initialize.
|
|
121
124
|
export const initializeCoins = (protonChain: string): {
|
|
122
125
|
allCoins : Coin[];
|
|
123
126
|
swapCoins : Coin[];
|
package/src/parsers/deposit.ts
CHANGED
|
@@ -11,6 +11,7 @@ export const depositBodyParser = z.object({
|
|
|
11
11
|
hash : z.string(), // "0x000010203121388fac991"
|
|
12
12
|
coin : z.string(), // "ETH" or "XPR"
|
|
13
13
|
wallet : z.string(), // "ETH-ROPSTEN" or "XPR-MAINNET"
|
|
14
|
+
network : z.string().optional(), // "erc29"
|
|
14
15
|
})
|
|
15
16
|
export type DepositBody = z.infer<typeof depositBodyParser>
|
|
16
17
|
|