-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsubgraph.yaml
29 lines (29 loc) · 826 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
specVersion: 0.0.2
description: Generic ERC721 Subgraph (Transfers, Metadata)
repository: https://github.com/schmidsi/generic-erc721-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Hashmasks # Change me
network: mainnet
source:
address: '0xC2C747E0F7004F9E8817Db2ca4997657a7746928' # Change me
abi: ERC721
startBlock: 11743743 # Change me
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Token
- Owner
- Contract
- Transfer
abis:
- name: ERC721
file: ./abis/ERC721.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: ./src/mapping.ts