-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
33 lines (33 loc) · 993 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.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Contract
network: bsc
source:
abi: Contract
address: "0xa8cF5C7Dc37d459D35Aa704215F80be704aa0336"
startBlock: 27540823
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- TokensHarvested
- TokensStaked
- TokensUnstaked
- TokensUnstakingTriggered
abis:
- name: Contract
file: ./abis/Contract.json
eventHandlers:
- event: TokensHarvested(indexed address,uint256,bool)
handler: handleTokensHarvested
- event: TokensStaked(indexed address,uint256)
handler: handleTokensStaked
- event: TokensUnstaked(indexed address,uint256)
handler: handleTokensUnstaked
- event: TokensUnstakingTriggered(indexed address)
handler: handleTokensUnstakingTriggered
file: ./src/contract.ts