-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.yaml
33 lines (33 loc) · 975 Bytes
/
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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: poa-core
source:
address: "0xf7ECea96dA4951e88E699cfb67d909Ec74Ba917E"
abi: Contract
startBlock: 14345682
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Deposited
- Jackpot
- Rewarded
- Withdrawn
abis:
- name: Contract
file: ./abis/Contract.json
eventHandlers:
- event: Deposited(indexed address,uint256)
handler: handleDeposited
- event: Jackpot(indexed uint256,address,uint256)
handler: handleJackpot
- event: Rewarded(indexed uint256,address[3],uint256[3],uint256,address,uint256,uint256,address)
handler: handleRewarded
- event: Withdrawn(indexed address,uint256)
handler: handleWithdrawn
file: ./src/mapping.ts