-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.template.yaml
227 lines (223 loc) · 8.21 KB
/
subgraph.template.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
specVersion: 0.0.5
schema:
file: schema.graphql
dataSources:
{{# Auditor }}
- kind: ethereum/contract
name: Auditor
network: {{ graphNetwork }}
source:
address: '{{ address }}'
startBlock: {{ startBlock }}
abi: Auditor
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- MarketListed
- MarketEntered
- MarketExited
- AdjustFactorSet
- LiquidationIncentiveSet
- PriceFeedSet
- MarketState
abis:
- name: Auditor
file: node_modules/@exactly/protocol/deployments/{{ network }}/Auditor.json
- name: ERC20
file: node_modules/@exactly/protocol/deployments/{{ network }}/WETH.json
- name: Market
file: node_modules/@exactly/protocol/deployments/{{ network }}/MarketWETH.json
- name: InterestRateModel
file: node_modules/@exactly/protocol/deployments/op-sepolia/InterestRateModelWETH.json
eventHandlers:
- event: MarketListed(indexed address,uint8)
handler: handleMarketListed
- event: MarketEntered(indexed address,indexed address)
handler: handleMarketEntered
- event: MarketExited(indexed address,indexed address)
handler: handleMarketExited
- event: AdjustFactorSet(indexed address,uint256)
handler: handleAdjustFactorSet
- event: LiquidationIncentiveSet((uint128,uint128))
handler: handleLiquidationIncentiveSet
- event: PriceFeedSet(indexed address,indexed address)
handler: handlePriceFeedSet
file: src/Auditor.ts
{{/ Auditor }}
{{# Market }}
- kind: ethereum/contract
name: {{ name }}
network: {{ graphNetwork }}
source:
address: '{{ address }}'
startBlock: {{ startBlock }}
abi: Market
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Deposit
- Withdraw
- Borrow
- Repay
- Transfer
- DepositAtMaturity
- WithdrawAtMaturity
- BorrowAtMaturity
- RepayAtMaturity
- Liquidate
- Seize
- EarningsAccumulatorSmoothFactorSet
- InterestRateModelSet
- TreasurySet
- MarketUpdate
- FixedEarningsUpdate
- AccumulatorAccrual
- FloatingDebtUpdate
- Account
- FixedPosition
- MaxFuturePoolsSet
- PenaltyRateSet
- ReserveFactorSet
- BackupFeeRateSet
- MarketState
abis:
- name: ERC20
file: node_modules/@exactly/protocol/deployments/op-sepolia/WETH.json
- name: Market
file: node_modules/@exactly/protocol/deployments/op-sepolia/MarketWETH.json
- name: InterestRateModel
file: node_modules/@exactly/protocol/deployments/op-sepolia/InterestRateModelWETH.json
eventHandlers:
- event: Deposit(indexed address,indexed address,uint256,uint256)
handler: handleDeposit
- event: Withdraw(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleWithdraw
- event: Borrow(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleBorrow
- event: Repay(indexed address,indexed address,uint256,uint256)
handler: handleRepay
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: DepositAtMaturity(indexed uint256,indexed address,indexed address,uint256,uint256)
handler: handleDepositAtMaturity
- event: WithdrawAtMaturity(indexed uint256,address,indexed address,indexed address,uint256,uint256)
handler: handleWithdrawAtMaturity
- event: BorrowAtMaturity(indexed uint256,address,indexed address,indexed address,uint256,uint256)
handler: handleBorrowAtMaturity
- event: RepayAtMaturity(indexed uint256,indexed address,indexed address,uint256,uint256)
handler: handleRepayAtMaturity
- event: Liquidate(indexed address,indexed address,uint256,uint256,indexed address,uint256)
handler: handleLiquidate
- event: Seize(indexed address,indexed address,uint256)
handler: handleSeize
- event: EarningsAccumulatorSmoothFactorSet(uint256)
handler: handleEarningsAccumulatorSmoothFactorSet
- event: InterestRateModelSet(indexed address)
handler: handleInterestRateModelSet
- event: TreasurySet(indexed address,uint256)
handler: handleTreasurySet
- event: MarketUpdate(uint256,uint256,uint256,uint256,uint256,uint256)
handler: handleMarketUpdate
- event: FixedEarningsUpdate(uint256,indexed uint256,uint256)
handler: handleFixedEarningsUpdate
- event: AccumulatorAccrual(uint256)
handler: handleAccumulatorAccrual
- event: FloatingDebtUpdate(uint256,uint256)
handler: handleFloatingDebtUpdate
- event: MaxFuturePoolsSet(uint256)
handler: handleMaxFuturePoolsSet
- event: PenaltyRateSet(uint256)
handler: handlePenaltyRateSet
- event: ReserveFactorSet(uint256)
handler: handleReserveFactorSet
- event: BackupFeeRateSet(uint256)
handler: handleBackupFeeRateSet
- event: RewardsControllerSet(indexed address)
handler: handleRewardsControllerSet
file: src/Market.ts
{{/ Market }}
{{# RewardsController }}
- kind: ethereum/contract
name: RewardsController
network: {{ graphNetwork }}
source:
address: '{{ address }}'
startBlock: {{ startBlock }}
abi: RewardsController
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Claim
- IndexUpdate
- DistributionSet
abis:
- name: RewardsController
file: node_modules/@exactly/protocol/deployments/{{ network }}/RewardsController.json
eventHandlers:
- event: Claim(indexed address,indexed address,indexed address,uint256)
handler: handleRewardsClaim
- event: IndexUpdate(indexed address,indexed address,uint256,uint256,uint256,uint256)
handler: handleIndexUpdate
- event: DistributionSet(indexed address,indexed address,(address,address,address,uint32,uint256,uint256,uint256,uint256,int128,uint64,uint64,uint64,uint64,uint64))
handler: handleDistributionSet
file: src/RewardsController.ts
{{/ RewardsController }}
{{# TimelockController }}
- kind: ethereum/contract
name: TimelockController
network: {{ graphNetwork }}
source:
address: '{{ address }}'
startBlock: {{ startBlock }}
abi: TimelockController
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CallScheduled
- CallExecuted
- Cancelled
- MinDelayChange
abis:
- name: TimelockController
file: node_modules/@exactly/protocol/deployments/{{ network }}/TimelockController.json
eventHandlers:
- event: CallScheduled(indexed bytes32,indexed uint256,address,uint256,bytes,bytes32,uint256)
handler: handleCallScheduled
- event: CallExecuted(indexed bytes32,indexed uint256,address,uint256,bytes)
handler: handleCallExecuted
- event: Cancelled(indexed bytes32)
handler: handleCancelled
- event: MinDelayChange(uint256,uint256)
handler: handleMinDelayChange
file: src/TimelockController.ts
{{/ TimelockController }}
{{# StakedEXA }}
- kind: ethereum/contract
name: StakedEXA
network: {{ graphNetwork }}
source:
address: '{{ address }}'
startBlock: {{ startBlock }}
abi: StakedEXA
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- RewardAmountNotified
abis:
- name: StakedEXA
file: node_modules/@exactly/protocol/deployments/{{ network }}/stEXA.json
eventHandlers:
- event: RewardAmountNotified(indexed address,indexed address,uint256)
handler: handleRewardAmountNotified
file: src/StakedEXA.ts
{{/ StakedEXA }}