@meterio/sumer-js 0.1.42 → 0.1.44
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 +36 -74
- package/dist/nodejs/abi.js +594 -717
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/comptroller.d.ts +1 -0
- package/dist/nodejs/comptroller.js +4 -2
- package/dist/nodejs/comptroller.js.map +1 -1
- package/dist/nodejs/constants/arbitrum.d.ts +1 -0
- package/dist/nodejs/constants/arbitrum.js +1 -0
- package/dist/nodejs/constants/arbitrum.js.map +1 -1
- package/dist/nodejs/constants/metertest.d.ts +2 -10
- package/dist/nodejs/constants/metertest.js +2 -11
- package/dist/nodejs/constants/metertest.js.map +1 -1
- package/dist/nodejs/errors.d.ts +1 -1
- package/dist/nodejs/errors.js +3 -3
- package/dist/nodejs/errors.js.map +1 -1
- package/dist/nodejs/index.d.ts +37 -75
- package/dist/nodejs/typechain/@openzeppelin/contracts/governance/TimelockController.d.ts +1 -16
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/index.d.ts +0 -2
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.d.ts +108 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/index.d.ts +1 -2
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.d.ts +61 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +2 -1
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/index.d.ts +0 -3
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +89 -2
- package/dist/nodejs/typechain/contracts/ERC20/ERC20MinterBurnerPauserPermit.d.ts +2 -57
- package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestRateModel.d.ts +139 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestRateModel.js +3 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestRateModel.js.map +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/InterestRateModel.d.ts +60 -4
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModelV2.d.ts +53 -3
- package/dist/nodejs/typechain/contracts/InterestRateModel/WhitePaperInterestRateModel.d.ts +57 -3
- package/dist/nodejs/typechain/contracts/InterestRateModel/index.d.ts +1 -6
- package/dist/nodejs/typechain/contracts/SumerTimelockController.d.ts +1 -16
- package/dist/nodejs/typechain/contracts/proxy/SumerProxy.d.ts +45 -2
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/governance/TimelockController__factory.d.ts +9 -24
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/governance/TimelockController__factory.js +9 -28
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/governance/TimelockController__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/index.d.ts +0 -2
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/index.js +1 -5
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.js +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.d.ts +6 -6
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.js +6 -6
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy__factory.d.ts +133 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy__factory.js +184 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/index.d.ts +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/index.js +3 -25
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.js +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.d.ts +65 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.js +95 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js +9 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js +25 -3
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser__factory.js +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/index.d.ts +0 -2
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/index.js +1 -4
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +4 -4
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +4 -4
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +4 -4
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +4 -4
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +3 -3
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +3 -3
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +4 -4
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +4 -4
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +4 -12
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +4 -14
- 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 +4 -12
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +4 -14
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +99 -4
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +125 -4
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +4 -4
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +4 -4
- 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/ERC20/ERC20MinterBurnerPauserPermit__factory.d.ts +1 -52
- package/dist/nodejs/typechain/factories/contracts/ERC20/ERC20MinterBurnerPauserPermit__factory.js +1 -66
- package/dist/nodejs/typechain/factories/contracts/ERC20/ERC20MinterBurnerPauserPermit__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/ERC20/ERC20MinterBurnerPauser__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/ERC20/ERC20MinterBurnerPauser__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestRateModel__factory.d.ts +204 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestRateModel__factory.js +275 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestRateModel__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/InterestRateModel__factory.d.ts +72 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/InterestRateModel__factory.js +91 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/InterestRateModel__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelV2__factory.d.ts +66 -8
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelV2__factory.js +83 -10
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelV2__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModel__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModel__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/WhitePaperInterestRateModel__factory.d.ts +73 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/WhitePaperInterestRateModel__factory.js +92 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/WhitePaperInterestRateModel__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/ZeroInterestRateModel__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/ZeroInterestRateModel__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.d.ts +1 -4
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js +3 -30
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/suTokenInterestModel.sol/SuTokenRateModel__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/suTokenInterestModel.sol/SuTokenRateModel__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Library/RateLimiter__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Library/RateLimiter__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/ChainlinkFeedAdaptor_ETHToUSD__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/ChainlinkFeedAdaptor_ETHToUSD__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracleSafe__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracleSafe__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +4 -12
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +4 -14
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/SumerTimelockController__factory.d.ts +9 -24
- package/dist/nodejs/typechain/factories/contracts/SumerTimelockController__factory.js +9 -28
- package/dist/nodejs/typechain/factories/contracts/SumerTimelockController__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +4 -44
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +4 -56
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxyAdmin__factory.d.ts +6 -6
- package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxyAdmin__factory.js +6 -6
- package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxyAdmin__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxy__factory.d.ts +55 -1
- package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxy__factory.js +71 -1
- package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxy__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/CommunalFarm__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/CommunalFarm__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/CommunalFarm__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeFXSRewardsDistributor__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeFXSRewardsDistributor__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/StakingRewardsMultiGauge__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/StakingRewardsMultiGauge__factory.js +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/hardhat.d.ts +26 -170
- package/dist/nodejs/typechain/index.d.ts +6 -22
- package/dist/nodejs/typechain/index.js +7 -24
- package/dist/nodejs/typechain/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,48 @@
|
|
|
1
|
-
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
-
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface InterestRateModelInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "getBorrowRate" | "getSupplyRate" | "isInterestRateModel"): FunctionFragment;
|
|
4
|
+
getFunction(nameOrSignature: "acceptOwnership" | "getBorrowRate" | "getSupplyRate" | "isInterestRateModel" | "owner" | "pendingOwner" | "renounceOwnership" | "transferOwnership"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferStarted" | "OwnershipTransferred"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
|
|
5
7
|
encodeFunctionData(functionFragment: "getBorrowRate", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
6
8
|
encodeFunctionData(functionFragment: "getSupplyRate", values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
7
9
|
encodeFunctionData(functionFragment: "isInterestRateModel", values?: undefined): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
11
|
+
encodeFunctionData(functionFragment: "pendingOwner", values?: undefined): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
|
|
14
|
+
decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
|
|
8
15
|
decodeFunctionResult(functionFragment: "getBorrowRate", data: BytesLike): Result;
|
|
9
16
|
decodeFunctionResult(functionFragment: "getSupplyRate", data: BytesLike): Result;
|
|
10
17
|
decodeFunctionResult(functionFragment: "isInterestRateModel", data: BytesLike): Result;
|
|
18
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
19
|
+
decodeFunctionResult(functionFragment: "pendingOwner", data: BytesLike): Result;
|
|
20
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
21
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace OwnershipTransferStartedEvent {
|
|
24
|
+
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
25
|
+
type OutputTuple = [previousOwner: string, newOwner: string];
|
|
26
|
+
interface OutputObject {
|
|
27
|
+
previousOwner: string;
|
|
28
|
+
newOwner: string;
|
|
29
|
+
}
|
|
30
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
31
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
32
|
+
type Log = TypedEventLog<Event>;
|
|
33
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
34
|
+
}
|
|
35
|
+
export declare namespace OwnershipTransferredEvent {
|
|
36
|
+
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
37
|
+
type OutputTuple = [previousOwner: string, newOwner: string];
|
|
38
|
+
interface OutputObject {
|
|
39
|
+
previousOwner: string;
|
|
40
|
+
newOwner: string;
|
|
41
|
+
}
|
|
42
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
43
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
44
|
+
type Log = TypedEventLog<Event>;
|
|
45
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
11
46
|
}
|
|
12
47
|
export interface InterestRateModel extends BaseContract {
|
|
13
48
|
connect(runner?: ContractRunner | null): InterestRateModel;
|
|
@@ -22,6 +57,7 @@ export interface InterestRateModel extends BaseContract {
|
|
|
22
57
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
23
58
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
24
59
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
60
|
+
acceptOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
25
61
|
getBorrowRate: TypedContractMethod<[
|
|
26
62
|
cash: BigNumberish,
|
|
27
63
|
borrows: BigNumberish,
|
|
@@ -38,7 +74,16 @@ export interface InterestRateModel extends BaseContract {
|
|
|
38
74
|
bigint
|
|
39
75
|
], "view">;
|
|
40
76
|
isInterestRateModel: TypedContractMethod<[], [boolean], "view">;
|
|
77
|
+
owner: TypedContractMethod<[], [string], "view">;
|
|
78
|
+
pendingOwner: TypedContractMethod<[], [string], "view">;
|
|
79
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
80
|
+
transferOwnership: TypedContractMethod<[
|
|
81
|
+
newOwner: AddressLike
|
|
82
|
+
], [
|
|
83
|
+
void
|
|
84
|
+
], "nonpayable">;
|
|
41
85
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
86
|
+
getFunction(nameOrSignature: "acceptOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
42
87
|
getFunction(nameOrSignature: "getBorrowRate"): TypedContractMethod<[
|
|
43
88
|
cash: BigNumberish,
|
|
44
89
|
borrows: BigNumberish,
|
|
@@ -55,5 +100,16 @@ export interface InterestRateModel extends BaseContract {
|
|
|
55
100
|
bigint
|
|
56
101
|
], "view">;
|
|
57
102
|
getFunction(nameOrSignature: "isInterestRateModel"): TypedContractMethod<[], [boolean], "view">;
|
|
58
|
-
|
|
103
|
+
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
|
104
|
+
getFunction(nameOrSignature: "pendingOwner"): TypedContractMethod<[], [string], "view">;
|
|
105
|
+
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
106
|
+
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
107
|
+
getEvent(key: "OwnershipTransferStarted"): TypedContractEvent<OwnershipTransferStartedEvent.InputTuple, OwnershipTransferStartedEvent.OutputTuple, OwnershipTransferStartedEvent.OutputObject>;
|
|
108
|
+
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
109
|
+
filters: {
|
|
110
|
+
"OwnershipTransferStarted(address,address)": TypedContractEvent<OwnershipTransferStartedEvent.InputTuple, OwnershipTransferStartedEvent.OutputTuple, OwnershipTransferStartedEvent.OutputObject>;
|
|
111
|
+
OwnershipTransferStarted: TypedContractEvent<OwnershipTransferStartedEvent.InputTuple, OwnershipTransferStartedEvent.OutputTuple, OwnershipTransferStartedEvent.OutputObject>;
|
|
112
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
113
|
+
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
114
|
+
};
|
|
59
115
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
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 JumpRateModelV2Interface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "baseRatePerBlock" | "blocksPerYear" | "getBorrowRate" | "getSupplyRate" | "isInterestRateModel" | "jumpMultiplierPerBlock" | "kink" | "multiplierPerBlock" | "owner" | "updateJumpRateModel" | "utilizationRate"): FunctionFragment;
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "NewInterestParams"): EventFragment;
|
|
4
|
+
getFunction(nameOrSignature: "acceptOwnership" | "baseRatePerBlock" | "blocksPerYear" | "getBorrowRate" | "getSupplyRate" | "isInterestRateModel" | "jumpMultiplierPerBlock" | "kink" | "multiplierPerBlock" | "owner" | "pendingOwner" | "renounceOwnership" | "transferOwnership" | "updateJumpRateModel" | "utilizationRate"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "NewInterestParams" | "OwnershipTransferStarted" | "OwnershipTransferred"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
|
|
6
7
|
encodeFunctionData(functionFragment: "baseRatePerBlock", values?: undefined): string;
|
|
7
8
|
encodeFunctionData(functionFragment: "blocksPerYear", values?: undefined): string;
|
|
8
9
|
encodeFunctionData(functionFragment: "getBorrowRate", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
@@ -12,8 +13,12 @@ export interface JumpRateModelV2Interface extends Interface {
|
|
|
12
13
|
encodeFunctionData(functionFragment: "kink", values?: undefined): string;
|
|
13
14
|
encodeFunctionData(functionFragment: "multiplierPerBlock", values?: undefined): string;
|
|
14
15
|
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
16
|
+
encodeFunctionData(functionFragment: "pendingOwner", values?: undefined): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
|
|
15
19
|
encodeFunctionData(functionFragment: "updateJumpRateModel", values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
16
20
|
encodeFunctionData(functionFragment: "utilizationRate", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
21
|
+
decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
|
|
17
22
|
decodeFunctionResult(functionFragment: "baseRatePerBlock", data: BytesLike): Result;
|
|
18
23
|
decodeFunctionResult(functionFragment: "blocksPerYear", data: BytesLike): Result;
|
|
19
24
|
decodeFunctionResult(functionFragment: "getBorrowRate", data: BytesLike): Result;
|
|
@@ -23,6 +28,9 @@ export interface JumpRateModelV2Interface extends Interface {
|
|
|
23
28
|
decodeFunctionResult(functionFragment: "kink", data: BytesLike): Result;
|
|
24
29
|
decodeFunctionResult(functionFragment: "multiplierPerBlock", data: BytesLike): Result;
|
|
25
30
|
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
31
|
+
decodeFunctionResult(functionFragment: "pendingOwner", data: BytesLike): Result;
|
|
32
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
33
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
26
34
|
decodeFunctionResult(functionFragment: "updateJumpRateModel", data: BytesLike): Result;
|
|
27
35
|
decodeFunctionResult(functionFragment: "utilizationRate", data: BytesLike): Result;
|
|
28
36
|
}
|
|
@@ -50,6 +58,30 @@ export declare namespace NewInterestParamsEvent {
|
|
|
50
58
|
type Log = TypedEventLog<Event>;
|
|
51
59
|
type LogDescription = TypedLogDescription<Event>;
|
|
52
60
|
}
|
|
61
|
+
export declare namespace OwnershipTransferStartedEvent {
|
|
62
|
+
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
63
|
+
type OutputTuple = [previousOwner: string, newOwner: string];
|
|
64
|
+
interface OutputObject {
|
|
65
|
+
previousOwner: string;
|
|
66
|
+
newOwner: string;
|
|
67
|
+
}
|
|
68
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
69
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
70
|
+
type Log = TypedEventLog<Event>;
|
|
71
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
72
|
+
}
|
|
73
|
+
export declare namespace OwnershipTransferredEvent {
|
|
74
|
+
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
75
|
+
type OutputTuple = [previousOwner: string, newOwner: string];
|
|
76
|
+
interface OutputObject {
|
|
77
|
+
previousOwner: string;
|
|
78
|
+
newOwner: string;
|
|
79
|
+
}
|
|
80
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
81
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
82
|
+
type Log = TypedEventLog<Event>;
|
|
83
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
84
|
+
}
|
|
53
85
|
export interface JumpRateModelV2 extends BaseContract {
|
|
54
86
|
connect(runner?: ContractRunner | null): JumpRateModelV2;
|
|
55
87
|
waitForDeployment(): Promise<this>;
|
|
@@ -63,6 +95,7 @@ export interface JumpRateModelV2 extends BaseContract {
|
|
|
63
95
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
64
96
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
65
97
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
98
|
+
acceptOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
66
99
|
baseRatePerBlock: TypedContractMethod<[], [bigint], "view">;
|
|
67
100
|
blocksPerYear: TypedContractMethod<[], [bigint], "view">;
|
|
68
101
|
getBorrowRate: TypedContractMethod<[
|
|
@@ -85,6 +118,13 @@ export interface JumpRateModelV2 extends BaseContract {
|
|
|
85
118
|
kink: TypedContractMethod<[], [bigint], "view">;
|
|
86
119
|
multiplierPerBlock: TypedContractMethod<[], [bigint], "view">;
|
|
87
120
|
owner: TypedContractMethod<[], [string], "view">;
|
|
121
|
+
pendingOwner: TypedContractMethod<[], [string], "view">;
|
|
122
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
123
|
+
transferOwnership: TypedContractMethod<[
|
|
124
|
+
newOwner: AddressLike
|
|
125
|
+
], [
|
|
126
|
+
void
|
|
127
|
+
], "nonpayable">;
|
|
88
128
|
updateJumpRateModel: TypedContractMethod<[
|
|
89
129
|
baseRatePerYear: BigNumberish,
|
|
90
130
|
multiplierPerYear: BigNumberish,
|
|
@@ -101,6 +141,7 @@ export interface JumpRateModelV2 extends BaseContract {
|
|
|
101
141
|
bigint
|
|
102
142
|
], "view">;
|
|
103
143
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
144
|
+
getFunction(nameOrSignature: "acceptOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
104
145
|
getFunction(nameOrSignature: "baseRatePerBlock"): TypedContractMethod<[], [bigint], "view">;
|
|
105
146
|
getFunction(nameOrSignature: "blocksPerYear"): TypedContractMethod<[], [bigint], "view">;
|
|
106
147
|
getFunction(nameOrSignature: "getBorrowRate"): TypedContractMethod<[
|
|
@@ -123,6 +164,9 @@ export interface JumpRateModelV2 extends BaseContract {
|
|
|
123
164
|
getFunction(nameOrSignature: "kink"): TypedContractMethod<[], [bigint], "view">;
|
|
124
165
|
getFunction(nameOrSignature: "multiplierPerBlock"): TypedContractMethod<[], [bigint], "view">;
|
|
125
166
|
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
|
167
|
+
getFunction(nameOrSignature: "pendingOwner"): TypedContractMethod<[], [string], "view">;
|
|
168
|
+
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
169
|
+
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
126
170
|
getFunction(nameOrSignature: "updateJumpRateModel"): TypedContractMethod<[
|
|
127
171
|
baseRatePerYear: BigNumberish,
|
|
128
172
|
multiplierPerYear: BigNumberish,
|
|
@@ -139,8 +183,14 @@ export interface JumpRateModelV2 extends BaseContract {
|
|
|
139
183
|
bigint
|
|
140
184
|
], "view">;
|
|
141
185
|
getEvent(key: "NewInterestParams"): TypedContractEvent<NewInterestParamsEvent.InputTuple, NewInterestParamsEvent.OutputTuple, NewInterestParamsEvent.OutputObject>;
|
|
186
|
+
getEvent(key: "OwnershipTransferStarted"): TypedContractEvent<OwnershipTransferStartedEvent.InputTuple, OwnershipTransferStartedEvent.OutputTuple, OwnershipTransferStartedEvent.OutputObject>;
|
|
187
|
+
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
142
188
|
filters: {
|
|
143
189
|
"NewInterestParams(uint256,uint256,uint256,uint256)": TypedContractEvent<NewInterestParamsEvent.InputTuple, NewInterestParamsEvent.OutputTuple, NewInterestParamsEvent.OutputObject>;
|
|
144
190
|
NewInterestParams: TypedContractEvent<NewInterestParamsEvent.InputTuple, NewInterestParamsEvent.OutputTuple, NewInterestParamsEvent.OutputObject>;
|
|
191
|
+
"OwnershipTransferStarted(address,address)": TypedContractEvent<OwnershipTransferStartedEvent.InputTuple, OwnershipTransferStartedEvent.OutputTuple, OwnershipTransferStartedEvent.OutputObject>;
|
|
192
|
+
OwnershipTransferStarted: TypedContractEvent<OwnershipTransferStartedEvent.InputTuple, OwnershipTransferStartedEvent.OutputTuple, OwnershipTransferStartedEvent.OutputObject>;
|
|
193
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
194
|
+
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
145
195
|
};
|
|
146
196
|
}
|
|
@@ -1,21 +1,31 @@
|
|
|
1
|
-
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
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 WhitePaperInterestRateModelInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "baseRatePerBlock" | "blocksPerYear" | "getBorrowRate" | "getSupplyRate" | "isInterestRateModel" | "multiplierPerBlock" | "utilizationRate"): FunctionFragment;
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "NewInterestParams"): EventFragment;
|
|
4
|
+
getFunction(nameOrSignature: "acceptOwnership" | "baseRatePerBlock" | "blocksPerYear" | "getBorrowRate" | "getSupplyRate" | "isInterestRateModel" | "multiplierPerBlock" | "owner" | "pendingOwner" | "renounceOwnership" | "transferOwnership" | "utilizationRate"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "NewInterestParams" | "OwnershipTransferStarted" | "OwnershipTransferred"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
|
|
6
7
|
encodeFunctionData(functionFragment: "baseRatePerBlock", values?: undefined): string;
|
|
7
8
|
encodeFunctionData(functionFragment: "blocksPerYear", values?: undefined): string;
|
|
8
9
|
encodeFunctionData(functionFragment: "getBorrowRate", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
9
10
|
encodeFunctionData(functionFragment: "getSupplyRate", values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
10
11
|
encodeFunctionData(functionFragment: "isInterestRateModel", values?: undefined): string;
|
|
11
12
|
encodeFunctionData(functionFragment: "multiplierPerBlock", values?: undefined): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
14
|
+
encodeFunctionData(functionFragment: "pendingOwner", values?: undefined): string;
|
|
15
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
16
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
|
|
12
17
|
encodeFunctionData(functionFragment: "utilizationRate", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
18
|
+
decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
|
|
13
19
|
decodeFunctionResult(functionFragment: "baseRatePerBlock", data: BytesLike): Result;
|
|
14
20
|
decodeFunctionResult(functionFragment: "blocksPerYear", data: BytesLike): Result;
|
|
15
21
|
decodeFunctionResult(functionFragment: "getBorrowRate", data: BytesLike): Result;
|
|
16
22
|
decodeFunctionResult(functionFragment: "getSupplyRate", data: BytesLike): Result;
|
|
17
23
|
decodeFunctionResult(functionFragment: "isInterestRateModel", data: BytesLike): Result;
|
|
18
24
|
decodeFunctionResult(functionFragment: "multiplierPerBlock", data: BytesLike): Result;
|
|
25
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
26
|
+
decodeFunctionResult(functionFragment: "pendingOwner", data: BytesLike): Result;
|
|
27
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
28
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
19
29
|
decodeFunctionResult(functionFragment: "utilizationRate", data: BytesLike): Result;
|
|
20
30
|
}
|
|
21
31
|
export declare namespace NewInterestParamsEvent {
|
|
@@ -39,6 +49,30 @@ export declare namespace NewInterestParamsEvent {
|
|
|
39
49
|
type Log = TypedEventLog<Event>;
|
|
40
50
|
type LogDescription = TypedLogDescription<Event>;
|
|
41
51
|
}
|
|
52
|
+
export declare namespace OwnershipTransferStartedEvent {
|
|
53
|
+
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
54
|
+
type OutputTuple = [previousOwner: string, newOwner: string];
|
|
55
|
+
interface OutputObject {
|
|
56
|
+
previousOwner: string;
|
|
57
|
+
newOwner: string;
|
|
58
|
+
}
|
|
59
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
60
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
61
|
+
type Log = TypedEventLog<Event>;
|
|
62
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
63
|
+
}
|
|
64
|
+
export declare namespace OwnershipTransferredEvent {
|
|
65
|
+
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
66
|
+
type OutputTuple = [previousOwner: string, newOwner: string];
|
|
67
|
+
interface OutputObject {
|
|
68
|
+
previousOwner: string;
|
|
69
|
+
newOwner: string;
|
|
70
|
+
}
|
|
71
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
72
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
73
|
+
type Log = TypedEventLog<Event>;
|
|
74
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
75
|
+
}
|
|
42
76
|
export interface WhitePaperInterestRateModel extends BaseContract {
|
|
43
77
|
connect(runner?: ContractRunner | null): WhitePaperInterestRateModel;
|
|
44
78
|
waitForDeployment(): Promise<this>;
|
|
@@ -52,6 +86,7 @@ export interface WhitePaperInterestRateModel extends BaseContract {
|
|
|
52
86
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
53
87
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
54
88
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
89
|
+
acceptOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
55
90
|
baseRatePerBlock: TypedContractMethod<[], [bigint], "view">;
|
|
56
91
|
blocksPerYear: TypedContractMethod<[], [bigint], "view">;
|
|
57
92
|
getBorrowRate: TypedContractMethod<[
|
|
@@ -71,6 +106,14 @@ export interface WhitePaperInterestRateModel extends BaseContract {
|
|
|
71
106
|
], "view">;
|
|
72
107
|
isInterestRateModel: TypedContractMethod<[], [boolean], "view">;
|
|
73
108
|
multiplierPerBlock: TypedContractMethod<[], [bigint], "view">;
|
|
109
|
+
owner: TypedContractMethod<[], [string], "view">;
|
|
110
|
+
pendingOwner: TypedContractMethod<[], [string], "view">;
|
|
111
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
112
|
+
transferOwnership: TypedContractMethod<[
|
|
113
|
+
newOwner: AddressLike
|
|
114
|
+
], [
|
|
115
|
+
void
|
|
116
|
+
], "nonpayable">;
|
|
74
117
|
utilizationRate: TypedContractMethod<[
|
|
75
118
|
cash: BigNumberish,
|
|
76
119
|
borrows: BigNumberish,
|
|
@@ -79,6 +122,7 @@ export interface WhitePaperInterestRateModel extends BaseContract {
|
|
|
79
122
|
bigint
|
|
80
123
|
], "view">;
|
|
81
124
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
125
|
+
getFunction(nameOrSignature: "acceptOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
82
126
|
getFunction(nameOrSignature: "baseRatePerBlock"): TypedContractMethod<[], [bigint], "view">;
|
|
83
127
|
getFunction(nameOrSignature: "blocksPerYear"): TypedContractMethod<[], [bigint], "view">;
|
|
84
128
|
getFunction(nameOrSignature: "getBorrowRate"): TypedContractMethod<[
|
|
@@ -98,6 +142,10 @@ export interface WhitePaperInterestRateModel extends BaseContract {
|
|
|
98
142
|
], "view">;
|
|
99
143
|
getFunction(nameOrSignature: "isInterestRateModel"): TypedContractMethod<[], [boolean], "view">;
|
|
100
144
|
getFunction(nameOrSignature: "multiplierPerBlock"): TypedContractMethod<[], [bigint], "view">;
|
|
145
|
+
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
|
146
|
+
getFunction(nameOrSignature: "pendingOwner"): TypedContractMethod<[], [string], "view">;
|
|
147
|
+
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
148
|
+
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
101
149
|
getFunction(nameOrSignature: "utilizationRate"): TypedContractMethod<[
|
|
102
150
|
cash: BigNumberish,
|
|
103
151
|
borrows: BigNumberish,
|
|
@@ -106,8 +154,14 @@ export interface WhitePaperInterestRateModel extends BaseContract {
|
|
|
106
154
|
bigint
|
|
107
155
|
], "view">;
|
|
108
156
|
getEvent(key: "NewInterestParams"): TypedContractEvent<NewInterestParamsEvent.InputTuple, NewInterestParamsEvent.OutputTuple, NewInterestParamsEvent.OutputObject>;
|
|
157
|
+
getEvent(key: "OwnershipTransferStarted"): TypedContractEvent<OwnershipTransferStartedEvent.InputTuple, OwnershipTransferStartedEvent.OutputTuple, OwnershipTransferStartedEvent.OutputObject>;
|
|
158
|
+
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
109
159
|
filters: {
|
|
110
160
|
"NewInterestParams(uint256,uint256,uint256)": TypedContractEvent<NewInterestParamsEvent.InputTuple, NewInterestParamsEvent.OutputTuple, NewInterestParamsEvent.OutputObject>;
|
|
111
161
|
NewInterestParams: TypedContractEvent<NewInterestParamsEvent.InputTuple, NewInterestParamsEvent.OutputTuple, NewInterestParamsEvent.OutputObject>;
|
|
162
|
+
"OwnershipTransferStarted(address,address)": TypedContractEvent<OwnershipTransferStartedEvent.InputTuple, OwnershipTransferStartedEvent.OutputTuple, OwnershipTransferStartedEvent.OutputObject>;
|
|
163
|
+
OwnershipTransferStarted: TypedContractEvent<OwnershipTransferStartedEvent.InputTuple, OwnershipTransferStartedEvent.OutputTuple, OwnershipTransferStartedEvent.OutputObject>;
|
|
164
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
165
|
+
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
112
166
|
};
|
|
113
167
|
}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export type { fixedInterestModelSol };
|
|
3
|
-
import type * as suTokenInterestModelSol from "./suTokenInterestModel.sol";
|
|
4
|
-
export type { suTokenInterestModelSol };
|
|
1
|
+
export type { FixedInterestRateModel } from "./FixedInterestRateModel";
|
|
5
2
|
export type { InterestRateModel } from "./InterestRateModel";
|
|
6
|
-
export type { JumpRateModel } from "./JumpRateModel";
|
|
7
3
|
export type { JumpRateModelV2 } from "./JumpRateModelV2";
|
|
8
4
|
export type { WhitePaperInterestRateModel } from "./WhitePaperInterestRateModel";
|
|
9
|
-
export type { ZeroInterestRateModel } from "./ZeroInterestRateModel";
|
|
@@ -2,7 +2,7 @@ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, I
|
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../common";
|
|
3
3
|
export interface SumerTimelockControllerInterface extends Interface {
|
|
4
4
|
getFunction(nameOrSignature: "CANCELLER_ROLE" | "DEFAULT_ADMIN_ROLE" | "EXECUTOR_ROLE" | "PROPOSER_ROLE" | "TIMELOCK_ADMIN_ROLE" | "cancel" | "execute" | "executeBatch" | "getMinDelay" | "getRoleAdmin" | "getTimestamp" | "grantRole" | "hasRole" | "hashOperation" | "hashOperationBatch" | "isOperation" | "isOperationDone" | "isOperationPending" | "isOperationReady" | "onERC1155BatchReceived" | "onERC1155Received" | "onERC721Received" | "renounceRole" | "revokeRole" | "schedule" | "scheduleBatch" | "supportsInterface" | "updateDelay"): FunctionFragment;
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "CallExecuted" | "
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "CallExecuted" | "CallScheduled" | "Cancelled" | "MinDelayChange" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "CANCELLER_ROLE", values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
8
8
|
encodeFunctionData(functionFragment: "EXECUTOR_ROLE", values?: undefined): string;
|
|
@@ -107,18 +107,6 @@ export declare namespace CallExecutedEvent {
|
|
|
107
107
|
type Log = TypedEventLog<Event>;
|
|
108
108
|
type LogDescription = TypedLogDescription<Event>;
|
|
109
109
|
}
|
|
110
|
-
export declare namespace CallSaltEvent {
|
|
111
|
-
type InputTuple = [id: BytesLike, salt: BytesLike];
|
|
112
|
-
type OutputTuple = [id: string, salt: string];
|
|
113
|
-
interface OutputObject {
|
|
114
|
-
id: string;
|
|
115
|
-
salt: string;
|
|
116
|
-
}
|
|
117
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
118
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
119
|
-
type Log = TypedEventLog<Event>;
|
|
120
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
121
|
-
}
|
|
122
110
|
export declare namespace CallScheduledEvent {
|
|
123
111
|
type InputTuple = [
|
|
124
112
|
id: BytesLike,
|
|
@@ -498,7 +486,6 @@ export interface SumerTimelockController extends BaseContract {
|
|
|
498
486
|
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
499
487
|
getFunction(nameOrSignature: "updateDelay"): TypedContractMethod<[newDelay: BigNumberish], [void], "nonpayable">;
|
|
500
488
|
getEvent(key: "CallExecuted"): TypedContractEvent<CallExecutedEvent.InputTuple, CallExecutedEvent.OutputTuple, CallExecutedEvent.OutputObject>;
|
|
501
|
-
getEvent(key: "CallSalt"): TypedContractEvent<CallSaltEvent.InputTuple, CallSaltEvent.OutputTuple, CallSaltEvent.OutputObject>;
|
|
502
489
|
getEvent(key: "CallScheduled"): TypedContractEvent<CallScheduledEvent.InputTuple, CallScheduledEvent.OutputTuple, CallScheduledEvent.OutputObject>;
|
|
503
490
|
getEvent(key: "Cancelled"): TypedContractEvent<CancelledEvent.InputTuple, CancelledEvent.OutputTuple, CancelledEvent.OutputObject>;
|
|
504
491
|
getEvent(key: "MinDelayChange"): TypedContractEvent<MinDelayChangeEvent.InputTuple, MinDelayChangeEvent.OutputTuple, MinDelayChangeEvent.OutputObject>;
|
|
@@ -508,8 +495,6 @@ export interface SumerTimelockController extends BaseContract {
|
|
|
508
495
|
filters: {
|
|
509
496
|
"CallExecuted(bytes32,uint256,address,uint256,bytes)": TypedContractEvent<CallExecutedEvent.InputTuple, CallExecutedEvent.OutputTuple, CallExecutedEvent.OutputObject>;
|
|
510
497
|
CallExecuted: TypedContractEvent<CallExecutedEvent.InputTuple, CallExecutedEvent.OutputTuple, CallExecutedEvent.OutputObject>;
|
|
511
|
-
"CallSalt(bytes32,bytes32)": TypedContractEvent<CallSaltEvent.InputTuple, CallSaltEvent.OutputTuple, CallSaltEvent.OutputObject>;
|
|
512
|
-
CallSalt: TypedContractEvent<CallSaltEvent.InputTuple, CallSaltEvent.OutputTuple, CallSaltEvent.OutputObject>;
|
|
513
498
|
"CallScheduled(bytes32,uint256,address,uint256,bytes,bytes32,uint256)": TypedContractEvent<CallScheduledEvent.InputTuple, CallScheduledEvent.OutputTuple, CallScheduledEvent.OutputObject>;
|
|
514
499
|
CallScheduled: TypedContractEvent<CallScheduledEvent.InputTuple, CallScheduledEvent.OutputTuple, CallScheduledEvent.OutputObject>;
|
|
515
500
|
"Cancelled(bytes32)": TypedContractEvent<CancelledEvent.InputTuple, CancelledEvent.OutputTuple, CancelledEvent.OutputObject>;
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import type { BaseContract, FunctionFragment, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
-
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener } from "../../common";
|
|
1
|
+
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface SumerProxyInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "admin" | "changeAdmin" | "implementation" | "upgradeTo" | "upgradeToAndCall"): FunctionFragment;
|
|
4
5
|
getEvent(nameOrSignatureOrTopic: "AdminChanged" | "BeaconUpgraded" | "Upgraded"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "admin", values?: undefined): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "changeAdmin", values: [AddressLike]): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "implementation", values?: undefined): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "upgradeTo", values: [AddressLike]): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike]): string;
|
|
11
|
+
decodeFunctionResult(functionFragment: "admin", data: BytesLike): Result;
|
|
12
|
+
decodeFunctionResult(functionFragment: "changeAdmin", data: BytesLike): Result;
|
|
13
|
+
decodeFunctionResult(functionFragment: "implementation", data: BytesLike): Result;
|
|
14
|
+
decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result;
|
|
15
|
+
decodeFunctionResult(functionFragment: "upgradeToAndCall", data: BytesLike): Result;
|
|
5
16
|
}
|
|
6
17
|
export declare namespace AdminChangedEvent {
|
|
7
18
|
type InputTuple = [previousAdmin: AddressLike, newAdmin: AddressLike];
|
|
@@ -50,7 +61,39 @@ export interface SumerProxy extends BaseContract {
|
|
|
50
61
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
51
62
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
52
63
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
64
|
+
admin: TypedContractMethod<[], [string], "nonpayable">;
|
|
65
|
+
changeAdmin: TypedContractMethod<[
|
|
66
|
+
newAdmin: AddressLike
|
|
67
|
+
], [
|
|
68
|
+
void
|
|
69
|
+
], "nonpayable">;
|
|
70
|
+
implementation: TypedContractMethod<[], [string], "nonpayable">;
|
|
71
|
+
upgradeTo: TypedContractMethod<[
|
|
72
|
+
newImplementation: AddressLike
|
|
73
|
+
], [
|
|
74
|
+
void
|
|
75
|
+
], "nonpayable">;
|
|
76
|
+
upgradeToAndCall: TypedContractMethod<[
|
|
77
|
+
newImplementation: AddressLike,
|
|
78
|
+
data: BytesLike
|
|
79
|
+
], [
|
|
80
|
+
void
|
|
81
|
+
], "payable">;
|
|
53
82
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
83
|
+
getFunction(nameOrSignature: "admin"): TypedContractMethod<[], [string], "nonpayable">;
|
|
84
|
+
getFunction(nameOrSignature: "changeAdmin"): TypedContractMethod<[newAdmin: AddressLike], [void], "nonpayable">;
|
|
85
|
+
getFunction(nameOrSignature: "implementation"): TypedContractMethod<[], [string], "nonpayable">;
|
|
86
|
+
getFunction(nameOrSignature: "upgradeTo"): TypedContractMethod<[
|
|
87
|
+
newImplementation: AddressLike
|
|
88
|
+
], [
|
|
89
|
+
void
|
|
90
|
+
], "nonpayable">;
|
|
91
|
+
getFunction(nameOrSignature: "upgradeToAndCall"): TypedContractMethod<[
|
|
92
|
+
newImplementation: AddressLike,
|
|
93
|
+
data: BytesLike
|
|
94
|
+
], [
|
|
95
|
+
void
|
|
96
|
+
], "payable">;
|
|
54
97
|
getEvent(key: "AdminChanged"): TypedContractEvent<AdminChangedEvent.InputTuple, AdminChangedEvent.OutputTuple, AdminChangedEvent.OutputObject>;
|
|
55
98
|
getEvent(key: "BeaconUpgraded"): TypedContractEvent<BeaconUpgradedEvent.InputTuple, BeaconUpgradedEvent.OutputTuple, BeaconUpgradedEvent.OutputObject>;
|
|
56
99
|
getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|