-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig.yaml
More file actions
433 lines (391 loc) · 16.7 KB
/
config.yaml
File metadata and controls
433 lines (391 loc) · 16.7 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
name: Allo Indexer
unordered_multichain_mode: true
raw_events: true
field_selection:
transaction_fields:
- "hash"
- "transactionIndex"
- "from"
##########################
# CONTRACTS #
##########################
contracts:
- name: Allo
handler: src/handlers/Allo.ts
events:
- event: PoolCreated(uint256 indexed poolId, bytes32 indexed profileId, address strategy, address token, uint256 amount, (uint256,string) metadata)
- event: PoolMetadataUpdated(uint256 indexed poolId, (uint256,string) metadata)
- event: PoolFunded(uint256 indexed poolId, uint256 amount, uint256 fee)
- event: RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
- event: RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
- name: Registry
handler: src/handlers/Registry.ts
events:
- event: ProfileCreated(bytes32 indexed profileId, uint256 nonce, string name, (uint256,string) metadata, address owner, address anchor)
- event: ProfileMetadataUpdated(bytes32 indexed profileId, (uint256,string) metadata)
- event: ProfileNameUpdated(bytes32 indexed profileId, string name, address anchor)
- event: ProfileOwnerUpdated(bytes32 indexed profileId, address owner)
- event: RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
- event: RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
- name: AlloV1ToV2ProfileMigration
handler: src/handlers/AlloV1ToV2ProfileMigration.ts
events:
- event: ProfileMigrated(bytes32 indexed alloV1, uint256 alloV1ChainId, bytes32 indexed alloV2, uint256 nonce)
- name: Strategy
handler: src/handlers/Strategy.ts
events:
########################## ALLO v2 ##########################
# Registered
- event: Registered(address indexed recipientId, bytes data, address sender)
name: RegisteredWithSender
- event: Registered(address indexed _recipient, bytes _data)
name: RegisteredWithData
#TimestampsUpdated
- event: TimestampsUpdated(uint64 startTime, uint64 endTime, address sender)
# Keep in mind that parameters could be allocation or registration timestamps in this case. It depends on the contract.
name: TimestampsUpdated
- event: TimestampsUpdated(uint64 registrationStartTime, uint64 registrationEndTime, uint64 allocationStartTime, uint64 allocationEndTime, address sender)
name: TimestampsUpdatedWithRegistrationAndAllocation
# DistributionUpdated
- event: DistributionUpdated(bytes32 merkleRoot, (uint256,string) metadata)
name: DistributionUpdatedWithMerkleRoot
- event: DistributionUpdated((uint256,string) metadata)
name: DistributionUpdated
# FundsUpdated
- event: FundsDistributed(uint256 amount, address grantee, address indexed token, address indexed recipientId)
# Distributed
- event: Distributed(address indexed recipientId, address recipientAddress, uint256 amount, address sender)
name: DistributedWithRecipientAddress
- event: Distributed(address indexed _recipient, bytes _data)
name: DistributedWithData
- event: Distributed(address indexed sender, int96 flowRate)
name: DistributedWithFlowRate
# Allocated
- event: Allocated(address indexed recipientId, uint256 amount, address token, address sender, address origin)
name: AllocatedWithOrigin
- event: Allocated(address indexed _recipient, address indexed _sender, uint256 _amount, bytes _data)
name: AllocatedWithData
- event: Allocated(address indexed recipientId, uint256 amount, address token, address sender)
name: AllocatedWithToken
- event: Allocated(address indexed recipientId, uint256 votes, address allocator)
name: AllocatedWithVotes
- event: Allocated(address indexed recipientId, uint8 status, address sender)
name: AllocatedWithStatus
# AllocatedWithNft
- event: AllocatedWithNft(address indexed recipientId, uint256 votes, address nft, address allocator)
# DirectAllocated
- event: DirectAllocated(bytes32 indexed profileId, address profileOwner, uint256 amount, address token, address sender)
# RecipientStatusUpdated
- event: RecipientStatusUpdated(address indexed recipientId, uint256 applicationId, uint8 status, address sender)
name: RecipientStatusUpdatedWithApplicationId
- event: RecipientStatusUpdated(address indexed recipientId, uint8 recipientStatus, address sender)
name: RecipientStatusUpdatedWithRecipientStatus
- event: RecipientStatusUpdated(uint256 indexed rowIndex, uint256 fullRow, address sender)
name: RecipientStatusUpdatedWithFullRow
# UpdatedRegistration
- event: UpdatedRegistration(address indexed recipientId, bytes data, address sender, uint8 status)
name: UpdatedRegistrationWithStatus
- event: UpdatedRegistration(address indexed recipientId, bytes data, address sender)
name: UpdatedRegistration
- event: UpdatedRegistration(address indexed recipientId, uint256 applicationId, bytes data, address sender, uint8 status)
name: UpdatedRegistrationWithApplicationId
# ########################## ALLO v2.1 ##########################
# # AllocationExtension
# - event: AllocationTimestampsUpdated(uint64 allocationStartTime, uint64 allocationEndTime, address sender)
# # AllocationAllowlistExtension
# - event: AllocatorsRemoved(address[] allocators, address sender)
# - event: AllocatorsAdded(address[] allocators, address sender)
# # MilestoneExtension
# - event: MaxBidIncreased(uint256 maxBid)
# - event: SetBid(address indexed bidderId, uint256 newBid)
# - event: MilestoneSubmitted(uint256 milestoneId)
# - event: MilestoneStatusChanged(uint256 indexed milestoneId, uint8 status)
# - event: MilestonesSet(uint256 milestonesLength)
# # RecipientsExtension
# - event: UpdatedRegistration(address indexed recipientId, bytes data, address sender, uint8 status)
# - event: RecipientStatusUpdated(uint256 indexed rowIndex, uint256 fullRow, address sender)
# - event: RegistrationTimestampsUpdated(uint64 registrationStartTime, uint64 registrationEndTime, address sender)
- name: GitcoinAttestationNetwork
handler: src/handlers/GitcoinAttestationNetwork.ts
events:
- event: OnAttested(bytes32 indexed uid, address indexed recipient, uint256 fee, bytes data, bytes32 refUID)
##########################
# NETWORKS #
##########################
networks:
#######################
# MAINNET #
#######################
# - id: 1 # mainnet
# start_block: 18486688
# rpc: ${ENVIO_MAINNET_FALLBACK_RPC:-https://eth.llamarpc.com}
# contracts:
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - name: Strategy
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - id: 10 # optimism
# rpc: ${ENVIO_OPTIMISM_FALLBACK_RPC:-https://optimism.llamarpc.com}
# start_block: 111678968
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - id: 42 # lukso-mainnet
# start_block: 2400000
# rpc: http://34.91.99.187:854
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0xB087535DB0df98fC4327136e897A5985E5Cfbd66
# - id: 100 # gnosis
# rpc: ${ENVIO_GNOSIS_FALLBACK_RPC:-https://gnosis-rpc.publicnode.com}
# start_block: 35900000
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - id: 137 # polygon
# rpc: ${ENVIO_POLYGON_FALLBACK_RPC:-https://polygon.llamarpc.com}
# start_block: 49466006
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - id: 250 # fantom
# rpc: ${ENVIO_FANTOM_FALLBACK_RPC:-https://rpc.ankr.com/fantom}
# start_block: 77624278
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - id: 324 # zksync-era-mainnet
# rpc: ${ENVIO_ZKSYNC_FALLBACK_RPC:-https://1rpc.io/zksync2-era}
# start_block: 31154341
# contracts:
# - name: Registry
# address:
# - 0xaa376Ef759c1f5A8b0B5a1e2FEC5C23f3bF30246
# - name: Strategy
# - name: Allo
# address:
# - 0x9D1D1BF2835935C291C0f5228c86d5C4e235A249
# - id: 1088 # metis
# rpc: ${ENVIO_METIS_FALLBACK_RPC:-https://metis-rpc.publicnode.com}
# start_block: 17860000
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - id: 8453 # base
# rpc: ${ENVIO_BASE_FALLBACK_RPC:-https://base-rpc.publicnode.com}
# start_block: 6083365
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - id: 42161 # arbitrum
# rpc: ${ENVIO_ARBITRUM_FALLBACK_RPC:-https://arbitrum.llamarpc.com}
# start_block: 146489425
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - name: AlloV1ToV2ProfileMigration
# address:
# - 0x1bFda15Ad5FC82E74Da81F0B8DcA486b3Ad14c71
# - name: GitcoinAttestationNetwork
# address:
# - 0x2ce7E4cB5Edb140A9327e67De85463186E757C8f
# - id: 43114 # avalanche
# rpc: ${ENVIO_AVALANCHE_FALLBACK_RPC:-https://avalanche.public-rpc.com}
# start_block: 34540051
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - id: 42220 # celo-mainnet
# rpc: ${ENVIO_CELO_FALLBACK_RPC:-https://1rpc.io/celo}
# start_block: 22257475
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - id: 534352 # scroll
# rpc: ${ENVIO_SCROLL_FALLBACK_RPC:-https://1rpc.io/scroll}
# start_block: 2683205
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# #######################
# # Custom RPC #
# #######################
# - id: 295 # hedera-mainnet
# rpc_config:
# url: ${ENVIO_HEDERA_RPC_URL:-https://mainnet.hashio.io/api}
# # initial_block_interval: 9000 # Number of blocks to request initially
# # backoff_multiplicative: 0 # Factor to reduce batch size on error
# # acceleration_additive: 0 # Increase batch size if no errors
# # interval_ceiling: 9000 # Maximum blocks per request
# # backoff_millis: 1000 # Wait time before retrying in milliseconds
# # query_timeout_millis: 20000 # Timeout for RPC requests in milliseconds
# start_block: 75239000
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - id: 1329 # sei-mainnet
# rpc_config:
# url: ${ENVIO_SEI_RPC_URL:-https://evm-rpc.sei-apis.com}
# # initial_block_interval: 2000 # Number of blocks to request initially
# # backoff_multiplicative: 0 # Factor to reduce batch size on error
# # acceleration_additive: 0 # Increase batch size if no errors
# interval_ceiling: 2000 # Maximum blocks per request
# # backoff_millis: 1000 # Wait time before retrying in milliseconds
# # query_timeout_millis: 20000 # Timeout for RPC requests in milliseconds
# start_block: 78000000
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
#######################
# TESTNET #
#######################
- id: 11155111 # sepolia
rpc: ${ENVIO_SEPOLIA_FALLBACK_RPC:-https://1rpc.io/sepolia}
start_block: 4617051
contracts:
- name: Registry
address:
- 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
- name: Strategy
- name: Allo
address:
- 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
- name: AlloV1ToV2ProfileMigration
address:
- 0xCd5AbD09ee34BA604795F7f69413caf20ee0Ab60
- name: GitcoinAttestationNetwork
address:
- 0xBAa70bbAB3C4a7265f879bb3658336DE893b8582
# - id: 80001 # polygon-mumbai
# start_block: 41939383
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - id: 300 # zksync-era-testnet
# rpc_config:
# url: https://sepolia.era.zksync.dev
# start_block: 1573385
# contracts:
# - name: Registry
# address:
# - 0xaa376Ef759c1f5A8b0B5a1e2FEC5C23f3bF30246
# - name: Allo
# address:
# - 0x9D1D1BF2835935C291C0f5228c86d5C4e235A249
# - id: 43113 # avalanche-fuji
# rpc_config:
# url: https://rpc.ankr.com/avalanche_fuji
# start_block: 25380385
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - id: 713715 # sei-devnet
# rpc_config:
# url: https://evm-rpc.arctic-1.seinetwork.io
# start_block: 14660337
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - id: 4201 # lukso-testnet
# rpc_config:
# url: https://rpc.testnet.lukso.network
# start_block: 2500000
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - id: 44787 # celo-testnet
# rpc_config:
# url: https://alfajores-forno.celo-testnet.org
# start_block: 23061115
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1