-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathponder.config.ts
41 lines (39 loc) · 1.05 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
import { createConfig, mergeAbis } from "@ponder/core";
import { http } from "viem";
import { EASImplAbi } from "./abis/EASImplAbi";
import { EASProxiAbi } from "./abis/EASProxiAbi";
import schemas from "./schemas.config";
export default createConfig({
networks: {
optimism: {
chainId: 10,
transport: http(process.env.PONDER_RPC_URL_10),
},
},
contracts: {
EASAttested: {
network: "optimism",
abi: mergeAbis([EASProxiAbi, EASImplAbi]),
address: "0x4200000000000000000000000000000000000021",
startBlock: 108269604,
filter: {
event: "Attested",
args: {
schema: Object.values(schemas).map((schema) => schema.id),
},
},
},
EASRevoked: {
network: "optimism",
abi: mergeAbis([EASProxiAbi, EASImplAbi]),
address: "0x4200000000000000000000000000000000000021",
startBlock: 124380685,
filter: {
event: "Revoked",
args: {
schema: Object.values(schemas).map((schema) => schema.id),
},
},
},
},
});