-
Notifications
You must be signed in to change notification settings - Fork 4
/
ponder.config.ts
113 lines (111 loc) · 3.13 KB
/
ponder.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import { createConfig } from "@ponder/core";
import { http } from "viem";
import { L1ERC721BridgeAbi, L2ERC721BridgeAbi, OptimismMintableERC721FactoryAbi } from "./abis";
import { OPTIMISM_L2_ERC721_BRIDGE_ADDRESS, OPTIMISM_MINTABLE_ERC721_FACTORY_ADDRESS } from "./constants";
export default createConfig({
networks: {
ethereum: {
chainId: 1,
transport: http(process.env.PONDER_RPC_URL_1),
},
sepolia: {
chainId: 11155111,
transport: http(process.env.PONDER_RPC_URL_11155111),
},
optimism: {
chainId: 10,
transport: http(process.env.PONDER_RPC_URL_10),
},
base: {
chainId: 8453,
transport: http(process.env.PONDER_RPC_URL_8453),
},
optimismSepolia: {
chainId: 11155420,
transport: http(process.env.PONDER_RPC_URL_11155420),
},
baseSepolia: {
chainId: 84532,
transport: http(process.env.PONDER_RPC_URL_84532),
},
},
contracts: {
OptimismMintableERC721Factory: {
abi: OptimismMintableERC721FactoryAbi,
filter: { event: "OptimismMintableERC721Created" },
address: OPTIMISM_MINTABLE_ERC721_FACTORY_ADDRESS,
network: {
// Production
optimism: {
// Block number of the first transaction
startBlock: 116002023
},
base: {
// Block number of the first transaction
startBlock: 2297164
},
// Testnet
optimismSepolia: {
// Block number of the first transaction
startBlock: 7074623
},
baseSepolia: {
// Block number of the first transaction
startBlock: 6932093
},
},
},
L1ERC721Bridge: {
abi: L1ERC721BridgeAbi,
filter: { event: ["ERC721BridgeInitiated", "ERC721BridgeFinalized"] },
network: {
// Production
ethereum: {
address: [
// Optimism
"0x5a7749f83b81B301cAb5f48EB8516B986DAef23D",
// Base
"0x608d94945A64503E642E6370Ec598e519a2C1E53",
],
// Block number of the first transaction
startBlock: 15677422,
},
sepolia: {
address: [
// Optimism Sepolia Testnet
"0xd83e03D576d23C9AEab8cC44Fa98d058D2176D1f",
// Base Sepolia Testnet
"0x21eFD066e581FA55Ef105170Cc04d74386a09190"
],
// Block number of the first transaction
startBlock: 5126689
},
},
},
L2ERC721Bridge: {
abi: L2ERC721BridgeAbi,
filter: { event: ["ERC721BridgeInitiated", "ERC721BridgeFinalized"] },
address: OPTIMISM_L2_ERC721_BRIDGE_ADDRESS,
network: {
// Production
optimism: {
// Block number of the first transaction
startBlock: 0
},
base: {
// Block number of the first transaction
startBlock: 0
},
// Testnet
optimismSepolia: {
// Block number of the first transaction
startBlock: 0
},
baseSepolia: {
// Block number of the first transaction
startBlock: 0
},
},
}
},
});