-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
36 lines (36 loc) · 1.03 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
features:
- grafting
graft:
base: QmeWcqPd2QvWiLsNWRZsiYxwqqBRszTHfsSTXusWf2Z8bA # Subgraph ID of base subgraph
block: 64874170 # Block number
specVersion: 0.0.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: matic
source:
address: "0x86935F11C86623deC8a25696E1C19a8659CbF95d"
abi: Contract
startBlock: 39130899
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- ClaimAavegotchi
- EquipWearables
abis:
- name: Contract
file: ./abis/Contract.json
eventHandlers:
- event: EquipWearables(indexed uint256,uint16[16],uint16[16])
handler: handleEquipWearables
- event: ClaimAavegotchi(indexed uint256)
handler: handleClaimAavegotchi
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
blockHandlers:
- handler: handleBlock
file: ./src/mapping.ts