-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
44 lines (44 loc) · 1.33 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
specVersion: 1.0.0
indexerHints:
prune: auto
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Contract
network: scroll
source:
address: "0x896419ed2e0dc848a1f7d2814f4e5df4b9b9bfcc"
abi: Contract
startBlock: 9056022
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- NewReport
- NewStakeAmount
- NewStaker
- ReporterSlashed
- StakeWithdrawRequested
- StakeWithdrawn
- ValueRemoved
abis:
- name: Contract
file: ./abis/Contract.json
eventHandlers:
- event: NewReport(indexed bytes32,indexed uint256,bytes,uint256,bytes,indexed address)
handler: handleNewReport
- event: NewStakeAmount(uint256)
handler: handleNewStakeAmount
- event: NewStaker(indexed address,indexed uint256)
handler: handleNewStaker
- event: ReporterSlashed(indexed address,address,uint256)
handler: handleReporterSlashed
- event: StakeWithdrawRequested(address,uint256)
handler: handleStakeWithdrawRequested
- event: StakeWithdrawn(address)
handler: handleStakeWithdrawn
- event: ValueRemoved(bytes32,uint256)
handler: handleValueRemoved
file: ./src/mapping.ts