Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ink mainnet support #411

Merged
merged 1 commit into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions common/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: NetworkChainBlockMap
Snaxchain: '306315',
Unichain: '8115676', // https://unichain.blockscout.com/tx/0x4d65e33abc388c2d92c71ea01374af935a6615d0e555a7abbdef6c44e04613ba
Worldchain: '5805110', // https://worldscan.org/tx/0x568eb14596296bda3022527cf0e915bfec073613b27c495e695fb9e08652f6fc
Ink: '7711131', // Block of contract creation, https://explorer.inkonchain.com/tx/0x2576b03a4c0de8566778cb3149a0dbc1c8f8dfcf5d87c9f5f96038c4b15e3797
},
['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 @@ -78,6 +78,8 @@ export const explorerBlock = (network: Network, chainId: ChainId, block: string)
? `https://bigdipper.live/wormhole/blocks/${block}`
: chainId === chainToChainId('Worldchain')
? `https://worldscan.org/block/${block}`
: chainId === chainToChainId('Ink')
? `https://explorer.inkonchain.com/block/${block}`
: ''
: chainId === chainToChainId('Solana')
? `https://explorer.solana.com/${block}?cluster=testnet`
Expand Down Expand Up @@ -221,6 +223,8 @@ export const explorerTx = (network: Network, chainId: ChainId, tx: string) =>
? `https://bigdipper.live/wormhole/transactions/${tx}`
: chainId === chainToChainId('Worldchain')
? `https://worldscan.org/tx/${tx}`
: chainId === chainToChainId('Ink')
? `https://explorer.inkonchain.com/tx/${tx}`
: ''
: chainId === chainToChainId('Solana')
? `https://solscan.io/txs/${tx}?cluster=testnet`
Expand Down
1 change: 1 addition & 0 deletions watcher/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export const RPCS_BY_CHAIN: { [key in Network]: { [key in Chain]?: string } } =
Snaxchain: process.env.SNAXCHAIN_RPC || 'https://snaxchain.io',
Unichain: process.env.UNICHAIN_RPC || 'https://mainnet.unichain.org',
Worldchain: process.env.WORLDCHAIN_RPC || 'https://worldchain-mainnet.g.alchemy.com/public',
Ink: process.env.INK_RPC || 'https://rpc-qnd.inkonchain.com',
},
['Testnet']: {
Ethereum: process.env.ETH_RPC,
Expand Down
Loading