-
Notifications
You must be signed in to change notification settings - Fork 0
/
ponder.config.ts
85 lines (78 loc) · 1.97 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
import { createConfig } from "@ponder/core";
import { http } from "viem";
import { DexAggregatorAbi } from "./abis/DexAggregatorAbi";
import { StratosphereAbi } from "./abis/StratosphereAbi";
import { addresses, rpcMap } from "./src/config/constants";
import { LiquidMiningAbi } from "./abis/LiquidMiningAbi";
import { VapeStakingAbi } from "./abis/VapeStakingAbi";
import { RewardsControllerAbi } from "./abis/RewardsControllerAbi";
const maxBlockRange = process.env.MAX_BLOCK_RANGE
? parseInt(process.env.MAX_BLOCK_RANGE)
: 2_000;
export default createConfig({
networks: {
avalanche: {
chainId: 43114,
transport: http(rpcMap.avalanche),
},
telos: {
chainId: 40,
transport: http(rpcMap.telos),
},
},
contracts: {
DexAggregator: {
abi: DexAggregatorAbi,
network: {
avalanche: {
address: [
addresses.DexAggregator?.avalanche!,
addresses.DexAggregatorV2?.avalanche!,
],
startBlock: 20308160,
maxBlockRange,
},
},
},
Stratosphere: {
abi: StratosphereAbi,
network: {
avalanche: {
address: addresses.Stratosphere?.avalanche,
startBlock: 20310567,
maxBlockRange,
},
},
},
LiquidMining: {
abi: LiquidMiningAbi,
network: {
avalanche: {
address: addresses.LiquidMining?.avalanche,
startBlock: 32271032,
maxBlockRange,
},
},
},
VapeStaking: {
abi: VapeStakingAbi,
network: {
avalanche: {
address: addresses.VapeStaking?.avalanche,
startBlock: 33291048,
maxBlockRange,
},
},
},
RewardsController: {
abi: RewardsControllerAbi,
network: {
avalanche: {
address: addresses.RewardsController?.avalanche,
startBlock: 43508160, // TODO: Update this
maxBlockRange,
},
},
},
},
});