-
Notifications
You must be signed in to change notification settings - Fork 1
/
ponder.config.ts
88 lines (84 loc) · 2.42 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
import { createConfig } from "ponder";
import { http } from "viem";
import { CohortContractAbi } from "./abis/CohortContractAbi";
const mainnetCohorts = [
// Main Hacker House (Jessy's)
"0x2Be18e07C7be0a2CC408C9E02C90203B2052D7DE",
// Infrastructure (Jessy's)
"0x502730421b796baeeB9D907d88685234dDb44750",
// Security & Optimizooors (Jessy's)
"0xaF18f0f1F096FaC34E816C7409348D313ef7c84F",
// Autonomous Worlds (Jessy's)
"0xcb59f4bab420abdb3c6ae0997cc9ac7526d5e163",
// ZK & Cryptography (Jessy's)
"0xfe2d6743d7180e07be769bF59D3c0f560B199434",
// Sanctum Cohort Stream
"0xA90F607224A0236B08Ae02178AB57aef712f86D3",
// BG Outreach
"0xE54F8B7FDdf75257c7F248a197553Ac467296053",
// ENS Cohort Stream
"0x2634aF3E799D3E17C6cf30bCF1275A7e3808F0df",
// Balancer Cohort Stream
"0xF32409271BE1Bb02F15922A6EA38BE79E664a247",
// Not Just Notfellows
"0xaCc9Cc4983D57cea0748B8CD1Adb87Ada5b1a67c",
// Media
"0xa6EfA453c25658F725590A5821Cf408818f25FEf",
// Owners
"0xd0acE9462d957485904B3437D4818ee2f9F2EfED",
// NiftyInk
"0x882d6aB20cE8Af9cB32e6eE3dc85f090427BCD1a",
// Nodes
"0x77A01eA7050B71067E6EB78Cd78aad34A39A3899",
// Batches
"0xe98994c7e30A7F0A108FF3BF20773CD521494a5a",
// Workshops
"0x1497f3831918e5220573ca6cdee15F16B2dBB063",
// Mercs
"0x1c873c172662c3774D089aB967911bC32C04bb08",
] as `0x${string}`[];
const optimismCohorts = [
// Sand Garden (old)
"0x2eA63c9C9C114ae85b1027697A906420a23e8572",
// Sand Garden (new)
"0x964d0C9a421953F95dAF3A5c5406093a3014A5D8",
// LaunchPod
"0x751e87af85b97054b30aD822291696482625e947",
// 0xAfro
"0x3DDb71FB2b6Fb530615FC1dEb9461d6489EDA1ff",
// Play full
"0x3E920e4a1C26a9c6488c3E5c7CB1e91a179927F5",
// Mercs
"0x8d84f7E545F69746e4A1CAD0F7ac9A83CCDF2C65",
// Ship Yard
"0x55Cb9CB337CDb0A41cAc89Ffac4627744b50B566",
] as `0x${string}`[];
export default createConfig({
networks: {
mainnet: {
chainId: 1,
transport: http(process.env.PONDER_RPC_MAINNET),
pollingInterval: 15_000,
},
optimism: {
chainId: 10,
transport: http(process.env.PONDER_RPC_OPTIMISM),
pollingInterval: 15_000,
},
},
contracts: {
CohortContract: {
abi: CohortContractAbi,
network: {
mainnet: {
address: mainnetCohorts,
startBlock: 16992407,
},
optimism: {
address: optimismCohorts,
startBlock: 101114639,
},
},
},
},
});