forked from rainlanguage/rain1155
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.template.yaml
37 lines (37 loc) · 1.41 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
37
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Rain1155
network: {{ network }}
source:
address: "{{ rain1155 }}"
abi: Rain1155
startBlock: {{ rain1155Block }}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Implementation
- NewChild
abis:
- name: Rain1155
file: ./abis/Rain1155.json
eventHandlers:
- event: ClassCreated(string[])
handler: handleClassCreated
- event: Initialize(address)
handler: handleInitialize
- event: AssetCreated(uint256,(uint256,uint256,(uint256,uint256[],bytes[],uint256[],uint256[]),(uint256,uint256[],bytes[],uint256[],uint256[]),address[],address,string),(bytes[],uint256[],uint256,uint256),(bytes[],uint256[],uint256,uint256),string,string)
handler: handleAssetCreated
- event: Snapshot(address,address,(uint256,uint256[],bytes[],uint256[],uint256[]))
handler: handleSnapshot
- event: TransferBatch(indexed address,indexed address,indexed address,uint256[],uint256[])
handler: handleTransferBatch
- event: TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleTransferSingle
- event: URI(string,indexed uint256)
handler: handleURI
file: ./src/Rain1155.ts