Skip to content

Commit

Permalink
watcher: allow more ntt chains
Browse files Browse the repository at this point in the history
  • Loading branch information
panoel committed Apr 17, 2024
1 parent 3b2654b commit 76cc3e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions common/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,12 @@ export const INITIAL_NTT_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: {
[key in Network]: { [key in Chain]?: string };
} = {
['Mainnet']: {
Solana: '260508723',
Ethereum: '19583505',
Fantom: '78727372',
Arbitrum: '201652677',
Optimism: '118840800',
Base: '13245519',
},
['Testnet']: {
Solana: '285100152',
Expand Down
6 changes: 5 additions & 1 deletion watcher/src/watchers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,12 @@ export function makeFinalizedNTTWatcher(network: Network, chainName: Chain): Wat
if (network === 'Mainnet') {
if (chainName === 'Ethereum') {
return new NTTWatcher(network, chainName, 'finalized');
} else if (chainName === 'Fantom') {
} else if (chainName === 'Fantom' || chainName === 'Base' || chainName === 'Optimism') {
return new NTTWatcher(network, chainName);
} else if (chainName === 'Arbitrum') {
return new NTTArbitrumWatcher(network);
} else if (chainName === 'Solana') {
return new NTTSolanaWatcher(network);
} else {
throw new Error(
`Attempted to create finalized NTT watcher for unsupported mainnet chain ${chainName}`
Expand Down

0 comments on commit 76cc3e0

Please sign in to comment.