Skip to content

Commit e0527d4

Browse files
committed
common: explorer links for new chains
1 parent 61f19d5 commit e0527d4

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

common/src/explorer.ts

+48
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ export const explorerBlock = (network: Network, chainId: ChainId, block: string)
5858
? `https://basescan.org/block/${block}`
5959
: chainId === chainToChainId('Sei')
6060
? `https://www.seiscan.app/pacific-1/blocks/${block}`
61+
: chainId === chainToChainId('Scroll')
62+
? `https://scrollscan.com/block/${block}`
63+
: chainId === chainToChainId('Mantle')
64+
? `https://explorer.mantle.xyz/block/${block}`
65+
: chainId === chainToChainId('Blast')
66+
? `https://blastscan.io/block/${block}`
67+
: chainId === chainToChainId('Xlayer')
68+
? `https://www.oklink.com/xlayer/block/${block}`
69+
: chainId === chainToChainId('Linea')
70+
? `https://lineascan.build/block/${block}`
71+
: chainId === chainToChainId('Berachain')
72+
? `https://beratrail.io/block/${block}`
6173
: chainId === chainToChainId('Wormchain')
6274
? `https://bigdipper.live/wormhole/blocks/${block}`
6375
: ''
@@ -104,6 +116,18 @@ export const explorerBlock = (network: Network, chainId: ChainId, block: string)
104116
? `https://goerli.basescan.org/block/${block}`
105117
: chainId === chainToChainId('Sei')
106118
? `https://www.seiscan.app/atlantic-2/blocks/${block}`
119+
: chainId === chainToChainId('Scroll')
120+
? `https://sepolia.scrollscan.com/block/${block}`
121+
: chainId === chainToChainId('Mantle')
122+
? `https://explorer.sepolia.mantle.xyz/block/${block}`
123+
: chainId === chainToChainId('Blast')
124+
? `https://testnet.blastscan.io/block/${block}`
125+
: chainId === chainToChainId('Xlayer')
126+
? `https://www.oklink.com/xlayer-test/block/${block}`
127+
: chainId === chainToChainId('Linea')
128+
? `https://sepolia.lineascan.build/block/${block}`
129+
: chainId === chainToChainId('Berachain')
130+
? `https://artio.beratrail.io/block/${block}`
107131
: // : chainId === chainToChainId('Wormscan') <-- not supported on testnet dashboard
108132
'';
109133

@@ -157,6 +181,18 @@ export const explorerTx = (network: Network, chainId: ChainId, tx: string) =>
157181
? `https://basescan.org/tx/${tx}`
158182
: chainId === chainToChainId('Sei')
159183
? `https://www.seiscan.app/pacific-1/txs/${tx}`
184+
: chainId === chainToChainId('Scroll')
185+
? `https://scrollscan.com/tx/${tx}`
186+
: chainId === chainToChainId('Mantle')
187+
? `https://explorer.mantle.xyz/tx/${tx}`
188+
: chainId === chainToChainId('Blast')
189+
? `https://blastscan.io/tx/${tx}`
190+
: chainId === chainToChainId('Xlayer')
191+
? `https://www.oklink.com/xlayer/tx/${tx}`
192+
: chainId === chainToChainId('Linea')
193+
? `https://lineascan.build/tx/${tx}`
194+
: chainId === chainToChainId('Berachain')
195+
? `https://artio.beratrail.io/tx/${tx}`
160196
: chainId === chainToChainId('Wormchain')
161197
? `https://bigdipper.live/wormhole/transactions/${tx}`
162198
: ''
@@ -203,6 +239,18 @@ export const explorerTx = (network: Network, chainId: ChainId, tx: string) =>
203239
? `https://goerli.basescan.org/tx/${tx}`
204240
: chainId === chainToChainId('Sei')
205241
? `https://www.seiscan.app/atlantic-2/txs/${tx}`
242+
: chainId === chainToChainId('Scroll')
243+
? `https://sepolia.scrollscan.com/tx/${tx}`
244+
: chainId === chainToChainId('Mantle')
245+
? `https://explorer.sepolia.mantle.xyz/tx/${tx}`
246+
: chainId === chainToChainId('Blast')
247+
? `https://testnet.blastscan.io/tx/${tx}`
248+
: chainId === chainToChainId('Xlayer')
249+
? `https://www.oklink.com/xlayer-test/tx/${tx}`
250+
: chainId === chainToChainId('Linea')
251+
? `https://sepolia.lineascan.build/tx/${tx}`
252+
: chainId === chainToChainId('Berachain')
253+
? `https://artio.beratrail.io/tx/${tx}`
206254
: // chainId === chainToChainId('Wormscan') <-- not supported on testnet dashboard
207255
'';
208256

0 commit comments

Comments
 (0)