-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
32 lines (32 loc) · 971 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: rinkeby
source:
address: "0x28D8ce7be90035cC70adD2B4933c0d538fF2a189"
abi: Contract
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Redeem
- Release
- LockToken
- ExtendLocking
abis:
- name: Contract
file: ./abis/Contract.json
eventHandlers:
- event: Redeem(indexed uint256,indexed address,uint256,uint256)
handler: handleRedeem
- event: Release(indexed uint256,indexed address,uint256)
handler: handleRelease
- event: LockToken(indexed address,indexed uint256,uint256,uint256)
handler: handleLockToken
- event: ExtendLocking(indexed address,indexed uint256,uint256)
handler: handleExtendLocking
file: ./src/mapping.ts