From 76cc3e091593aa9883bec7bebedc6dbff38a6a59 Mon Sep 17 00:00:00 2001 From: Paul Noel Date: Wed, 17 Apr 2024 15:28:30 -0400 Subject: [PATCH] watcher: allow more ntt chains --- common/src/consts.ts | 4 ++++ watcher/src/watchers/utils.ts | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/common/src/consts.ts b/common/src/consts.ts index 9aec4f32..5a39da16 100644 --- a/common/src/consts.ts +++ b/common/src/consts.ts @@ -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', diff --git a/watcher/src/watchers/utils.ts b/watcher/src/watchers/utils.ts index f8370f9c..6495654b 100644 --- a/watcher/src/watchers/utils.ts +++ b/watcher/src/watchers/utils.ts @@ -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}`