@vultisig/core-chain 2.34.0 → 2.35.1
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/CHANGELOG.md +20 -0
- package/dist/chainRegistry.d.ts +86 -0
- package/dist/chainRegistry.d.ts.map +1 -0
- package/dist/chainRegistry.js +79 -0
- package/dist/chainRegistry.js.map +1 -0
- package/dist/chains/cosmos/thor/securedAssets.d.ts +59 -0
- package/dist/chains/cosmos/thor/securedAssets.d.ts.map +1 -0
- package/dist/chains/cosmos/thor/securedAssets.js +173 -0
- package/dist/chains/cosmos/thor/securedAssets.js.map +1 -0
- package/dist/chains/evm/chainInfo.d.ts +4 -4
- package/dist/chains/evm/chainInfo.d.ts.map +1 -1
- package/dist/chains/evm/chainInfo.js +3 -2
- package/dist/chains/evm/chainInfo.js.map +1 -1
- package/dist/chains/evm/opStack/getOpStackFeeSurcharge.d.ts +22 -0
- package/dist/chains/evm/opStack/getOpStackFeeSurcharge.d.ts.map +1 -0
- package/dist/chains/evm/opStack/getOpStackFeeSurcharge.js +68 -0
- package/dist/chains/evm/opStack/getOpStackFeeSurcharge.js.map +1 -0
- package/dist/chains/evm/opStack/l1FeeProbeData.d.ts +23 -0
- package/dist/chains/evm/opStack/l1FeeProbeData.d.ts.map +1 -0
- package/dist/chains/evm/opStack/l1FeeProbeData.js +38 -0
- package/dist/chains/evm/opStack/l1FeeProbeData.js.map +1 -0
- package/dist/chains/evm/opStack/opStackChains.d.ts +19 -0
- package/dist/chains/evm/opStack/opStackChains.d.ts.map +1 -0
- package/dist/chains/evm/opStack/opStackChains.js +19 -0
- package/dist/chains/evm/opStack/opStackChains.js.map +1 -0
- package/dist/swap/general/GeneralSwapQuote.d.ts +16 -0
- package/dist/swap/general/GeneralSwapQuote.d.ts.map +1 -1
- package/dist/swap/general/swapkit/SwapKitErrors.d.ts +10 -0
- package/dist/swap/general/swapkit/SwapKitErrors.d.ts.map +1 -1
- package/dist/swap/general/swapkit/SwapKitErrors.js +10 -0
- package/dist/swap/general/swapkit/SwapKitErrors.js.map +1 -1
- package/dist/swap/general/swapkit/api/getSwapKitQuote.d.ts.map +1 -1
- package/dist/swap/general/swapkit/api/getSwapKitQuote.js +72 -7
- package/dist/swap/general/swapkit/api/getSwapKitQuote.js.map +1 -1
- package/dist/utils/getBlockExplorerUrl/index.d.ts +2 -2
- package/dist/utils/getBlockExplorerUrl/index.d.ts.map +1 -1
- package/dist/utils/getBlockExplorerUrl/index.js +3 -130
- package/dist/utils/getBlockExplorerUrl/index.js.map +1 -1
- package/package.json +26 -1
|
@@ -1,133 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { hyperliquidBlockExplorerUrl, robinhoodBlockExplorerUrl } from '@vultisig/core-chain/chains/evm/chainInfo';
|
|
3
|
-
import { match } from '@vultisig/lib-utils/match';
|
|
4
|
-
const cosmosBlockExplorer = 'https://www.mintscan.io';
|
|
5
|
-
const blockExplorerBaseUrl = {
|
|
6
|
-
[Chain.Bitcoin]: 'https://mempool.space',
|
|
7
|
-
[Chain.BitcoinCash]: 'https://blockchair.com/bitcoin-cash',
|
|
8
|
-
[Chain.Litecoin]: 'https://blockchair.com/litecoin',
|
|
9
|
-
[Chain.Dogecoin]: 'https://blockchair.com/dogecoin',
|
|
10
|
-
[Chain.Dash]: 'https://blockchair.com/dash',
|
|
11
|
-
[Chain.Solana]: 'https://solscan.io',
|
|
12
|
-
[Chain.Ethereum]: 'https://etherscan.io',
|
|
13
|
-
[Chain.Cosmos]: `${cosmosBlockExplorer}/cosmos`,
|
|
14
|
-
[Chain.Dydx]: `${cosmosBlockExplorer}/dydx`,
|
|
15
|
-
[Chain.Kujira]: 'https://finder.kujira.network/kaiyo-1',
|
|
16
|
-
[Chain.Avalanche]: 'https://snowtrace.io',
|
|
17
|
-
[Chain.BSC]: 'https://bscscan.com',
|
|
18
|
-
[Chain.Arbitrum]: 'https://arbiscan.io',
|
|
19
|
-
[Chain.Base]: 'https://basescan.org',
|
|
20
|
-
[Chain.Optimism]: 'https://optimistic.etherscan.io',
|
|
21
|
-
[Chain.Polygon]: 'https://polygonscan.com',
|
|
22
|
-
[Chain.Blast]: 'https://blastscan.io',
|
|
23
|
-
[Chain.CronosChain]: 'https://cronoscan.com',
|
|
24
|
-
[Chain.Sui]: 'https://suiscan.xyz/mainnet',
|
|
25
|
-
[Chain.Polkadot]: 'https://assethub-polkadot.subscan.io',
|
|
26
|
-
[Chain.Bittensor]: 'https://taostats.io',
|
|
27
|
-
[Chain.Zksync]: 'https://explorer.zksync.io',
|
|
28
|
-
[Chain.Ton]: 'https://tonviewer.com',
|
|
29
|
-
[Chain.Osmosis]: `${cosmosBlockExplorer}/osmosis`,
|
|
30
|
-
[Chain.Terra]: `${cosmosBlockExplorer}/terra`,
|
|
31
|
-
[Chain.TerraClassic]: 'https://finder.terra.money/classic',
|
|
32
|
-
[Chain.Noble]: `${cosmosBlockExplorer}/noble`,
|
|
33
|
-
[Chain.Ripple]: 'https://xrpscan.com',
|
|
34
|
-
[Chain.THORChain]: 'https://thorchain.net',
|
|
35
|
-
[Chain.MayaChain]: 'https://www.explorer.mayachain.info',
|
|
36
|
-
[Chain.Akash]: `${cosmosBlockExplorer}/akash`,
|
|
37
|
-
[Chain.Tron]: 'https://tronscan.org/#',
|
|
38
|
-
[Chain.Zcash]: 'https://blockexplorer.one/zcash/mainnet',
|
|
39
|
-
[Chain.Cardano]: 'https://cardanoscan.io',
|
|
40
|
-
[Chain.Mantle]: 'https://explorer.mantle.xyz',
|
|
41
|
-
[Chain.Hyperliquid]: hyperliquidBlockExplorerUrl,
|
|
42
|
-
[Chain.Sei]: 'https://seiscan.io',
|
|
43
|
-
[Chain.Robinhood]: robinhoodBlockExplorerUrl,
|
|
44
|
-
[Chain.QBTC]: 'https://explorer.qbtc.net/qbtc',
|
|
45
|
-
};
|
|
1
|
+
import { chainRegistry } from '@vultisig/core-chain/chainRegistry';
|
|
46
2
|
export const getBlockExplorerUrl = ({ chain, entity, value }) => {
|
|
47
|
-
const
|
|
48
|
-
return
|
|
49
|
-
address: () => match(chain, {
|
|
50
|
-
[Chain.Bitcoin]: () => `${baseUrl}/address/${value}`,
|
|
51
|
-
[Chain.BitcoinCash]: () => `${baseUrl}/address/${value}`,
|
|
52
|
-
[Chain.Litecoin]: () => `${baseUrl}/address/${value}`,
|
|
53
|
-
[Chain.Dogecoin]: () => `${baseUrl}/address/${value}`,
|
|
54
|
-
[Chain.Dash]: () => `${baseUrl}/address/${value}`,
|
|
55
|
-
[Chain.THORChain]: () => `${baseUrl}/address/${value}`,
|
|
56
|
-
[Chain.Solana]: () => `${baseUrl}/address/${value}`,
|
|
57
|
-
[Chain.Ethereum]: () => `${baseUrl}/address/${value}`,
|
|
58
|
-
[Chain.Cosmos]: () => `${baseUrl}/address/${value}`,
|
|
59
|
-
[Chain.Dydx]: () => `${baseUrl}/address/${value}`,
|
|
60
|
-
[Chain.Kujira]: () => `${baseUrl}/address/${value}`,
|
|
61
|
-
[Chain.Avalanche]: () => `${baseUrl}/address/${value}`,
|
|
62
|
-
[Chain.BSC]: () => `${baseUrl}/address/${value}`,
|
|
63
|
-
[Chain.MayaChain]: () => `${baseUrl}/address/${value}`,
|
|
64
|
-
[Chain.Arbitrum]: () => `${baseUrl}/address/${value}`,
|
|
65
|
-
[Chain.Base]: () => `${baseUrl}/address/${value}`,
|
|
66
|
-
[Chain.Optimism]: () => `${baseUrl}/address/${value}`,
|
|
67
|
-
[Chain.Polygon]: () => `${baseUrl}/address/${value}`,
|
|
68
|
-
[Chain.Blast]: () => `${baseUrl}/address/${value}`,
|
|
69
|
-
[Chain.CronosChain]: () => `${baseUrl}/address/${value}`,
|
|
70
|
-
[Chain.Sui]: () => `${baseUrl}/address/${value}`,
|
|
71
|
-
[Chain.Polkadot]: () => `${baseUrl}/account/${value}`,
|
|
72
|
-
[Chain.Bittensor]: () => `${baseUrl}/account/${value}`,
|
|
73
|
-
[Chain.Zksync]: () => `${baseUrl}/address/${value}`,
|
|
74
|
-
[Chain.Ton]: () => `${baseUrl}/${value}`,
|
|
75
|
-
[Chain.Osmosis]: () => `${baseUrl}/address/${value}`,
|
|
76
|
-
[Chain.Terra]: () => `${baseUrl}/address/${value}`,
|
|
77
|
-
[Chain.TerraClassic]: () => `${baseUrl}/address/${value}`,
|
|
78
|
-
[Chain.Noble]: () => `${baseUrl}/address/${value}`,
|
|
79
|
-
[Chain.Ripple]: () => `${baseUrl}/account/${value}`,
|
|
80
|
-
[Chain.Akash]: () => `${baseUrl}/address/${value}`,
|
|
81
|
-
[Chain.Tron]: () => `${baseUrl}/address/${value}`,
|
|
82
|
-
[Chain.Zcash]: () => `${baseUrl}/address/${value}`,
|
|
83
|
-
[Chain.Cardano]: () => `${baseUrl}/address/${value}`,
|
|
84
|
-
[Chain.Mantle]: () => `${baseUrl}/address/${value}`,
|
|
85
|
-
[Chain.Hyperliquid]: () => `${baseUrl}/address/${value}`,
|
|
86
|
-
[Chain.Sei]: () => `${baseUrl}/address/${value}`,
|
|
87
|
-
[Chain.Robinhood]: () => `${baseUrl}/address/${value}`,
|
|
88
|
-
[Chain.QBTC]: () => `${baseUrl}/account/${value}`,
|
|
89
|
-
}),
|
|
90
|
-
tx: () => match(chain, {
|
|
91
|
-
[Chain.Bitcoin]: () => `${baseUrl}/tx/${value}`,
|
|
92
|
-
[Chain.BitcoinCash]: () => `${baseUrl}/transaction/${value}`,
|
|
93
|
-
[Chain.Litecoin]: () => `${baseUrl}/transaction/${value}`,
|
|
94
|
-
[Chain.Dogecoin]: () => `${baseUrl}/transaction/${value}`,
|
|
95
|
-
[Chain.Dash]: () => `${baseUrl}/transaction/${value}`,
|
|
96
|
-
[Chain.THORChain]: () => `${baseUrl}/tx/${value}`,
|
|
97
|
-
[Chain.Solana]: () => `${baseUrl}/tx/${value}`,
|
|
98
|
-
[Chain.Ethereum]: () => `${baseUrl}/tx/${value}`,
|
|
99
|
-
[Chain.Cosmos]: () => `${baseUrl}/tx/${value}`,
|
|
100
|
-
[Chain.Dydx]: () => `${baseUrl}/tx/${value}`,
|
|
101
|
-
[Chain.Kujira]: () => `${baseUrl}/tx/${value}`,
|
|
102
|
-
[Chain.Avalanche]: () => `${baseUrl}/tx/${value}`,
|
|
103
|
-
[Chain.BSC]: () => `${baseUrl}/tx/${value}`,
|
|
104
|
-
[Chain.MayaChain]: () => `${baseUrl}/tx/${value}`,
|
|
105
|
-
[Chain.Arbitrum]: () => `${baseUrl}/tx/${value}`,
|
|
106
|
-
[Chain.Base]: () => `${baseUrl}/tx/${value}`,
|
|
107
|
-
[Chain.Optimism]: () => `${baseUrl}/tx/${value}`,
|
|
108
|
-
[Chain.Polygon]: () => `${baseUrl}/tx/${value}`,
|
|
109
|
-
[Chain.Blast]: () => `${baseUrl}/tx/${value}`,
|
|
110
|
-
[Chain.CronosChain]: () => `${baseUrl}/tx/${value}`,
|
|
111
|
-
[Chain.Sui]: () => `${baseUrl}/tx/${value}`,
|
|
112
|
-
[Chain.Polkadot]: () => `${baseUrl}/extrinsic/${value}`,
|
|
113
|
-
[Chain.Bittensor]: () => `${baseUrl}/extrinsic/${value}`,
|
|
114
|
-
[Chain.Zksync]: () => `${baseUrl}/tx/${value}`,
|
|
115
|
-
[Chain.Ton]: () => `${baseUrl}/transaction/${value}`,
|
|
116
|
-
[Chain.Osmosis]: () => `${baseUrl}/tx/${value}`,
|
|
117
|
-
[Chain.Terra]: () => `${baseUrl}/tx/${value}`,
|
|
118
|
-
[Chain.TerraClassic]: () => `${baseUrl}/tx/${value}`,
|
|
119
|
-
[Chain.Noble]: () => `${baseUrl}/tx/${value}`,
|
|
120
|
-
[Chain.Ripple]: () => `${baseUrl}/transaction/${value}`,
|
|
121
|
-
[Chain.Akash]: () => `${baseUrl}/tx/${value}`,
|
|
122
|
-
[Chain.Tron]: () => `${baseUrl}/transaction/${value}`,
|
|
123
|
-
[Chain.Zcash]: () => `${baseUrl}/tx/${value}`,
|
|
124
|
-
[Chain.Cardano]: () => `${baseUrl}/transaction/${value}`,
|
|
125
|
-
[Chain.Mantle]: () => `${baseUrl}/tx/${value}`,
|
|
126
|
-
[Chain.Hyperliquid]: () => `${baseUrl}/tx/${value}`,
|
|
127
|
-
[Chain.Sei]: () => `${baseUrl}/tx/${value}`,
|
|
128
|
-
[Chain.Robinhood]: () => `${baseUrl}/tx/${value}`,
|
|
129
|
-
[Chain.QBTC]: () => `${baseUrl}/tx/${value}`,
|
|
130
|
-
}),
|
|
131
|
-
});
|
|
3
|
+
const explorer = chainRegistry[chain].explorer;
|
|
4
|
+
return `${explorer.baseUrl}${explorer.paths[entity]}${value}`;
|
|
132
5
|
};
|
|
133
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/core/chain/utils/getBlockExplorerUrl/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/core/chain/utils/getBlockExplorerUrl/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAQ5F,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAA4B,EAAU,EAAE;IAChG,MAAM,QAAQ,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAA;IAC9C,OAAO,GAAG,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,CAAA;AAC/D,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vultisig/core-chain",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.35.1",
|
|
4
4
|
"description": "Blockchain chain logic shared across Vultisig clients",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -60,6 +60,11 @@
|
|
|
60
60
|
"import": "./dist/ChainKind.js",
|
|
61
61
|
"default": "./dist/ChainKind.js"
|
|
62
62
|
},
|
|
63
|
+
"./chainRegistry": {
|
|
64
|
+
"types": "./dist/chainRegistry.d.ts",
|
|
65
|
+
"import": "./dist/chainRegistry.js",
|
|
66
|
+
"default": "./dist/chainRegistry.js"
|
|
67
|
+
},
|
|
63
68
|
"./chains/bittensor/client": {
|
|
64
69
|
"types": "./dist/chains/bittensor/client.d.ts",
|
|
65
70
|
"import": "./dist/chains/bittensor/client.js",
|
|
@@ -505,6 +510,11 @@
|
|
|
505
510
|
"import": "./dist/chains/cosmos/thor/rujira/config.js",
|
|
506
511
|
"default": "./dist/chains/cosmos/thor/rujira/config.js"
|
|
507
512
|
},
|
|
513
|
+
"./chains/cosmos/thor/securedAssets": {
|
|
514
|
+
"types": "./dist/chains/cosmos/thor/securedAssets.d.ts",
|
|
515
|
+
"import": "./dist/chains/cosmos/thor/securedAssets.js",
|
|
516
|
+
"default": "./dist/chains/cosmos/thor/securedAssets.js"
|
|
517
|
+
},
|
|
508
518
|
"./chains/cosmos/thor/tcy-autocompound/config": {
|
|
509
519
|
"types": "./dist/chains/cosmos/thor/tcy-autocompound/config.d.ts",
|
|
510
520
|
"import": "./dist/chains/cosmos/thor/tcy-autocompound/config.js",
|
|
@@ -630,6 +640,21 @@
|
|
|
630
640
|
"import": "./dist/chains/evm/noon/index.js",
|
|
631
641
|
"default": "./dist/chains/evm/noon/index.js"
|
|
632
642
|
},
|
|
643
|
+
"./chains/evm/opStack/getOpStackFeeSurcharge": {
|
|
644
|
+
"types": "./dist/chains/evm/opStack/getOpStackFeeSurcharge.d.ts",
|
|
645
|
+
"import": "./dist/chains/evm/opStack/getOpStackFeeSurcharge.js",
|
|
646
|
+
"default": "./dist/chains/evm/opStack/getOpStackFeeSurcharge.js"
|
|
647
|
+
},
|
|
648
|
+
"./chains/evm/opStack/l1FeeProbeData": {
|
|
649
|
+
"types": "./dist/chains/evm/opStack/l1FeeProbeData.d.ts",
|
|
650
|
+
"import": "./dist/chains/evm/opStack/l1FeeProbeData.js",
|
|
651
|
+
"default": "./dist/chains/evm/opStack/l1FeeProbeData.js"
|
|
652
|
+
},
|
|
653
|
+
"./chains/evm/opStack/opStackChains": {
|
|
654
|
+
"types": "./dist/chains/evm/opStack/opStackChains.d.ts",
|
|
655
|
+
"import": "./dist/chains/evm/opStack/opStackChains.js",
|
|
656
|
+
"default": "./dist/chains/evm/opStack/opStackChains.js"
|
|
657
|
+
},
|
|
633
658
|
"./chains/evm/tx/fee": {
|
|
634
659
|
"types": "./dist/chains/evm/tx/fee/index.d.ts",
|
|
635
660
|
"import": "./dist/chains/evm/tx/fee/index.js",
|