forked from SteffQing/721-Clone-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
233 lines (233 loc) · 8.21 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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: IERC721
network: mumbai
source:
abi: IERC721
startBlock: 37160697
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- transfer
- transaction
- account
abis:
- name: IERC721
file: ./node_modules/@openzeppelin/contracts/build/contracts/IERC721.json
- name: IERC721Metadata
file: ./node_modules/@openzeppelin/contracts/build/contracts/IERC721Metadata.json
- name: Contract721
file: ./abis/Contract721.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: ./src/eip721/index.ts
- kind: ethereum
name: Marketplace
network: mumbai
source:
address: "0xCbbDAdfdd3c19ce2183756D405F1Db2431C175c4"
abi: Marketplace
startBlock: 37160697
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- supportedCollection
- protocol
- saleInfo
abis:
- name: Marketplace
file: ./abis/Marketplace.json
- name: IERC721
file: ./node_modules/@openzeppelin/contracts/build/contracts/IERC721.json
- name: IERC721Metadata
file: ./node_modules/@openzeppelin/contracts/build/contracts/IERC721Metadata.json
- name: Contract721
file: ./abis/Contract721.json
eventHandlers:
- event: CollectionAdded(indexed address,address,uint256)
handler: handleCollectionAdded
- event: CollectionRemoved(indexed address)
handler: handleCollectionRemoval
- event: CollectionUpdated(indexed address,address,uint256)
handler: handleCollectionUpdate
- event: CollectionVerificationStatus(indexed address,uint8,string)
handler: handleCollectionVerification
- event: ItemDelisted(indexed address,uint256)
handler: handleItemDelisted
- event: ItemListed(indexed address,indexed address,uint256,uint256)
handler: handleItemListed
- event: ItemSold(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleItemSold
- event: ItemUpdated(indexed address,indexed address,uint256,uint256)
handler: handleItemUpdated
- event: RevenueWithdrawn(indexed address,uint256)
handler: handleRevenueWithdrawn
- event: TradeFeeUpdated(uint256)
handler: handleFeeUpdate
- event: ProtocolCreated(indexed address,string,uint8,uint8)
handler: handleProtocolCreation
- event: ProtocolRemoved(indexed address)
handler: handleProtocolRemoval
file: ./src/contracts/marketplace.ts
- kind: ethereum
name: Offers
network: mumbai
source:
address: "0x02847B9F9718803c9a057782E86037F5EdA359B7"
abi: Offers
startBlock: 37160697
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- collectionOffer
- collectionTokenOffer
abis:
- name: Offers
file: ./abis/Offers.json
- name: IERC721
file: ./node_modules/@openzeppelin/contracts/build/contracts/IERC721.json
- name: IERC721Metadata
file: ./node_modules/@openzeppelin/contracts/build/contracts/IERC721Metadata.json
- name: Contract721
file: ./abis/Contract721.json
eventHandlers:
- event: CollectionOfferAccepted(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleCollectionOfferAccepted
- event: CollectionOfferCreated(indexed address,indexed address,uint256,uint256,uint256)
handler: handleCollectionOfferCreated
- event: CollectionOfferDeleted(indexed address,indexed address,uint256)
handler: handleCollectionOfferDeleted
- event: TokenOfferAccepted(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleTokenOfferAccepted
- event: TokenOfferCancelled(indexed address,indexed address,uint256)
handler: handleTokenOfferCancelled
- event: TokenOfferCreated(indexed address,indexed address,uint256,uint256,uint256)
handler: handleTokenOfferCreated
- event: TokenOfferUpdated(indexed address,indexed address,uint256,uint256,uint256)
handler: handleTokenOfferUpdated
file: ./src/contracts/offers.ts
- kind: ethereum
name: Auction
network: mumbai
source:
address: "0x1D3001A0CdCb933bB5c04481773929c2c9Ffb4d1"
abi: Auction
startBlock: 37160697
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- auctionBid
abis:
- name: Auction
file: ./abis/Auction.json
eventHandlers:
- event: AuctionCancelled(indexed address,uint256)
handler: handleAuctionCancelled
- event: AuctionStarted(indexed address,indexed address,uint256,uint256,uint256)
handler: handleAuctionStarted
- event: BidAccepted(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleBidAccepted
- event: BidCreated(indexed address,indexed address,uint256,uint256)
handler: handleBidCreated
file: ./src/contracts/auction.ts
- kind: ethereum
name: TokenLocker
network: mumbai
source:
address: "0x7E2f9e264147883c397eB59e90Ad0947545387D9"
abi: TokenLocker
startBlock: 37160697
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- lockId
abis:
- name: TokenLocker
file: ./abis/TokenLocker.json
eventHandlers:
- event: Deposit(indexed bytes32,indexed address,indexed address,address,uint256[],uint256)
handler: handleDeposit
- event: Liquidate(bytes32,address)
handler: handleLiquidation
- event: Withdraw(indexed bytes32)
handler: handleWithdrawal
file: ./src/contracts/tokenlocker.ts
- kind: ethereum
name: P2PLending
network: mumbai
source:
address: "0x0214288D0B805e5eB1F67c4e2E5536f405198238"
abi: P2PLending
startBlock: 37160697
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- loanContract
- loanBid
abis:
- name: P2PLending
file: ./abis/P2PLending.json
eventHandlers:
- event: BidClosed(indexed bytes32,indexed address)
handler: handleCancelledBid
- event: BidOpened(indexed bytes32,indexed address,uint16)
handler: handleNewBid
- event: ContractActive(indexed bytes32,indexed address,uint16,uint256,uint256)
handler: handleContractActive
- event: ContractClosed(indexed bytes32)
handler: handleContractClosed
- event: ContractOpened(indexed bytes32,indexed address,indexed bytes32,uint256,uint16,uint256)
handler: handleContractOpened
- event: Liquidate(indexed bytes32)
handler: handleLiquidation
- event: LoanRepaid(indexed bytes32,uint256)
handler: handleLoansRepaid
- event: LostBid(indexed bytes32,indexed address,uint256)
handler: handleLostBid
- event: UpdateProtocolFees(uint16,uint16)
handler: handleProtocolFeeUpdate
file: ./src/contracts/p2plending.ts
templates:
- name: CollectionMetadata
kind: file/ipfs
mapping:
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/collectionmapping.ts
handler: handleMetadata
entities:
- CollectionMetadata
abis:
- name: Contract721
file: ./abis/Contract721.json
- name: TokenMetadata
kind: file/ipfs
mapping:
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/metamapping.ts
handler: handleMetadata
entities:
- TokenMetadata
- TokenAttribute
abis:
- name: Contract721
file: ./abis/Contract721.json
features:
- fullTextSearch