@meterio/sumer-js 0.2.132 → 0.2.134
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 +226 -0
- package/dist/nodejs/abi.js +5260 -45
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/constants/arbitrum.js +0 -11
- package/dist/nodejs/constants/arbitrum.js.map +1 -1
- package/dist/nodejs/constants/b2main.js +0 -11
- package/dist/nodejs/constants/b2main.js.map +1 -1
- package/dist/nodejs/constants/basemain.js +0 -11
- package/dist/nodejs/constants/basemain.js.map +1 -1
- package/dist/nodejs/constants/basetest.js +0 -11
- package/dist/nodejs/constants/basetest.js.map +1 -1
- package/dist/nodejs/constants/berabartio.js +0 -11
- package/dist/nodejs/constants/berabartio.js.map +1 -1
- package/dist/nodejs/constants/beramain.js +0 -11
- package/dist/nodejs/constants/beramain.js.map +1 -1
- package/dist/nodejs/constants/bsc.js +0 -11
- package/dist/nodejs/constants/bsc.js.map +1 -1
- package/dist/nodejs/constants/core.js +0 -11
- package/dist/nodejs/constants/core.js.map +1 -1
- package/dist/nodejs/constants/ethereum.js +0 -11
- package/dist/nodejs/constants/ethereum.js.map +1 -1
- package/dist/nodejs/constants/hemi.js +0 -11
- package/dist/nodejs/constants/hemi.js.map +1 -1
- package/dist/nodejs/constants/metertest.js +0 -11
- package/dist/nodejs/constants/metertest.js.map +1 -1
- package/dist/nodejs/constants/monadtest.js +0 -11
- package/dist/nodejs/constants/monadtest.js.map +1 -1
- package/dist/nodejs/constants/sepolia.d.ts +18 -2
- package/dist/nodejs/constants/sepolia.js +48 -30
- package/dist/nodejs/constants/sepolia.js.map +1 -1
- package/dist/nodejs/constants/zklink.js +0 -11
- package/dist/nodejs/constants/zklink.js.map +1 -1
- package/dist/nodejs/errorABIs.js +1044 -0
- package/dist/nodejs/errorABIs.js.map +1 -1
- package/dist/nodejs/index.d.ts +226 -0
- package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/CAToken.d.ts +1002 -0
- package/dist/nodejs/typechain/contracts/{Oracle/dualCoreAdapter.sol/ICoreVault.js → CToken/CAToken.sol/CAToken.js} +1 -1
- package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/CAToken.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAToken.d.ts +29 -0
- package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAToken.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAToken.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAaveV3Pool.d.ts +133 -0
- package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAaveV3Pool.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAaveV3Pool.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/index.d.ts +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAToken.d.ts +37 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAToken.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAToken.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAaveV3Pool.d.ts +133 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAaveV3Pool.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAaveV3Pool.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/index.d.ts +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +17 -1
- package/dist/nodejs/typechain/contracts/CToken/CEther.d.ts +17 -1
- package/dist/nodejs/typechain/contracts/CToken/CToken.d.ts +17 -1
- package/dist/nodejs/typechain/contracts/CToken/CTokenStorage.d.ts +5 -1
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +17 -1
- package/dist/nodejs/typechain/contracts/CToken/index.d.ts +4 -0
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.sol/CInfraredVault.d.ts +17 -1
- package/dist/nodejs/typechain/contracts/InterestRateModel/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Oracle/{dualCoreAdapter.sol/ICoreVault.d.ts → aprMONAdapter.sol/AprMONAdapter.d.ts} +10 -10
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/IAprMon.d.ts +37 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/IAprMon.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/IAprMon.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/index.d.ts +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/CAToken__factory.d.ts +1673 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/CAToken__factory.js +2148 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/CAToken__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAToken__factory.d.ts +31 -0
- package/dist/nodejs/typechain/factories/contracts/{Oracle/dualCoreAdapter.sol/ICoreVault__factory.js → CToken/CAToken.sol/IAToken__factory.js} +19 -6
- package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAToken__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAaveV3Pool__factory.d.ts +145 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAaveV3Pool__factory.js +199 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAaveV3Pool__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/index.d.ts +3 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/index.js +13 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/CAavePool__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/CAavePool__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAToken__factory.d.ts +55 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAToken__factory.js +84 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAToken__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAaveV3Pool__factory.d.ts +145 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAaveV3Pool__factory.js +199 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAaveV3Pool__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/index.d.ts +3 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/index.js +13 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +35 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +46 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +35 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +46 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.d.ts +14 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js +19 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +34 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +45 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +35 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +46 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/index.js +26 -1
- 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 +35 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.js +46 -1
- 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 +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js +25 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter__factory.d.ts +44 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter__factory.js +69 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/IAprMon__factory.d.ts +35 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/IAprMon__factory.js +58 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/IAprMon__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.d.ts +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.js +1 -3
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js +2 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js.map +1 -1
- package/dist/nodejs/typechain/hardhat.d.ts +178 -16
- package/dist/nodejs/typechain/index.d.ts +14 -2
- package/dist/nodejs/typechain/index.js +16 -4
- package/dist/nodejs/typechain/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/ICoreVault.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/ICoreVault__factory.d.ts +0 -21
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/ICoreVault__factory.js.map +0 -1
|
@@ -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" | "seize" | "supplyRatePerBlock" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
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" | "revokeWhitelist" | "seize" | "supplyRatePerBlock" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance" | "whitelist" | "whitelisted"): 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,6 +41,7 @@ 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;
|
|
44
45
|
encodeFunctionData(functionFragment: "seize", values: [
|
|
45
46
|
AddressLike,
|
|
46
47
|
AddressLike,
|
|
@@ -59,6 +60,8 @@ export interface CTokenInterface extends Interface {
|
|
|
59
60
|
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
60
61
|
encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
|
|
61
62
|
encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
|
|
63
|
+
encodeFunctionData(functionFragment: "whitelist", values: [AddressLike]): string;
|
|
64
|
+
encodeFunctionData(functionFragment: "whitelisted", values: [AddressLike]): string;
|
|
62
65
|
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
63
66
|
decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
|
|
64
67
|
decodeFunctionResult(functionFragment: "_setComptroller", data: BytesLike): Result;
|
|
@@ -97,6 +100,7 @@ export interface CTokenInterface extends Interface {
|
|
|
97
100
|
decodeFunctionResult(functionFragment: "percentScale", data: BytesLike): Result;
|
|
98
101
|
decodeFunctionResult(functionFragment: "protocolSeizeShareMantissa", data: BytesLike): Result;
|
|
99
102
|
decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
|
|
103
|
+
decodeFunctionResult(functionFragment: "revokeWhitelist", data: BytesLike): Result;
|
|
100
104
|
decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
|
|
101
105
|
decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
|
|
102
106
|
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
|
@@ -108,6 +112,8 @@ export interface CTokenInterface extends Interface {
|
|
|
108
112
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
109
113
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
110
114
|
decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
|
|
115
|
+
decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
|
|
116
|
+
decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
|
|
111
117
|
}
|
|
112
118
|
export declare namespace AccrueInterestEvent {
|
|
113
119
|
type InputTuple = [
|
|
@@ -566,6 +572,11 @@ export interface CToken extends BaseContract {
|
|
|
566
572
|
percentScale: TypedContractMethod<[], [bigint], "view">;
|
|
567
573
|
protocolSeizeShareMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
568
574
|
reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
575
|
+
revokeWhitelist: TypedContractMethod<[
|
|
576
|
+
addr: AddressLike
|
|
577
|
+
], [
|
|
578
|
+
void
|
|
579
|
+
], "nonpayable">;
|
|
569
580
|
seize: TypedContractMethod<[
|
|
570
581
|
liquidator: AddressLike,
|
|
571
582
|
borrower: AddressLike,
|
|
@@ -597,6 +608,8 @@ export interface CToken extends BaseContract {
|
|
|
597
608
|
], "nonpayable">;
|
|
598
609
|
underlying: TypedContractMethod<[], [string], "view">;
|
|
599
610
|
underlyingBalance: TypedContractMethod<[], [bigint], "view">;
|
|
611
|
+
whitelist: TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
612
|
+
whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
600
613
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
601
614
|
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
602
615
|
getFunction(nameOrSignature: "_reduceReserves"): TypedContractMethod<[reduceAmount: BigNumberish], [void], "nonpayable">;
|
|
@@ -672,6 +685,7 @@ export interface CToken extends BaseContract {
|
|
|
672
685
|
getFunction(nameOrSignature: "percentScale"): TypedContractMethod<[], [bigint], "view">;
|
|
673
686
|
getFunction(nameOrSignature: "protocolSeizeShareMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
674
687
|
getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
688
|
+
getFunction(nameOrSignature: "revokeWhitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
675
689
|
getFunction(nameOrSignature: "seize"): TypedContractMethod<[
|
|
676
690
|
liquidator: AddressLike,
|
|
677
691
|
borrower: AddressLike,
|
|
@@ -703,6 +717,8 @@ export interface CToken extends BaseContract {
|
|
|
703
717
|
], "nonpayable">;
|
|
704
718
|
getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
|
|
705
719
|
getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
|
|
720
|
+
getFunction(nameOrSignature: "whitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
721
|
+
getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
706
722
|
getEvent(key: "AccrueInterest"): TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
|
|
707
723
|
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
708
724
|
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"): FunctionFragment;
|
|
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" | "whitelisted"): 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,6 +53,7 @@ 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;
|
|
56
57
|
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
57
58
|
decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
|
|
58
59
|
decodeFunctionResult(functionFragment: "_setComptroller", data: BytesLike): Result;
|
|
@@ -97,6 +98,7 @@ export interface CTokenStorageInterface extends Interface {
|
|
|
97
98
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
98
99
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
99
100
|
decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
|
|
101
|
+
decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
|
|
100
102
|
}
|
|
101
103
|
export interface CTokenStorage extends BaseContract {
|
|
102
104
|
connect(runner?: ContractRunner | null): CTokenStorage;
|
|
@@ -225,6 +227,7 @@ export interface CTokenStorage extends BaseContract {
|
|
|
225
227
|
], "nonpayable">;
|
|
226
228
|
underlying: TypedContractMethod<[], [string], "view">;
|
|
227
229
|
underlyingBalance: TypedContractMethod<[], [bigint], "view">;
|
|
230
|
+
whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
228
231
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
229
232
|
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
230
233
|
getFunction(nameOrSignature: "_reduceReserves"): TypedContractMethod<[reduceAmount: BigNumberish], [void], "nonpayable">;
|
|
@@ -316,5 +319,6 @@ export interface CTokenStorage extends BaseContract {
|
|
|
316
319
|
], "nonpayable">;
|
|
317
320
|
getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
|
|
318
321
|
getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
|
|
322
|
+
getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
319
323
|
filters: {};
|
|
320
324
|
}
|
|
@@ -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" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
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" | "revokeWhitelist" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance" | "whitelist" | "whitelisted"): 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,6 +70,7 @@ 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;
|
|
73
74
|
encodeFunctionData(functionFragment: "seize", values: [
|
|
74
75
|
AddressLike,
|
|
75
76
|
AddressLike,
|
|
@@ -90,6 +91,8 @@ export interface SuErc20Interface extends Interface {
|
|
|
90
91
|
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
91
92
|
encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
|
|
92
93
|
encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
|
|
94
|
+
encodeFunctionData(functionFragment: "whitelist", values: [AddressLike]): string;
|
|
95
|
+
encodeFunctionData(functionFragment: "whitelisted", values: [AddressLike]): string;
|
|
93
96
|
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
94
97
|
decodeFunctionResult(functionFragment: "_addReserves", data: BytesLike): Result;
|
|
95
98
|
decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
|
|
@@ -141,6 +144,7 @@ export interface SuErc20Interface extends Interface {
|
|
|
141
144
|
decodeFunctionResult(functionFragment: "repayBorrowBehalf", data: BytesLike): Result;
|
|
142
145
|
decodeFunctionResult(functionFragment: "repayBorrowWithPermit", data: BytesLike): Result;
|
|
143
146
|
decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
|
|
147
|
+
decodeFunctionResult(functionFragment: "revokeWhitelist", data: BytesLike): Result;
|
|
144
148
|
decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
|
|
145
149
|
decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
|
|
146
150
|
decodeFunctionResult(functionFragment: "sweepToken", data: BytesLike): Result;
|
|
@@ -154,6 +158,8 @@ export interface SuErc20Interface extends Interface {
|
|
|
154
158
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
155
159
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
156
160
|
decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
|
|
161
|
+
decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
|
|
162
|
+
decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
|
|
157
163
|
}
|
|
158
164
|
export declare namespace AccrueInterestEvent {
|
|
159
165
|
type InputTuple = [
|
|
@@ -705,6 +711,11 @@ export interface SuErc20 extends BaseContract {
|
|
|
705
711
|
void
|
|
706
712
|
], "nonpayable">;
|
|
707
713
|
reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
714
|
+
revokeWhitelist: TypedContractMethod<[
|
|
715
|
+
addr: AddressLike
|
|
716
|
+
], [
|
|
717
|
+
void
|
|
718
|
+
], "nonpayable">;
|
|
708
719
|
seize: TypedContractMethod<[
|
|
709
720
|
liquidator: AddressLike,
|
|
710
721
|
borrower: AddressLike,
|
|
@@ -738,6 +749,8 @@ export interface SuErc20 extends BaseContract {
|
|
|
738
749
|
], "nonpayable">;
|
|
739
750
|
underlying: TypedContractMethod<[], [string], "view">;
|
|
740
751
|
underlyingBalance: TypedContractMethod<[], [bigint], "view">;
|
|
752
|
+
whitelist: TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
753
|
+
whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
741
754
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
742
755
|
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
743
756
|
getFunction(nameOrSignature: "_addReserves"): TypedContractMethod<[addAmount: BigNumberish], [void], "nonpayable">;
|
|
@@ -875,6 +888,7 @@ export interface SuErc20 extends BaseContract {
|
|
|
875
888
|
void
|
|
876
889
|
], "nonpayable">;
|
|
877
890
|
getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
891
|
+
getFunction(nameOrSignature: "revokeWhitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
878
892
|
getFunction(nameOrSignature: "seize"): TypedContractMethod<[
|
|
879
893
|
liquidator: AddressLike,
|
|
880
894
|
borrower: AddressLike,
|
|
@@ -908,6 +922,8 @@ export interface SuErc20 extends BaseContract {
|
|
|
908
922
|
], "nonpayable">;
|
|
909
923
|
getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
|
|
910
924
|
getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
|
|
925
|
+
getFunction(nameOrSignature: "whitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
926
|
+
getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
911
927
|
getEvent(key: "AccrueInterest"): TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
|
|
912
928
|
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
913
929
|
getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type * as caTokenSol from "./CAToken.sol";
|
|
2
|
+
export type { caTokenSol };
|
|
3
|
+
import type * as cAavePoolSol from "./CAavePool.sol";
|
|
4
|
+
export type { cAavePoolSol };
|
|
1
5
|
export type { CErc20 } from "./CErc20";
|
|
2
6
|
export type { CEther } from "./CEther";
|
|
3
7
|
export type { CToken } from "./CToken";
|
|
@@ -11,7 +11,7 @@ export declare namespace IInfraredVault {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
export interface CInfraredVaultInterface extends Interface {
|
|
14
|
-
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "claimAll" | "claimProtocolRewards" | "comptroller" | "decimals" | "discountRateMantissa" | "earned" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize(address,address,address,uint256,string,string,uint8,address)" | "initialize(address,address,address,uint256,string,string,uint8,address,address)" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "percentScale" | "points" | "protocolRewards" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "seize" | "shareOf" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
14
|
+
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "claimAll" | "claimProtocolRewards" | "comptroller" | "decimals" | "discountRateMantissa" | "earned" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize(address,address,address,uint256,string,string,uint8,address)" | "initialize(address,address,address,uint256,string,string,uint8,address,address)" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "percentScale" | "points" | "protocolRewards" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "revokeWhitelist" | "seize" | "shareOf" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance" | "whitelist" | "whitelisted"): FunctionFragment;
|
|
15
15
|
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer" | "UpdatePoints" | "UserRewardPaid"): EventFragment;
|
|
16
16
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
17
17
|
encodeFunctionData(functionFragment: "_addReserves", values: [BigNumberish]): string;
|
|
@@ -87,6 +87,7 @@ export interface CInfraredVaultInterface extends Interface {
|
|
|
87
87
|
encodeFunctionData(functionFragment: "repayBorrowBehalf", values: [AddressLike, BigNumberish]): string;
|
|
88
88
|
encodeFunctionData(functionFragment: "repayBorrowWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
89
89
|
encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
|
|
90
|
+
encodeFunctionData(functionFragment: "revokeWhitelist", values: [AddressLike]): string;
|
|
90
91
|
encodeFunctionData(functionFragment: "seize", values: [
|
|
91
92
|
AddressLike,
|
|
92
93
|
AddressLike,
|
|
@@ -108,6 +109,8 @@ export interface CInfraredVaultInterface extends Interface {
|
|
|
108
109
|
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
109
110
|
encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
|
|
110
111
|
encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
|
|
112
|
+
encodeFunctionData(functionFragment: "whitelist", values: [AddressLike]): string;
|
|
113
|
+
encodeFunctionData(functionFragment: "whitelisted", values: [AddressLike]): string;
|
|
111
114
|
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
112
115
|
decodeFunctionResult(functionFragment: "_addReserves", data: BytesLike): Result;
|
|
113
116
|
decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
|
|
@@ -163,6 +166,7 @@ export interface CInfraredVaultInterface extends Interface {
|
|
|
163
166
|
decodeFunctionResult(functionFragment: "repayBorrowBehalf", data: BytesLike): Result;
|
|
164
167
|
decodeFunctionResult(functionFragment: "repayBorrowWithPermit", data: BytesLike): Result;
|
|
165
168
|
decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
|
|
169
|
+
decodeFunctionResult(functionFragment: "revokeWhitelist", data: BytesLike): Result;
|
|
166
170
|
decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
|
|
167
171
|
decodeFunctionResult(functionFragment: "shareOf", data: BytesLike): Result;
|
|
168
172
|
decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
|
|
@@ -177,6 +181,8 @@ export interface CInfraredVaultInterface extends Interface {
|
|
|
177
181
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
178
182
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
179
183
|
decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
|
|
184
|
+
decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
|
|
185
|
+
decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
|
|
180
186
|
}
|
|
181
187
|
export declare namespace AccrueInterestEvent {
|
|
182
188
|
type InputTuple = [
|
|
@@ -786,6 +792,11 @@ export interface CInfraredVault extends BaseContract {
|
|
|
786
792
|
void
|
|
787
793
|
], "nonpayable">;
|
|
788
794
|
reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
795
|
+
revokeWhitelist: TypedContractMethod<[
|
|
796
|
+
addr: AddressLike
|
|
797
|
+
], [
|
|
798
|
+
void
|
|
799
|
+
], "nonpayable">;
|
|
789
800
|
seize: TypedContractMethod<[
|
|
790
801
|
liquidator: AddressLike,
|
|
791
802
|
borrower: AddressLike,
|
|
@@ -820,6 +831,8 @@ export interface CInfraredVault extends BaseContract {
|
|
|
820
831
|
], "nonpayable">;
|
|
821
832
|
underlying: TypedContractMethod<[], [string], "view">;
|
|
822
833
|
underlyingBalance: TypedContractMethod<[], [bigint], "view">;
|
|
834
|
+
whitelist: TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
835
|
+
whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
823
836
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
824
837
|
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
825
838
|
getFunction(nameOrSignature: "_addReserves"): TypedContractMethod<[addAmount: BigNumberish], [void], "nonpayable">;
|
|
@@ -966,6 +979,7 @@ export interface CInfraredVault extends BaseContract {
|
|
|
966
979
|
void
|
|
967
980
|
], "nonpayable">;
|
|
968
981
|
getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
982
|
+
getFunction(nameOrSignature: "revokeWhitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
969
983
|
getFunction(nameOrSignature: "seize"): TypedContractMethod<[
|
|
970
984
|
liquidator: AddressLike,
|
|
971
985
|
borrower: AddressLike,
|
|
@@ -1000,6 +1014,8 @@ export interface CInfraredVault extends BaseContract {
|
|
|
1000
1014
|
], "nonpayable">;
|
|
1001
1015
|
getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
|
|
1002
1016
|
getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
|
|
1017
|
+
getFunction(nameOrSignature: "whitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
1018
|
+
getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
1003
1019
|
getEvent(key: "AccrueInterest"): TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
|
|
1004
1020
|
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
1005
1021
|
getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type * as jumpRateModelForAaveSol from "./JumpRateModelForAave.sol";
|
|
2
|
+
export type { jumpRateModelForAaveSol };
|
|
1
3
|
export type { FixedInterestRateModel } from "./FixedInterestRateModel";
|
|
2
4
|
export type { InterestRateModel } from "./InterestRateModel";
|
|
3
5
|
export type { JumpRateModelV2 } from "./JumpRateModelV2";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { BaseContract,
|
|
1
|
+
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
|
-
export interface
|
|
4
|
-
getFunction(nameOrSignature: "
|
|
5
|
-
encodeFunctionData(functionFragment: "
|
|
6
|
-
decodeFunctionResult(functionFragment: "
|
|
3
|
+
export interface AprMONAdapterInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "exchangeRate"): FunctionFragment;
|
|
5
|
+
encodeFunctionData(functionFragment: "exchangeRate", values?: undefined): string;
|
|
6
|
+
decodeFunctionResult(functionFragment: "exchangeRate", data: BytesLike): Result;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
9
|
-
connect(runner?: ContractRunner | null):
|
|
8
|
+
export interface AprMONAdapter extends BaseContract {
|
|
9
|
+
connect(runner?: ContractRunner | null): AprMONAdapter;
|
|
10
10
|
waitForDeployment(): Promise<this>;
|
|
11
|
-
interface:
|
|
11
|
+
interface: AprMONAdapterInterface;
|
|
12
12
|
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
13
13
|
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
14
14
|
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
@@ -18,8 +18,8 @@ export interface ICoreVault extends BaseContract {
|
|
|
18
18
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
19
19
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
20
20
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
21
|
-
|
|
21
|
+
exchangeRate: TypedContractMethod<[], [bigint], "view">;
|
|
22
22
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
23
|
-
getFunction(nameOrSignature: "
|
|
23
|
+
getFunction(nameOrSignature: "exchangeRate"): TypedContractMethod<[], [bigint], "view">;
|
|
24
24
|
filters: {};
|
|
25
25
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AprMONAdapter.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
|
+
export interface IAprMonInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "convertToAssets" | "convertToShares"): FunctionFragment;
|
|
5
|
+
encodeFunctionData(functionFragment: "convertToAssets", values: [BigNumberish]): string;
|
|
6
|
+
encodeFunctionData(functionFragment: "convertToShares", values: [BigNumberish]): string;
|
|
7
|
+
decodeFunctionResult(functionFragment: "convertToAssets", data: BytesLike): Result;
|
|
8
|
+
decodeFunctionResult(functionFragment: "convertToShares", data: BytesLike): Result;
|
|
9
|
+
}
|
|
10
|
+
export interface IAprMon extends BaseContract {
|
|
11
|
+
connect(runner?: ContractRunner | null): IAprMon;
|
|
12
|
+
waitForDeployment(): Promise<this>;
|
|
13
|
+
interface: IAprMonInterface;
|
|
14
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
15
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
16
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
17
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
18
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
19
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
20
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
21
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
22
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
23
|
+
convertToAssets: TypedContractMethod<[
|
|
24
|
+
shares: BigNumberish
|
|
25
|
+
], [
|
|
26
|
+
bigint
|
|
27
|
+
], "view">;
|
|
28
|
+
convertToShares: TypedContractMethod<[
|
|
29
|
+
amount: BigNumberish
|
|
30
|
+
], [
|
|
31
|
+
bigint
|
|
32
|
+
], "view">;
|
|
33
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
34
|
+
getFunction(nameOrSignature: "convertToAssets"): TypedContractMethod<[shares: BigNumberish], [bigint], "view">;
|
|
35
|
+
getFunction(nameOrSignature: "convertToShares"): TypedContractMethod<[amount: BigNumberish], [bigint], "view">;
|
|
36
|
+
filters: {};
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAprMon.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/Oracle/aprMONAdapter.sol/IAprMon.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/Oracle/aprMONAdapter.sol/index.ts"],"names":[],"mappings":""}
|
|
@@ -10,6 +10,8 @@ import type * as wstEthAdapterSol from "./WstETHAdapter.sol";
|
|
|
10
10
|
export type { wstEthAdapterSol };
|
|
11
11
|
import type * as wstMtrgAdapterSol from "./WstMTRGAdapter.sol";
|
|
12
12
|
export type { wstMtrgAdapterSol };
|
|
13
|
+
import type * as aprMonAdapterSol from "./aprMONAdapter.sol";
|
|
14
|
+
export type { aprMonAdapterSol };
|
|
13
15
|
import type * as dualCoreAdapterSol from "./dualCoreAdapter.sol";
|
|
14
16
|
export type { dualCoreAdapterSol };
|
|
15
17
|
import type * as stCoreAdapterSol from "./stCoreAdapter.sol";
|