-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
33 lines (33 loc) · 980 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
name: hegicEhtOption
network: mainnet
source:
address: "0xEfC0eEAdC1132A12c9487d800112693bf49EcfA2"
abi: hegicEhtOption
startBlock: 13217765
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Create
- Exercise
- Expire
- OwnershipTransferred
abis:
- name: hegicEhtOption
file: ./abis/hegicEhtOption.json
eventHandlers:
- event: Create(indexed uint256,indexed address,uint256,uint256)
handler: handleCreate
- event: Exercise(indexed uint256,uint256)
handler: handleExercise
- event: Expire(indexed uint256,uint256)
handler: handleExpire
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
file: ./src/mapping.ts