-
Notifications
You must be signed in to change notification settings - Fork 2
/
subgraph.yaml
36 lines (36 loc) · 1.11 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: NFTPass
network: rinkeby
source:
address: "0x48647b5E64f4ECb7F9E2BA11461Cc2fA4438d816"
abi: NFTPass
startBlock: 9520513
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Approval
- ApprovalForAll
- OwnershipTransferred
- ScoreFetched
- Transfer
abis:
- name: NFTPass
file: ./abis/NFTPass.json
eventHandlers:
- event: Approval(indexed address,indexed address,indexed uint256)
handler: handleApproval
- event: ApprovalForAll(indexed address,indexed address,bool)
handler: handleApprovalForAll
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: ScoreFetched(address,uint256)
handler: handleScoreFetched
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: ./src/mapping.ts