-
Notifications
You must be signed in to change notification settings - Fork 1
/
.subgraph.yaml
55 lines (54 loc) · 1.77 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
specVersion: 0.0.2
description: Kittiefight NFT Marketplace
repository: https://github.com/kittiefight/nftymartket-subgraph
schema:
file: ./schema.graphql
dataSources:
# ---------------------------------------------------------
# ORDERS --------------------------------------------------
# ---------------------------------------------------------
- kind: ethereum/contract
name: Marketplace
network: {{network}}
source:
address: '{{address:Marketplace}}'
abi: Marketplace
startBlock: {{startBlock:Marketplace}}
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/handlers/marketplace.ts
entities:
- Order
- NFT
abis:
- name: Marketplace
file: ./abis/Marketplace.json
eventHandlers:
- event: OrderCreated(bytes32,indexed uint256,indexed address,address,uint256,uint256)
handler: handleOrderCreated
- event: OrderSuccessful(bytes32,indexed uint256,indexed address,address,uint256,indexed address)
handler: handleOrderSuccessful
- event: OrderCancelled(bytes32,indexed uint256,indexed address,address)
handler: handleOrderCancelled
- kind: ethereum/contract
name: LegacyNFT
network: {{network}}
source:
address: '{{address:LegacyNFT}}'
abi: LegacyNFT
startBlock: {{startBlock:LegacyNFT}}
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/handlers/nft.ts
entities:
- LegacyNFT
abis:
- name: LegacyNFT
file: ./abis/LegacyNFT.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer