@proton/wrap-constants 0.0.78 → 0.0.81
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/dist/coins.d.ts
CHANGED
|
@@ -76,8 +76,8 @@ export declare const explorerLinkByChain: {
|
|
|
76
76
|
"Bitcoin Cash (Testnet)": (txid: string) => string;
|
|
77
77
|
Stellar: (txid: string) => string;
|
|
78
78
|
"Stellar (Testnet)": (txid: string) => string;
|
|
79
|
-
Proton: (txid: string) => string;
|
|
80
|
-
"Proton (Testnet)": (txid: string) => string;
|
|
79
|
+
Proton: (txid: string, traces?: boolean | undefined) => string;
|
|
80
|
+
"Proton (Testnet)": (txid: string, traces?: boolean | undefined) => string;
|
|
81
81
|
Polkadot: (txid: string) => string;
|
|
82
82
|
"Binance (BEP2)": (txid: string) => string;
|
|
83
83
|
"Binance (BEP20)": (txid: string) => string;
|
|
@@ -94,6 +94,7 @@ export declare const explorerLinkByChain: {
|
|
|
94
94
|
Ripple: (txid: string) => string;
|
|
95
95
|
Solana: (txid: string) => string;
|
|
96
96
|
};
|
|
97
|
+
export declare const protonExplorerTxUrl: (chain: string, txId: string, traces?: boolean | undefined) => string;
|
|
97
98
|
export declare const initializeCoins: (protonChain: string) => {
|
|
98
99
|
allCoins: Coin[];
|
|
99
100
|
swapCoins: Coin[];
|
|
@@ -70,10 +70,10 @@ var explorerLinkByChain = (_explorerLinkByChain = {}, _explorerLinkByChain[expor
|
|
|
70
70
|
return "https://blockchair.com/stellar/transaction/" + txid;
|
|
71
71
|
}, _explorerLinkByChain[exports.Chains.StellarTestnet] = function (txid) {
|
|
72
72
|
return "https://testnet.steexp.com/tx/" + txid;
|
|
73
|
-
}, _explorerLinkByChain[exports.Chains.ProtonMainnet] = function (txid) {
|
|
74
|
-
return "https://proton.bloks.io/transaction/" + txid;
|
|
75
|
-
}, _explorerLinkByChain[exports.Chains.ProtonTestnet] = function (txid) {
|
|
76
|
-
return "https://proton-test.bloks.io/transaction/" + txid;
|
|
73
|
+
}, _explorerLinkByChain[exports.Chains.ProtonMainnet] = function (txid, traces) {
|
|
74
|
+
return "https://proton.bloks.io/transaction/" + txid + (traces ? '?tab=traces' : '');
|
|
75
|
+
}, _explorerLinkByChain[exports.Chains.ProtonTestnet] = function (txid, traces) {
|
|
76
|
+
return "https://proton-test.bloks.io/transaction/" + txid + (traces ? '?tab=traces' : '');
|
|
77
77
|
}, _explorerLinkByChain[exports.Chains.PolkadotMainnet] = function (txid) {
|
|
78
78
|
return "https://polkadot.subscan.io/extrinsic/" + txid;
|
|
79
79
|
}, _explorerLinkByChain[exports.Chains.BinanceBEP2] = function (txid) {
|
|
@@ -104,7 +104,10 @@ var explorerLinkByChain = (_explorerLinkByChain = {}, _explorerLinkByChain[expor
|
|
|
104
104
|
return "https://xrpscan.com/tx/" + txid;
|
|
105
105
|
}, _explorerLinkByChain[exports.Chains.SolanaMainnet] = function (txid) {
|
|
106
106
|
return "https://explorer.solana.com/tx/" + txid;
|
|
107
|
-
}, _explorerLinkByChain);
|
|
107
|
+
}, _explorerLinkByChain);
|
|
108
|
+
var protonExplorerTxUrl = function protonExplorerTxUrl(chain, txId, traces) {
|
|
109
|
+
return chain === 'proton' ? explorerLinkByChain[exports.Chains.ProtonMainnet](txId, traces) : explorerLinkByChain[exports.Chains.ProtonTestnet](txId, traces);
|
|
110
|
+
}; // Initialize
|
|
108
111
|
|
|
109
112
|
var initializeCoins = function initializeCoins(protonChain) {
|
|
110
113
|
var IS_MAINNET = protonChain === 'proton';
|
|
@@ -1665,6 +1668,7 @@ exports.median = median;
|
|
|
1665
1668
|
exports.otcOrderResponseParser = otcOrderResponseParser;
|
|
1666
1669
|
exports.otcQuoteBodyParser = otcQuoteBodyParser;
|
|
1667
1670
|
exports.otcQuoteResponseParser = otcQuoteResponseParser;
|
|
1671
|
+
exports.protonExplorerTxUrl = protonExplorerTxUrl;
|
|
1668
1672
|
exports.rateParser = rateParser;
|
|
1669
1673
|
exports.similarChains = similarChains;
|
|
1670
1674
|
exports.singleActionTransactionParser = singleActionTransactionParser;
|