-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
32 lines (32 loc) · 1.02 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: TokenVesting
network: bsc
source:
address: '0x056D114fF1e01dE3BCA30F0Efa3655DF42880e5B'
abi: TokenVesting
startBlock: 17076443
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- User
- VestingSchedule
- Claim
abis:
- name: TokenVesting
file: ./abis/TokenVesting.json
eventHandlers:
- event: AddVestingSchedule(bytes32,address,uint256,uint256,uint256,uint256,bool,uint256,uint256,bool,uint256)
handler: handleAddVestingSchedule
- event: ReleaseVestedToken(bytes32,address,uint256,uint256)
handler: handleReleaseVestedToken
- event: UpfrontTokenTransfer(bytes32,address,uint256)
handler: handleUpfrontTokenTransfer
- event: RevokeVestingShedule(bytes32)
handler: handleRevokeVestingSchedule
file: ./src/vesting-mapping.ts