-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
92 lines (92 loc) · 3.28 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Pool
network: mainnet
source:
address: "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2"
abi: Pool
startBlock: 16291127
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- BackUnbacked
- Borrow
- FlashLoan
- LiquidationCall
- MintUnbacked
- RebalanceStableBorrowRate
- Repay
- Supply
- SwapBorrowRateMode
- UserEModeSet
- Withdraw
abis:
- name: Pool
file: ./abis/Pool.json
eventHandlers:
- event: BackUnbacked(indexed address,indexed address,uint256,uint256)
handler: handleBackUnbacked
- event: Borrow(indexed address,address,indexed address,uint256,uint8,uint256,indexed
uint16)
handler: handleBorrow
- event: FlashLoan(indexed address,address,indexed address,uint256,uint8,uint256,indexed
uint16)
handler: handleFlashLoan
- event: LiquidationCall(indexed address,indexed address,indexed
address,uint256,uint256,address,bool)
handler: handleLiquidationCall
- event: MintUnbacked(indexed address,address,indexed address,uint256,indexed uint16)
handler: handleMintUnbacked
- event: RebalanceStableBorrowRate(indexed address,indexed address)
handler: handleRebalanceStableBorrowRate
- event: Repay(indexed address,indexed address,indexed address,uint256,bool)
handler: handleRepay
- event: Supply(indexed address,address,indexed address,uint256,indexed uint16)
handler: handleSupply
- event: SwapBorrowRateMode(indexed address,indexed address,uint8)
handler: handleSwapBorrowRateMode
- event: UserEModeSet(indexed address,uint8)
handler: handleUserEModeSet
- event: Withdraw(indexed address,indexed address,indexed address,uint256)
handler: handleWithdraw
file: ./src/pool.ts
- kind: ethereum
name: Reward
network: mainnet
source:
address: "0x8164Cc65827dcFe994AB23944CBC90e0aa80bFcb"
abi: Reward
startBlock: 16291136
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Reward
- Accrued
- AssetConfigUpdated
- ClaimerSet
- RewardOracleUpdated
- RewardsClaimed
- TransferStrategyInstalled
abis:
- name: Reward
file: ./abis/Reward.json
eventHandlers:
- event: Accrued(indexed address,indexed address,indexed address,uint256,uint256,uint256)
handler: handleAccrued
- event: AssetConfigUpdated(indexed address,indexed
address,uint256,uint256,uint256,uint256,uint256)
handler: handleAssetConfigUpdated
- event: ClaimerSet(indexed address,indexed address)
handler: handleClaimerSet
- event: RewardsClaimed(indexed address,indexed address,indexed address,address,uint256)
handler: handleRewardsClaimed
- event: TransferStrategyInstalled(indexed address,indexed address)
handler: handleTransferStrategyInstalled
file: ./src/Reward.ts