-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
88 lines (87 loc) · 2.35 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
# NFTs
- kind: ethereum
name: NFT
network: mumbai
source:
address: "0x2248978c998AE537d1d2f3326d9D9d2167FF5949"
abi: NFT
startBlock: 33239800
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- NFT
abis:
- name: NFT
file: ./abis/products/nft.json
eventHandlers:
- event: NFTMinted(indexed address,string,string,string,uint8)
handler: handleNFTMinted
file: ./src/nftMapping.ts
# Marketplace of NFTs
- kind: ethereum
name: Market
network: mumbai
source:
address: "0x6F7b15b2f0f298493d12244Fd0BCE27649B428D7"
abi: Market
startBlock: 33239811
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- NFTMarket
abis:
- name: Market
file: ./abis/products/market.json
eventHandlers:
- event: Item(address,address,address,string,string,string,uint256,uint256,uint256,uint8)
handler: handleItemCreated
file: ./src/marketMapping.ts
# Collection of NFTs
- kind: ethereum
name: CollectionNFT
network: mumbai
source:
address: "0xBf2e21684BADa7D98514a4EB8aA1ae9761c6Ec83"
abi: CollectionNFT
startBlock: 32829253
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- CollectionCreated
abis:
- name: CollectionNFT
file: ./abis/products/collectionNFT.json
eventHandlers:
- event: CollectionDeployed(string,string,address,string,uint256,uint256,uint256,address)
handler: handleCollectionCreated
file: ./src/collectionMapping.ts
# Template of Factory
templates:
- kind: ethereum/contract
name: EVMNFT
network: mumbai
source:
abi: EVMNFT
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/nftMinted.ts
entities:
- Item
abis:
- name: EVMNFT
file: ./abis/products/boxNFT.json
eventHandlers:
- event: NFTMinted(string,string,indexed address,string,uint256,uint256,uint256,uint256,uint256,bool)
handler: handleNFTCreated