-
Notifications
You must be signed in to change notification settings - Fork 4
/
subgraph.yaml
348 lines (348 loc) · 12.2 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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: MorphoBlue
network: mainnet
source:
abi: MorphoBlue
address: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb"
startBlock: 18883124
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- AccrueInterest
- Borrow
- CreateMarket
- EnableIrm
- EnableLltv
- FlashLoan
- IncrementNonce
- Liquidate
- Repay
- SetAuthorization
- SetFee
- SetFeeRecipient
- SetOwner
- Supply
- SupplyCollateral
- Withdraw
- WithdrawCollateral
abis:
- name: MorphoBlue
file: ./abis/MorphoBlue.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC4626
file: ./abis/ERC4626.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: IRM
file: ./abis/IRM.json
- name: Oracle
file: ./abis/Oracle.json
- name: ChainlinkPriceFeed
file: ./abis/chainlink/ChainlinkPriceFeed.json
- name: WstEth
file: ./abis/WstEth.json
- name: REth
file: ./abis/REth.json
eventHandlers:
- event: AccrueInterest(indexed bytes32,uint256,uint256,uint256)
handler: handleAccrueInterest
- event: Borrow(indexed bytes32,address,indexed address,indexed
address,uint256,uint256)
handler: handleBorrow
- event: CreateMarket(indexed bytes32,(address,address,address,address,uint256))
handler: handleCreateMarket
- event: EnableIrm(indexed address)
handler: handleEnableIrm
- event: EnableLltv(uint256)
handler: handleEnableLltv
- event: FlashLoan(indexed address,indexed address,uint256)
handler: handleFlashLoan
- event: IncrementNonce(indexed address,indexed address,uint256)
handler: handleIncrementNonce
- event: Liquidate(indexed bytes32,indexed address,indexed
address,uint256,uint256,uint256,uint256,uint256)
handler: handleLiquidate
- event: Repay(indexed bytes32,indexed address,indexed address,uint256,uint256)
handler: handleRepay
- event: SetAuthorization(indexed address,indexed address,indexed address,bool)
handler: handleSetAuthorization
- event: SetFee(indexed bytes32,uint256)
handler: handleSetFee
- event: SetFeeRecipient(indexed address)
handler: handleSetFeeRecipient
- event: SetOwner(indexed address)
handler: handleSetOwner
- event: Supply(indexed bytes32,indexed address,indexed address,uint256,uint256)
handler: handleSupply
- event: SupplyCollateral(indexed bytes32,indexed address,indexed address,uint256)
handler: handleSupplyCollateral
- event: Withdraw(indexed bytes32,address,indexed address,indexed
address,uint256,uint256)
handler: handleWithdraw
- event: WithdrawCollateral(indexed bytes32,address,indexed address,indexed
address,uint256)
handler: handleWithdrawCollateral
file: ./src/morpho-blue.ts
- kind: ethereum
name: MetaMorphoFactory
network: mainnet
source:
abi: MetaMorphoFactory
address: "0xa9c3d3a366466fa809d1ae982fb2c46e5fc41101"
startBlock: 18925584
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CreateMetaMorpho
abis:
- name: MetaMorphoFactory
file: ./abis/MetaMorphoFactory.json
- name: MorphoBlue
file: ./abis/MorphoBlue.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC4626
file: ./abis/ERC4626.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: IRM
file: ./abis/IRM.json
- name: Oracle
file: ./abis/Oracle.json
- name: ChainlinkPriceFeed
file: ./abis/chainlink/ChainlinkPriceFeed.json
- name: WstEth
file: ./abis/WstEth.json
- name: REth
file: ./abis/REth.json
eventHandlers:
- event: CreateMetaMorpho(indexed address,indexed address,address,uint256,indexed
address,string,string,bytes32)
handler: handleCreateMetaMorpho
file: ./src/meta-morpho-factory.ts
- kind: ethereum
name: PublicAllocator
network: mainnet
source:
abi: PublicAllocator
address: "0xfd32fA2ca22c76dD6E550706Ad913FC6CE91c75D"
startBlock: 19375099
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- PublicReallocateTo
- PublicWithdrawal
- SetAdmin
- SetFee
- SetFlowCaps
- TransferFee
abis:
- name: PublicAllocator
file: ./abis/PublicAllocator.json
eventHandlers:
- event: PublicReallocateTo(indexed address,indexed address,indexed
bytes32,uint256)
handler: handlePublicReallocateTo
- event: PublicWithdrawal(indexed address,indexed address,indexed bytes32,uint256)
handler: handlePublicWithdrawal
- event: SetAdmin(indexed address,indexed address,address)
handler: handleSetAdmin
- event: SetFee(indexed address,indexed address,uint256)
handler: handleSetFee
- event: SetFlowCaps(indexed address,indexed
address,(bytes32,(uint128,uint128))[])
handler: handleSetFlowCaps
- event: TransferFee(indexed address,indexed address,uint256,indexed address)
handler: handleTransferFee
file: ./src/public-allocator.ts
templates:
- kind: ethereum
name: MetaMorpho
network: mainnet
source:
abi: MetaMorpho
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- MetaMorphoAccrueInterest
- Approval
- Deposit
- EIP712DomainChanged
- OwnershipTransferStarted
- OwnershipTransferred
- ReallocateSupply
- ReallocateWithdraw
- RevokePendingCap
- RevokePendingGuardian
- RevokePendingMarketRemoval
- RevokePendingTimelock
- SetCap
- SetCurator
- MetaMorphoSetFee
- MetaMorphoSetFeeRecipient
- SetGuardian
- SetIsAllocator
- SetSkimRecipient
- SetSupplyQueue
- SetTimelock
- SetWithdrawQueue
- Skim
- SubmitCap
- SubmitGuardian
- SubmitMarketRemoval
- SubmitTimelock
- Transfer
- UpdateLastTotalAssets
- MetaMorphoWithdraw
abis:
- name: MetaMorpho
file: ./abis/MetaMorpho.json
- name: ChainlinkPriceFeed
file: ./abis/chainlink/ChainlinkPriceFeed.json
- name: WstEth
file: ./abis/WstEth.json
- name: ERC4626
file: ./abis/ERC4626.json
- name: REth
file: ./abis/REth.json
eventHandlers:
- event: AccrueInterest(uint256,uint256)
handler: handleAccrueInterest
- event: Approval(indexed address,indexed address,uint256)
handler: handleApproval
- event: Deposit(indexed address,indexed address,uint256,uint256)
handler: handleDeposit
- event: EIP712DomainChanged()
handler: handleEIP712DomainChanged
- event: OwnershipTransferStarted(indexed address,indexed address)
handler: handleOwnershipTransferStarted
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: ReallocateSupply(indexed address,indexed bytes32,uint256,uint256)
handler: handleReallocateSupply
- event: ReallocateWithdraw(indexed address,indexed bytes32,uint256,uint256)
handler: handleReallocateWithdraw
- event: RevokePendingCap(indexed address,indexed bytes32)
handler: handleRevokePendingCap
- event: RevokePendingGuardian(indexed address)
handler: handleRevokePendingGuardian
- event: RevokePendingMarketRemoval(indexed address,indexed bytes32)
handler: handleRevokePendingMarketRemoval
- event: RevokePendingTimelock(indexed address)
handler: handleRevokePendingTimelock
- event: SetCap(indexed address,indexed bytes32,uint256)
handler: handleSetCap
- event: SetCurator(indexed address)
handler: handleSetCurator
- event: SetFee(indexed address,uint256)
handler: handleSetFee
- event: SetFeeRecipient(indexed address)
handler: handleSetFeeRecipient
- event: SetGuardian(indexed address,indexed address)
handler: handleSetGuardian
- event: SetIsAllocator(indexed address,bool)
handler: handleSetIsAllocator
- event: SetSkimRecipient(indexed address)
handler: handleSetSkimRecipient
- event: SetSupplyQueue(indexed address,bytes32[])
handler: handleSetSupplyQueue
- event: SetTimelock(indexed address,uint256)
handler: handleSetTimelock
- event: SetWithdrawQueue(indexed address,bytes32[])
handler: handleSetWithdrawQueue
- event: Skim(indexed address,indexed address,uint256)
handler: handleSkim
- event: SubmitCap(indexed address,indexed bytes32,uint256)
handler: handleSubmitCap
- event: SubmitGuardian(indexed address)
handler: handleSubmitGuardian
- event: SubmitMarketRemoval(indexed address,indexed bytes32)
handler: handleSubmitMarketRemoval
- event: SubmitTimelock(uint256)
handler: handleSubmitTimelock
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: UpdateLastTotalAssets(uint256)
handler: handleUpdateLastTotalAssets
- event: Withdraw(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleWithdraw
file: ./src/meta-morpho.ts
- kind: ethereum
name: ChainlinkAggregatorProxy
network: mainnet
source:
abi: ChainlinkAggregatorProxy
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- ConfirmAggregator
abis:
- name: ChainlinkAggregatorProxy
file: ./abis/chainlink/ChainlinkAggregatorProxy.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC4626
file: ./abis/ERC4626.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: ChainlinkPriceFeed
file: ./abis/chainlink/ChainlinkPriceFeed.json
- name: WstEth
file: ./abis/WstEth.json
- name: REth
file: ./abis/REth.json
callHandlers:
- function: confirmAggregator(address)
handler: handleConfirmAggregator
file: ./src/chainlink.ts
- kind: ethereum
name: ChainlinkPriceFeed
network: mainnet
source:
abi: ChainlinkPriceFeed
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- AnswerUpdated
abis:
- name: ChainlinkAggregatorProxy
file: ./abis/chainlink/ChainlinkAggregatorProxy.json
- name: ChainlinkPriceFeed
file: ./abis/chainlink/ChainlinkPriceFeed.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC4626
file: ./abis/ERC4626.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: REth
file: ./abis/REth.json
eventHandlers:
- event: AnswerUpdated(indexed int256,indexed uint256,uint256)
handler: handleAnswerUpdated
file: ./src/chainlink.ts