Skip to content

Commit

Permalink
Add Sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
Destiner committed Mar 18, 2024
1 parent d12fb84 commit 38a50d2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
PONDER_RPC_URL_80001=
PONDER_RPC_URL_11155111=
# (Optional) What EntryPoint version to index. Valid values are "0.6", "0.7", or "all". Defaults to "0.7".
PONDER_ENTRYPOINT_VERSION=
# (Optional) Postgres database URL. If not provided, SQLite will be used.
Expand Down
24 changes: 20 additions & 4 deletions ponder.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const ENTRYPOINT_0_7_ADDRESS = '0x0000000071727de22e5e9d8baf0edac6f37da032';

export default createConfig({
networks: {
sepolia: {
chainId: 11155111,
transport: http(process.env.PONDER_RPC_URL_11155111),
},
polygonMumbai: {
chainId: 80001,
transport: http(process.env.PONDER_RPC_URL_80001),
Expand All @@ -18,14 +22,26 @@ export default createConfig({
'EntryPoint0.6': {
abi: entryPoint06Abi,
address: ENTRYPOINT_0_6_ADDRESS,
network: 'polygonMumbai',
startBlock: 34166156,
network: {
sepolia: {
startBlock: 3257815,
},
polygonMumbai: {
startBlock: 34166156,
},
},
},
'EntryPoint0.7': {
abi: entryPoint07Abi,
address: ENTRYPOINT_0_7_ADDRESS,
network: 'polygonMumbai',
startBlock: 46345465,
network: {
sepolia: {
startBlock: 5328753,
},
polygonMumbai: {
startBlock: 46345465,
},
},
},
},
});

0 comments on commit 38a50d2

Please sign in to comment.