@proton/wrap-constants 0.0.76 → 0.0.79
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 -2
- package/dist/wrap-constants.cjs.development.js +9 -5
- 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 -6
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/coins.ts +6 -2
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.0.
|
|
8
|
+
"version": "0.0.79",
|
|
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": "33e3439642b98a3bbc1ea935bd89d40719a22013"
|
|
48
48
|
}
|
package/src/coins.ts
CHANGED
|
@@ -83,8 +83,8 @@ export const explorerLinkByChain = {
|
|
|
83
83
|
[Chains.BitcoinCashTestnet]: (txid: string) => `https://blockexplorer.one/bitcoin-cash/testnet/blockHash/${txid}`,
|
|
84
84
|
[Chains.StellarMainnet] : (txid: string) => `https://blockchair.com/stellar/transaction/${txid}`,
|
|
85
85
|
[Chains.StellarTestnet] : (txid: string) => `https://testnet.steexp.com/tx/${txid}`,
|
|
86
|
-
[Chains.ProtonMainnet] : (txid: string) => `https://proton.bloks.io/transaction/${txid}`,
|
|
87
|
-
[Chains.ProtonTestnet] : (txid: string) => `https://proton-test.bloks.io/transaction/${txid}`,
|
|
86
|
+
[Chains.ProtonMainnet] : (txid: string, traces?: boolean) => `https://proton.bloks.io/transaction/${txid}${traces ? '?tab=traces' : ''}`,
|
|
87
|
+
[Chains.ProtonTestnet] : (txid: string, traces?: boolean) => `https://proton-test.bloks.io/transaction/${txid}${traces ? '?tab=traces' : ''}`,
|
|
88
88
|
[Chains.PolkadotMainnet] : (txid: string) => `https://polkadot.subscan.io/extrinsic/${txid}`,
|
|
89
89
|
[Chains.BinanceBEP2] : (txid: string) => `https://binance.mintscan.io/txs/${txid}`,
|
|
90
90
|
[Chains.BinanceBEP20] : (txid: string) => `https://bscscan.com/tx/${txid}`,
|
|
@@ -102,6 +102,10 @@ export const explorerLinkByChain = {
|
|
|
102
102
|
[Chains.SolanaMainnet] : (txid: string) => `https://explorer.solana.com/tx/${txid}`,
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
export const protonExplorerTxUrl = (chain: string, txId: string, traces?: boolean) => chain === 'proton'
|
|
106
|
+
? explorerLinkByChain[Chains.ProtonMainnet](txId, traces)
|
|
107
|
+
: explorerLinkByChain[Chains.ProtonTestnet](txId, traces)
|
|
108
|
+
|
|
105
109
|
// Initialize
|
|
106
110
|
export const initializeCoins = (protonChain: string): {
|
|
107
111
|
allCoins : Coin[];
|