-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.template.yaml
36 lines (36 loc) · 1.13 KB
/
subgraph.template.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.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: "{{network}}"
source:
address: "{{address}}"
abi: Contract
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
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