-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.template.yaml
62 lines (61 loc) · 2.11 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
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
specVersion: 0.0.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: NiftyzoneMarketplace
network: "{{network}}"
source:
address: "{{NiftyzoneMarketplaceContractAddress}}"
startBlock: "{{NiftyzoneMarketplace_StartBlock}}"
abi: NiftyzoneMarketplace
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- MarketItemSale
- MarketItemDelisted
- MarketItem
- Offer
abis:
- name: NiftyzoneMarketplace
file: ./abis/NiftyzoneMarketplace.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC721
file: ./abis/ERC721.json
- name: ERC1155
file: ./abis/ERC1155.json
eventHandlers:
- event: MarketItemCreated(indexed uint256,indexed address,uint256,indexed address,address,uint256,uint256,uint256,uint256)
handler: handleMarketItemCreated
- event: MarketItemSale(indexed uint256,address,uint256,uint256,uint256,uint256,uint256,address,indexed address,indexed address)
handler: handleMarketItemSale
- event: MarketItemDelisted(indexed uint256,indexed address,uint256,uint256,uint256,indexed address)
handler: handleMarketItemDelisted
- event: NewOffer(indexed uint256,indexed address,address,uint256,uint256)
handler: handleMarketOffer
file: ./src/mappings/NiftyzoneMarketplace.ts
- kind: ethereum/contract
name: NiftyzoneMinter
network: "{{network}}"
source:
address: "{{NiftyzoneMinterContractAddress}}"
startBlock: "{{NiftyzoneMinter_StartBlock}}"
abi: NiftyzoneMinter
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Token
- UserToken
- Transfer
abis:
- name: NiftyzoneMinter
file: ./abis/NiftyzoneMinter.json
eventHandlers:
- event: tokenCreation(indexed uint256,uint256,uint256,uint256,address,address)
handler: handleTokenCreation
file: ./src/mappings/NiftyzoneMinter.ts