-
Notifications
You must be signed in to change notification settings - Fork 0
/
ponder.config.ts
69 lines (68 loc) · 1.75 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
import { createConfig, loadBalance, rateLimit } from "@ponder/core";
import { http } from "viem";
import { erc721ABI } from "./abis/erc721ABI";
import { AccessControlledOffchainAggregator } from "./abis/chainlink/AccessControlledOffchainAggregator";
export default createConfig({
networks: {
arbitrum: {
chainId: 42161,
transport: loadBalance([
http(
`https://arb-mainnet.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`
),
]),
},
"arbitrum-sepolia": {
chainId: 421614,
transport: loadBalance([
http(
`https://arb-sepolia.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`
),
]),
},
polygon: {
chainId: 137,
transport: loadBalance([
http(
`https://polygon-mainnet.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`
),
]),
},
},
contracts: {
Endorser: {
abi: erc721ABI,
filter: {
event: "Transfer",
},
network: {
"arbitrum-sepolia": {
startBlock: 72138379,
address: "0x0000c908D1104caD2867Ec2A8Bb178D78C9bAaaa",
},
arbitrum: {
startBlock: 244339084,
address: "0x0000c908D1104caD2867Ec2A8Bb178D78C9bAaaa",
},
},
},
MXNUSDFeed: {
abi: AccessControlledOffchainAggregator,
network: "polygon",
address: "0x3D9b02dba75AfDa94F973F537A7f058f5788eDE6",
filter: {
event: "AnswerUpdated",
},
startBlock: 20144664,
},
USDCUSDFeed: {
abi: AccessControlledOffchainAggregator,
network: "arbitrum",
filter: {
event: "AnswerUpdated",
},
address: "0x2946220288DbBF77dF0030fCecc2a8348CbBE32C",
startBlock: 101203,
},
},
});