-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
38 lines (38 loc) · 1.08 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
33
34
35
36
37
38
specVersion: 0.0.1
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: mumbai
source:
address: "0x53679ceD0ef3827884AfEfdae45f20fba1F078b6"
abi: Contract
mapping:
kind: ethereum/events
apiVersion: 0.0.2
language: wasm/assemblyscript
entities:
- Approval
- OwnershipTransferred
- Paused
- Snapshot
- Transfer
- Unpaused
abis:
- name: Contract
file: ./abis/Contract.json
eventHandlers:
- event: Approval(indexed address,indexed address,uint256)
handler: handleApproval
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: Paused(address)
handler: handlePaused
- event: Snapshot(uint256)
handler: handleSnapshot
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: Unpaused(address)
handler: handleUnpaused
file: ./src/mapping.ts