This repository has been archived by the owner on Jan 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
48 lines (48 loc) · 1.65 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
specVersion: 1.0.0
indexerHints:
prune: auto
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Morpho
network: mainnet
source:
address: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb"
abi: Morpho
startBlock: 18883124
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- AccrueInterest
- Borrow
- CreateMarket
- Liquidate
- Repay
- SupplyCollateral
- WithdrawCollateral
abis:
- name: Morpho
file: ./abis/Morpho.json
- name: ERC20
file: ./abis/ERC20.json
- name: Oracle
file: ./abis/Oracle.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: 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: SupplyCollateral(indexed bytes32,indexed address,indexed address,uint256)
handler: handleSupplyCollateral
- event: WithdrawCollateral(indexed bytes32,address,indexed address,indexed address,uint256)
handler: handleWithdrawCollateral
file: ./src/morpho.ts