forked from iExecBlockchainComputing/PoCo-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
210 lines (210 loc) · 7.56 KB
/
subgraph.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
specVersion: 0.0.2
description: iExecPoCoV3
repository: https://github.com/iExecBlockchainComputing/PoCo-subgraph
schema:
file: ./schema.graphql
dataSources:
# ================================= IexecHub ==================================
- name: IexecHub
kind: ethereum/contract
network: mainnet
source:
address: '0x1383c16c927c4A853684d1a9c676986f25E22111' # hub.iexec.eth
abi: IexecHub
startBlock: 7688000
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Category
- Task
- Contribution
- TaskInitialize
- TaskContribute
- TaskConsensus
- TaskReveal
- TaskReopen
- TaskFinalize
- TaskClaimed
- AccurateContribution
- FaultyContribution
abis:
- name: IexecHub
file: node_modules/iexec-poco-interface/build/contracts/IexecHub.json
eventHandlers:
- event: CreateCategory(uint256,string,string,uint256)
handler: handleCreateCategory
- event: TaskInitialize(indexed bytes32,indexed address)
handler: handleTaskInitialize
- event: TaskContribute(indexed bytes32,indexed address,bytes32)
handler: handleTaskContribute
- event: TaskConsensus(indexed bytes32,bytes32)
handler: handleTaskConsensus
- event: TaskReveal(indexed bytes32,indexed address,bytes32)
handler: handleTaskReveal
- event: TaskReopen(indexed bytes32)
handler: handleTaskReopen
- event: TaskFinalize(indexed bytes32,bytes)
handler: handleTaskFinalize
- event: TaskClaimed(indexed bytes32)
handler: handleTaskClaimed
- event: AccurateContribution(indexed address,indexed bytes32)
handler: handleAccurateContribution
- event: FaultyContribution(indexed address,indexed bytes32)
handler: handleFaultyContribution
file: ./src/IexecHub/index.ts
# ================================ IexecClerk =================================
- name: IexecClerk
kind: ethereum/contract
network: mainnet
source:
address: '0x3780d894DB2cB84135bBa025ba9ef0Ac518DC311' # clerk.iexec.eth
abi: IexecClerk
startBlock: 7688000
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Account
- AppOrder
- DatasetOrder
- WorkerpoolOrder
- RequesterOrder
- Deal
- SchedulerNotice
- Deposit
- Withdraw
- Reward
- Seize
- Lock
- Unlock
abis:
- name: IexecClerk
file: node_modules/iexec-poco-interface/build/contracts/IexecClerk.json
eventHandlers:
- event: OrdersMatched(bytes32,bytes32,bytes32,bytes32,bytes32,uint256)
handler: handleOrdersMatched
- event: SchedulerNotice(indexed address,bytes32)
handler: handleSchedulerNotice
# - event: ClosedAppOrder(bytes32)
# handler: handleClosedAppOrder
# - event: ClosedDatasetOrder(bytes32)
# handler: handleClosedDatasetOrder
# - event: ClosedWorkerpoolOrder(bytes32)
# handler: handleClosedWorkerpoolOrder
# - event: ClosedRequestOrder(bytes32)
# handler: handleClosedRequestOrder
# - event : BroadcastAppOrder((address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))
# handler: handleBroadcastAppOrder
# - event : BroadcastDatasetOrder((address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))
# handler: handleBroadcastDatasetOrder
# - event : BroadcastWorkerpoolOrder((address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes))
# handler: handleBroadcastWorkerpoolOrder
# - event : BroadcastRequestOrder((address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes))
# handler: handleBroadcastRequestOrder
- event: Deposit(address,uint256)
handler: handleDeposit
- event: DepositFor(address,uint256,address)
handler: handleDepositFor
- event: Withdraw(address,uint256)
handler: handleWithdraw
- event: Reward(address,uint256,bytes32)
handler: handleReward
- event: Seize(address,uint256,bytes32)
handler: handleSeize
- event: Lock(address,uint256)
handler: handleLock
- event: Unlock(address,uint256)
handler: handleUnlock
file: ./src/IexecClerk/index.ts
# =============================== App registry ================================
- name: AppRegistry
kind: ethereum/contract
network: mainnet
source:
address: '0x3322D449A43E01178672A5FBEA9E7aF3b8c7bB29' # apps.iexec.eth
abi: AppRegistry
startBlock: 7688000
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- App
abis:
- name: App
file: node_modules/iexec-poco-interface/build/contracts/App.json
- name: AppRegistry
file: node_modules/iexec-poco-interface/build/contracts/AppRegistry.json
eventHandlers:
- event: CreateApp(indexed address,address)
handler: handleCreateApp
file: ./src/registries/index.ts
# ============================= Dataset registry ==============================
- name: DatasetRegistry
kind: ethereum/contract
network: mainnet
source:
address: '0xC28F63b8379087F02E09da1BC62148874E730Ffd' # datasets.iexec.eth
abi: DatasetRegistry
startBlock: 7688000
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Dataset
abis:
- name: Dataset
file: node_modules/iexec-poco-interface/build/contracts/Dataset.json
- name: DatasetRegistry
file: node_modules/iexec-poco-interface/build/contracts/DatasetRegistry.json
eventHandlers:
- event: CreateDataset(indexed address,address)
handler: handleCreateDataset
file: ./src/registries/index.ts
# ============================ Workerpool registry ============================
- name: WorkerpoolRegistry
kind: ethereum/contract
network: mainnet
source:
address: '0xc398052563469e6Ea7C442aBf124aADE7ec2CC92' # workerpool.iexec.eth
abi: WorkerpoolRegistry
startBlock: 7688000
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Workerpool
abis:
- name: Workerpool
file: node_modules/iexec-poco-interface/build/contracts/Workerpool.json
- name: WorkerpoolRegistry
file: node_modules/iexec-poco-interface/build/contracts/WorkerpoolRegistry.json
eventHandlers:
- event: CreateWorkerpool(indexed address,indexed address,string)
handler: handleCreateWorkerpool
file: ./src/registries/index.ts
templates:
- name: Workerpool
kind: ethereum/contract
network: mainnet
source:
abi: Workerpool
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Workerpool
- PolicyChange
abis:
- name: Workerpool
file: node_modules/iexec-poco-interface/build/contracts/Workerpool.json
eventHandlers:
- event: PolicyUpdate(uint256,uint256,uint256,uint256)
handler: handlePolicyUpdate
file: ./src/registries/index.ts