Skip to content

Commit 2679258

Browse files
committed
Add Ink mainnet support
1 parent c104416 commit 2679258

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

common/src/consts.ts

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export const INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: NetworkChainBlockMap
5353
Snaxchain: '306315',
5454
Unichain: '8115676', // https://unichain.blockscout.com/tx/0x4d65e33abc388c2d92c71ea01374af935a6615d0e555a7abbdef6c44e04613ba
5555
Worldchain: '5805110', // https://worldscan.org/tx/0x568eb14596296bda3022527cf0e915bfec073613b27c495e695fb9e08652f6fc
56+
Ink: '7711131', // Block of contract creation, https://explorer.inkonchain.com/tx/0x2576b03a4c0de8566778cb3149a0dbc1c8f8dfcf5d87c9f5f96038c4b15e3797
5657
},
5758
['Testnet']: {
5859
Ethereum: '0',

common/src/explorer.ts

+4
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export const explorerBlock = (network: Network, chainId: ChainId, block: string)
7878
? `https://bigdipper.live/wormhole/blocks/${block}`
7979
: chainId === chainToChainId('Worldchain')
8080
? `https://worldscan.org/block/${block}`
81+
: chainId === chainToChainId('Ink')
82+
? `https://explorer.inkonchain.com/block/${block}`
8183
: ''
8284
: chainId === chainToChainId('Solana')
8385
? `https://explorer.solana.com/${block}?cluster=testnet`
@@ -221,6 +223,8 @@ export const explorerTx = (network: Network, chainId: ChainId, tx: string) =>
221223
? `https://bigdipper.live/wormhole/transactions/${tx}`
222224
: chainId === chainToChainId('Worldchain')
223225
? `https://worldscan.org/tx/${tx}`
226+
: chainId === chainToChainId('Ink')
227+
? `https://explorer.inkonchain.com/tx/${tx}`
224228
: ''
225229
: chainId === chainToChainId('Solana')
226230
? `https://solscan.io/txs/${tx}?cluster=testnet`

watcher/src/consts.ts

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export const RPCS_BY_CHAIN: { [key in Network]: { [key in Chain]?: string } } =
6666
Snaxchain: process.env.SNAXCHAIN_RPC || 'https://snaxchain.io',
6767
Unichain: process.env.UNICHAIN_RPC || 'https://mainnet.unichain.org',
6868
Worldchain: process.env.WORLDCHAIN_RPC || 'https://worldchain-mainnet.g.alchemy.com/public',
69+
Ink: process.env.INK_RPC || 'https://rpc-qnd.inkonchain.com',
6970
},
7071
['Testnet']: {
7172
Ethereum: process.env.ETH_RPC,

0 commit comments

Comments
 (0)