Skip to content

Commit

Permalink
watcher: add mainnet snaxchain
Browse files Browse the repository at this point in the history
  • Loading branch information
panoel committed Aug 26, 2024
1 parent 320e21d commit 71a6d43
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: NetworkChainBlockMap
Blast: '2375628',
Sei: '238594',
Wormchain: '4510119', // https://bigdipper.live/wormhole/transactions/4D861F1BE86325D227FA006CA2745BBC6748AF5B5E0811DE536D02792928472A },
Snaxchain: '306315',
},
['Testnet']: {
Ethereum: '0',
Expand Down
4 changes: 4 additions & 0 deletions common/src/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export const explorerBlock = (network: Network, chainId: ChainId, block: string)
? `https://lineascan.build/block/${block}`
: chainId === chainToChainId('Berachain')
? `https://beratrail.io/block/${block}`
: chainId === chainToChainId('Snaxchain')
? `https://snaxchain.io/${block}`
: chainId === chainToChainId('Wormchain')
? `https://bigdipper.live/wormhole/blocks/${block}`
: ''
Expand Down Expand Up @@ -195,6 +197,8 @@ export const explorerTx = (network: Network, chainId: ChainId, tx: string) =>
? `https://lineascan.build/tx/${tx}`
: chainId === chainToChainId('Berachain')
? `https://bartio.beratrail.io/tx/${tx}`
: chainId === chainToChainId('Snaxchain')
? `https://snaxchain.io/tx/${tx}`
: chainId === chainToChainId('Wormchain')
? `https://bigdipper.live/wormhole/transactions/${tx}`
: ''
Expand Down
1 change: 1 addition & 0 deletions watcher/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const RPCS_BY_CHAIN: { [key in Network]: { [key in Chain]?: string } } =
Sei: process.env.SEI_RPC || 'https://sei-rest.brocha.in', // https://docs.sei.io/develop/resources
Wormchain: process.env.WORMCHAIN_RPC || 'https://wormchain-rpc.quickapi.com',
Xlayer: process.env.XLAYER_RPC || 'https://rpc.ankr.com/xlayer',
Snaxchain: process.env.SNAXCHAIN_RPC || 'https://snaxchain.io',
},
['Testnet']: {
Ethereum: process.env.ETH_RPC,
Expand Down
1 change: 1 addition & 0 deletions watcher/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const supportedChains: Chain[] =
'Mantle',
'Blast',
'Xlayer',
'Snaxchain',
'Wormchain',
];

Expand Down

0 comments on commit 71a6d43

Please sign in to comment.