-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathponder.config.ts
More file actions
32 lines (31 loc) · 758 Bytes
/
ponder.config.ts
File metadata and controls
32 lines (31 loc) · 758 Bytes
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
import { createConfig } from "@ponder/core";
import { http } from "viem";
import { TOKEN_ABI, MARKETPLACE_ABI } from "./src/config/abis";
import { TOKEN_ADDRESS, MARKETPLACE_ADDRESS } from "./src/config/contracts";
export default createConfig({
networks: {
anvil: {
chainId: 31337,
transport: http("http://127.0.0.1:8545"),
},
},
contracts: {
Token: {
network: "anvil",
abi: TOKEN_ABI,
address: TOKEN_ADDRESS,
startBlock: 0,
},
Marketplace: {
network: "anvil",
abi: MARKETPLACE_ABI,
address: MARKETPLACE_ADDRESS,
startBlock: 0,
events: {
ItemListed: "ItemListed",
ItemSold: "ItemSold",
ItemDelisted: "ItemDelisted",
},
},
},
});