@meterio/sumer-js 0.2.135 → 0.2.137
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.
- package/dist/browser/sumer.min.js +10 -10
- package/dist/nodejs/abi.d.ts +0 -226
- package/dist/nodejs/abi.js +45 -5267
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/constants/beramain.d.ts +2 -0
- package/dist/nodejs/constants/beramain.js +16 -1
- package/dist/nodejs/constants/beramain.js.map +1 -1
- package/dist/nodejs/constants/sepolia.d.ts +13 -7
- package/dist/nodejs/constants/sepolia.js +23 -31
- package/dist/nodejs/constants/sepolia.js.map +1 -1
- package/dist/nodejs/errorABIs.js +0 -1044
- package/dist/nodejs/errorABIs.js.map +1 -1
- package/dist/nodejs/index.d.ts +0 -226
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/security/index.d.ts +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +1 -17
- package/dist/nodejs/typechain/contracts/CToken/CEther.d.ts +1 -17
- package/dist/nodejs/typechain/contracts/CToken/CToken.d.ts +1 -17
- package/dist/nodejs/typechain/contracts/CToken/CTokenStorage.d.ts +1 -5
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +1 -17
- package/dist/nodejs/typechain/contracts/CToken/index.d.ts +0 -4
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.sol/CInfraredVault.d.ts +1 -17
- package/dist/nodejs/typechain/contracts/InterestRateModel/index.d.ts +0 -2
- package/dist/nodejs/typechain/contracts/Oracle/{aprMONAdapter.sol/AprMONAdapter.d.ts → dualCoreAdapter.sol/ICoreVault.d.ts} +10 -10
- package/dist/nodejs/typechain/contracts/Oracle/{aprMONAdapter.sol/index.js → dualCoreAdapter.sol/ICoreVault.js} +1 -1
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/ICoreVault.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/index.d.ts +0 -2
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.js +3 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +1 -35
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +1 -46
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +1 -35
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +1 -46
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.d.ts +0 -14
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js +0 -19
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +0 -34
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +0 -45
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +1 -35
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +1 -46
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/index.d.ts +0 -2
- package/dist/nodejs/typechain/factories/contracts/CToken/index.js +1 -26
- package/dist/nodejs/typechain/factories/contracts/CToken/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.d.ts +1 -35
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.js +1 -46
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.d.ts +0 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js +1 -25
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/ICoreVault__factory.d.ts +21 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/{aprMONAdapter.sol/IAprMon__factory.js → dualCoreAdapter.sol/ICoreVault__factory.js} +6 -25
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/ICoreVault__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.js +3 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.d.ts +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js +1 -2
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js.map +1 -1
- package/dist/nodejs/typechain/hardhat.d.ts +18 -180
- package/dist/nodejs/typechain/index.d.ts +2 -14
- package/dist/nodejs/typechain/index.js +5 -17
- package/dist/nodejs/typechain/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAToken.d.ts +0 -37
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAToken.js +0 -3
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAToken.js.map +0 -1
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAaveV3Pool.d.ts +0 -133
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAaveV3Pool.js +0 -3
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAaveV3Pool.js.map +0 -1
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/index.d.ts +0 -3
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/index.js +0 -3
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/index.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/IAprMon.d.ts +0 -37
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/IAprMon.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/IAprMon.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/index.d.ts +0 -2
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/index.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAToken__factory.d.ts +0 -55
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAToken__factory.js +0 -84
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAToken__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAaveV3Pool__factory.d.ts +0 -145
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAaveV3Pool__factory.js +0 -199
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAaveV3Pool__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/index.d.ts +0 -3
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/index.js +0 -13
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/index.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter__factory.d.ts +0 -44
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter__factory.js +0 -69
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/IAprMon__factory.d.ts +0 -35
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/IAprMon__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/index.d.ts +0 -2
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/index.js +0 -11
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/index.js.map +0 -1
package/dist/nodejs/index.d.ts
CHANGED
|
@@ -254,157 +254,6 @@ declare const Sumer: {
|
|
|
254
254
|
anonymous?: undefined;
|
|
255
255
|
outputs?: undefined;
|
|
256
256
|
})[];
|
|
257
|
-
CAToken: ({
|
|
258
|
-
inputs: any[];
|
|
259
|
-
stateMutability: string;
|
|
260
|
-
type: string;
|
|
261
|
-
name?: undefined;
|
|
262
|
-
anonymous?: undefined;
|
|
263
|
-
outputs?: undefined;
|
|
264
|
-
} | {
|
|
265
|
-
inputs: {
|
|
266
|
-
internalType: string;
|
|
267
|
-
name: string;
|
|
268
|
-
type: string;
|
|
269
|
-
}[];
|
|
270
|
-
name: string;
|
|
271
|
-
type: string;
|
|
272
|
-
stateMutability?: undefined;
|
|
273
|
-
anonymous?: undefined;
|
|
274
|
-
outputs?: undefined;
|
|
275
|
-
} | {
|
|
276
|
-
anonymous: boolean;
|
|
277
|
-
inputs: {
|
|
278
|
-
indexed: boolean;
|
|
279
|
-
internalType: string;
|
|
280
|
-
name: string;
|
|
281
|
-
type: string;
|
|
282
|
-
}[];
|
|
283
|
-
name: string;
|
|
284
|
-
type: string;
|
|
285
|
-
stateMutability?: undefined;
|
|
286
|
-
outputs?: undefined;
|
|
287
|
-
} | {
|
|
288
|
-
inputs: {
|
|
289
|
-
internalType: string;
|
|
290
|
-
name: string;
|
|
291
|
-
type: string;
|
|
292
|
-
}[];
|
|
293
|
-
name: string;
|
|
294
|
-
outputs: {
|
|
295
|
-
internalType: string;
|
|
296
|
-
name: string;
|
|
297
|
-
type: string;
|
|
298
|
-
}[];
|
|
299
|
-
stateMutability: string;
|
|
300
|
-
type: string;
|
|
301
|
-
anonymous?: undefined;
|
|
302
|
-
})[];
|
|
303
|
-
IAToken: {
|
|
304
|
-
inputs: {
|
|
305
|
-
internalType: string;
|
|
306
|
-
name: string;
|
|
307
|
-
type: string;
|
|
308
|
-
}[];
|
|
309
|
-
name: string;
|
|
310
|
-
outputs: {
|
|
311
|
-
internalType: string;
|
|
312
|
-
name: string;
|
|
313
|
-
type: string;
|
|
314
|
-
}[];
|
|
315
|
-
stateMutability: string;
|
|
316
|
-
type: string;
|
|
317
|
-
}[];
|
|
318
|
-
IAaveV3Pool: ({
|
|
319
|
-
inputs: {
|
|
320
|
-
internalType: string;
|
|
321
|
-
name: string;
|
|
322
|
-
type: string;
|
|
323
|
-
}[];
|
|
324
|
-
name: string;
|
|
325
|
-
outputs: {
|
|
326
|
-
components: ({
|
|
327
|
-
components: {
|
|
328
|
-
internalType: string;
|
|
329
|
-
name: string;
|
|
330
|
-
type: string;
|
|
331
|
-
}[];
|
|
332
|
-
internalType: string;
|
|
333
|
-
name: string;
|
|
334
|
-
type: string;
|
|
335
|
-
} | {
|
|
336
|
-
internalType: string;
|
|
337
|
-
name: string;
|
|
338
|
-
type: string;
|
|
339
|
-
components?: undefined;
|
|
340
|
-
})[];
|
|
341
|
-
internalType: string;
|
|
342
|
-
name: string;
|
|
343
|
-
type: string;
|
|
344
|
-
}[];
|
|
345
|
-
stateMutability: string;
|
|
346
|
-
type: string;
|
|
347
|
-
} | {
|
|
348
|
-
inputs: {
|
|
349
|
-
internalType: string;
|
|
350
|
-
name: string;
|
|
351
|
-
type: string;
|
|
352
|
-
}[];
|
|
353
|
-
name: string;
|
|
354
|
-
outputs: {
|
|
355
|
-
internalType: string;
|
|
356
|
-
name: string;
|
|
357
|
-
type: string;
|
|
358
|
-
}[];
|
|
359
|
-
stateMutability: string;
|
|
360
|
-
type: string;
|
|
361
|
-
})[];
|
|
362
|
-
CAavePool: ({
|
|
363
|
-
inputs: any[];
|
|
364
|
-
stateMutability: string;
|
|
365
|
-
type: string;
|
|
366
|
-
name?: undefined;
|
|
367
|
-
anonymous?: undefined;
|
|
368
|
-
outputs?: undefined;
|
|
369
|
-
} | {
|
|
370
|
-
inputs: {
|
|
371
|
-
internalType: string;
|
|
372
|
-
name: string;
|
|
373
|
-
type: string;
|
|
374
|
-
}[];
|
|
375
|
-
name: string;
|
|
376
|
-
type: string;
|
|
377
|
-
stateMutability?: undefined;
|
|
378
|
-
anonymous?: undefined;
|
|
379
|
-
outputs?: undefined;
|
|
380
|
-
} | {
|
|
381
|
-
anonymous: boolean;
|
|
382
|
-
inputs: {
|
|
383
|
-
indexed: boolean;
|
|
384
|
-
internalType: string;
|
|
385
|
-
name: string;
|
|
386
|
-
type: string;
|
|
387
|
-
}[];
|
|
388
|
-
name: string;
|
|
389
|
-
type: string;
|
|
390
|
-
stateMutability?: undefined;
|
|
391
|
-
outputs?: undefined;
|
|
392
|
-
} | {
|
|
393
|
-
inputs: {
|
|
394
|
-
internalType: string;
|
|
395
|
-
name: string;
|
|
396
|
-
type: string;
|
|
397
|
-
}[];
|
|
398
|
-
name: string;
|
|
399
|
-
outputs: {
|
|
400
|
-
internalType: string;
|
|
401
|
-
name: string;
|
|
402
|
-
type: string;
|
|
403
|
-
}[];
|
|
404
|
-
stateMutability: string;
|
|
405
|
-
type: string;
|
|
406
|
-
anonymous?: undefined;
|
|
407
|
-
})[];
|
|
408
257
|
CErc20: ({
|
|
409
258
|
inputs: any[];
|
|
410
259
|
stateMutability: string;
|
|
@@ -1225,45 +1074,6 @@ declare const Sumer: {
|
|
|
1225
1074
|
type: string;
|
|
1226
1075
|
anonymous?: undefined;
|
|
1227
1076
|
})[];
|
|
1228
|
-
JumpRateModelForAave: ({
|
|
1229
|
-
inputs: {
|
|
1230
|
-
internalType: string;
|
|
1231
|
-
name: string;
|
|
1232
|
-
type: string;
|
|
1233
|
-
}[];
|
|
1234
|
-
stateMutability: string;
|
|
1235
|
-
type: string;
|
|
1236
|
-
anonymous?: undefined;
|
|
1237
|
-
name?: undefined;
|
|
1238
|
-
outputs?: undefined;
|
|
1239
|
-
} | {
|
|
1240
|
-
anonymous: boolean;
|
|
1241
|
-
inputs: {
|
|
1242
|
-
indexed: boolean;
|
|
1243
|
-
internalType: string;
|
|
1244
|
-
name: string;
|
|
1245
|
-
type: string;
|
|
1246
|
-
}[];
|
|
1247
|
-
name: string;
|
|
1248
|
-
type: string;
|
|
1249
|
-
stateMutability?: undefined;
|
|
1250
|
-
outputs?: undefined;
|
|
1251
|
-
} | {
|
|
1252
|
-
inputs: {
|
|
1253
|
-
internalType: string;
|
|
1254
|
-
name: string;
|
|
1255
|
-
type: string;
|
|
1256
|
-
}[];
|
|
1257
|
-
name: string;
|
|
1258
|
-
outputs: {
|
|
1259
|
-
internalType: string;
|
|
1260
|
-
name: string;
|
|
1261
|
-
type: string;
|
|
1262
|
-
}[];
|
|
1263
|
-
stateMutability: string;
|
|
1264
|
-
type: string;
|
|
1265
|
-
anonymous?: undefined;
|
|
1266
|
-
})[];
|
|
1267
1077
|
JumpRateModelV2: ({
|
|
1268
1078
|
inputs: {
|
|
1269
1079
|
internalType: string;
|
|
@@ -2227,42 +2037,6 @@ declare const Sumer: {
|
|
|
2227
2037
|
stateMutability: string;
|
|
2228
2038
|
type: string;
|
|
2229
2039
|
})[];
|
|
2230
|
-
IAprMon: {
|
|
2231
|
-
inputs: {
|
|
2232
|
-
internalType: string;
|
|
2233
|
-
name: string;
|
|
2234
|
-
type: string;
|
|
2235
|
-
}[];
|
|
2236
|
-
name: string;
|
|
2237
|
-
outputs: {
|
|
2238
|
-
internalType: string;
|
|
2239
|
-
name: string;
|
|
2240
|
-
type: string;
|
|
2241
|
-
}[];
|
|
2242
|
-
stateMutability: string;
|
|
2243
|
-
type: string;
|
|
2244
|
-
}[];
|
|
2245
|
-
aprMONAdapter: ({
|
|
2246
|
-
inputs: {
|
|
2247
|
-
internalType: string;
|
|
2248
|
-
name: string;
|
|
2249
|
-
type: string;
|
|
2250
|
-
}[];
|
|
2251
|
-
stateMutability: string;
|
|
2252
|
-
type: string;
|
|
2253
|
-
name?: undefined;
|
|
2254
|
-
outputs?: undefined;
|
|
2255
|
-
} | {
|
|
2256
|
-
inputs: any[];
|
|
2257
|
-
name: string;
|
|
2258
|
-
outputs: {
|
|
2259
|
-
internalType: string;
|
|
2260
|
-
name: string;
|
|
2261
|
-
type: string;
|
|
2262
|
-
}[];
|
|
2263
|
-
stateMutability: string;
|
|
2264
|
-
type: string;
|
|
2265
|
-
})[];
|
|
2266
2040
|
IDualCore: {
|
|
2267
2041
|
inputs: {
|
|
2268
2042
|
internalType: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface CErc20Interface extends Interface {
|
|
4
|
-
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" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "
|
|
4
|
+
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" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "_addReserves", values: [BigNumberish]): string;
|
|
@@ -61,7 +61,6 @@ export interface CErc20Interface extends Interface {
|
|
|
61
61
|
encodeFunctionData(functionFragment: "repayBorrowBehalf", values: [AddressLike, BigNumberish]): string;
|
|
62
62
|
encodeFunctionData(functionFragment: "repayBorrowWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
63
63
|
encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
|
|
64
|
-
encodeFunctionData(functionFragment: "revokeWhitelist", values: [AddressLike]): string;
|
|
65
64
|
encodeFunctionData(functionFragment: "seize", values: [
|
|
66
65
|
AddressLike,
|
|
67
66
|
AddressLike,
|
|
@@ -82,8 +81,6 @@ export interface CErc20Interface extends Interface {
|
|
|
82
81
|
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
83
82
|
encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
|
|
84
83
|
encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
|
|
85
|
-
encodeFunctionData(functionFragment: "whitelist", values: [AddressLike]): string;
|
|
86
|
-
encodeFunctionData(functionFragment: "whitelisted", values: [AddressLike]): string;
|
|
87
84
|
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
88
85
|
decodeFunctionResult(functionFragment: "_addReserves", data: BytesLike): Result;
|
|
89
86
|
decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
|
|
@@ -133,7 +130,6 @@ export interface CErc20Interface extends Interface {
|
|
|
133
130
|
decodeFunctionResult(functionFragment: "repayBorrowBehalf", data: BytesLike): Result;
|
|
134
131
|
decodeFunctionResult(functionFragment: "repayBorrowWithPermit", data: BytesLike): Result;
|
|
135
132
|
decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
|
|
136
|
-
decodeFunctionResult(functionFragment: "revokeWhitelist", data: BytesLike): Result;
|
|
137
133
|
decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
|
|
138
134
|
decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
|
|
139
135
|
decodeFunctionResult(functionFragment: "sweepToken", data: BytesLike): Result;
|
|
@@ -147,8 +143,6 @@ export interface CErc20Interface extends Interface {
|
|
|
147
143
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
148
144
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
149
145
|
decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
|
|
150
|
-
decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
|
|
151
|
-
decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
|
|
152
146
|
}
|
|
153
147
|
export declare namespace AccrueInterestEvent {
|
|
154
148
|
type InputTuple = [
|
|
@@ -683,11 +677,6 @@ export interface CErc20 extends BaseContract {
|
|
|
683
677
|
void
|
|
684
678
|
], "nonpayable">;
|
|
685
679
|
reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
686
|
-
revokeWhitelist: TypedContractMethod<[
|
|
687
|
-
addr: AddressLike
|
|
688
|
-
], [
|
|
689
|
-
void
|
|
690
|
-
], "nonpayable">;
|
|
691
680
|
seize: TypedContractMethod<[
|
|
692
681
|
liquidator: AddressLike,
|
|
693
682
|
borrower: AddressLike,
|
|
@@ -721,8 +710,6 @@ export interface CErc20 extends BaseContract {
|
|
|
721
710
|
], "nonpayable">;
|
|
722
711
|
underlying: TypedContractMethod<[], [string], "view">;
|
|
723
712
|
underlyingBalance: TypedContractMethod<[], [bigint], "view">;
|
|
724
|
-
whitelist: TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
725
|
-
whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
726
713
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
727
714
|
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
728
715
|
getFunction(nameOrSignature: "_addReserves"): TypedContractMethod<[addAmount: BigNumberish], [void], "nonpayable">;
|
|
@@ -843,7 +830,6 @@ export interface CErc20 extends BaseContract {
|
|
|
843
830
|
void
|
|
844
831
|
], "nonpayable">;
|
|
845
832
|
getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
846
|
-
getFunction(nameOrSignature: "revokeWhitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
847
833
|
getFunction(nameOrSignature: "seize"): TypedContractMethod<[
|
|
848
834
|
liquidator: AddressLike,
|
|
849
835
|
borrower: AddressLike,
|
|
@@ -877,8 +863,6 @@ export interface CErc20 extends BaseContract {
|
|
|
877
863
|
], "nonpayable">;
|
|
878
864
|
getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
|
|
879
865
|
getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
|
|
880
|
-
getFunction(nameOrSignature: "whitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
881
|
-
getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
882
866
|
getEvent(key: "AccrueInterest"): TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
|
|
883
867
|
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
884
868
|
getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface CEtherInterface extends Interface {
|
|
4
|
-
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" | "getCash" | "initialize" | "initializeVersion2" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "reserveFactorMantissa" | "
|
|
4
|
+
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" | "getCash" | "initialize" | "initializeVersion2" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "_addReserves", values?: undefined): string;
|
|
@@ -59,7 +59,6 @@ export interface CEtherInterface extends Interface {
|
|
|
59
59
|
encodeFunctionData(functionFragment: "repayBorrow", values?: undefined): string;
|
|
60
60
|
encodeFunctionData(functionFragment: "repayBorrowBehalf", values: [AddressLike]): string;
|
|
61
61
|
encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
|
|
62
|
-
encodeFunctionData(functionFragment: "revokeWhitelist", values: [AddressLike]): string;
|
|
63
62
|
encodeFunctionData(functionFragment: "seize", values: [
|
|
64
63
|
AddressLike,
|
|
65
64
|
AddressLike,
|
|
@@ -79,8 +78,6 @@ export interface CEtherInterface extends Interface {
|
|
|
79
78
|
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
80
79
|
encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
|
|
81
80
|
encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
|
|
82
|
-
encodeFunctionData(functionFragment: "whitelist", values: [AddressLike]): string;
|
|
83
|
-
encodeFunctionData(functionFragment: "whitelisted", values: [AddressLike]): string;
|
|
84
81
|
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
85
82
|
decodeFunctionResult(functionFragment: "_addReserves", data: BytesLike): Result;
|
|
86
83
|
decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
|
|
@@ -129,7 +126,6 @@ export interface CEtherInterface extends Interface {
|
|
|
129
126
|
decodeFunctionResult(functionFragment: "repayBorrow", data: BytesLike): Result;
|
|
130
127
|
decodeFunctionResult(functionFragment: "repayBorrowBehalf", data: BytesLike): Result;
|
|
131
128
|
decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
|
|
132
|
-
decodeFunctionResult(functionFragment: "revokeWhitelist", data: BytesLike): Result;
|
|
133
129
|
decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
|
|
134
130
|
decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
|
|
135
131
|
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
|
@@ -142,8 +138,6 @@ export interface CEtherInterface extends Interface {
|
|
|
142
138
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
143
139
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
144
140
|
decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
|
|
145
|
-
decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
|
|
146
|
-
decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
|
|
147
141
|
}
|
|
148
142
|
export declare namespace AccrueInterestEvent {
|
|
149
143
|
type InputTuple = [
|
|
@@ -654,11 +648,6 @@ export interface CEther extends BaseContract {
|
|
|
654
648
|
void
|
|
655
649
|
], "payable">;
|
|
656
650
|
reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
657
|
-
revokeWhitelist: TypedContractMethod<[
|
|
658
|
-
addr: AddressLike
|
|
659
|
-
], [
|
|
660
|
-
void
|
|
661
|
-
], "nonpayable">;
|
|
662
651
|
seize: TypedContractMethod<[
|
|
663
652
|
liquidator: AddressLike,
|
|
664
653
|
borrower: AddressLike,
|
|
@@ -691,8 +680,6 @@ export interface CEther extends BaseContract {
|
|
|
691
680
|
], "nonpayable">;
|
|
692
681
|
underlying: TypedContractMethod<[], [string], "view">;
|
|
693
682
|
underlyingBalance: TypedContractMethod<[], [bigint], "view">;
|
|
694
|
-
whitelist: TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
695
|
-
whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
696
683
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
697
684
|
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
698
685
|
getFunction(nameOrSignature: "_addReserves"): TypedContractMethod<[], [void], "payable">;
|
|
@@ -793,7 +780,6 @@ export interface CEther extends BaseContract {
|
|
|
793
780
|
getFunction(nameOrSignature: "repayBorrow"): TypedContractMethod<[], [void], "payable">;
|
|
794
781
|
getFunction(nameOrSignature: "repayBorrowBehalf"): TypedContractMethod<[borrower: AddressLike], [void], "payable">;
|
|
795
782
|
getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
796
|
-
getFunction(nameOrSignature: "revokeWhitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
797
783
|
getFunction(nameOrSignature: "seize"): TypedContractMethod<[
|
|
798
784
|
liquidator: AddressLike,
|
|
799
785
|
borrower: AddressLike,
|
|
@@ -826,8 +812,6 @@ export interface CEther extends BaseContract {
|
|
|
826
812
|
], "nonpayable">;
|
|
827
813
|
getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
|
|
828
814
|
getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
|
|
829
|
-
getFunction(nameOrSignature: "whitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
830
|
-
getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
831
815
|
getEvent(key: "AccrueInterest"): TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
|
|
832
816
|
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
833
817
|
getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface CTokenInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "_acceptAdmin" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateCalculateSeizeTokens" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "reserveFactorMantissa" | "
|
|
4
|
+
getFunction(nameOrSignature: "_acceptAdmin" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateCalculateSeizeTokens" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "_reduceReserves", values: [BigNumberish]): string;
|
|
@@ -41,7 +41,6 @@ export interface CTokenInterface extends Interface {
|
|
|
41
41
|
encodeFunctionData(functionFragment: "percentScale", values?: undefined): string;
|
|
42
42
|
encodeFunctionData(functionFragment: "protocolSeizeShareMantissa", values?: undefined): string;
|
|
43
43
|
encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
|
|
44
|
-
encodeFunctionData(functionFragment: "revokeWhitelist", values: [AddressLike]): string;
|
|
45
44
|
encodeFunctionData(functionFragment: "seize", values: [
|
|
46
45
|
AddressLike,
|
|
47
46
|
AddressLike,
|
|
@@ -60,8 +59,6 @@ export interface CTokenInterface extends Interface {
|
|
|
60
59
|
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
61
60
|
encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
|
|
62
61
|
encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
|
|
63
|
-
encodeFunctionData(functionFragment: "whitelist", values: [AddressLike]): string;
|
|
64
|
-
encodeFunctionData(functionFragment: "whitelisted", values: [AddressLike]): string;
|
|
65
62
|
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
66
63
|
decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
|
|
67
64
|
decodeFunctionResult(functionFragment: "_setComptroller", data: BytesLike): Result;
|
|
@@ -100,7 +97,6 @@ export interface CTokenInterface extends Interface {
|
|
|
100
97
|
decodeFunctionResult(functionFragment: "percentScale", data: BytesLike): Result;
|
|
101
98
|
decodeFunctionResult(functionFragment: "protocolSeizeShareMantissa", data: BytesLike): Result;
|
|
102
99
|
decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
|
|
103
|
-
decodeFunctionResult(functionFragment: "revokeWhitelist", data: BytesLike): Result;
|
|
104
100
|
decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
|
|
105
101
|
decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
|
|
106
102
|
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
|
@@ -112,8 +108,6 @@ export interface CTokenInterface extends Interface {
|
|
|
112
108
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
113
109
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
114
110
|
decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
|
|
115
|
-
decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
|
|
116
|
-
decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
|
|
117
111
|
}
|
|
118
112
|
export declare namespace AccrueInterestEvent {
|
|
119
113
|
type InputTuple = [
|
|
@@ -572,11 +566,6 @@ export interface CToken extends BaseContract {
|
|
|
572
566
|
percentScale: TypedContractMethod<[], [bigint], "view">;
|
|
573
567
|
protocolSeizeShareMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
574
568
|
reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
575
|
-
revokeWhitelist: TypedContractMethod<[
|
|
576
|
-
addr: AddressLike
|
|
577
|
-
], [
|
|
578
|
-
void
|
|
579
|
-
], "nonpayable">;
|
|
580
569
|
seize: TypedContractMethod<[
|
|
581
570
|
liquidator: AddressLike,
|
|
582
571
|
borrower: AddressLike,
|
|
@@ -608,8 +597,6 @@ export interface CToken extends BaseContract {
|
|
|
608
597
|
], "nonpayable">;
|
|
609
598
|
underlying: TypedContractMethod<[], [string], "view">;
|
|
610
599
|
underlyingBalance: TypedContractMethod<[], [bigint], "view">;
|
|
611
|
-
whitelist: TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
612
|
-
whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
613
600
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
614
601
|
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
615
602
|
getFunction(nameOrSignature: "_reduceReserves"): TypedContractMethod<[reduceAmount: BigNumberish], [void], "nonpayable">;
|
|
@@ -685,7 +672,6 @@ export interface CToken extends BaseContract {
|
|
|
685
672
|
getFunction(nameOrSignature: "percentScale"): TypedContractMethod<[], [bigint], "view">;
|
|
686
673
|
getFunction(nameOrSignature: "protocolSeizeShareMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
687
674
|
getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
688
|
-
getFunction(nameOrSignature: "revokeWhitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
689
675
|
getFunction(nameOrSignature: "seize"): TypedContractMethod<[
|
|
690
676
|
liquidator: AddressLike,
|
|
691
677
|
borrower: AddressLike,
|
|
@@ -717,8 +703,6 @@ export interface CToken extends BaseContract {
|
|
|
717
703
|
], "nonpayable">;
|
|
718
704
|
getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
|
|
719
705
|
getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
|
|
720
|
-
getFunction(nameOrSignature: "whitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
721
|
-
getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
722
706
|
getEvent(key: "AccrueInterest"): TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
|
|
723
707
|
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
724
708
|
getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface CTokenStorageInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "_acceptAdmin" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "interestRateModel" | "isCEtherDeprecated" | "isCTokenDeprecated" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"
|
|
4
|
+
getFunction(nameOrSignature: "_acceptAdmin" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "interestRateModel" | "isCEtherDeprecated" | "isCTokenDeprecated" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
5
5
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
6
6
|
encodeFunctionData(functionFragment: "_reduceReserves", values: [BigNumberish]): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "_setComptroller", values: [AddressLike]): string;
|
|
@@ -53,7 +53,6 @@ export interface CTokenStorageInterface extends Interface {
|
|
|
53
53
|
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
54
54
|
encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
|
|
55
55
|
encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
|
|
56
|
-
encodeFunctionData(functionFragment: "whitelisted", values: [AddressLike]): string;
|
|
57
56
|
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
58
57
|
decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
|
|
59
58
|
decodeFunctionResult(functionFragment: "_setComptroller", data: BytesLike): Result;
|
|
@@ -98,7 +97,6 @@ export interface CTokenStorageInterface extends Interface {
|
|
|
98
97
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
99
98
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
100
99
|
decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
|
|
101
|
-
decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
|
|
102
100
|
}
|
|
103
101
|
export interface CTokenStorage extends BaseContract {
|
|
104
102
|
connect(runner?: ContractRunner | null): CTokenStorage;
|
|
@@ -227,7 +225,6 @@ export interface CTokenStorage extends BaseContract {
|
|
|
227
225
|
], "nonpayable">;
|
|
228
226
|
underlying: TypedContractMethod<[], [string], "view">;
|
|
229
227
|
underlyingBalance: TypedContractMethod<[], [bigint], "view">;
|
|
230
|
-
whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
231
228
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
232
229
|
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
233
230
|
getFunction(nameOrSignature: "_reduceReserves"): TypedContractMethod<[reduceAmount: BigNumberish], [void], "nonpayable">;
|
|
@@ -319,6 +316,5 @@ export interface CTokenStorage extends BaseContract {
|
|
|
319
316
|
], "nonpayable">;
|
|
320
317
|
getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
|
|
321
318
|
getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
|
|
322
|
-
getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
323
319
|
filters: {};
|
|
324
320
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface SuErc20Interface extends Interface {
|
|
4
|
-
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" | "executeRedemption" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "percentScale" | "protectedMint" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "
|
|
4
|
+
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" | "executeRedemption" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "percentScale" | "protectedMint" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "_addReserves", values: [BigNumberish]): string;
|
|
@@ -70,7 +70,6 @@ export interface SuErc20Interface extends Interface {
|
|
|
70
70
|
encodeFunctionData(functionFragment: "repayBorrowBehalf", values: [AddressLike, BigNumberish]): string;
|
|
71
71
|
encodeFunctionData(functionFragment: "repayBorrowWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
72
72
|
encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
|
|
73
|
-
encodeFunctionData(functionFragment: "revokeWhitelist", values: [AddressLike]): string;
|
|
74
73
|
encodeFunctionData(functionFragment: "seize", values: [
|
|
75
74
|
AddressLike,
|
|
76
75
|
AddressLike,
|
|
@@ -91,8 +90,6 @@ export interface SuErc20Interface extends Interface {
|
|
|
91
90
|
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
92
91
|
encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
|
|
93
92
|
encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
|
|
94
|
-
encodeFunctionData(functionFragment: "whitelist", values: [AddressLike]): string;
|
|
95
|
-
encodeFunctionData(functionFragment: "whitelisted", values: [AddressLike]): string;
|
|
96
93
|
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
97
94
|
decodeFunctionResult(functionFragment: "_addReserves", data: BytesLike): Result;
|
|
98
95
|
decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
|
|
@@ -144,7 +141,6 @@ export interface SuErc20Interface extends Interface {
|
|
|
144
141
|
decodeFunctionResult(functionFragment: "repayBorrowBehalf", data: BytesLike): Result;
|
|
145
142
|
decodeFunctionResult(functionFragment: "repayBorrowWithPermit", data: BytesLike): Result;
|
|
146
143
|
decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
|
|
147
|
-
decodeFunctionResult(functionFragment: "revokeWhitelist", data: BytesLike): Result;
|
|
148
144
|
decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
|
|
149
145
|
decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
|
|
150
146
|
decodeFunctionResult(functionFragment: "sweepToken", data: BytesLike): Result;
|
|
@@ -158,8 +154,6 @@ export interface SuErc20Interface extends Interface {
|
|
|
158
154
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
159
155
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
160
156
|
decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
|
|
161
|
-
decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
|
|
162
|
-
decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
|
|
163
157
|
}
|
|
164
158
|
export declare namespace AccrueInterestEvent {
|
|
165
159
|
type InputTuple = [
|
|
@@ -711,11 +705,6 @@ export interface SuErc20 extends BaseContract {
|
|
|
711
705
|
void
|
|
712
706
|
], "nonpayable">;
|
|
713
707
|
reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
714
|
-
revokeWhitelist: TypedContractMethod<[
|
|
715
|
-
addr: AddressLike
|
|
716
|
-
], [
|
|
717
|
-
void
|
|
718
|
-
], "nonpayable">;
|
|
719
708
|
seize: TypedContractMethod<[
|
|
720
709
|
liquidator: AddressLike,
|
|
721
710
|
borrower: AddressLike,
|
|
@@ -749,8 +738,6 @@ export interface SuErc20 extends BaseContract {
|
|
|
749
738
|
], "nonpayable">;
|
|
750
739
|
underlying: TypedContractMethod<[], [string], "view">;
|
|
751
740
|
underlyingBalance: TypedContractMethod<[], [bigint], "view">;
|
|
752
|
-
whitelist: TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
753
|
-
whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
754
741
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
755
742
|
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
756
743
|
getFunction(nameOrSignature: "_addReserves"): TypedContractMethod<[addAmount: BigNumberish], [void], "nonpayable">;
|
|
@@ -888,7 +875,6 @@ export interface SuErc20 extends BaseContract {
|
|
|
888
875
|
void
|
|
889
876
|
], "nonpayable">;
|
|
890
877
|
getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
891
|
-
getFunction(nameOrSignature: "revokeWhitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
892
878
|
getFunction(nameOrSignature: "seize"): TypedContractMethod<[
|
|
893
879
|
liquidator: AddressLike,
|
|
894
880
|
borrower: AddressLike,
|
|
@@ -922,8 +908,6 @@ export interface SuErc20 extends BaseContract {
|
|
|
922
908
|
], "nonpayable">;
|
|
923
909
|
getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
|
|
924
910
|
getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
|
|
925
|
-
getFunction(nameOrSignature: "whitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
926
|
-
getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
927
911
|
getEvent(key: "AccrueInterest"): TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
|
|
928
912
|
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
929
913
|
getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import type * as caTokenSol from "./CAToken.sol";
|
|
2
|
-
export type { caTokenSol };
|
|
3
|
-
import type * as cAavePoolSol from "./CAavePool.sol";
|
|
4
|
-
export type { cAavePoolSol };
|
|
5
1
|
export type { CErc20 } from "./CErc20";
|
|
6
2
|
export type { CEther } from "./CEther";
|
|
7
3
|
export type { CToken } from "./CToken";
|