-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.template.yaml
32 lines (32 loc) · 1.01 KB
/
subgraph.template.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: {{network}}
source:
address: '{{address}}'
abi: TokenVesting
startBlock: {{startBlock}}
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