@meterio/sumer-js 0.2.100 → 0.2.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/browser/sumer.min.js +10 -10
  2. package/dist/nodejs/abi.d.ts +146 -0
  3. package/dist/nodejs/abi.js +4137 -0
  4. package/dist/nodejs/abi.js.map +1 -1
  5. package/dist/nodejs/constants/beramain.js +1 -1
  6. package/dist/nodejs/constants/index.js +3 -1
  7. package/dist/nodejs/constants/index.js.map +1 -1
  8. package/dist/nodejs/errorABIs.js +1207 -0
  9. package/dist/nodejs/errorABIs.js.map +1 -1
  10. package/dist/nodejs/index.d.ts +146 -0
  11. package/dist/nodejs/typechain/contracts/Bera/CBeraVault.d.ts +974 -0
  12. package/dist/nodejs/typechain/contracts/Bera/CBeraVault.js +3 -0
  13. package/dist/nodejs/typechain/contracts/Bera/CBeraVault.js.map +1 -0
  14. package/dist/nodejs/typechain/contracts/Bera/IPOLErrors.d.ts +20 -0
  15. package/dist/nodejs/typechain/contracts/Bera/IPOLErrors.js +3 -0
  16. package/dist/nodejs/typechain/contracts/Bera/IPOLErrors.js.map +1 -0
  17. package/dist/nodejs/typechain/contracts/Bera/IRewardVault.d.ts +646 -0
  18. package/dist/nodejs/typechain/contracts/Bera/IRewardVault.js +3 -0
  19. package/dist/nodejs/typechain/contracts/Bera/IRewardVault.js.map +1 -0
  20. package/dist/nodejs/typechain/contracts/Bera/base/IStakingRewards.d.ts +161 -0
  21. package/dist/nodejs/typechain/contracts/Bera/base/IStakingRewards.js +3 -0
  22. package/dist/nodejs/typechain/contracts/Bera/base/IStakingRewards.js.map +1 -0
  23. package/dist/nodejs/typechain/contracts/Bera/base/IStakingRewardsErrors.d.ts +20 -0
  24. package/dist/nodejs/typechain/contracts/Bera/base/IStakingRewardsErrors.js +3 -0
  25. package/dist/nodejs/typechain/contracts/Bera/base/IStakingRewardsErrors.js.map +1 -0
  26. package/dist/nodejs/typechain/contracts/Bera/base/index.d.ts +2 -0
  27. package/dist/nodejs/typechain/contracts/Bera/base/index.js +3 -0
  28. package/dist/nodejs/typechain/contracts/Bera/base/index.js.map +1 -0
  29. package/dist/nodejs/typechain/contracts/Bera/index.d.ts +5 -0
  30. package/dist/nodejs/typechain/contracts/Bera/index.js +3 -0
  31. package/dist/nodejs/typechain/contracts/Bera/index.js.map +1 -0
  32. package/dist/nodejs/typechain/contracts/Interfaces/index.d.ts +1 -0
  33. package/dist/nodejs/typechain/contracts/Oracle/index.d.ts +12 -0
  34. package/dist/nodejs/typechain/contracts/index.d.ts +2 -0
  35. package/dist/nodejs/typechain/factories/contracts/Bera/CBeraVault__factory.d.ts +1700 -0
  36. package/dist/nodejs/typechain/factories/contracts/Bera/CBeraVault__factory.js +2200 -0
  37. package/dist/nodejs/typechain/factories/contracts/Bera/CBeraVault__factory.js.map +1 -0
  38. package/dist/nodejs/typechain/factories/contracts/Bera/IPOLErrors__factory.d.ts +259 -0
  39. package/dist/nodejs/typechain/factories/contracts/Bera/IPOLErrors__factory.js +335 -0
  40. package/dist/nodejs/typechain/factories/contracts/Bera/IPOLErrors__factory.js.map +1 -0
  41. package/dist/nodejs/typechain/factories/contracts/Bera/IRewardVault__factory.d.ts +1014 -0
  42. package/dist/nodejs/typechain/factories/contracts/Bera/IRewardVault__factory.js +1307 -0
  43. package/dist/nodejs/typechain/factories/contracts/Bera/IRewardVault__factory.js.map +1 -0
  44. package/dist/nodejs/typechain/factories/contracts/Bera/base/IStakingRewardsErrors__factory.d.ts +35 -0
  45. package/dist/nodejs/typechain/factories/contracts/Bera/base/IStakingRewardsErrors__factory.js +55 -0
  46. package/dist/nodejs/typechain/factories/contracts/Bera/base/IStakingRewardsErrors__factory.js.map +1 -0
  47. package/dist/nodejs/typechain/factories/contracts/Bera/base/IStakingRewards__factory.d.ts +261 -0
  48. package/dist/nodejs/typechain/factories/contracts/Bera/base/IStakingRewards__factory.js +350 -0
  49. package/dist/nodejs/typechain/factories/contracts/Bera/base/IStakingRewards__factory.js.map +1 -0
  50. package/dist/nodejs/typechain/factories/contracts/Bera/base/index.d.ts +2 -0
  51. package/dist/nodejs/typechain/factories/contracts/Bera/base/index.js +11 -0
  52. package/dist/nodejs/typechain/factories/contracts/Bera/base/index.js.map +1 -0
  53. package/dist/nodejs/typechain/factories/contracts/Bera/index.d.ts +4 -0
  54. package/dist/nodejs/typechain/factories/contracts/Bera/index.js +37 -0
  55. package/dist/nodejs/typechain/factories/contracts/Bera/index.js.map +1 -0
  56. package/dist/nodejs/typechain/factories/contracts/Interfaces/index.d.ts +1 -0
  57. package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js +3 -1
  58. package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js.map +1 -1
  59. package/dist/nodejs/typechain/factories/contracts/Oracle/index.d.ts +6 -0
  60. package/dist/nodejs/typechain/factories/contracts/Oracle/index.js +7 -1
  61. package/dist/nodejs/typechain/factories/contracts/Oracle/index.js.map +1 -1
  62. package/dist/nodejs/typechain/factories/contracts/index.d.ts +1 -0
  63. package/dist/nodejs/typechain/factories/contracts/index.js +2 -1
  64. package/dist/nodejs/typechain/factories/contracts/index.js.map +1 -1
  65. package/dist/nodejs/typechain/hardhat.d.ts +342 -0
  66. package/dist/nodejs/typechain/index.d.ts +36 -0
  67. package/dist/nodejs/typechain/index.js +39 -3
  68. package/dist/nodejs/typechain/index.js.map +1 -1
  69. package/package.json +1 -1
@@ -0,0 +1,974 @@
1
+ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
3
+ export declare namespace CTokenStorage {
4
+ type BorrowSnapshotStruct = {
5
+ principal: BigNumberish;
6
+ interestIndex: BigNumberish;
7
+ };
8
+ type BorrowSnapshotStructOutput = [
9
+ principal: bigint,
10
+ interestIndex: bigint
11
+ ] & {
12
+ principal: bigint;
13
+ interestIndex: bigint;
14
+ };
15
+ }
16
+ export interface CBeraVaultInterface extends Interface {
17
+ getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getBorrowSnapshot" | "getCash" | "initAccrualBlockTimestamp" | "initialize" | "initializeVersion2" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "isDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "rewardVault" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
18
+ getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
19
+ encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
20
+ encodeFunctionData(functionFragment: "_addReserves", values: [BigNumberish]): string;
21
+ encodeFunctionData(functionFragment: "_reduceReserves", values: [BigNumberish]): string;
22
+ encodeFunctionData(functionFragment: "_setComptroller", values: [AddressLike]): string;
23
+ encodeFunctionData(functionFragment: "_setDiscountRate", values: [BigNumberish]): string;
24
+ encodeFunctionData(functionFragment: "_setInterestRateModel", values: [AddressLike]): string;
25
+ encodeFunctionData(functionFragment: "_setPendingAdmin", values: [AddressLike]): string;
26
+ encodeFunctionData(functionFragment: "_setReserveFactor", values: [BigNumberish]): string;
27
+ encodeFunctionData(functionFragment: "_syncUnderlyingBalance", values?: undefined): string;
28
+ encodeFunctionData(functionFragment: "accrualBlockTimestamp", values?: undefined): string;
29
+ encodeFunctionData(functionFragment: "accrueInterest", values?: undefined): string;
30
+ encodeFunctionData(functionFragment: "admin", values?: undefined): string;
31
+ encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string;
32
+ encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
33
+ encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
34
+ encodeFunctionData(functionFragment: "balanceOfUnderlying", values: [AddressLike]): string;
35
+ encodeFunctionData(functionFragment: "borrow", values: [BigNumberish]): string;
36
+ encodeFunctionData(functionFragment: "borrowAndDepositBack", values: [AddressLike, BigNumberish]): string;
37
+ encodeFunctionData(functionFragment: "borrowBalanceCurrent", values: [AddressLike]): string;
38
+ encodeFunctionData(functionFragment: "borrowBalanceStored", values: [AddressLike]): string;
39
+ encodeFunctionData(functionFragment: "borrowIndex", values?: undefined): string;
40
+ encodeFunctionData(functionFragment: "borrowRatePerBlock", values?: undefined): string;
41
+ encodeFunctionData(functionFragment: "comptroller", values?: undefined): string;
42
+ encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
43
+ encodeFunctionData(functionFragment: "discountRateMantissa", values?: undefined): string;
44
+ encodeFunctionData(functionFragment: "exchangeRateCurrent", values?: undefined): string;
45
+ encodeFunctionData(functionFragment: "exchangeRateStored", values?: undefined): string;
46
+ encodeFunctionData(functionFragment: "getAccountSnapshot", values: [AddressLike]): string;
47
+ encodeFunctionData(functionFragment: "getBorrowSnapshot", values: [AddressLike]): string;
48
+ encodeFunctionData(functionFragment: "getCash", values?: undefined): string;
49
+ encodeFunctionData(functionFragment: "initAccrualBlockTimestamp", values: [AddressLike]): string;
50
+ encodeFunctionData(functionFragment: "initialize", values: [
51
+ AddressLike,
52
+ AddressLike,
53
+ AddressLike,
54
+ BigNumberish,
55
+ string,
56
+ string,
57
+ BigNumberish,
58
+ AddressLike,
59
+ AddressLike
60
+ ]): string;
61
+ encodeFunctionData(functionFragment: "initializeVersion2", values?: undefined): string;
62
+ encodeFunctionData(functionFragment: "interestRateModel", values?: undefined): string;
63
+ encodeFunctionData(functionFragment: "isCEther", values?: undefined): string;
64
+ encodeFunctionData(functionFragment: "isCEtherDeprecated", values?: undefined): string;
65
+ encodeFunctionData(functionFragment: "isCToken", values?: undefined): string;
66
+ encodeFunctionData(functionFragment: "isCTokenDeprecated", values?: undefined): string;
67
+ encodeFunctionData(functionFragment: "isDeprecated", values?: undefined): string;
68
+ encodeFunctionData(functionFragment: "liquidateBorrow", values: [AddressLike, BigNumberish, AddressLike]): string;
69
+ encodeFunctionData(functionFragment: "liquidateCalculateSeizeTokens", values: [AddressLike, BigNumberish]): string;
70
+ encodeFunctionData(functionFragment: "mint", values: [BigNumberish]): string;
71
+ encodeFunctionData(functionFragment: "mintWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
72
+ encodeFunctionData(functionFragment: "name", values?: undefined): string;
73
+ encodeFunctionData(functionFragment: "pendingAdmin", values?: undefined): string;
74
+ encodeFunctionData(functionFragment: "percentScale", values?: undefined): string;
75
+ encodeFunctionData(functionFragment: "protocolSeizeShareMantissa", values?: undefined): string;
76
+ encodeFunctionData(functionFragment: "redeem", values: [BigNumberish]): string;
77
+ encodeFunctionData(functionFragment: "redeemUnderlying", values: [BigNumberish]): string;
78
+ encodeFunctionData(functionFragment: "repayBorrow", values: [BigNumberish]): string;
79
+ encodeFunctionData(functionFragment: "repayBorrowBehalf", values: [AddressLike, BigNumberish]): string;
80
+ encodeFunctionData(functionFragment: "repayBorrowWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
81
+ encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
82
+ encodeFunctionData(functionFragment: "rewardVault", values?: undefined): string;
83
+ encodeFunctionData(functionFragment: "seize", values: [
84
+ AddressLike,
85
+ AddressLike,
86
+ BigNumberish,
87
+ BigNumberish,
88
+ boolean,
89
+ BigNumberish
90
+ ]): string;
91
+ encodeFunctionData(functionFragment: "supplyRatePerBlock", values?: undefined): string;
92
+ encodeFunctionData(functionFragment: "sweepToken", values: [AddressLike]): string;
93
+ encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
94
+ encodeFunctionData(functionFragment: "totalBorrows", values?: undefined): string;
95
+ encodeFunctionData(functionFragment: "totalBorrowsCurrent", values?: undefined): string;
96
+ encodeFunctionData(functionFragment: "totalReserves", values?: undefined): string;
97
+ encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
98
+ encodeFunctionData(functionFragment: "transfer", values: [AddressLike, BigNumberish]): string;
99
+ encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
100
+ encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
101
+ encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
102
+ decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
103
+ decodeFunctionResult(functionFragment: "_addReserves", data: BytesLike): Result;
104
+ decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
105
+ decodeFunctionResult(functionFragment: "_setComptroller", data: BytesLike): Result;
106
+ decodeFunctionResult(functionFragment: "_setDiscountRate", data: BytesLike): Result;
107
+ decodeFunctionResult(functionFragment: "_setInterestRateModel", data: BytesLike): Result;
108
+ decodeFunctionResult(functionFragment: "_setPendingAdmin", data: BytesLike): Result;
109
+ decodeFunctionResult(functionFragment: "_setReserveFactor", data: BytesLike): Result;
110
+ decodeFunctionResult(functionFragment: "_syncUnderlyingBalance", data: BytesLike): Result;
111
+ decodeFunctionResult(functionFragment: "accrualBlockTimestamp", data: BytesLike): Result;
112
+ decodeFunctionResult(functionFragment: "accrueInterest", data: BytesLike): Result;
113
+ decodeFunctionResult(functionFragment: "admin", data: BytesLike): Result;
114
+ decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
115
+ decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
116
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
117
+ decodeFunctionResult(functionFragment: "balanceOfUnderlying", data: BytesLike): Result;
118
+ decodeFunctionResult(functionFragment: "borrow", data: BytesLike): Result;
119
+ decodeFunctionResult(functionFragment: "borrowAndDepositBack", data: BytesLike): Result;
120
+ decodeFunctionResult(functionFragment: "borrowBalanceCurrent", data: BytesLike): Result;
121
+ decodeFunctionResult(functionFragment: "borrowBalanceStored", data: BytesLike): Result;
122
+ decodeFunctionResult(functionFragment: "borrowIndex", data: BytesLike): Result;
123
+ decodeFunctionResult(functionFragment: "borrowRatePerBlock", data: BytesLike): Result;
124
+ decodeFunctionResult(functionFragment: "comptroller", data: BytesLike): Result;
125
+ decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
126
+ decodeFunctionResult(functionFragment: "discountRateMantissa", data: BytesLike): Result;
127
+ decodeFunctionResult(functionFragment: "exchangeRateCurrent", data: BytesLike): Result;
128
+ decodeFunctionResult(functionFragment: "exchangeRateStored", data: BytesLike): Result;
129
+ decodeFunctionResult(functionFragment: "getAccountSnapshot", data: BytesLike): Result;
130
+ decodeFunctionResult(functionFragment: "getBorrowSnapshot", data: BytesLike): Result;
131
+ decodeFunctionResult(functionFragment: "getCash", data: BytesLike): Result;
132
+ decodeFunctionResult(functionFragment: "initAccrualBlockTimestamp", data: BytesLike): Result;
133
+ decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
134
+ decodeFunctionResult(functionFragment: "initializeVersion2", data: BytesLike): Result;
135
+ decodeFunctionResult(functionFragment: "interestRateModel", data: BytesLike): Result;
136
+ decodeFunctionResult(functionFragment: "isCEther", data: BytesLike): Result;
137
+ decodeFunctionResult(functionFragment: "isCEtherDeprecated", data: BytesLike): Result;
138
+ decodeFunctionResult(functionFragment: "isCToken", data: BytesLike): Result;
139
+ decodeFunctionResult(functionFragment: "isCTokenDeprecated", data: BytesLike): Result;
140
+ decodeFunctionResult(functionFragment: "isDeprecated", data: BytesLike): Result;
141
+ decodeFunctionResult(functionFragment: "liquidateBorrow", data: BytesLike): Result;
142
+ decodeFunctionResult(functionFragment: "liquidateCalculateSeizeTokens", data: BytesLike): Result;
143
+ decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
144
+ decodeFunctionResult(functionFragment: "mintWithPermit", data: BytesLike): Result;
145
+ decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
146
+ decodeFunctionResult(functionFragment: "pendingAdmin", data: BytesLike): Result;
147
+ decodeFunctionResult(functionFragment: "percentScale", data: BytesLike): Result;
148
+ decodeFunctionResult(functionFragment: "protocolSeizeShareMantissa", data: BytesLike): Result;
149
+ decodeFunctionResult(functionFragment: "redeem", data: BytesLike): Result;
150
+ decodeFunctionResult(functionFragment: "redeemUnderlying", data: BytesLike): Result;
151
+ decodeFunctionResult(functionFragment: "repayBorrow", data: BytesLike): Result;
152
+ decodeFunctionResult(functionFragment: "repayBorrowBehalf", data: BytesLike): Result;
153
+ decodeFunctionResult(functionFragment: "repayBorrowWithPermit", data: BytesLike): Result;
154
+ decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
155
+ decodeFunctionResult(functionFragment: "rewardVault", data: BytesLike): Result;
156
+ decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
157
+ decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
158
+ decodeFunctionResult(functionFragment: "sweepToken", data: BytesLike): Result;
159
+ decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
160
+ decodeFunctionResult(functionFragment: "totalBorrows", data: BytesLike): Result;
161
+ decodeFunctionResult(functionFragment: "totalBorrowsCurrent", data: BytesLike): Result;
162
+ decodeFunctionResult(functionFragment: "totalReserves", data: BytesLike): Result;
163
+ decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
164
+ decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
165
+ decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
166
+ decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
167
+ decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
168
+ }
169
+ export declare namespace AccrueInterestEvent {
170
+ type InputTuple = [
171
+ cashPrior: BigNumberish,
172
+ interestAccumulated: BigNumberish,
173
+ borrowIndex: BigNumberish,
174
+ totalBorrows: BigNumberish
175
+ ];
176
+ type OutputTuple = [
177
+ cashPrior: bigint,
178
+ interestAccumulated: bigint,
179
+ borrowIndex: bigint,
180
+ totalBorrows: bigint
181
+ ];
182
+ interface OutputObject {
183
+ cashPrior: bigint;
184
+ interestAccumulated: bigint;
185
+ borrowIndex: bigint;
186
+ totalBorrows: bigint;
187
+ }
188
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
189
+ type Filter = TypedDeferredTopicFilter<Event>;
190
+ type Log = TypedEventLog<Event>;
191
+ type LogDescription = TypedLogDescription<Event>;
192
+ }
193
+ export declare namespace ApprovalEvent {
194
+ type InputTuple = [
195
+ owner: AddressLike,
196
+ spender: AddressLike,
197
+ amount: BigNumberish
198
+ ];
199
+ type OutputTuple = [owner: string, spender: string, amount: bigint];
200
+ interface OutputObject {
201
+ owner: string;
202
+ spender: string;
203
+ amount: bigint;
204
+ }
205
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
206
+ type Filter = TypedDeferredTopicFilter<Event>;
207
+ type Log = TypedEventLog<Event>;
208
+ type LogDescription = TypedLogDescription<Event>;
209
+ }
210
+ export declare namespace BorrowEvent {
211
+ type InputTuple = [
212
+ borrower: AddressLike,
213
+ borrowAmount: BigNumberish,
214
+ accountBorrows: BigNumberish,
215
+ totalBorrows: BigNumberish
216
+ ];
217
+ type OutputTuple = [
218
+ borrower: string,
219
+ borrowAmount: bigint,
220
+ accountBorrows: bigint,
221
+ totalBorrows: bigint
222
+ ];
223
+ interface OutputObject {
224
+ borrower: string;
225
+ borrowAmount: bigint;
226
+ accountBorrows: bigint;
227
+ totalBorrows: bigint;
228
+ }
229
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
230
+ type Filter = TypedDeferredTopicFilter<Event>;
231
+ type Log = TypedEventLog<Event>;
232
+ type LogDescription = TypedLogDescription<Event>;
233
+ }
234
+ export declare namespace InitializedEvent {
235
+ type InputTuple = [version: BigNumberish];
236
+ type OutputTuple = [version: bigint];
237
+ interface OutputObject {
238
+ version: bigint;
239
+ }
240
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
241
+ type Filter = TypedDeferredTopicFilter<Event>;
242
+ type Log = TypedEventLog<Event>;
243
+ type LogDescription = TypedLogDescription<Event>;
244
+ }
245
+ export declare namespace LiquidateBorrowEvent {
246
+ type InputTuple = [
247
+ liquidator: AddressLike,
248
+ borrower: AddressLike,
249
+ repayAmount: BigNumberish,
250
+ cTokenCollateral: AddressLike,
251
+ seizeTokens: BigNumberish
252
+ ];
253
+ type OutputTuple = [
254
+ liquidator: string,
255
+ borrower: string,
256
+ repayAmount: bigint,
257
+ cTokenCollateral: string,
258
+ seizeTokens: bigint
259
+ ];
260
+ interface OutputObject {
261
+ liquidator: string;
262
+ borrower: string;
263
+ repayAmount: bigint;
264
+ cTokenCollateral: string;
265
+ seizeTokens: bigint;
266
+ }
267
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
268
+ type Filter = TypedDeferredTopicFilter<Event>;
269
+ type Log = TypedEventLog<Event>;
270
+ type LogDescription = TypedLogDescription<Event>;
271
+ }
272
+ export declare namespace MintEvent {
273
+ type InputTuple = [
274
+ minter: AddressLike,
275
+ mintAmount: BigNumberish,
276
+ mintTokens: BigNumberish
277
+ ];
278
+ type OutputTuple = [
279
+ minter: string,
280
+ mintAmount: bigint,
281
+ mintTokens: bigint
282
+ ];
283
+ interface OutputObject {
284
+ minter: string;
285
+ mintAmount: bigint;
286
+ mintTokens: bigint;
287
+ }
288
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
289
+ type Filter = TypedDeferredTopicFilter<Event>;
290
+ type Log = TypedEventLog<Event>;
291
+ type LogDescription = TypedLogDescription<Event>;
292
+ }
293
+ export declare namespace NewAdminEvent {
294
+ type InputTuple = [oldAdmin: AddressLike, newAdmin: AddressLike];
295
+ type OutputTuple = [oldAdmin: string, newAdmin: string];
296
+ interface OutputObject {
297
+ oldAdmin: string;
298
+ newAdmin: string;
299
+ }
300
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
301
+ type Filter = TypedDeferredTopicFilter<Event>;
302
+ type Log = TypedEventLog<Event>;
303
+ type LogDescription = TypedLogDescription<Event>;
304
+ }
305
+ export declare namespace NewComptrollerEvent {
306
+ type InputTuple = [
307
+ oldComptroller: AddressLike,
308
+ newComptroller: AddressLike
309
+ ];
310
+ type OutputTuple = [oldComptroller: string, newComptroller: string];
311
+ interface OutputObject {
312
+ oldComptroller: string;
313
+ newComptroller: string;
314
+ }
315
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
316
+ type Filter = TypedDeferredTopicFilter<Event>;
317
+ type Log = TypedEventLog<Event>;
318
+ type LogDescription = TypedLogDescription<Event>;
319
+ }
320
+ export declare namespace NewDiscountRateEvent {
321
+ type InputTuple = [
322
+ oldDiscountRateMantissa: BigNumberish,
323
+ newDiscountRateMantissa: BigNumberish
324
+ ];
325
+ type OutputTuple = [
326
+ oldDiscountRateMantissa: bigint,
327
+ newDiscountRateMantissa: bigint
328
+ ];
329
+ interface OutputObject {
330
+ oldDiscountRateMantissa: bigint;
331
+ newDiscountRateMantissa: bigint;
332
+ }
333
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
334
+ type Filter = TypedDeferredTopicFilter<Event>;
335
+ type Log = TypedEventLog<Event>;
336
+ type LogDescription = TypedLogDescription<Event>;
337
+ }
338
+ export declare namespace NewMarketInterestRateModelEvent {
339
+ type InputTuple = [
340
+ oldInterestRateModel: AddressLike,
341
+ newInterestRateModel: AddressLike
342
+ ];
343
+ type OutputTuple = [
344
+ oldInterestRateModel: string,
345
+ newInterestRateModel: string
346
+ ];
347
+ interface OutputObject {
348
+ oldInterestRateModel: string;
349
+ newInterestRateModel: string;
350
+ }
351
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
352
+ type Filter = TypedDeferredTopicFilter<Event>;
353
+ type Log = TypedEventLog<Event>;
354
+ type LogDescription = TypedLogDescription<Event>;
355
+ }
356
+ export declare namespace NewPendingAdminEvent {
357
+ type InputTuple = [
358
+ oldPendingAdmin: AddressLike,
359
+ newPendingAdmin: AddressLike
360
+ ];
361
+ type OutputTuple = [oldPendingAdmin: string, newPendingAdmin: string];
362
+ interface OutputObject {
363
+ oldPendingAdmin: string;
364
+ newPendingAdmin: string;
365
+ }
366
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
367
+ type Filter = TypedDeferredTopicFilter<Event>;
368
+ type Log = TypedEventLog<Event>;
369
+ type LogDescription = TypedLogDescription<Event>;
370
+ }
371
+ export declare namespace NewReserveFactorEvent {
372
+ type InputTuple = [
373
+ oldReserveFactorMantissa: BigNumberish,
374
+ newReserveFactorMantissa: BigNumberish
375
+ ];
376
+ type OutputTuple = [
377
+ oldReserveFactorMantissa: bigint,
378
+ newReserveFactorMantissa: bigint
379
+ ];
380
+ interface OutputObject {
381
+ oldReserveFactorMantissa: bigint;
382
+ newReserveFactorMantissa: bigint;
383
+ }
384
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
385
+ type Filter = TypedDeferredTopicFilter<Event>;
386
+ type Log = TypedEventLog<Event>;
387
+ type LogDescription = TypedLogDescription<Event>;
388
+ }
389
+ export declare namespace RedeemEvent {
390
+ type InputTuple = [
391
+ redeemer: AddressLike,
392
+ redeemAmount: BigNumberish,
393
+ redeemTokens: BigNumberish
394
+ ];
395
+ type OutputTuple = [
396
+ redeemer: string,
397
+ redeemAmount: bigint,
398
+ redeemTokens: bigint
399
+ ];
400
+ interface OutputObject {
401
+ redeemer: string;
402
+ redeemAmount: bigint;
403
+ redeemTokens: bigint;
404
+ }
405
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
406
+ type Filter = TypedDeferredTopicFilter<Event>;
407
+ type Log = TypedEventLog<Event>;
408
+ type LogDescription = TypedLogDescription<Event>;
409
+ }
410
+ export declare namespace RedeemFaceValueEvent {
411
+ type InputTuple = [
412
+ redeemer: AddressLike,
413
+ provider: AddressLike,
414
+ repayAmount: BigNumberish,
415
+ seizeToken: AddressLike,
416
+ seizeAmount: BigNumberish,
417
+ redemptionRateMantissa: BigNumberish
418
+ ];
419
+ type OutputTuple = [
420
+ redeemer: string,
421
+ provider: string,
422
+ repayAmount: bigint,
423
+ seizeToken: string,
424
+ seizeAmount: bigint,
425
+ redemptionRateMantissa: bigint
426
+ ];
427
+ interface OutputObject {
428
+ redeemer: string;
429
+ provider: string;
430
+ repayAmount: bigint;
431
+ seizeToken: string;
432
+ seizeAmount: bigint;
433
+ redemptionRateMantissa: bigint;
434
+ }
435
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
436
+ type Filter = TypedDeferredTopicFilter<Event>;
437
+ type Log = TypedEventLog<Event>;
438
+ type LogDescription = TypedLogDescription<Event>;
439
+ }
440
+ export declare namespace RepayBorrowEvent {
441
+ type InputTuple = [
442
+ payer: AddressLike,
443
+ borrower: AddressLike,
444
+ repayAmount: BigNumberish,
445
+ accountBorrows: BigNumberish,
446
+ totalBorrows: BigNumberish
447
+ ];
448
+ type OutputTuple = [
449
+ payer: string,
450
+ borrower: string,
451
+ repayAmount: bigint,
452
+ accountBorrows: bigint,
453
+ totalBorrows: bigint
454
+ ];
455
+ interface OutputObject {
456
+ payer: string;
457
+ borrower: string;
458
+ repayAmount: bigint;
459
+ accountBorrows: bigint;
460
+ totalBorrows: bigint;
461
+ }
462
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
463
+ type Filter = TypedDeferredTopicFilter<Event>;
464
+ type Log = TypedEventLog<Event>;
465
+ type LogDescription = TypedLogDescription<Event>;
466
+ }
467
+ export declare namespace ReservesAddedEvent {
468
+ type InputTuple = [
469
+ benefactor: AddressLike,
470
+ addAmount: BigNumberish,
471
+ newTotalReserves: BigNumberish
472
+ ];
473
+ type OutputTuple = [
474
+ benefactor: string,
475
+ addAmount: bigint,
476
+ newTotalReserves: bigint
477
+ ];
478
+ interface OutputObject {
479
+ benefactor: string;
480
+ addAmount: bigint;
481
+ newTotalReserves: bigint;
482
+ }
483
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
484
+ type Filter = TypedDeferredTopicFilter<Event>;
485
+ type Log = TypedEventLog<Event>;
486
+ type LogDescription = TypedLogDescription<Event>;
487
+ }
488
+ export declare namespace ReservesReducedEvent {
489
+ type InputTuple = [
490
+ admin: AddressLike,
491
+ reduceAmount: BigNumberish,
492
+ newTotalReserves: BigNumberish
493
+ ];
494
+ type OutputTuple = [
495
+ admin: string,
496
+ reduceAmount: bigint,
497
+ newTotalReserves: bigint
498
+ ];
499
+ interface OutputObject {
500
+ admin: string;
501
+ reduceAmount: bigint;
502
+ newTotalReserves: bigint;
503
+ }
504
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
505
+ type Filter = TypedDeferredTopicFilter<Event>;
506
+ type Log = TypedEventLog<Event>;
507
+ type LogDescription = TypedLogDescription<Event>;
508
+ }
509
+ export declare namespace TransferEvent {
510
+ type InputTuple = [
511
+ from: AddressLike,
512
+ to: AddressLike,
513
+ amount: BigNumberish
514
+ ];
515
+ type OutputTuple = [from: string, to: string, amount: bigint];
516
+ interface OutputObject {
517
+ from: string;
518
+ to: string;
519
+ amount: bigint;
520
+ }
521
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
522
+ type Filter = TypedDeferredTopicFilter<Event>;
523
+ type Log = TypedEventLog<Event>;
524
+ type LogDescription = TypedLogDescription<Event>;
525
+ }
526
+ export interface CBeraVault extends BaseContract {
527
+ connect(runner?: ContractRunner | null): CBeraVault;
528
+ waitForDeployment(): Promise<this>;
529
+ interface: CBeraVaultInterface;
530
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
531
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
532
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
533
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
534
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
535
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
536
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
537
+ listeners(eventName?: string): Promise<Array<Listener>>;
538
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
539
+ _acceptAdmin: TypedContractMethod<[], [bigint], "nonpayable">;
540
+ _addReserves: TypedContractMethod<[
541
+ addAmount: BigNumberish
542
+ ], [
543
+ bigint
544
+ ], "nonpayable">;
545
+ _reduceReserves: TypedContractMethod<[
546
+ reduceAmount: BigNumberish
547
+ ], [
548
+ bigint
549
+ ], "nonpayable">;
550
+ _setComptroller: TypedContractMethod<[
551
+ newComptroller: AddressLike
552
+ ], [
553
+ bigint
554
+ ], "nonpayable">;
555
+ _setDiscountRate: TypedContractMethod<[
556
+ discountRateMantissa_: BigNumberish
557
+ ], [
558
+ bigint
559
+ ], "nonpayable">;
560
+ _setInterestRateModel: TypedContractMethod<[
561
+ newInterestRateModel: AddressLike
562
+ ], [
563
+ bigint
564
+ ], "nonpayable">;
565
+ _setPendingAdmin: TypedContractMethod<[
566
+ newPendingAdmin: AddressLike
567
+ ], [
568
+ bigint
569
+ ], "nonpayable">;
570
+ _setReserveFactor: TypedContractMethod<[
571
+ newReserveFactorMantissa: BigNumberish
572
+ ], [
573
+ bigint
574
+ ], "nonpayable">;
575
+ _syncUnderlyingBalance: TypedContractMethod<[], [void], "nonpayable">;
576
+ accrualBlockTimestamp: TypedContractMethod<[], [bigint], "view">;
577
+ accrueInterest: TypedContractMethod<[], [bigint], "nonpayable">;
578
+ admin: TypedContractMethod<[], [string], "view">;
579
+ allowance: TypedContractMethod<[
580
+ owner: AddressLike,
581
+ spender: AddressLike
582
+ ], [
583
+ bigint
584
+ ], "view">;
585
+ approve: TypedContractMethod<[
586
+ spender: AddressLike,
587
+ amount: BigNumberish
588
+ ], [
589
+ boolean
590
+ ], "nonpayable">;
591
+ balanceOf: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
592
+ balanceOfUnderlying: TypedContractMethod<[
593
+ owner: AddressLike
594
+ ], [
595
+ bigint
596
+ ], "nonpayable">;
597
+ borrow: TypedContractMethod<[
598
+ borrowAmount: BigNumberish
599
+ ], [
600
+ bigint
601
+ ], "nonpayable">;
602
+ borrowAndDepositBack: TypedContractMethod<[
603
+ borrower: AddressLike,
604
+ borrowAmount: BigNumberish
605
+ ], [
606
+ bigint
607
+ ], "nonpayable">;
608
+ borrowBalanceCurrent: TypedContractMethod<[
609
+ account: AddressLike
610
+ ], [
611
+ bigint
612
+ ], "nonpayable">;
613
+ borrowBalanceStored: TypedContractMethod<[
614
+ account: AddressLike
615
+ ], [
616
+ bigint
617
+ ], "view">;
618
+ borrowIndex: TypedContractMethod<[], [bigint], "view">;
619
+ borrowRatePerBlock: TypedContractMethod<[], [bigint], "view">;
620
+ comptroller: TypedContractMethod<[], [string], "view">;
621
+ decimals: TypedContractMethod<[], [bigint], "view">;
622
+ discountRateMantissa: TypedContractMethod<[], [bigint], "view">;
623
+ exchangeRateCurrent: TypedContractMethod<[], [bigint], "nonpayable">;
624
+ exchangeRateStored: TypedContractMethod<[], [bigint], "view">;
625
+ getAccountSnapshot: TypedContractMethod<[
626
+ account: AddressLike
627
+ ], [
628
+ [bigint, bigint, bigint, bigint]
629
+ ], "view">;
630
+ getBorrowSnapshot: TypedContractMethod<[
631
+ borrower: AddressLike
632
+ ], [
633
+ CTokenStorage.BorrowSnapshotStructOutput
634
+ ], "view">;
635
+ getCash: TypedContractMethod<[], [bigint], "view">;
636
+ initAccrualBlockTimestamp: TypedContractMethod<[
637
+ timeBasedInterestRateModel: AddressLike
638
+ ], [
639
+ void
640
+ ], "nonpayable">;
641
+ initialize: TypedContractMethod<[
642
+ underlying_: AddressLike,
643
+ comptroller_: AddressLike,
644
+ interestRateModel_: AddressLike,
645
+ initialExchangeRateMantissa_: BigNumberish,
646
+ name_: string,
647
+ symbol_: string,
648
+ decimals_: BigNumberish,
649
+ admin_: AddressLike,
650
+ rewardVault_: AddressLike
651
+ ], [
652
+ void
653
+ ], "nonpayable">;
654
+ initializeVersion2: TypedContractMethod<[], [void], "nonpayable">;
655
+ interestRateModel: TypedContractMethod<[], [string], "view">;
656
+ isCEther: TypedContractMethod<[], [boolean], "view">;
657
+ isCEtherDeprecated: TypedContractMethod<[], [boolean], "view">;
658
+ isCToken: TypedContractMethod<[], [boolean], "view">;
659
+ isCTokenDeprecated: TypedContractMethod<[], [boolean], "view">;
660
+ isDeprecated: TypedContractMethod<[], [boolean], "view">;
661
+ liquidateBorrow: TypedContractMethod<[
662
+ borrower: AddressLike,
663
+ repayAmount: BigNumberish,
664
+ cTokenCollateral: AddressLike
665
+ ], [
666
+ bigint
667
+ ], "nonpayable">;
668
+ liquidateCalculateSeizeTokens: TypedContractMethod<[
669
+ cTokenCollateral: AddressLike,
670
+ actualRepayAmount: BigNumberish
671
+ ], [
672
+ [bigint, bigint, bigint]
673
+ ], "view">;
674
+ mint: TypedContractMethod<[mintAmount: BigNumberish], [bigint], "nonpayable">;
675
+ mintWithPermit: TypedContractMethod<[
676
+ mintAmount: BigNumberish,
677
+ deadline: BigNumberish,
678
+ signature: BytesLike
679
+ ], [
680
+ bigint
681
+ ], "nonpayable">;
682
+ name: TypedContractMethod<[], [string], "view">;
683
+ pendingAdmin: TypedContractMethod<[], [string], "view">;
684
+ percentScale: TypedContractMethod<[], [bigint], "view">;
685
+ protocolSeizeShareMantissa: TypedContractMethod<[], [bigint], "view">;
686
+ redeem: TypedContractMethod<[
687
+ redeemTokens: BigNumberish
688
+ ], [
689
+ bigint
690
+ ], "nonpayable">;
691
+ redeemUnderlying: TypedContractMethod<[
692
+ redeemAmount: BigNumberish
693
+ ], [
694
+ bigint
695
+ ], "nonpayable">;
696
+ repayBorrow: TypedContractMethod<[
697
+ repayAmount: BigNumberish
698
+ ], [
699
+ bigint
700
+ ], "nonpayable">;
701
+ repayBorrowBehalf: TypedContractMethod<[
702
+ borrower: AddressLike,
703
+ repayAmount: BigNumberish
704
+ ], [
705
+ bigint
706
+ ], "nonpayable">;
707
+ repayBorrowWithPermit: TypedContractMethod<[
708
+ repayAmount: BigNumberish,
709
+ deadline: BigNumberish,
710
+ signature: BytesLike
711
+ ], [
712
+ bigint
713
+ ], "nonpayable">;
714
+ reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
715
+ rewardVault: TypedContractMethod<[], [string], "view">;
716
+ seize: TypedContractMethod<[
717
+ liquidator: AddressLike,
718
+ borrower: AddressLike,
719
+ seizeTokens: BigNumberish,
720
+ seizeProfitTokens: BigNumberish,
721
+ isRedemption: boolean,
722
+ redemptionRateMantissa: BigNumberish
723
+ ], [
724
+ bigint
725
+ ], "nonpayable">;
726
+ supplyRatePerBlock: TypedContractMethod<[], [bigint], "view">;
727
+ sweepToken: TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
728
+ symbol: TypedContractMethod<[], [string], "view">;
729
+ totalBorrows: TypedContractMethod<[], [bigint], "view">;
730
+ totalBorrowsCurrent: TypedContractMethod<[], [bigint], "nonpayable">;
731
+ totalReserves: TypedContractMethod<[], [bigint], "view">;
732
+ totalSupply: TypedContractMethod<[], [bigint], "view">;
733
+ transfer: TypedContractMethod<[
734
+ dst: AddressLike,
735
+ amount: BigNumberish
736
+ ], [
737
+ boolean
738
+ ], "nonpayable">;
739
+ transferFrom: TypedContractMethod<[
740
+ src: AddressLike,
741
+ dst: AddressLike,
742
+ amount: BigNumberish
743
+ ], [
744
+ boolean
745
+ ], "nonpayable">;
746
+ underlying: TypedContractMethod<[], [string], "view">;
747
+ underlyingBalance: TypedContractMethod<[], [bigint], "view">;
748
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
749
+ getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [bigint], "nonpayable">;
750
+ getFunction(nameOrSignature: "_addReserves"): TypedContractMethod<[addAmount: BigNumberish], [bigint], "nonpayable">;
751
+ getFunction(nameOrSignature: "_reduceReserves"): TypedContractMethod<[reduceAmount: BigNumberish], [bigint], "nonpayable">;
752
+ getFunction(nameOrSignature: "_setComptroller"): TypedContractMethod<[newComptroller: AddressLike], [bigint], "nonpayable">;
753
+ getFunction(nameOrSignature: "_setDiscountRate"): TypedContractMethod<[
754
+ discountRateMantissa_: BigNumberish
755
+ ], [
756
+ bigint
757
+ ], "nonpayable">;
758
+ getFunction(nameOrSignature: "_setInterestRateModel"): TypedContractMethod<[
759
+ newInterestRateModel: AddressLike
760
+ ], [
761
+ bigint
762
+ ], "nonpayable">;
763
+ getFunction(nameOrSignature: "_setPendingAdmin"): TypedContractMethod<[
764
+ newPendingAdmin: AddressLike
765
+ ], [
766
+ bigint
767
+ ], "nonpayable">;
768
+ getFunction(nameOrSignature: "_setReserveFactor"): TypedContractMethod<[
769
+ newReserveFactorMantissa: BigNumberish
770
+ ], [
771
+ bigint
772
+ ], "nonpayable">;
773
+ getFunction(nameOrSignature: "_syncUnderlyingBalance"): TypedContractMethod<[], [void], "nonpayable">;
774
+ getFunction(nameOrSignature: "accrualBlockTimestamp"): TypedContractMethod<[], [bigint], "view">;
775
+ getFunction(nameOrSignature: "accrueInterest"): TypedContractMethod<[], [bigint], "nonpayable">;
776
+ getFunction(nameOrSignature: "admin"): TypedContractMethod<[], [string], "view">;
777
+ getFunction(nameOrSignature: "allowance"): TypedContractMethod<[
778
+ owner: AddressLike,
779
+ spender: AddressLike
780
+ ], [
781
+ bigint
782
+ ], "view">;
783
+ getFunction(nameOrSignature: "approve"): TypedContractMethod<[
784
+ spender: AddressLike,
785
+ amount: BigNumberish
786
+ ], [
787
+ boolean
788
+ ], "nonpayable">;
789
+ getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
790
+ getFunction(nameOrSignature: "balanceOfUnderlying"): TypedContractMethod<[owner: AddressLike], [bigint], "nonpayable">;
791
+ getFunction(nameOrSignature: "borrow"): TypedContractMethod<[borrowAmount: BigNumberish], [bigint], "nonpayable">;
792
+ getFunction(nameOrSignature: "borrowAndDepositBack"): TypedContractMethod<[
793
+ borrower: AddressLike,
794
+ borrowAmount: BigNumberish
795
+ ], [
796
+ bigint
797
+ ], "nonpayable">;
798
+ getFunction(nameOrSignature: "borrowBalanceCurrent"): TypedContractMethod<[account: AddressLike], [bigint], "nonpayable">;
799
+ getFunction(nameOrSignature: "borrowBalanceStored"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
800
+ getFunction(nameOrSignature: "borrowIndex"): TypedContractMethod<[], [bigint], "view">;
801
+ getFunction(nameOrSignature: "borrowRatePerBlock"): TypedContractMethod<[], [bigint], "view">;
802
+ getFunction(nameOrSignature: "comptroller"): TypedContractMethod<[], [string], "view">;
803
+ getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">;
804
+ getFunction(nameOrSignature: "discountRateMantissa"): TypedContractMethod<[], [bigint], "view">;
805
+ getFunction(nameOrSignature: "exchangeRateCurrent"): TypedContractMethod<[], [bigint], "nonpayable">;
806
+ getFunction(nameOrSignature: "exchangeRateStored"): TypedContractMethod<[], [bigint], "view">;
807
+ getFunction(nameOrSignature: "getAccountSnapshot"): TypedContractMethod<[
808
+ account: AddressLike
809
+ ], [
810
+ [bigint, bigint, bigint, bigint]
811
+ ], "view">;
812
+ getFunction(nameOrSignature: "getBorrowSnapshot"): TypedContractMethod<[
813
+ borrower: AddressLike
814
+ ], [
815
+ CTokenStorage.BorrowSnapshotStructOutput
816
+ ], "view">;
817
+ getFunction(nameOrSignature: "getCash"): TypedContractMethod<[], [bigint], "view">;
818
+ getFunction(nameOrSignature: "initAccrualBlockTimestamp"): TypedContractMethod<[
819
+ timeBasedInterestRateModel: AddressLike
820
+ ], [
821
+ void
822
+ ], "nonpayable">;
823
+ getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
824
+ underlying_: AddressLike,
825
+ comptroller_: AddressLike,
826
+ interestRateModel_: AddressLike,
827
+ initialExchangeRateMantissa_: BigNumberish,
828
+ name_: string,
829
+ symbol_: string,
830
+ decimals_: BigNumberish,
831
+ admin_: AddressLike,
832
+ rewardVault_: AddressLike
833
+ ], [
834
+ void
835
+ ], "nonpayable">;
836
+ getFunction(nameOrSignature: "initializeVersion2"): TypedContractMethod<[], [void], "nonpayable">;
837
+ getFunction(nameOrSignature: "interestRateModel"): TypedContractMethod<[], [string], "view">;
838
+ getFunction(nameOrSignature: "isCEther"): TypedContractMethod<[], [boolean], "view">;
839
+ getFunction(nameOrSignature: "isCEtherDeprecated"): TypedContractMethod<[], [boolean], "view">;
840
+ getFunction(nameOrSignature: "isCToken"): TypedContractMethod<[], [boolean], "view">;
841
+ getFunction(nameOrSignature: "isCTokenDeprecated"): TypedContractMethod<[], [boolean], "view">;
842
+ getFunction(nameOrSignature: "isDeprecated"): TypedContractMethod<[], [boolean], "view">;
843
+ getFunction(nameOrSignature: "liquidateBorrow"): TypedContractMethod<[
844
+ borrower: AddressLike,
845
+ repayAmount: BigNumberish,
846
+ cTokenCollateral: AddressLike
847
+ ], [
848
+ bigint
849
+ ], "nonpayable">;
850
+ getFunction(nameOrSignature: "liquidateCalculateSeizeTokens"): TypedContractMethod<[
851
+ cTokenCollateral: AddressLike,
852
+ actualRepayAmount: BigNumberish
853
+ ], [
854
+ [bigint, bigint, bigint]
855
+ ], "view">;
856
+ getFunction(nameOrSignature: "mint"): TypedContractMethod<[mintAmount: BigNumberish], [bigint], "nonpayable">;
857
+ getFunction(nameOrSignature: "mintWithPermit"): TypedContractMethod<[
858
+ mintAmount: BigNumberish,
859
+ deadline: BigNumberish,
860
+ signature: BytesLike
861
+ ], [
862
+ bigint
863
+ ], "nonpayable">;
864
+ getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
865
+ getFunction(nameOrSignature: "pendingAdmin"): TypedContractMethod<[], [string], "view">;
866
+ getFunction(nameOrSignature: "percentScale"): TypedContractMethod<[], [bigint], "view">;
867
+ getFunction(nameOrSignature: "protocolSeizeShareMantissa"): TypedContractMethod<[], [bigint], "view">;
868
+ getFunction(nameOrSignature: "redeem"): TypedContractMethod<[redeemTokens: BigNumberish], [bigint], "nonpayable">;
869
+ getFunction(nameOrSignature: "redeemUnderlying"): TypedContractMethod<[redeemAmount: BigNumberish], [bigint], "nonpayable">;
870
+ getFunction(nameOrSignature: "repayBorrow"): TypedContractMethod<[repayAmount: BigNumberish], [bigint], "nonpayable">;
871
+ getFunction(nameOrSignature: "repayBorrowBehalf"): TypedContractMethod<[
872
+ borrower: AddressLike,
873
+ repayAmount: BigNumberish
874
+ ], [
875
+ bigint
876
+ ], "nonpayable">;
877
+ getFunction(nameOrSignature: "repayBorrowWithPermit"): TypedContractMethod<[
878
+ repayAmount: BigNumberish,
879
+ deadline: BigNumberish,
880
+ signature: BytesLike
881
+ ], [
882
+ bigint
883
+ ], "nonpayable">;
884
+ getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
885
+ getFunction(nameOrSignature: "rewardVault"): TypedContractMethod<[], [string], "view">;
886
+ getFunction(nameOrSignature: "seize"): TypedContractMethod<[
887
+ liquidator: AddressLike,
888
+ borrower: AddressLike,
889
+ seizeTokens: BigNumberish,
890
+ seizeProfitTokens: BigNumberish,
891
+ isRedemption: boolean,
892
+ redemptionRateMantissa: BigNumberish
893
+ ], [
894
+ bigint
895
+ ], "nonpayable">;
896
+ getFunction(nameOrSignature: "supplyRatePerBlock"): TypedContractMethod<[], [bigint], "view">;
897
+ getFunction(nameOrSignature: "sweepToken"): TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
898
+ getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">;
899
+ getFunction(nameOrSignature: "totalBorrows"): TypedContractMethod<[], [bigint], "view">;
900
+ getFunction(nameOrSignature: "totalBorrowsCurrent"): TypedContractMethod<[], [bigint], "nonpayable">;
901
+ getFunction(nameOrSignature: "totalReserves"): TypedContractMethod<[], [bigint], "view">;
902
+ getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
903
+ getFunction(nameOrSignature: "transfer"): TypedContractMethod<[
904
+ dst: AddressLike,
905
+ amount: BigNumberish
906
+ ], [
907
+ boolean
908
+ ], "nonpayable">;
909
+ getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
910
+ src: AddressLike,
911
+ dst: AddressLike,
912
+ amount: BigNumberish
913
+ ], [
914
+ boolean
915
+ ], "nonpayable">;
916
+ getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
917
+ getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
918
+ getEvent(key: "AccrueInterest"): TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
919
+ getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
920
+ getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
921
+ getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
922
+ getEvent(key: "LiquidateBorrow"): TypedContractEvent<LiquidateBorrowEvent.InputTuple, LiquidateBorrowEvent.OutputTuple, LiquidateBorrowEvent.OutputObject>;
923
+ getEvent(key: "Mint"): TypedContractEvent<MintEvent.InputTuple, MintEvent.OutputTuple, MintEvent.OutputObject>;
924
+ getEvent(key: "NewAdmin"): TypedContractEvent<NewAdminEvent.InputTuple, NewAdminEvent.OutputTuple, NewAdminEvent.OutputObject>;
925
+ getEvent(key: "NewComptroller"): TypedContractEvent<NewComptrollerEvent.InputTuple, NewComptrollerEvent.OutputTuple, NewComptrollerEvent.OutputObject>;
926
+ getEvent(key: "NewDiscountRate"): TypedContractEvent<NewDiscountRateEvent.InputTuple, NewDiscountRateEvent.OutputTuple, NewDiscountRateEvent.OutputObject>;
927
+ getEvent(key: "NewMarketInterestRateModel"): TypedContractEvent<NewMarketInterestRateModelEvent.InputTuple, NewMarketInterestRateModelEvent.OutputTuple, NewMarketInterestRateModelEvent.OutputObject>;
928
+ getEvent(key: "NewPendingAdmin"): TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
929
+ getEvent(key: "NewReserveFactor"): TypedContractEvent<NewReserveFactorEvent.InputTuple, NewReserveFactorEvent.OutputTuple, NewReserveFactorEvent.OutputObject>;
930
+ getEvent(key: "Redeem"): TypedContractEvent<RedeemEvent.InputTuple, RedeemEvent.OutputTuple, RedeemEvent.OutputObject>;
931
+ getEvent(key: "RedeemFaceValue"): TypedContractEvent<RedeemFaceValueEvent.InputTuple, RedeemFaceValueEvent.OutputTuple, RedeemFaceValueEvent.OutputObject>;
932
+ getEvent(key: "RepayBorrow"): TypedContractEvent<RepayBorrowEvent.InputTuple, RepayBorrowEvent.OutputTuple, RepayBorrowEvent.OutputObject>;
933
+ getEvent(key: "ReservesAdded"): TypedContractEvent<ReservesAddedEvent.InputTuple, ReservesAddedEvent.OutputTuple, ReservesAddedEvent.OutputObject>;
934
+ getEvent(key: "ReservesReduced"): TypedContractEvent<ReservesReducedEvent.InputTuple, ReservesReducedEvent.OutputTuple, ReservesReducedEvent.OutputObject>;
935
+ getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
936
+ filters: {
937
+ "AccrueInterest(uint256,uint256,uint256,uint256)": TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
938
+ AccrueInterest: TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
939
+ "Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
940
+ Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
941
+ "Borrow(address,uint256,uint256,uint256)": TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
942
+ Borrow: TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
943
+ "Initialized(uint8)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
944
+ Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
945
+ "LiquidateBorrow(address,address,uint256,address,uint256)": TypedContractEvent<LiquidateBorrowEvent.InputTuple, LiquidateBorrowEvent.OutputTuple, LiquidateBorrowEvent.OutputObject>;
946
+ LiquidateBorrow: TypedContractEvent<LiquidateBorrowEvent.InputTuple, LiquidateBorrowEvent.OutputTuple, LiquidateBorrowEvent.OutputObject>;
947
+ "Mint(address,uint256,uint256)": TypedContractEvent<MintEvent.InputTuple, MintEvent.OutputTuple, MintEvent.OutputObject>;
948
+ Mint: TypedContractEvent<MintEvent.InputTuple, MintEvent.OutputTuple, MintEvent.OutputObject>;
949
+ "NewAdmin(address,address)": TypedContractEvent<NewAdminEvent.InputTuple, NewAdminEvent.OutputTuple, NewAdminEvent.OutputObject>;
950
+ NewAdmin: TypedContractEvent<NewAdminEvent.InputTuple, NewAdminEvent.OutputTuple, NewAdminEvent.OutputObject>;
951
+ "NewComptroller(address,address)": TypedContractEvent<NewComptrollerEvent.InputTuple, NewComptrollerEvent.OutputTuple, NewComptrollerEvent.OutputObject>;
952
+ NewComptroller: TypedContractEvent<NewComptrollerEvent.InputTuple, NewComptrollerEvent.OutputTuple, NewComptrollerEvent.OutputObject>;
953
+ "NewDiscountRate(uint256,uint256)": TypedContractEvent<NewDiscountRateEvent.InputTuple, NewDiscountRateEvent.OutputTuple, NewDiscountRateEvent.OutputObject>;
954
+ NewDiscountRate: TypedContractEvent<NewDiscountRateEvent.InputTuple, NewDiscountRateEvent.OutputTuple, NewDiscountRateEvent.OutputObject>;
955
+ "NewMarketInterestRateModel(address,address)": TypedContractEvent<NewMarketInterestRateModelEvent.InputTuple, NewMarketInterestRateModelEvent.OutputTuple, NewMarketInterestRateModelEvent.OutputObject>;
956
+ NewMarketInterestRateModel: TypedContractEvent<NewMarketInterestRateModelEvent.InputTuple, NewMarketInterestRateModelEvent.OutputTuple, NewMarketInterestRateModelEvent.OutputObject>;
957
+ "NewPendingAdmin(address,address)": TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
958
+ NewPendingAdmin: TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
959
+ "NewReserveFactor(uint256,uint256)": TypedContractEvent<NewReserveFactorEvent.InputTuple, NewReserveFactorEvent.OutputTuple, NewReserveFactorEvent.OutputObject>;
960
+ NewReserveFactor: TypedContractEvent<NewReserveFactorEvent.InputTuple, NewReserveFactorEvent.OutputTuple, NewReserveFactorEvent.OutputObject>;
961
+ "Redeem(address,uint256,uint256)": TypedContractEvent<RedeemEvent.InputTuple, RedeemEvent.OutputTuple, RedeemEvent.OutputObject>;
962
+ Redeem: TypedContractEvent<RedeemEvent.InputTuple, RedeemEvent.OutputTuple, RedeemEvent.OutputObject>;
963
+ "RedeemFaceValue(address,address,uint256,address,uint256,uint256)": TypedContractEvent<RedeemFaceValueEvent.InputTuple, RedeemFaceValueEvent.OutputTuple, RedeemFaceValueEvent.OutputObject>;
964
+ RedeemFaceValue: TypedContractEvent<RedeemFaceValueEvent.InputTuple, RedeemFaceValueEvent.OutputTuple, RedeemFaceValueEvent.OutputObject>;
965
+ "RepayBorrow(address,address,uint256,uint256,uint256)": TypedContractEvent<RepayBorrowEvent.InputTuple, RepayBorrowEvent.OutputTuple, RepayBorrowEvent.OutputObject>;
966
+ RepayBorrow: TypedContractEvent<RepayBorrowEvent.InputTuple, RepayBorrowEvent.OutputTuple, RepayBorrowEvent.OutputObject>;
967
+ "ReservesAdded(address,uint256,uint256)": TypedContractEvent<ReservesAddedEvent.InputTuple, ReservesAddedEvent.OutputTuple, ReservesAddedEvent.OutputObject>;
968
+ ReservesAdded: TypedContractEvent<ReservesAddedEvent.InputTuple, ReservesAddedEvent.OutputTuple, ReservesAddedEvent.OutputObject>;
969
+ "ReservesReduced(address,uint256,uint256)": TypedContractEvent<ReservesReducedEvent.InputTuple, ReservesReducedEvent.OutputTuple, ReservesReducedEvent.OutputObject>;
970
+ ReservesReduced: TypedContractEvent<ReservesReducedEvent.InputTuple, ReservesReducedEvent.OutputTuple, ReservesReducedEvent.OutputObject>;
971
+ "Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
972
+ Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
973
+ };
974
+ }