Skip to content

Commit

Permalink
watcher: add polygon_sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
panoel committed Mar 21, 2024
1 parent 214e071 commit 6dc9a33
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions common/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: {
base: '0',
sei: '0',
wormchain: '0',
polygon_sepolia: '2379275',
},
['devnet']: {},
};
Expand Down
1 change: 1 addition & 0 deletions watcher/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const RPCS_BY_CHAIN: { [key in Environment]: { [key in ChainName]?: strin
optimism_sepolia: process.env.OPTIMISM_SEPOLIA_RPC,
holesky: process.env.HOLESKY_RPC,
sepolia: process.env.SEPOLIA_RPC,
polygon_sepolia: process.env.POLYGON_SEPOLIA_RPC || 'https://rpc-amoy.polygon.technology',
},
['devnet']: {},
};
Expand Down
1 change: 1 addition & 0 deletions watcher/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const supportedChains: ChainName[] =
'base_sepolia',
'optimism_sepolia',
'holesky',
'polygon_sepolia',
]
: [
// This is the list of chains supported in MAINNET.
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 @@ -62,7 +62,11 @@ export function makeFinalizedWatcher(network: Environment, chainName: ChainName)
return new EVMWatcher(network, chainName, 'finalized');
} else if (chainName === 'arbitrum_sepolia') {
return new ArbitrumWatcher(network);
} else if (chainName === 'optimism_sepolia' || chainName === 'base_sepolia') {
} else if (
chainName === 'optimism_sepolia' ||
chainName === 'base_sepolia' ||
chainName === 'polygon_sepolia'
) {
return new EVMWatcher(network, chainName);
} else {
throw new Error(
Expand Down

0 comments on commit 6dc9a33

Please sign in to comment.