@meterio/sumer-js 0.2.30 → 0.2.32
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 +175 -214
- package/dist/nodejs/abi.js +8098 -8853
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/constants/arbitrum.d.ts +4 -4
- package/dist/nodejs/constants/arbitrum.js +12 -12
- package/dist/nodejs/constants/arbitrum.js.map +1 -1
- package/dist/nodejs/constants/basemain.d.ts +4 -4
- package/dist/nodejs/constants/basemain.js +12 -12
- package/dist/nodejs/constants/basemain.js.map +1 -1
- package/dist/nodejs/constants/basetest.d.ts +4 -4
- package/dist/nodejs/constants/basetest.js +9 -9
- package/dist/nodejs/constants/basetest.js.map +1 -1
- package/dist/nodejs/constants/ethereum.d.ts +5 -4
- package/dist/nodejs/constants/ethereum.js +14 -13
- package/dist/nodejs/constants/ethereum.js.map +1 -1
- package/dist/nodejs/constants/metermain.d.ts +4 -4
- package/dist/nodejs/constants/metermain.js +9 -9
- package/dist/nodejs/constants/metermain.js.map +1 -1
- package/dist/nodejs/constants/metertest.d.ts +5 -5
- package/dist/nodejs/constants/metertest.js +46 -47
- package/dist/nodejs/constants/metertest.js.map +1 -1
- package/dist/nodejs/constants/sepolia.d.ts +28 -4
- package/dist/nodejs/constants/sepolia.js +68 -16
- package/dist/nodejs/constants/sepolia.js.map +1 -1
- package/dist/nodejs/errorABIs.js +141 -658
- package/dist/nodejs/errorABIs.js.map +1 -1
- package/dist/nodejs/errors.d.ts +48 -20
- package/dist/nodejs/errors.js +48 -20
- package/dist/nodejs/errors.js.map +1 -1
- package/dist/nodejs/index.d.ts +175 -214
- package/dist/nodejs/typechain/@chainlink/contracts/index.d.ts +2 -0
- package/dist/nodejs/typechain/@chainlink/contracts/index.js +3 -0
- package/dist/nodejs/typechain/@chainlink/contracts/index.js.map +1 -0
- package/dist/nodejs/typechain/@chainlink/contracts/src/index.d.ts +2 -0
- package/dist/nodejs/typechain/@chainlink/contracts/src/index.js +3 -0
- package/dist/nodejs/typechain/@chainlink/contracts/src/index.js.map +1 -0
- package/dist/nodejs/typechain/@chainlink/contracts/src/v0.8/index.d.ts +2 -0
- package/dist/nodejs/typechain/@chainlink/contracts/src/v0.8/index.js +3 -0
- package/dist/nodejs/typechain/@chainlink/contracts/src/v0.8/index.js.map +1 -0
- package/dist/nodejs/typechain/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.d.ts +103 -0
- package/dist/nodejs/typechain/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.js +3 -0
- package/dist/nodejs/typechain/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.js.map +1 -0
- package/dist/nodejs/typechain/@chainlink/contracts/src/v0.8/interfaces/index.d.ts +1 -0
- package/dist/nodejs/typechain/@chainlink/contracts/src/v0.8/interfaces/index.js +3 -0
- package/dist/nodejs/typechain/@chainlink/contracts/src/v0.8/interfaces/index.js.map +1 -0
- package/dist/nodejs/typechain/@chainlink/index.d.ts +2 -0
- package/dist/nodejs/typechain/@chainlink/index.js +3 -0
- package/dist/nodejs/typechain/@chainlink/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +12 -10
- package/dist/nodejs/typechain/contracts/CToken/CEther.d.ts +12 -10
- package/dist/nodejs/typechain/contracts/CToken/CToken.d.ts +9 -1
- package/dist/nodejs/typechain/contracts/CToken/CTokenStorage.d.ts +12 -411
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +12 -10
- package/dist/nodejs/typechain/contracts/Comptroller/CompoundLens.d.ts +17 -1
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +358 -709
- package/dist/nodejs/typechain/contracts/Comptroller/ComptrollerStorage.d.ts +163 -207
- package/dist/nodejs/typechain/contracts/Comptroller/RedemptionManager.d.ts +1 -3
- package/dist/nodejs/typechain/contracts/Comptroller/index.d.ts +0 -1
- package/dist/nodejs/typechain/contracts/Interfaces/ICToken.d.ts +4 -407
- package/dist/nodejs/typechain/contracts/Interfaces/ICompLogic.d.ts +1 -19
- package/dist/nodejs/typechain/contracts/Interfaces/IComptroller.d.ts +122 -130
- package/dist/nodejs/typechain/contracts/Interfaces/IPMarket.d.ts +488 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPMarket.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPMarket.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPPrincipalToken.d.ts +193 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPPrincipalToken.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPPrincipalToken.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPYieldToken.d.ts +365 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPYieldToken.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPYieldToken.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPendlePtOracle.d.ts +65 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPendlePtOracle.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPendlePtOracle.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IStandardizedYield.d.ts +365 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IStandardizedYield.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IStandardizedYield.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/index.d.ts +5 -1
- package/dist/nodejs/typechain/contracts/Oracle/FeedPriceOracle.d.ts +321 -138
- package/dist/nodejs/typechain/contracts/Oracle/PriceOracle.sol/PriceAdapter.d.ts +25 -0
- package/dist/nodejs/typechain/contracts/Oracle/PriceOracle.sol/PriceAdapter.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/PriceOracle.sol/PriceAdapter.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/PriceOracle.sol/PriceOracle.d.ts +37 -0
- package/dist/nodejs/typechain/contracts/Oracle/PriceOracle.sol/PriceOracle.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/PriceOracle.sol/PriceOracle.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/PriceOracle.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Oracle/PriceOracle.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/PriceOracle.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstETHAdapter.sol/IStETH.d.ts +33 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstETHAdapter.sol/IStETH.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstETHAdapter.sol/IStETH.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstETHAdapter.sol/WstETHAdapter.d.ts +25 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstETHAdapter.sol/WstETHAdapter.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstETHAdapter.sol/WstETHAdapter.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstETHAdapter.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstETHAdapter.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstETHAdapter.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstMTRGAdapter.sol/IWstMTRG.d.ts +25 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstMTRGAdapter.sol/IWstMTRG.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstMTRGAdapter.sol/IWstMTRG.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstMTRGAdapter.sol/WstMTRGAdapter.d.ts +25 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstMTRGAdapter.sol/WstMTRGAdapter.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstMTRGAdapter.sol/WstMTRGAdapter.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstMTRGAdapter.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstMTRGAdapter.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/WstMTRGAdapter.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/index.d.ts +6 -4
- package/dist/nodejs/typechain/contracts/Timelock.d.ts +14 -4
- package/dist/nodejs/typechain/factories/@chainlink/contracts/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@chainlink/contracts/index.js +31 -0
- package/dist/nodejs/typechain/factories/@chainlink/contracts/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@chainlink/contracts/src/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@chainlink/contracts/src/index.js +31 -0
- package/dist/nodejs/typechain/factories/@chainlink/contracts/src/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@chainlink/contracts/src/v0.8/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@chainlink/contracts/src/v0.8/index.js +31 -0
- package/dist/nodejs/typechain/factories/@chainlink/contracts/src/v0.8/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface__factory.d.ts +93 -0
- package/dist/nodejs/typechain/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface__factory.js +131 -0
- package/dist/nodejs/typechain/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@chainlink/contracts/src/v0.8/interfaces/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@chainlink/contracts/src/v0.8/interfaces/index.js +9 -0
- package/dist/nodejs/typechain/factories/@chainlink/contracts/src/v0.8/interfaces/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@chainlink/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@chainlink/index.js +31 -0
- package/dist/nodejs/typechain/factories/@chainlink/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +29 -29
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +37 -36
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +29 -29
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +37 -36
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.d.ts +2 -357
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js +2 -445
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +28 -20
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +36 -25
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +29 -33
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +37 -41
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +9 -21
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +11 -26
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +31 -21
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +40 -26
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.d.ts +107 -221
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js +117 -265
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +299 -1054
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +380 -1375
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +9 -25
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +11 -31
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/index.d.ts +0 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/index.js +1 -3
- package/dist/nodejs/typechain/factories/contracts/Comptroller/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.d.ts +0 -365
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.js +0 -456
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.d.ts +0 -28
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js +0 -37
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.d.ts +108 -222
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js +135 -287
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPMarket__factory.d.ts +543 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPMarket__factory.js +712 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPMarket__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPPrincipalToken__factory.d.ts +265 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPPrincipalToken__factory.js +356 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPPrincipalToken__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPYieldToken__factory.d.ts +473 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPYieldToken__factory.js +624 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPYieldToken__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPendlePtOracle__factory.d.ts +51 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPendlePtOracle__factory.js +78 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPendlePtOracle__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IStandardizedYield__factory.d.ts +493 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IStandardizedYield__factory.js +652 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IStandardizedYield__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.d.ts +5 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js +11 -3
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.d.ts +398 -102
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js +494 -110
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/PriceOracle.sol/PriceAdapter__factory.d.ts +17 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/PriceOracle.sol/PriceAdapter__factory.js +33 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/PriceOracle.sol/PriceAdapter__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/PriceOracle.sol/PriceOracle__factory.d.ts +45 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/PriceOracle.sol/PriceOracle__factory.js +71 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/PriceOracle.sol/PriceOracle__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/PriceOracle.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/PriceOracle.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/PriceOracle.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstETHAdapter.sol/IStETH__factory.d.ts +31 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstETHAdapter.sol/IStETH__factory.js +52 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstETHAdapter.sol/IStETH__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstETHAdapter.sol/WstETHAdapter__factory.d.ts +44 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstETHAdapter.sol/WstETHAdapter__factory.js +69 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstETHAdapter.sol/WstETHAdapter__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstETHAdapter.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstETHAdapter.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstETHAdapter.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstMTRGAdapter.sol/IWstMTRG__factory.d.ts +17 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstMTRGAdapter.sol/IWstMTRG__factory.js +33 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstMTRGAdapter.sol/IWstMTRG__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstMTRGAdapter.sol/WstMTRGAdapter__factory.d.ts +44 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstMTRGAdapter.sol/WstMTRGAdapter__factory.js +69 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstMTRGAdapter.sol/WstMTRGAdapter__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstMTRGAdapter.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstMTRGAdapter.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstMTRGAdapter.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.d.ts +3 -4
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js +4 -9
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +9 -21
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +11 -26
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +29 -25
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +37 -31
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/index.js +2 -1
- package/dist/nodejs/typechain/factories/index.js.map +1 -1
- package/dist/nodejs/typechain/hardhat.d.ts +178 -70
- package/dist/nodejs/typechain/index.d.ts +26 -14
- package/dist/nodejs/typechain/index.js +25 -14
- package/dist/nodejs/typechain/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface,
|
|
2
|
-
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog,
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface ICTokenInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "_acceptAdmin" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "accrualBlockNumber" | "accrueInterest" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowRatePerBlock" | "
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
|
|
4
|
+
getFunction(nameOrSignature: "_acceptAdmin" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "accrualBlockNumber" | "accrueInterest" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowRatePerBlock" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "seize" | "supplyRatePerBlock" | "totalBorrowsCurrent" | "totalSupply" | "transfer" | "transferFrom"): FunctionFragment;
|
|
6
5
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
7
6
|
encodeFunctionData(functionFragment: "_reduceReserves", values: [BigNumberish]): string;
|
|
8
7
|
encodeFunctionData(functionFragment: "_setComptroller", values: [AddressLike]): string;
|
|
@@ -19,7 +18,6 @@ export interface ICTokenInterface extends Interface {
|
|
|
19
18
|
encodeFunctionData(functionFragment: "borrowBalanceCurrent", values: [AddressLike]): string;
|
|
20
19
|
encodeFunctionData(functionFragment: "borrowBalanceStored", values: [AddressLike]): string;
|
|
21
20
|
encodeFunctionData(functionFragment: "borrowRatePerBlock", values?: undefined): string;
|
|
22
|
-
encodeFunctionData(functionFragment: "discountRateMantissa", values?: undefined): string;
|
|
23
21
|
encodeFunctionData(functionFragment: "exchangeRateCurrent", values?: undefined): string;
|
|
24
22
|
encodeFunctionData(functionFragment: "exchangeRateStored", values?: undefined): string;
|
|
25
23
|
encodeFunctionData(functionFragment: "getAccountSnapshot", values: [AddressLike]): string;
|
|
@@ -53,7 +51,6 @@ export interface ICTokenInterface extends Interface {
|
|
|
53
51
|
decodeFunctionResult(functionFragment: "borrowBalanceCurrent", data: BytesLike): Result;
|
|
54
52
|
decodeFunctionResult(functionFragment: "borrowBalanceStored", data: BytesLike): Result;
|
|
55
53
|
decodeFunctionResult(functionFragment: "borrowRatePerBlock", data: BytesLike): Result;
|
|
56
|
-
decodeFunctionResult(functionFragment: "discountRateMantissa", data: BytesLike): Result;
|
|
57
54
|
decodeFunctionResult(functionFragment: "exchangeRateCurrent", data: BytesLike): Result;
|
|
58
55
|
decodeFunctionResult(functionFragment: "exchangeRateStored", data: BytesLike): Result;
|
|
59
56
|
decodeFunctionResult(functionFragment: "getAccountSnapshot", data: BytesLike): Result;
|
|
@@ -65,352 +62,6 @@ export interface ICTokenInterface extends Interface {
|
|
|
65
62
|
decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
|
|
66
63
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
67
64
|
}
|
|
68
|
-
export declare namespace AccrueInterestEvent {
|
|
69
|
-
type InputTuple = [
|
|
70
|
-
cashPrior: BigNumberish,
|
|
71
|
-
interestAccumulated: BigNumberish,
|
|
72
|
-
borrowIndex: BigNumberish,
|
|
73
|
-
totalBorrows: BigNumberish
|
|
74
|
-
];
|
|
75
|
-
type OutputTuple = [
|
|
76
|
-
cashPrior: bigint,
|
|
77
|
-
interestAccumulated: bigint,
|
|
78
|
-
borrowIndex: bigint,
|
|
79
|
-
totalBorrows: bigint
|
|
80
|
-
];
|
|
81
|
-
interface OutputObject {
|
|
82
|
-
cashPrior: bigint;
|
|
83
|
-
interestAccumulated: bigint;
|
|
84
|
-
borrowIndex: bigint;
|
|
85
|
-
totalBorrows: bigint;
|
|
86
|
-
}
|
|
87
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
88
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
89
|
-
type Log = TypedEventLog<Event>;
|
|
90
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
91
|
-
}
|
|
92
|
-
export declare namespace ApprovalEvent {
|
|
93
|
-
type InputTuple = [
|
|
94
|
-
owner: AddressLike,
|
|
95
|
-
spender: AddressLike,
|
|
96
|
-
amount: BigNumberish
|
|
97
|
-
];
|
|
98
|
-
type OutputTuple = [owner: string, spender: string, amount: bigint];
|
|
99
|
-
interface OutputObject {
|
|
100
|
-
owner: string;
|
|
101
|
-
spender: string;
|
|
102
|
-
amount: bigint;
|
|
103
|
-
}
|
|
104
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
105
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
106
|
-
type Log = TypedEventLog<Event>;
|
|
107
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
108
|
-
}
|
|
109
|
-
export declare namespace BorrowEvent {
|
|
110
|
-
type InputTuple = [
|
|
111
|
-
borrower: AddressLike,
|
|
112
|
-
borrowAmount: BigNumberish,
|
|
113
|
-
accountBorrows: BigNumberish,
|
|
114
|
-
totalBorrows: BigNumberish
|
|
115
|
-
];
|
|
116
|
-
type OutputTuple = [
|
|
117
|
-
borrower: string,
|
|
118
|
-
borrowAmount: bigint,
|
|
119
|
-
accountBorrows: bigint,
|
|
120
|
-
totalBorrows: bigint
|
|
121
|
-
];
|
|
122
|
-
interface OutputObject {
|
|
123
|
-
borrower: string;
|
|
124
|
-
borrowAmount: bigint;
|
|
125
|
-
accountBorrows: bigint;
|
|
126
|
-
totalBorrows: bigint;
|
|
127
|
-
}
|
|
128
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
129
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
130
|
-
type Log = TypedEventLog<Event>;
|
|
131
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
132
|
-
}
|
|
133
|
-
export declare namespace LiquidateBorrowEvent {
|
|
134
|
-
type InputTuple = [
|
|
135
|
-
liquidator: AddressLike,
|
|
136
|
-
borrower: AddressLike,
|
|
137
|
-
repayAmount: BigNumberish,
|
|
138
|
-
cTokenCollateral: AddressLike,
|
|
139
|
-
seizeTokens: BigNumberish
|
|
140
|
-
];
|
|
141
|
-
type OutputTuple = [
|
|
142
|
-
liquidator: string,
|
|
143
|
-
borrower: string,
|
|
144
|
-
repayAmount: bigint,
|
|
145
|
-
cTokenCollateral: string,
|
|
146
|
-
seizeTokens: bigint
|
|
147
|
-
];
|
|
148
|
-
interface OutputObject {
|
|
149
|
-
liquidator: string;
|
|
150
|
-
borrower: string;
|
|
151
|
-
repayAmount: bigint;
|
|
152
|
-
cTokenCollateral: string;
|
|
153
|
-
seizeTokens: bigint;
|
|
154
|
-
}
|
|
155
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
156
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
157
|
-
type Log = TypedEventLog<Event>;
|
|
158
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
159
|
-
}
|
|
160
|
-
export declare namespace MintEvent {
|
|
161
|
-
type InputTuple = [
|
|
162
|
-
minter: AddressLike,
|
|
163
|
-
mintAmount: BigNumberish,
|
|
164
|
-
mintTokens: BigNumberish
|
|
165
|
-
];
|
|
166
|
-
type OutputTuple = [
|
|
167
|
-
minter: string,
|
|
168
|
-
mintAmount: bigint,
|
|
169
|
-
mintTokens: bigint
|
|
170
|
-
];
|
|
171
|
-
interface OutputObject {
|
|
172
|
-
minter: string;
|
|
173
|
-
mintAmount: bigint;
|
|
174
|
-
mintTokens: bigint;
|
|
175
|
-
}
|
|
176
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
177
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
178
|
-
type Log = TypedEventLog<Event>;
|
|
179
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
180
|
-
}
|
|
181
|
-
export declare namespace NewAdminEvent {
|
|
182
|
-
type InputTuple = [oldAdmin: AddressLike, newAdmin: AddressLike];
|
|
183
|
-
type OutputTuple = [oldAdmin: string, newAdmin: string];
|
|
184
|
-
interface OutputObject {
|
|
185
|
-
oldAdmin: string;
|
|
186
|
-
newAdmin: string;
|
|
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 NewComptrollerEvent {
|
|
194
|
-
type InputTuple = [
|
|
195
|
-
oldComptroller: AddressLike,
|
|
196
|
-
newComptroller: AddressLike
|
|
197
|
-
];
|
|
198
|
-
type OutputTuple = [oldComptroller: string, newComptroller: string];
|
|
199
|
-
interface OutputObject {
|
|
200
|
-
oldComptroller: string;
|
|
201
|
-
newComptroller: string;
|
|
202
|
-
}
|
|
203
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
204
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
205
|
-
type Log = TypedEventLog<Event>;
|
|
206
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
207
|
-
}
|
|
208
|
-
export declare namespace NewDiscountRateEvent {
|
|
209
|
-
type InputTuple = [
|
|
210
|
-
oldDiscountRateMantissa: BigNumberish,
|
|
211
|
-
newDiscountRateMantissa: BigNumberish
|
|
212
|
-
];
|
|
213
|
-
type OutputTuple = [
|
|
214
|
-
oldDiscountRateMantissa: bigint,
|
|
215
|
-
newDiscountRateMantissa: bigint
|
|
216
|
-
];
|
|
217
|
-
interface OutputObject {
|
|
218
|
-
oldDiscountRateMantissa: bigint;
|
|
219
|
-
newDiscountRateMantissa: bigint;
|
|
220
|
-
}
|
|
221
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
222
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
223
|
-
type Log = TypedEventLog<Event>;
|
|
224
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
225
|
-
}
|
|
226
|
-
export declare namespace NewMarketInterestRateModelEvent {
|
|
227
|
-
type InputTuple = [
|
|
228
|
-
oldInterestRateModel: AddressLike,
|
|
229
|
-
newInterestRateModel: AddressLike
|
|
230
|
-
];
|
|
231
|
-
type OutputTuple = [
|
|
232
|
-
oldInterestRateModel: string,
|
|
233
|
-
newInterestRateModel: string
|
|
234
|
-
];
|
|
235
|
-
interface OutputObject {
|
|
236
|
-
oldInterestRateModel: string;
|
|
237
|
-
newInterestRateModel: string;
|
|
238
|
-
}
|
|
239
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
240
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
241
|
-
type Log = TypedEventLog<Event>;
|
|
242
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
243
|
-
}
|
|
244
|
-
export declare namespace NewPendingAdminEvent {
|
|
245
|
-
type InputTuple = [
|
|
246
|
-
oldPendingAdmin: AddressLike,
|
|
247
|
-
newPendingAdmin: AddressLike
|
|
248
|
-
];
|
|
249
|
-
type OutputTuple = [oldPendingAdmin: string, newPendingAdmin: string];
|
|
250
|
-
interface OutputObject {
|
|
251
|
-
oldPendingAdmin: string;
|
|
252
|
-
newPendingAdmin: string;
|
|
253
|
-
}
|
|
254
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
255
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
256
|
-
type Log = TypedEventLog<Event>;
|
|
257
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
258
|
-
}
|
|
259
|
-
export declare namespace NewReserveFactorEvent {
|
|
260
|
-
type InputTuple = [
|
|
261
|
-
oldReserveFactorMantissa: BigNumberish,
|
|
262
|
-
newReserveFactorMantissa: BigNumberish
|
|
263
|
-
];
|
|
264
|
-
type OutputTuple = [
|
|
265
|
-
oldReserveFactorMantissa: bigint,
|
|
266
|
-
newReserveFactorMantissa: bigint
|
|
267
|
-
];
|
|
268
|
-
interface OutputObject {
|
|
269
|
-
oldReserveFactorMantissa: bigint;
|
|
270
|
-
newReserveFactorMantissa: bigint;
|
|
271
|
-
}
|
|
272
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
273
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
274
|
-
type Log = TypedEventLog<Event>;
|
|
275
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
276
|
-
}
|
|
277
|
-
export declare namespace RedeemEvent {
|
|
278
|
-
type InputTuple = [
|
|
279
|
-
redeemer: AddressLike,
|
|
280
|
-
redeemAmount: BigNumberish,
|
|
281
|
-
redeemTokens: BigNumberish
|
|
282
|
-
];
|
|
283
|
-
type OutputTuple = [
|
|
284
|
-
redeemer: string,
|
|
285
|
-
redeemAmount: bigint,
|
|
286
|
-
redeemTokens: bigint
|
|
287
|
-
];
|
|
288
|
-
interface OutputObject {
|
|
289
|
-
redeemer: string;
|
|
290
|
-
redeemAmount: bigint;
|
|
291
|
-
redeemTokens: bigint;
|
|
292
|
-
}
|
|
293
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
294
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
295
|
-
type Log = TypedEventLog<Event>;
|
|
296
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
297
|
-
}
|
|
298
|
-
export declare namespace RedeemFaceValueEvent {
|
|
299
|
-
type InputTuple = [
|
|
300
|
-
redeemer: AddressLike,
|
|
301
|
-
provider: AddressLike,
|
|
302
|
-
repayAmount: BigNumberish,
|
|
303
|
-
seizeToken: AddressLike,
|
|
304
|
-
seizeAmount: BigNumberish,
|
|
305
|
-
redemptionRateMantissa: BigNumberish
|
|
306
|
-
];
|
|
307
|
-
type OutputTuple = [
|
|
308
|
-
redeemer: string,
|
|
309
|
-
provider: string,
|
|
310
|
-
repayAmount: bigint,
|
|
311
|
-
seizeToken: string,
|
|
312
|
-
seizeAmount: bigint,
|
|
313
|
-
redemptionRateMantissa: bigint
|
|
314
|
-
];
|
|
315
|
-
interface OutputObject {
|
|
316
|
-
redeemer: string;
|
|
317
|
-
provider: string;
|
|
318
|
-
repayAmount: bigint;
|
|
319
|
-
seizeToken: string;
|
|
320
|
-
seizeAmount: bigint;
|
|
321
|
-
redemptionRateMantissa: bigint;
|
|
322
|
-
}
|
|
323
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
324
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
325
|
-
type Log = TypedEventLog<Event>;
|
|
326
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
327
|
-
}
|
|
328
|
-
export declare namespace RepayBorrowEvent {
|
|
329
|
-
type InputTuple = [
|
|
330
|
-
payer: AddressLike,
|
|
331
|
-
borrower: AddressLike,
|
|
332
|
-
repayAmount: BigNumberish,
|
|
333
|
-
accountBorrows: BigNumberish,
|
|
334
|
-
totalBorrows: BigNumberish
|
|
335
|
-
];
|
|
336
|
-
type OutputTuple = [
|
|
337
|
-
payer: string,
|
|
338
|
-
borrower: string,
|
|
339
|
-
repayAmount: bigint,
|
|
340
|
-
accountBorrows: bigint,
|
|
341
|
-
totalBorrows: bigint
|
|
342
|
-
];
|
|
343
|
-
interface OutputObject {
|
|
344
|
-
payer: string;
|
|
345
|
-
borrower: string;
|
|
346
|
-
repayAmount: bigint;
|
|
347
|
-
accountBorrows: bigint;
|
|
348
|
-
totalBorrows: bigint;
|
|
349
|
-
}
|
|
350
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
351
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
352
|
-
type Log = TypedEventLog<Event>;
|
|
353
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
354
|
-
}
|
|
355
|
-
export declare namespace ReservesAddedEvent {
|
|
356
|
-
type InputTuple = [
|
|
357
|
-
benefactor: AddressLike,
|
|
358
|
-
addAmount: BigNumberish,
|
|
359
|
-
newTotalReserves: BigNumberish
|
|
360
|
-
];
|
|
361
|
-
type OutputTuple = [
|
|
362
|
-
benefactor: string,
|
|
363
|
-
addAmount: bigint,
|
|
364
|
-
newTotalReserves: bigint
|
|
365
|
-
];
|
|
366
|
-
interface OutputObject {
|
|
367
|
-
benefactor: string;
|
|
368
|
-
addAmount: bigint;
|
|
369
|
-
newTotalReserves: bigint;
|
|
370
|
-
}
|
|
371
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
372
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
373
|
-
type Log = TypedEventLog<Event>;
|
|
374
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
375
|
-
}
|
|
376
|
-
export declare namespace ReservesReducedEvent {
|
|
377
|
-
type InputTuple = [
|
|
378
|
-
admin: AddressLike,
|
|
379
|
-
reduceAmount: BigNumberish,
|
|
380
|
-
newTotalReserves: BigNumberish
|
|
381
|
-
];
|
|
382
|
-
type OutputTuple = [
|
|
383
|
-
admin: string,
|
|
384
|
-
reduceAmount: bigint,
|
|
385
|
-
newTotalReserves: bigint
|
|
386
|
-
];
|
|
387
|
-
interface OutputObject {
|
|
388
|
-
admin: string;
|
|
389
|
-
reduceAmount: bigint;
|
|
390
|
-
newTotalReserves: bigint;
|
|
391
|
-
}
|
|
392
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
393
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
394
|
-
type Log = TypedEventLog<Event>;
|
|
395
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
396
|
-
}
|
|
397
|
-
export declare namespace TransferEvent {
|
|
398
|
-
type InputTuple = [
|
|
399
|
-
from: AddressLike,
|
|
400
|
-
to: AddressLike,
|
|
401
|
-
amount: BigNumberish
|
|
402
|
-
];
|
|
403
|
-
type OutputTuple = [from: string, to: string, amount: bigint];
|
|
404
|
-
interface OutputObject {
|
|
405
|
-
from: string;
|
|
406
|
-
to: string;
|
|
407
|
-
amount: bigint;
|
|
408
|
-
}
|
|
409
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
410
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
411
|
-
type Log = TypedEventLog<Event>;
|
|
412
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
413
|
-
}
|
|
414
65
|
export interface ICToken extends BaseContract {
|
|
415
66
|
connect(runner?: ContractRunner | null): ICToken;
|
|
416
67
|
waitForDeployment(): Promise<this>;
|
|
@@ -486,7 +137,6 @@ export interface ICToken extends BaseContract {
|
|
|
486
137
|
bigint
|
|
487
138
|
], "view">;
|
|
488
139
|
borrowRatePerBlock: TypedContractMethod<[], [bigint], "view">;
|
|
489
|
-
discountRateMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
490
140
|
exchangeRateCurrent: TypedContractMethod<[], [bigint], "nonpayable">;
|
|
491
141
|
exchangeRateStored: TypedContractMethod<[], [bigint], "view">;
|
|
492
142
|
getAccountSnapshot: TypedContractMethod<[
|
|
@@ -564,7 +214,6 @@ export interface ICToken extends BaseContract {
|
|
|
564
214
|
getFunction(nameOrSignature: "borrowBalanceCurrent"): TypedContractMethod<[account: AddressLike], [bigint], "nonpayable">;
|
|
565
215
|
getFunction(nameOrSignature: "borrowBalanceStored"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
566
216
|
getFunction(nameOrSignature: "borrowRatePerBlock"): TypedContractMethod<[], [bigint], "view">;
|
|
567
|
-
getFunction(nameOrSignature: "discountRateMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
568
217
|
getFunction(nameOrSignature: "exchangeRateCurrent"): TypedContractMethod<[], [bigint], "nonpayable">;
|
|
569
218
|
getFunction(nameOrSignature: "exchangeRateStored"): TypedContractMethod<[], [bigint], "view">;
|
|
570
219
|
getFunction(nameOrSignature: "getAccountSnapshot"): TypedContractMethod<[
|
|
@@ -599,57 +248,5 @@ export interface ICToken extends BaseContract {
|
|
|
599
248
|
], [
|
|
600
249
|
boolean
|
|
601
250
|
], "nonpayable">;
|
|
602
|
-
|
|
603
|
-
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
604
|
-
getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
605
|
-
getEvent(key: "LiquidateBorrow"): TypedContractEvent<LiquidateBorrowEvent.InputTuple, LiquidateBorrowEvent.OutputTuple, LiquidateBorrowEvent.OutputObject>;
|
|
606
|
-
getEvent(key: "Mint"): TypedContractEvent<MintEvent.InputTuple, MintEvent.OutputTuple, MintEvent.OutputObject>;
|
|
607
|
-
getEvent(key: "NewAdmin"): TypedContractEvent<NewAdminEvent.InputTuple, NewAdminEvent.OutputTuple, NewAdminEvent.OutputObject>;
|
|
608
|
-
getEvent(key: "NewComptroller"): TypedContractEvent<NewComptrollerEvent.InputTuple, NewComptrollerEvent.OutputTuple, NewComptrollerEvent.OutputObject>;
|
|
609
|
-
getEvent(key: "NewDiscountRate"): TypedContractEvent<NewDiscountRateEvent.InputTuple, NewDiscountRateEvent.OutputTuple, NewDiscountRateEvent.OutputObject>;
|
|
610
|
-
getEvent(key: "NewMarketInterestRateModel"): TypedContractEvent<NewMarketInterestRateModelEvent.InputTuple, NewMarketInterestRateModelEvent.OutputTuple, NewMarketInterestRateModelEvent.OutputObject>;
|
|
611
|
-
getEvent(key: "NewPendingAdmin"): TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
|
|
612
|
-
getEvent(key: "NewReserveFactor"): TypedContractEvent<NewReserveFactorEvent.InputTuple, NewReserveFactorEvent.OutputTuple, NewReserveFactorEvent.OutputObject>;
|
|
613
|
-
getEvent(key: "Redeem"): TypedContractEvent<RedeemEvent.InputTuple, RedeemEvent.OutputTuple, RedeemEvent.OutputObject>;
|
|
614
|
-
getEvent(key: "RedeemFaceValue"): TypedContractEvent<RedeemFaceValueEvent.InputTuple, RedeemFaceValueEvent.OutputTuple, RedeemFaceValueEvent.OutputObject>;
|
|
615
|
-
getEvent(key: "RepayBorrow"): TypedContractEvent<RepayBorrowEvent.InputTuple, RepayBorrowEvent.OutputTuple, RepayBorrowEvent.OutputObject>;
|
|
616
|
-
getEvent(key: "ReservesAdded"): TypedContractEvent<ReservesAddedEvent.InputTuple, ReservesAddedEvent.OutputTuple, ReservesAddedEvent.OutputObject>;
|
|
617
|
-
getEvent(key: "ReservesReduced"): TypedContractEvent<ReservesReducedEvent.InputTuple, ReservesReducedEvent.OutputTuple, ReservesReducedEvent.OutputObject>;
|
|
618
|
-
getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
619
|
-
filters: {
|
|
620
|
-
"AccrueInterest(uint256,uint256,uint256,uint256)": TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
|
|
621
|
-
AccrueInterest: TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
|
|
622
|
-
"Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
623
|
-
Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
624
|
-
"Borrow(address,uint256,uint256,uint256)": TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
625
|
-
Borrow: TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
626
|
-
"LiquidateBorrow(address,address,uint256,address,uint256)": TypedContractEvent<LiquidateBorrowEvent.InputTuple, LiquidateBorrowEvent.OutputTuple, LiquidateBorrowEvent.OutputObject>;
|
|
627
|
-
LiquidateBorrow: TypedContractEvent<LiquidateBorrowEvent.InputTuple, LiquidateBorrowEvent.OutputTuple, LiquidateBorrowEvent.OutputObject>;
|
|
628
|
-
"Mint(address,uint256,uint256)": TypedContractEvent<MintEvent.InputTuple, MintEvent.OutputTuple, MintEvent.OutputObject>;
|
|
629
|
-
Mint: TypedContractEvent<MintEvent.InputTuple, MintEvent.OutputTuple, MintEvent.OutputObject>;
|
|
630
|
-
"NewAdmin(address,address)": TypedContractEvent<NewAdminEvent.InputTuple, NewAdminEvent.OutputTuple, NewAdminEvent.OutputObject>;
|
|
631
|
-
NewAdmin: TypedContractEvent<NewAdminEvent.InputTuple, NewAdminEvent.OutputTuple, NewAdminEvent.OutputObject>;
|
|
632
|
-
"NewComptroller(address,address)": TypedContractEvent<NewComptrollerEvent.InputTuple, NewComptrollerEvent.OutputTuple, NewComptrollerEvent.OutputObject>;
|
|
633
|
-
NewComptroller: TypedContractEvent<NewComptrollerEvent.InputTuple, NewComptrollerEvent.OutputTuple, NewComptrollerEvent.OutputObject>;
|
|
634
|
-
"NewDiscountRate(uint256,uint256)": TypedContractEvent<NewDiscountRateEvent.InputTuple, NewDiscountRateEvent.OutputTuple, NewDiscountRateEvent.OutputObject>;
|
|
635
|
-
NewDiscountRate: TypedContractEvent<NewDiscountRateEvent.InputTuple, NewDiscountRateEvent.OutputTuple, NewDiscountRateEvent.OutputObject>;
|
|
636
|
-
"NewMarketInterestRateModel(address,address)": TypedContractEvent<NewMarketInterestRateModelEvent.InputTuple, NewMarketInterestRateModelEvent.OutputTuple, NewMarketInterestRateModelEvent.OutputObject>;
|
|
637
|
-
NewMarketInterestRateModel: TypedContractEvent<NewMarketInterestRateModelEvent.InputTuple, NewMarketInterestRateModelEvent.OutputTuple, NewMarketInterestRateModelEvent.OutputObject>;
|
|
638
|
-
"NewPendingAdmin(address,address)": TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
|
|
639
|
-
NewPendingAdmin: TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
|
|
640
|
-
"NewReserveFactor(uint256,uint256)": TypedContractEvent<NewReserveFactorEvent.InputTuple, NewReserveFactorEvent.OutputTuple, NewReserveFactorEvent.OutputObject>;
|
|
641
|
-
NewReserveFactor: TypedContractEvent<NewReserveFactorEvent.InputTuple, NewReserveFactorEvent.OutputTuple, NewReserveFactorEvent.OutputObject>;
|
|
642
|
-
"Redeem(address,uint256,uint256)": TypedContractEvent<RedeemEvent.InputTuple, RedeemEvent.OutputTuple, RedeemEvent.OutputObject>;
|
|
643
|
-
Redeem: TypedContractEvent<RedeemEvent.InputTuple, RedeemEvent.OutputTuple, RedeemEvent.OutputObject>;
|
|
644
|
-
"RedeemFaceValue(address,address,uint256,address,uint256,uint256)": TypedContractEvent<RedeemFaceValueEvent.InputTuple, RedeemFaceValueEvent.OutputTuple, RedeemFaceValueEvent.OutputObject>;
|
|
645
|
-
RedeemFaceValue: TypedContractEvent<RedeemFaceValueEvent.InputTuple, RedeemFaceValueEvent.OutputTuple, RedeemFaceValueEvent.OutputObject>;
|
|
646
|
-
"RepayBorrow(address,address,uint256,uint256,uint256)": TypedContractEvent<RepayBorrowEvent.InputTuple, RepayBorrowEvent.OutputTuple, RepayBorrowEvent.OutputObject>;
|
|
647
|
-
RepayBorrow: TypedContractEvent<RepayBorrowEvent.InputTuple, RepayBorrowEvent.OutputTuple, RepayBorrowEvent.OutputObject>;
|
|
648
|
-
"ReservesAdded(address,uint256,uint256)": TypedContractEvent<ReservesAddedEvent.InputTuple, ReservesAddedEvent.OutputTuple, ReservesAddedEvent.OutputObject>;
|
|
649
|
-
ReservesAdded: TypedContractEvent<ReservesAddedEvent.InputTuple, ReservesAddedEvent.OutputTuple, ReservesAddedEvent.OutputObject>;
|
|
650
|
-
"ReservesReduced(address,uint256,uint256)": TypedContractEvent<ReservesReducedEvent.InputTuple, ReservesReducedEvent.OutputTuple, ReservesReducedEvent.OutputObject>;
|
|
651
|
-
ReservesReduced: TypedContractEvent<ReservesReducedEvent.InputTuple, ReservesReducedEvent.OutputTuple, ReservesReducedEvent.OutputObject>;
|
|
652
|
-
"Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
653
|
-
Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
654
|
-
};
|
|
251
|
+
filters: {};
|
|
655
252
|
}
|
|
@@ -9,21 +9,17 @@ export declare namespace ICompLogic {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export interface ICompLogicInterface extends Interface {
|
|
12
|
-
getFunction(nameOrSignature: "distributeBorrowerComp" | "distributeSupplierComp" | "
|
|
12
|
+
getFunction(nameOrSignature: "distributeBorrowerComp" | "distributeSupplierComp" | "initializeMarket" | "setCompSpeed" | "updateCompBorrowIndex" | "updateCompSupplyIndex"): FunctionFragment;
|
|
13
13
|
encodeFunctionData(functionFragment: "distributeBorrowerComp", values: [AddressLike, AddressLike, ICompLogic.ExpStruct]): string;
|
|
14
14
|
encodeFunctionData(functionFragment: "distributeSupplierComp", values: [AddressLike, AddressLike]): string;
|
|
15
|
-
encodeFunctionData(functionFragment: "getRedemptionRate", values?: undefined): string;
|
|
16
15
|
encodeFunctionData(functionFragment: "initializeMarket", values: [AddressLike, BigNumberish]): string;
|
|
17
16
|
encodeFunctionData(functionFragment: "setCompSpeed", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
18
|
-
encodeFunctionData(functionFragment: "updateBaseRateFromRedemption", values: [BigNumberish, BigNumberish]): string;
|
|
19
17
|
encodeFunctionData(functionFragment: "updateCompBorrowIndex", values: [AddressLike, ICompLogic.ExpStruct]): string;
|
|
20
18
|
encodeFunctionData(functionFragment: "updateCompSupplyIndex", values: [AddressLike]): string;
|
|
21
19
|
decodeFunctionResult(functionFragment: "distributeBorrowerComp", data: BytesLike): Result;
|
|
22
20
|
decodeFunctionResult(functionFragment: "distributeSupplierComp", data: BytesLike): Result;
|
|
23
|
-
decodeFunctionResult(functionFragment: "getRedemptionRate", data: BytesLike): Result;
|
|
24
21
|
decodeFunctionResult(functionFragment: "initializeMarket", data: BytesLike): Result;
|
|
25
22
|
decodeFunctionResult(functionFragment: "setCompSpeed", data: BytesLike): Result;
|
|
26
|
-
decodeFunctionResult(functionFragment: "updateBaseRateFromRedemption", data: BytesLike): Result;
|
|
27
23
|
decodeFunctionResult(functionFragment: "updateCompBorrowIndex", data: BytesLike): Result;
|
|
28
24
|
decodeFunctionResult(functionFragment: "updateCompSupplyIndex", data: BytesLike): Result;
|
|
29
25
|
}
|
|
@@ -53,7 +49,6 @@ export interface ICompLogic extends BaseContract {
|
|
|
53
49
|
], [
|
|
54
50
|
void
|
|
55
51
|
], "nonpayable">;
|
|
56
|
-
getRedemptionRate: TypedContractMethod<[], [bigint], "view">;
|
|
57
52
|
initializeMarket: TypedContractMethod<[
|
|
58
53
|
cToken: AddressLike,
|
|
59
54
|
blockNumber: BigNumberish
|
|
@@ -67,12 +62,6 @@ export interface ICompLogic extends BaseContract {
|
|
|
67
62
|
], [
|
|
68
63
|
void
|
|
69
64
|
], "nonpayable">;
|
|
70
|
-
updateBaseRateFromRedemption: TypedContractMethod<[
|
|
71
|
-
redeemAmount: BigNumberish,
|
|
72
|
-
_totalSupply: BigNumberish
|
|
73
|
-
], [
|
|
74
|
-
bigint
|
|
75
|
-
], "nonpayable">;
|
|
76
65
|
updateCompBorrowIndex: TypedContractMethod<[
|
|
77
66
|
cToken: AddressLike,
|
|
78
67
|
marketBorrowIndex: ICompLogic.ExpStruct
|
|
@@ -98,7 +87,6 @@ export interface ICompLogic extends BaseContract {
|
|
|
98
87
|
], [
|
|
99
88
|
void
|
|
100
89
|
], "nonpayable">;
|
|
101
|
-
getFunction(nameOrSignature: "getRedemptionRate"): TypedContractMethod<[], [bigint], "view">;
|
|
102
90
|
getFunction(nameOrSignature: "initializeMarket"): TypedContractMethod<[
|
|
103
91
|
cToken: AddressLike,
|
|
104
92
|
blockNumber: BigNumberish
|
|
@@ -112,12 +100,6 @@ export interface ICompLogic extends BaseContract {
|
|
|
112
100
|
], [
|
|
113
101
|
void
|
|
114
102
|
], "nonpayable">;
|
|
115
|
-
getFunction(nameOrSignature: "updateBaseRateFromRedemption"): TypedContractMethod<[
|
|
116
|
-
redeemAmount: BigNumberish,
|
|
117
|
-
_totalSupply: BigNumberish
|
|
118
|
-
], [
|
|
119
|
-
bigint
|
|
120
|
-
], "nonpayable">;
|
|
121
103
|
getFunction(nameOrSignature: "updateCompBorrowIndex"): TypedContractMethod<[
|
|
122
104
|
cToken: AddressLike,
|
|
123
105
|
marketBorrowIndex: ICompLogic.ExpStruct
|