Skip to content

Commit 6dc9a33

Browse files
committed
watcher: add polygon_sepolia
1 parent 214e071 commit 6dc9a33

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

common/src/consts.ts

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export const INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: {
9696
base: '0',
9797
sei: '0',
9898
wormchain: '0',
99+
polygon_sepolia: '2379275',
99100
},
100101
['devnet']: {},
101102
};

watcher/src/consts.ts

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export const RPCS_BY_CHAIN: { [key in Environment]: { [key in ChainName]?: strin
8585
optimism_sepolia: process.env.OPTIMISM_SEPOLIA_RPC,
8686
holesky: process.env.HOLESKY_RPC,
8787
sepolia: process.env.SEPOLIA_RPC,
88+
polygon_sepolia: process.env.POLYGON_SEPOLIA_RPC || 'https://rpc-amoy.polygon.technology',
8889
},
8990
['devnet']: {},
9091
};

watcher/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const supportedChains: ChainName[] =
4747
'base_sepolia',
4848
'optimism_sepolia',
4949
'holesky',
50+
'polygon_sepolia',
5051
]
5152
: [
5253
// This is the list of chains supported in MAINNET.

watcher/src/watchers/utils.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ export function makeFinalizedWatcher(network: Environment, chainName: ChainName)
6262
return new EVMWatcher(network, chainName, 'finalized');
6363
} else if (chainName === 'arbitrum_sepolia') {
6464
return new ArbitrumWatcher(network);
65-
} else if (chainName === 'optimism_sepolia' || chainName === 'base_sepolia') {
65+
} else if (
66+
chainName === 'optimism_sepolia' ||
67+
chainName === 'base_sepolia' ||
68+
chainName === 'polygon_sepolia'
69+
) {
6670
return new EVMWatcher(network, chainName);
6771
} else {
6872
throw new Error(

0 commit comments

Comments
 (0)