-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraphNFT.yaml
113 lines (111 loc) · 3.07 KB
/
subgraphNFT.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
specVersion: 0.0.2
description: Olympus DAO Subgraph
repository: https://github.com/OlympusDAO/olympus-subgraph
# for on-chain
schema:
file: ./schema.graphql
dataSources:
# - kind: ethereum/contract
# name: NFT
# network: mainnet
# source:
# address: '0xaf19C47b5Cd0ebe590f5A56cb1418E7A3CD6B3Af'
# abi: NFT
# startBlock: 18154933
# mapping:
# kind: ethereum/events
# apiVersion: 0.0.4
# language: wasm/assemblyscript
# entities:
# - NFT
# abis:
# - name: NFT
# file: ./abis/NFTHectagon.json
# eventHandlers:
# - event: Bond(indexed uint256,uint256,uint256)
# handler: handleDeposit
# file: ./src/BondDeposit.ts
# cancel listing
- kind: ethereum/contract
name: Cancel
network: mainnet
source:
address: '0x1ABCC462FE9A14a12e6599030233733d8ba57a63'
abi: Marketplace
startBlock: 18617928
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- cancel
abis:
- name: Marketplace
file: ./abis/MarketplaceHectagon.json
eventHandlers:
- event: CancelledListing(indexed address,indexed uint256)
handler: handleCancel
file: ./src/NFT.ts
# change price listing
- kind: ethereum/contract
name: ChangePrice
network: mainnet
source:
address: '0x1ABCC462FE9A14a12e6599030233733d8ba57a63'
abi: Marketplace
startBlock: 18617928
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- listing
abis:
- name: Marketplace
file: ./abis/MarketplaceHectagon.json
eventHandlers:
- event: ListingPriceChange(indexed address,indexed uint256,uint256,indexed address)
handler: handleChangePrice
file: ./src/NFT.ts
# listing listing
- kind: ethereum/contract
name: Listing
network: mainnet
source:
address: '0x1ABCC462FE9A14a12e6599030233733d8ba57a63'
abi: Marketplace
startBlock: 18617928
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- listing
abis:
- name: Marketplace
file: ./abis/MarketplaceHectagon.json
eventHandlers:
- event: NewListing(indexed address,indexed uint256,uint256,indexed address)
handler: handleListing
file: ./src/NFT.ts
# purchase listing
- kind: ethereum/contract
name: PurchasedListing
network: mainnet
source:
address: '0x1ABCC462FE9A14a12e6599030233733d8ba57a63'
abi: Marketplace
startBlock: 18617928
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- purchase
abis:
- name: Marketplace
file: ./abis/MarketplaceHectagon.json
eventHandlers:
- event: PurchasedListing(indexed address,address,indexed uint256,uint256,indexed address)
handler: handlePurchased
file: ./src/NFT.ts