-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsubgraph.template.yaml
267 lines (267 loc) · 9.37 KB
/
subgraph.template.yaml
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
specVersion: 0.0.2
description: Aragon Court subgraph
repository: https://github.com/aragon/court-subgraph/
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: AragonCourt
network: {{network}}
source:
address: '{{court}}'
abi: AragonCourt
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- CourtConfig
- CourtModule
- ERC20
- SubscriptionModule
- SubscriptionPeriod
- JurorSubscriptionFee
abis:
- name: AragonCourt
file: ./node_modules/@aragon/court/abi/AragonCourt.json
- name: JurorsRegistry
file: ./node_modules/@aragon/court/abi/JurorsRegistry.json
- name: Subscriptions
file: ./abi/CourtSubscriptions.json
- name: ERC20
file: ./node_modules/@aragon/minime/abi/MiniMeToken.json
eventHandlers:
- event: Heartbeat(uint64,uint64)
handler: handleHeartbeat
- event: FundsGovernorChanged(address,address)
handler: handleFundsGovernorChanged
- event: ConfigGovernorChanged(address,address)
handler: handleConfigGovernorChanged
- event: ModulesGovernorChanged(address,address)
handler: handleModulesGovernorChanged
- event: ModuleSet(bytes32,address)
handler: handleModuleSet
file: ./src/AragonCourt.ts
templates:
- kind: ethereum/contract
name: DisputeManager
network: {{network}}
source:
abi: DisputeManager
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Arbitrable
- Dispute
- AdjudicationRound
- Juror
- JurorDispute
- JurorDraft
- ANJMovement
- FeeMovement
- Appeal
abis:
- name: Arbitrable
file: ./node_modules/@aragon/court/abi/IArbitrable.json
- name: Agreement
file: ./abi/IAgreement.json
- name: Controller
file: ./node_modules/@aragon/court/abi/Controller.json
- name: DisputeManager
file: ./node_modules/@aragon/court/abi/DisputeManager.json
eventHandlers:
- event: NewDispute(indexed uint256,indexed address,indexed uint64,uint64,bytes)
handler: handleNewDispute
- event: EvidencePeriodClosed(indexed uint256,indexed uint64)
handler: handleEvidencePeriodClosed
- event: JurorDrafted(indexed uint256,indexed uint256,indexed address)
handler: handleJurorDrafted
- event: DisputeStateChanged(indexed uint256,indexed uint8)
handler: handleDisputeStateChanged
- event: RulingAppealed(indexed uint256,indexed uint256,uint8)
handler: handleRulingAppealed
- event: RulingAppealConfirmed(indexed uint256,indexed uint256,indexed uint64,uint256)
handler: handleRulingAppealConfirmed
- event: PenaltiesSettled(indexed uint256,indexed uint256,uint256)
handler: handlePenaltiesSettled
- event: RewardSettled(indexed uint256,indexed uint256,address,uint256,uint256)
handler: handleRewardSettled
- event: AppealDepositSettled(indexed uint256,indexed uint256)
handler: handleAppealDepositSettled
- event: RulingComputed(indexed uint256,indexed uint8)
handler: handleRulingComputed
file: ./src/DisputeManager.ts
- kind: ethereum/contract
name: JurorsRegistry
network: {{network}}
source:
abi: JurorsRegistry
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Juror
- JurorDraft
- JurorDispute
- ANJMovement
- FeeMovement
- JurorsRegistryModule
abis:
- name: Controller
file: ./node_modules/@aragon/court/abi/Controller.json
- name: JurorsRegistry
file: ./node_modules/@aragon/court/abi/JurorsRegistry.json
eventHandlers:
- event: Staked(indexed address,uint256,uint256,bytes)
handler: handleStaked
- event: Unstaked(indexed address,uint256,uint256,bytes)
handler: handleUnstaked
- event: JurorActivated(indexed address,uint64,uint256,address)
handler: handleJurorActivated
- event: JurorBalanceLocked(indexed address,uint256)
handler: handleJurorBalanceLocked
- event: JurorBalanceUnlocked(indexed address,uint256)
handler: handleJurorBalanceUnlocked
- event: JurorDeactivationRequested(indexed address,uint64,uint256)
handler: handleJurorDeactivationRequested
- event: JurorDeactivationUpdated(indexed address,uint64,uint256,uint64)
handler: handleJurorDeactivationUpdated
- event: JurorDeactivationProcessed(indexed address,uint64,uint256,uint64)
handler: handleJurorDeactivationProcessed
- event: JurorTokensAssigned(indexed address,uint256)
handler: handleJurorTokensAssigned
- event: JurorTokensCollected(indexed address,uint256,uint64)
handler: handleJurorTokensCollected
- event: JurorSlashed(indexed address,uint256,uint64)
handler: handleJurorSlashed
file: ./src/JurorsRegistry.ts
- kind: ethereum/contract
name: Voting
network: {{network}}
source:
abi: Voting
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- JurorDraft
- Vote
abis:
- name: Voting
file: ./node_modules/@aragon/court/abi/CRVoting.json
- name: DisputeManager
file: ./node_modules/@aragon/court/abi/DisputeManager.json
- name: Controller
file: ./node_modules/@aragon/court/abi/Controller.json
eventHandlers:
- event: VoteCommitted(indexed uint256,indexed address,bytes32)
handler: handleVoteCommitted
- event: VoteLeaked(indexed uint256,indexed address,uint8,address)
handler: handleVoteLeaked
- event: VoteRevealed(indexed uint256,indexed address,uint8,address)
handler: handleVoteRevealed
file: ./src/Voting.ts
- kind: ethereum/contract
name: Treasury
network: {{network}}
source:
abi: Treasury
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- FeeMovement
- TreasuryBalance
abis:
- name: Treasury
file: ./node_modules/@aragon/court/abi/CourtTreasury.json
eventHandlers:
- event: Assign(indexed address,indexed address,indexed address,uint256)
handler: handleAssign
- event: Withdraw(indexed address,indexed address,indexed address,uint256)
handler: handleWithdraw
file: ./src/Treasury.ts
- kind: ethereum/contract
name: Subscriptions
network: {{network}}
source:
abi: Subscriptions
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- AppFee
- FeeMovement
- SubscriptionModule
- SubscriptionPeriod
- SubscriptionTokenBalance
- JurorSubscriptionFee
abis:
- name: Subscriptions
file: ./abi/CourtSubscriptions.json
eventHandlers:
# Court subscriptions v1.1.3 events
- event: FeesClaimed(indexed address,indexed uint256,uint256)
handler: handleJurorFeesClaimedWithoutToken
# Court subscriptions v1.2.0 events
- event: FeesClaimed(indexed address,indexed uint256,address,uint256)
handler: handleJurorFeesClaimedWithToken
- event: FeesDonated(indexed address,indexed uint256,address,uint256)
handler: handleFeesDonated
- event: FeeTokenChanged(address,address)
handler: handleFeeTokenChanged
- event: GovernorSharePctChanged(uint16,uint16)
handler: handleGovernorSharePctChanged
- event: AppFeeSet(indexed bytes32,address,uint256)
handler: handleAppFeeSet
- event: AppFeeUnset(indexed bytes32)
handler: handleAppFeeUnset
- event: AppFeePaid(indexed address,bytes32,bytes)
handler: handleAppFeePaid
file: ./src/Subscriptions.ts
- kind: ethereum/contract
name: ANJ
network: {{network}}
source:
abi: ANJ
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- ANJBalance
- ANJTransfer
abis:
- name: ANJ
file: ./node_modules/@aragon/minime/abi/MiniMeToken.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/ANJ.ts
- kind: ethereum/contract
name: Arbitrable
network: {{network}}
source:
abi: Arbitrable
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Arbitrable
abis:
- name: Arbitrable
file: ./abi/IArbitrable.json
eventHandlers:
- event: EvidenceSubmitted(indexed uint256,indexed address,bytes,bool)
handler: handleEvidenceSubmittedWithoutArbitrator
- event: EvidenceSubmitted(indexed address,indexed uint256,indexed address,bytes,bool)
handler: handleEvidenceSubmittedWithArbitrator
file: ./src/Arbitrable.ts