-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
31 lines (31 loc) · 1020 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
30
31
specVersion: 0.0.2
description: eip1155
repository: https://github.com/amxx/subgraphs
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: IERC1155
network: chapel
source:
abi: IERC1155
startBlock: 5000000
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Token
abis:
- name: IERC1155
file: ./node_modules/@openzeppelin/contracts/build/contracts/IERC1155.json
eventHandlers:
- event: ApprovalForAll(indexed address,indexed address,bool)
handler: handleApprovalForAll
- 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/index.ts