-
Notifications
You must be signed in to change notification settings - Fork 5
/
subgraph.yaml
106 lines (106 loc) · 3.35 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: FusePoolDirectory
network: mainnet
source:
address: "0x835482FE0532f169024d5E9410199369aAD5C77E"
abi: FusePoolDirectory
startBlock: 12060007
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
# - FusePoolDirectory
- Pool # Add `FusePool` entity to `./schema.graphql`
abis:
- name: FusePoolDirectory
file: ./abis/Fuse/FusePoolDirectory.json
- name: Comptroller
file: ./abis/Comptroller.json
- name: AccessControlledAggregator
file: ./abis/AccessControlledAggregator.json
- name: PriceOracle
file: ./abis/Oracles/PriceOracle.json
- name: EthBalance
file: ./abis/EthBalance.json
eventHandlers:
- event: PoolRegistered(uint256,(string,address,address,uint256,uint256))
handler: handlePoolRegistered
file: ./src/mappings/fusePoolDirectory.ts
templates:
- name: Comptroller
kind: ethereum/contract
network: mainnet
source:
abi: Comptroller
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/comptroller.ts
entities:
- Comptroller
abis:
- name: Comptroller
file: ./abis/Comptroller.json
- name: CToken
file: ./abis/CToken.json
- name: ERC20
file: ./abis/ERC20.json
- name: PriceOracle
file: ./abis/Oracles/PriceOracle.json
- name: AccessControlledAggregator
file: ./abis/AccessControlledAggregator.json
- name: EthBalance
file: ./abis/EthBalance.json
eventHandlers:
- event: MarketListed(address)
handler: handleMarketListed
- event: NewPriceOracle(address,address)
handler: handleNewPriceOracle
- name: CToken
kind: ethereum/contract
network: mainnet
source:
abi: CToken
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/cToken.ts
entities:
- User
- Market
- CTokenInfo
abis:
- name: CToken
file: ./abis/CToken.json
- name: PriceOracle
file: ./abis/Oracles/PriceOracle.json
- name: ERC20
file: ./abis/ERC20.json
- name: AccessControlledAggregator
file: ./abis/AccessControlledAggregator.json
- name: EthBalance
file: ./abis/EthBalance.json
eventHandlers:
- event: NewFuseFee(uint256,uint256)
handler: handleNewFuseFee
- event: NewAdminFee(uint256,uint256)
handler: handleNewAdminFee
- event: Borrow(address,uint256,uint256,uint256)
handler: handleBorrow
- event: RepayBorrow(address,address,uint256,uint256,uint256)
handler: handleBorrow
- event: NewComptroller(address,address)
handler: handleNewComptroller
- event: Mint(address,uint256,uint256)
handler: handleMint
- event: LiquidateBorrow(address,address,uint256,address,uint256)
handler: handleLiquidateBorrow
- event: AccrueInterest(uint256,uint256,uint256,uint256)
handler: handleAccrueInterest