Skip to content

Commit 71a6d43

Browse files
committed
watcher: add mainnet snaxchain
1 parent 320e21d commit 71a6d43

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

common/src/consts.ts

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export const INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: NetworkChainBlockMap
4949
Blast: '2375628',
5050
Sei: '238594',
5151
Wormchain: '4510119', // https://bigdipper.live/wormhole/transactions/4D861F1BE86325D227FA006CA2745BBC6748AF5B5E0811DE536D02792928472A },
52+
Snaxchain: '306315',
5253
},
5354
['Testnet']: {
5455
Ethereum: '0',

common/src/explorer.ts

+4
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ export const explorerBlock = (network: Network, chainId: ChainId, block: string)
7070
? `https://lineascan.build/block/${block}`
7171
: chainId === chainToChainId('Berachain')
7272
? `https://beratrail.io/block/${block}`
73+
: chainId === chainToChainId('Snaxchain')
74+
? `https://snaxchain.io/${block}`
7375
: chainId === chainToChainId('Wormchain')
7476
? `https://bigdipper.live/wormhole/blocks/${block}`
7577
: ''
@@ -195,6 +197,8 @@ export const explorerTx = (network: Network, chainId: ChainId, tx: string) =>
195197
? `https://lineascan.build/tx/${tx}`
196198
: chainId === chainToChainId('Berachain')
197199
? `https://bartio.beratrail.io/tx/${tx}`
200+
: chainId === chainToChainId('Snaxchain')
201+
? `https://snaxchain.io/tx/${tx}`
198202
: chainId === chainToChainId('Wormchain')
199203
? `https://bigdipper.live/wormhole/transactions/${tx}`
200204
: ''

watcher/src/consts.ts

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export const RPCS_BY_CHAIN: { [key in Network]: { [key in Chain]?: string } } =
6262
Sei: process.env.SEI_RPC || 'https://sei-rest.brocha.in', // https://docs.sei.io/develop/resources
6363
Wormchain: process.env.WORMCHAIN_RPC || 'https://wormchain-rpc.quickapi.com',
6464
Xlayer: process.env.XLAYER_RPC || 'https://rpc.ankr.com/xlayer',
65+
Snaxchain: process.env.SNAXCHAIN_RPC || 'https://snaxchain.io',
6566
},
6667
['Testnet']: {
6768
Ethereum: process.env.ETH_RPC,

watcher/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ const supportedChains: Chain[] =
8484
'Mantle',
8585
'Blast',
8686
'Xlayer',
87+
'Snaxchain',
8788
'Wormchain',
8889
];
8990

0 commit comments

Comments
 (0)