@meterio/sumer-js 0.1.29 → 0.1.31
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 +6 -6
- package/dist/nodejs/abi.js +538 -81
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/comptroller.d.ts +5 -1
- package/dist/nodejs/comptroller.js +1 -1
- package/dist/nodejs/comptroller.js.map +1 -1
- package/dist/nodejs/errors.d.ts +20 -0
- package/dist/nodejs/errors.js +20 -0
- package/dist/nodejs/errors.js.map +1 -1
- package/dist/nodejs/index.d.ts +20 -0
- package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +34 -1
- package/dist/nodejs/typechain/contracts/CToken/CEther.d.ts +34 -1
- package/dist/nodejs/typechain/contracts/CToken/CToken.d.ts +34 -1
- package/dist/nodejs/typechain/contracts/CToken/CTokenStorage.d.ts +34 -1
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +34 -1
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +1 -34
- package/dist/nodejs/typechain/contracts/Comptroller/RedemptionManager.d.ts +54 -18
- package/dist/nodejs/typechain/contracts/Interfaces/ICToken.d.ts +34 -1
- package/dist/nodejs/typechain/contracts/Interfaces/IRedemptionManager.d.ts +27 -9
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +56 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +69 -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 +56 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +69 -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 +35 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js +43 -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 +55 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +68 -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 +56 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +69 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +21 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +26 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +21 -36
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +26 -44
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +75 -13
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +97 -14
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.d.ts +35 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.js +43 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IRedemptionManager__factory.d.ts +31 -11
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IRedemptionManager__factory.js +39 -12
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IRedemptionManager__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +21 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +26 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.js.map +1 -1
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ export declare namespace IComptroller {
|
|
|
33
33
|
}
|
|
34
34
|
export interface ComptrollerInterface extends Interface {
|
|
35
35
|
getFunction(nameOrSignature: "CAPPER_ROLE" | "COMP_LOGIC" | "DEFAULT_ADMIN_ROLE" | "PAUSER_ROLE" | "_borrowGuardianPaused" | "_getBorrowCapGuardian" | "_getPauseGuardian" | "_mintGuardianPaused" | "_setBorrowCapGuardian" | "_setBorrowPaused" | "_setCloseFactor" | "_setLiquidationIncentive" | "_setMarketBorrowCaps" | "_setMaxSupply" | "_setMintPaused" | "_setPauseGuardian" | "_setPriceOracle" | "_setProtocolPaused" | "_setSeizePaused" | "_setTransferPaused" | "_supportMarket" | "accountAssets" | "accountLiquidity" | "allMarkets" | "assetGroupIdToIndex" | "borrowAllowed" | "borrowCapGuardian" | "borrowCaps" | "borrowGuardianPaused" | "borrowVerify" | "checkMembership" | "cleanAssetGroup" | "closeFactorMantissa" | "compLogic" | "enterMarkets" | "enterMarketsForAll" | "eqAssetGroup" | "exitMarket" | "getAccountLiquidity" | "getAccountSafeLimit" | "getAllAssetGroup" | "getAllAssetGroupByIndex" | "getAllMarkets" | "getAssetGroup" | "getAssetGroupNum" | "getAssetsIn" | "getCollateralRate" | "getCompAddress" | "getHypotheticalAccountLiquidity" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "governanceToken" | "grantRole" | "hasRole" | "heteroLiquidationIncentiveMantissa" | "homoLiquidationIncentiveMantissa" | "initialize" | "isBorrowValueLargerThanThreshold" | "isComptroller" | "isListed" | "liquidateBorrowAllowed" | "liquidationIncentiveMantissa" | "marketGroupId" | "markets" | "maxSupply" | "minSuBorrowValue" | "mintAllowed" | "mintGuardianPaused" | "oracle" | "pauseGuardian" | "redeemAllowed" | "redeemFaceValue" | "redeemFaceValueWithPermit" | "redeemFaceValueWithTargetPlan" | "redeemVerify" | "redemptionManager" | "removeAssetGroup" | "renounceRole" | "repayBorrowAllowed" | "repayBorrowVerify" | "revokeRole" | "seizeAllowed" | "seizeGuardianPaused" | "seizeVerify" | "setAccountLiquidity" | "setAssetGroup" | "setCompLogic" | "setCompSpeed" | "setGovTokenAddress" | "setMinSuBorrowValue" | "setRedemptionManager" | "setTimelock" | "suTokenRateMantissa" | "supportsInterface" | "sutokenLiquidationIncentiveMantissa" | "timelock" | "transferAllowed" | "transferGuardianPaused" | "updateSortedBorrowsBatch"): FunctionFragment;
|
|
36
|
-
getEvent(nameOrSignatureOrTopic: "ActionPaused" | "Initialized" | "MarketEntered" | "MarketExited" | "MarketListed" | "NewAssetGroup" | "NewBorrowCap" | "NewBorrowCapGuardian" | "NewCloseFactor" | "NewLiquidationIncentive" | "NewPauseGuardian" | "NewPriceOracle" | "
|
|
36
|
+
getEvent(nameOrSignatureOrTopic: "ActionPaused" | "Initialized" | "MarketEntered" | "MarketExited" | "MarketListed" | "NewAssetGroup" | "NewBorrowCap" | "NewBorrowCapGuardian" | "NewCloseFactor" | "NewLiquidationIncentive" | "NewPauseGuardian" | "NewPriceOracle" | "RemoveAssetGroup" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "SetMaxSupply"): EventFragment;
|
|
37
37
|
encodeFunctionData(functionFragment: "CAPPER_ROLE", values?: undefined): string;
|
|
38
38
|
encodeFunctionData(functionFragment: "COMP_LOGIC", values?: undefined): string;
|
|
39
39
|
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
@@ -468,36 +468,6 @@ export declare namespace NewPriceOracleEvent {
|
|
|
468
468
|
type Log = TypedEventLog<Event>;
|
|
469
469
|
type LogDescription = TypedLogDescription<Event>;
|
|
470
470
|
}
|
|
471
|
-
export declare namespace RedemptionEvent {
|
|
472
|
-
type InputTuple = [
|
|
473
|
-
redeemer: AddressLike,
|
|
474
|
-
provider: AddressLike,
|
|
475
|
-
redeemToken: AddressLike,
|
|
476
|
-
redeemAmount: BigNumberish,
|
|
477
|
-
seizeToken: AddressLike,
|
|
478
|
-
seizeAmount: BigNumberish
|
|
479
|
-
];
|
|
480
|
-
type OutputTuple = [
|
|
481
|
-
redeemer: string,
|
|
482
|
-
provider: string,
|
|
483
|
-
redeemToken: string,
|
|
484
|
-
redeemAmount: bigint,
|
|
485
|
-
seizeToken: string,
|
|
486
|
-
seizeAmount: bigint
|
|
487
|
-
];
|
|
488
|
-
interface OutputObject {
|
|
489
|
-
redeemer: string;
|
|
490
|
-
provider: string;
|
|
491
|
-
redeemToken: string;
|
|
492
|
-
redeemAmount: bigint;
|
|
493
|
-
seizeToken: string;
|
|
494
|
-
seizeAmount: bigint;
|
|
495
|
-
}
|
|
496
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
497
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
498
|
-
type Log = TypedEventLog<Event>;
|
|
499
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
500
|
-
}
|
|
501
471
|
export declare namespace RemoveAssetGroupEvent {
|
|
502
472
|
type InputTuple = [
|
|
503
473
|
groupId: BigNumberish,
|
|
@@ -1421,7 +1391,6 @@ export interface Comptroller extends BaseContract {
|
|
|
1421
1391
|
getEvent(key: "NewLiquidationIncentive"): TypedContractEvent<NewLiquidationIncentiveEvent.InputTuple, NewLiquidationIncentiveEvent.OutputTuple, NewLiquidationIncentiveEvent.OutputObject>;
|
|
1422
1392
|
getEvent(key: "NewPauseGuardian"): TypedContractEvent<NewPauseGuardianEvent.InputTuple, NewPauseGuardianEvent.OutputTuple, NewPauseGuardianEvent.OutputObject>;
|
|
1423
1393
|
getEvent(key: "NewPriceOracle"): TypedContractEvent<NewPriceOracleEvent.InputTuple, NewPriceOracleEvent.OutputTuple, NewPriceOracleEvent.OutputObject>;
|
|
1424
|
-
getEvent(key: "Redemption"): TypedContractEvent<RedemptionEvent.InputTuple, RedemptionEvent.OutputTuple, RedemptionEvent.OutputObject>;
|
|
1425
1394
|
getEvent(key: "RemoveAssetGroup"): TypedContractEvent<RemoveAssetGroupEvent.InputTuple, RemoveAssetGroupEvent.OutputTuple, RemoveAssetGroupEvent.OutputObject>;
|
|
1426
1395
|
getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
1427
1396
|
getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
@@ -1452,8 +1421,6 @@ export interface Comptroller extends BaseContract {
|
|
|
1452
1421
|
NewPauseGuardian: TypedContractEvent<NewPauseGuardianEvent.InputTuple, NewPauseGuardianEvent.OutputTuple, NewPauseGuardianEvent.OutputObject>;
|
|
1453
1422
|
"NewPriceOracle(address,address)": TypedContractEvent<NewPriceOracleEvent.InputTuple, NewPriceOracleEvent.OutputTuple, NewPriceOracleEvent.OutputObject>;
|
|
1454
1423
|
NewPriceOracle: TypedContractEvent<NewPriceOracleEvent.InputTuple, NewPriceOracleEvent.OutputTuple, NewPriceOracleEvent.OutputObject>;
|
|
1455
|
-
"Redemption(address,address,address,uint256,address,uint256)": TypedContractEvent<RedemptionEvent.InputTuple, RedemptionEvent.OutputTuple, RedemptionEvent.OutputObject>;
|
|
1456
|
-
Redemption: TypedContractEvent<RedemptionEvent.InputTuple, RedemptionEvent.OutputTuple, RedemptionEvent.OutputObject>;
|
|
1457
1424
|
"RemoveAssetGroup(uint8,uint8)": TypedContractEvent<RemoveAssetGroupEvent.InputTuple, RemoveAssetGroupEvent.OutputTuple, RemoveAssetGroupEvent.OutputObject>;
|
|
1458
1425
|
RemoveAssetGroup: TypedContractEvent<RemoveAssetGroupEvent.InputTuple, RemoveAssetGroupEvent.OutputTuple, RemoveAssetGroupEvent.OutputObject>;
|
|
1459
1426
|
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface RedemptionManagerInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "BETA" | "DECIMAL_PRECISION" | "DEFAULT_ADMIN_ROLE" | "MAX_BORROWING_FEE" | "MINUTE_DECAY_FACTOR" | "REDEMPTION_FEE_FLOOR" | "SECONDS_IN_ONE_MINUTE" | "baseRate" | "calcActualRepayAndSeize" | "comptroller" | "decayBaseRateFromBorrowing" | "
|
|
4
|
+
getFunction(nameOrSignature: "BETA" | "DECIMAL_PRECISION" | "DEFAULT_ADMIN_ROLE" | "MAX_BORROWING_FEE" | "MINUTE_DECAY_FACTOR" | "REDEMPTION_FEE_FLOOR" | "SECONDS_IN_ONE_MINUTE" | "baseRate" | "baseRateMap" | "calcActualRepayAndSeize" | "comptroller" | "decayBaseRateFromBorrowing" | "getCurrentRedemptionRate" | "getFirstProvider" | "getNextProvider" | "getRedemptionRate" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "grantRole" | "hasNoProvider" | "hasRole" | "initialize" | "lastFeeOperationTime" | "lastFeeOperationTimeMap" | "renounceRole" | "revokeRole" | "setComptroller" | "setSortedBorrows" | "sortedBorrows" | "supportsInterface" | "updateBaseRateFromRedemption" | "updateSortedBorrows"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "BaseRateUpdated" | "Initialized" | "LastFeeOpTimeUpdated" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "BETA", values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "DECIMAL_PRECISION", values?: undefined): string;
|
|
@@ -11,13 +11,14 @@ export interface RedemptionManagerInterface extends Interface {
|
|
|
11
11
|
encodeFunctionData(functionFragment: "REDEMPTION_FEE_FLOOR", values?: undefined): string;
|
|
12
12
|
encodeFunctionData(functionFragment: "SECONDS_IN_ONE_MINUTE", values?: undefined): string;
|
|
13
13
|
encodeFunctionData(functionFragment: "baseRate", values?: undefined): string;
|
|
14
|
+
encodeFunctionData(functionFragment: "baseRateMap", values: [AddressLike]): string;
|
|
14
15
|
encodeFunctionData(functionFragment: "calcActualRepayAndSeize", values: [BigNumberish, AddressLike, AddressLike, AddressLike, AddressLike]): string;
|
|
15
16
|
encodeFunctionData(functionFragment: "comptroller", values?: undefined): string;
|
|
16
|
-
encodeFunctionData(functionFragment: "decayBaseRateFromBorrowing", values
|
|
17
|
+
encodeFunctionData(functionFragment: "decayBaseRateFromBorrowing", values: [AddressLike]): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "getCurrentRedemptionRate", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
17
19
|
encodeFunctionData(functionFragment: "getFirstProvider", values: [AddressLike]): string;
|
|
18
20
|
encodeFunctionData(functionFragment: "getNextProvider", values: [AddressLike, AddressLike]): string;
|
|
19
|
-
encodeFunctionData(functionFragment: "getRedemptionRate", values
|
|
20
|
-
encodeFunctionData(functionFragment: "getRedemptionRateWithDecay", values?: undefined): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "getRedemptionRate", values: [AddressLike]): string;
|
|
21
22
|
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
|
22
23
|
encodeFunctionData(functionFragment: "getRoleMember", values: [BytesLike, BigNumberish]): string;
|
|
23
24
|
encodeFunctionData(functionFragment: "getRoleMemberCount", values: [BytesLike]): string;
|
|
@@ -26,13 +27,14 @@ export interface RedemptionManagerInterface extends Interface {
|
|
|
26
27
|
encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
|
|
27
28
|
encodeFunctionData(functionFragment: "initialize", values: [AddressLike, AddressLike]): string;
|
|
28
29
|
encodeFunctionData(functionFragment: "lastFeeOperationTime", values?: undefined): string;
|
|
30
|
+
encodeFunctionData(functionFragment: "lastFeeOperationTimeMap", values: [AddressLike]): string;
|
|
29
31
|
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
30
32
|
encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
|
|
31
33
|
encodeFunctionData(functionFragment: "setComptroller", values: [AddressLike]): string;
|
|
32
34
|
encodeFunctionData(functionFragment: "setSortedBorrows", values: [AddressLike]): string;
|
|
33
35
|
encodeFunctionData(functionFragment: "sortedBorrows", values?: undefined): string;
|
|
34
36
|
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
35
|
-
encodeFunctionData(functionFragment: "updateBaseRateFromRedemption", values: [BigNumberish, BigNumberish]): string;
|
|
37
|
+
encodeFunctionData(functionFragment: "updateBaseRateFromRedemption", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
36
38
|
encodeFunctionData(functionFragment: "updateSortedBorrows", values: [AddressLike, AddressLike]): string;
|
|
37
39
|
decodeFunctionResult(functionFragment: "BETA", data: BytesLike): Result;
|
|
38
40
|
decodeFunctionResult(functionFragment: "DECIMAL_PRECISION", data: BytesLike): Result;
|
|
@@ -42,13 +44,14 @@ export interface RedemptionManagerInterface extends Interface {
|
|
|
42
44
|
decodeFunctionResult(functionFragment: "REDEMPTION_FEE_FLOOR", data: BytesLike): Result;
|
|
43
45
|
decodeFunctionResult(functionFragment: "SECONDS_IN_ONE_MINUTE", data: BytesLike): Result;
|
|
44
46
|
decodeFunctionResult(functionFragment: "baseRate", data: BytesLike): Result;
|
|
47
|
+
decodeFunctionResult(functionFragment: "baseRateMap", data: BytesLike): Result;
|
|
45
48
|
decodeFunctionResult(functionFragment: "calcActualRepayAndSeize", data: BytesLike): Result;
|
|
46
49
|
decodeFunctionResult(functionFragment: "comptroller", data: BytesLike): Result;
|
|
47
50
|
decodeFunctionResult(functionFragment: "decayBaseRateFromBorrowing", data: BytesLike): Result;
|
|
51
|
+
decodeFunctionResult(functionFragment: "getCurrentRedemptionRate", data: BytesLike): Result;
|
|
48
52
|
decodeFunctionResult(functionFragment: "getFirstProvider", data: BytesLike): Result;
|
|
49
53
|
decodeFunctionResult(functionFragment: "getNextProvider", data: BytesLike): Result;
|
|
50
54
|
decodeFunctionResult(functionFragment: "getRedemptionRate", data: BytesLike): Result;
|
|
51
|
-
decodeFunctionResult(functionFragment: "getRedemptionRateWithDecay", data: BytesLike): Result;
|
|
52
55
|
decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
|
|
53
56
|
decodeFunctionResult(functionFragment: "getRoleMember", data: BytesLike): Result;
|
|
54
57
|
decodeFunctionResult(functionFragment: "getRoleMemberCount", data: BytesLike): Result;
|
|
@@ -57,6 +60,7 @@ export interface RedemptionManagerInterface extends Interface {
|
|
|
57
60
|
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
|
|
58
61
|
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
59
62
|
decodeFunctionResult(functionFragment: "lastFeeOperationTime", data: BytesLike): Result;
|
|
63
|
+
decodeFunctionResult(functionFragment: "lastFeeOperationTimeMap", data: BytesLike): Result;
|
|
60
64
|
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
|
|
61
65
|
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
|
62
66
|
decodeFunctionResult(functionFragment: "setComptroller", data: BytesLike): Result;
|
|
@@ -67,9 +71,10 @@ export interface RedemptionManagerInterface extends Interface {
|
|
|
67
71
|
decodeFunctionResult(functionFragment: "updateSortedBorrows", data: BytesLike): Result;
|
|
68
72
|
}
|
|
69
73
|
export declare namespace BaseRateUpdatedEvent {
|
|
70
|
-
type InputTuple = [_baseRate: BigNumberish];
|
|
71
|
-
type OutputTuple = [_baseRate: bigint];
|
|
74
|
+
type InputTuple = [asset: AddressLike, _baseRate: BigNumberish];
|
|
75
|
+
type OutputTuple = [asset: string, _baseRate: bigint];
|
|
72
76
|
interface OutputObject {
|
|
77
|
+
asset: string;
|
|
73
78
|
_baseRate: bigint;
|
|
74
79
|
}
|
|
75
80
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
@@ -89,9 +94,10 @@ export declare namespace InitializedEvent {
|
|
|
89
94
|
type LogDescription = TypedLogDescription<Event>;
|
|
90
95
|
}
|
|
91
96
|
export declare namespace LastFeeOpTimeUpdatedEvent {
|
|
92
|
-
type InputTuple = [timestamp: BigNumberish];
|
|
93
|
-
type OutputTuple = [timestamp: bigint];
|
|
97
|
+
type InputTuple = [asset: AddressLike, timestamp: BigNumberish];
|
|
98
|
+
type OutputTuple = [asset: string, timestamp: bigint];
|
|
94
99
|
interface OutputObject {
|
|
100
|
+
asset: string;
|
|
95
101
|
timestamp: bigint;
|
|
96
102
|
}
|
|
97
103
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
@@ -175,6 +181,7 @@ export interface RedemptionManager extends BaseContract {
|
|
|
175
181
|
REDEMPTION_FEE_FLOOR: TypedContractMethod<[], [bigint], "view">;
|
|
176
182
|
SECONDS_IN_ONE_MINUTE: TypedContractMethod<[], [bigint], "view">;
|
|
177
183
|
baseRate: TypedContractMethod<[], [bigint], "view">;
|
|
184
|
+
baseRateMap: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
178
185
|
calcActualRepayAndSeize: TypedContractMethod<[
|
|
179
186
|
redeemAmount: BigNumberish,
|
|
180
187
|
provider: AddressLike,
|
|
@@ -185,7 +192,18 @@ export interface RedemptionManager extends BaseContract {
|
|
|
185
192
|
[bigint, bigint, bigint, bigint]
|
|
186
193
|
], "nonpayable">;
|
|
187
194
|
comptroller: TypedContractMethod<[], [string], "view">;
|
|
188
|
-
decayBaseRateFromBorrowing: TypedContractMethod<[
|
|
195
|
+
decayBaseRateFromBorrowing: TypedContractMethod<[
|
|
196
|
+
asset: AddressLike
|
|
197
|
+
], [
|
|
198
|
+
void
|
|
199
|
+
], "nonpayable">;
|
|
200
|
+
getCurrentRedemptionRate: TypedContractMethod<[
|
|
201
|
+
asset: AddressLike,
|
|
202
|
+
redeemAmount: BigNumberish,
|
|
203
|
+
_totalSupply: BigNumberish
|
|
204
|
+
], [
|
|
205
|
+
bigint
|
|
206
|
+
], "view">;
|
|
189
207
|
getFirstProvider: TypedContractMethod<[
|
|
190
208
|
_asset: AddressLike
|
|
191
209
|
], [
|
|
@@ -197,8 +215,11 @@ export interface RedemptionManager extends BaseContract {
|
|
|
197
215
|
], [
|
|
198
216
|
string
|
|
199
217
|
], "view">;
|
|
200
|
-
getRedemptionRate: TypedContractMethod<[
|
|
201
|
-
|
|
218
|
+
getRedemptionRate: TypedContractMethod<[
|
|
219
|
+
asset: AddressLike
|
|
220
|
+
], [
|
|
221
|
+
bigint
|
|
222
|
+
], "view">;
|
|
202
223
|
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
203
224
|
getRoleMember: TypedContractMethod<[
|
|
204
225
|
role: BytesLike,
|
|
@@ -227,6 +248,11 @@ export interface RedemptionManager extends BaseContract {
|
|
|
227
248
|
void
|
|
228
249
|
], "nonpayable">;
|
|
229
250
|
lastFeeOperationTime: TypedContractMethod<[], [bigint], "view">;
|
|
251
|
+
lastFeeOperationTimeMap: TypedContractMethod<[
|
|
252
|
+
arg0: AddressLike
|
|
253
|
+
], [
|
|
254
|
+
bigint
|
|
255
|
+
], "view">;
|
|
230
256
|
renounceRole: TypedContractMethod<[
|
|
231
257
|
role: BytesLike,
|
|
232
258
|
account: AddressLike
|
|
@@ -256,6 +282,7 @@ export interface RedemptionManager extends BaseContract {
|
|
|
256
282
|
boolean
|
|
257
283
|
], "view">;
|
|
258
284
|
updateBaseRateFromRedemption: TypedContractMethod<[
|
|
285
|
+
asset: AddressLike,
|
|
259
286
|
redeemAmount: BigNumberish,
|
|
260
287
|
_totalSupply: BigNumberish
|
|
261
288
|
], [
|
|
@@ -276,6 +303,7 @@ export interface RedemptionManager extends BaseContract {
|
|
|
276
303
|
getFunction(nameOrSignature: "REDEMPTION_FEE_FLOOR"): TypedContractMethod<[], [bigint], "view">;
|
|
277
304
|
getFunction(nameOrSignature: "SECONDS_IN_ONE_MINUTE"): TypedContractMethod<[], [bigint], "view">;
|
|
278
305
|
getFunction(nameOrSignature: "baseRate"): TypedContractMethod<[], [bigint], "view">;
|
|
306
|
+
getFunction(nameOrSignature: "baseRateMap"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
279
307
|
getFunction(nameOrSignature: "calcActualRepayAndSeize"): TypedContractMethod<[
|
|
280
308
|
redeemAmount: BigNumberish,
|
|
281
309
|
provider: AddressLike,
|
|
@@ -286,7 +314,14 @@ export interface RedemptionManager extends BaseContract {
|
|
|
286
314
|
[bigint, bigint, bigint, bigint]
|
|
287
315
|
], "nonpayable">;
|
|
288
316
|
getFunction(nameOrSignature: "comptroller"): TypedContractMethod<[], [string], "view">;
|
|
289
|
-
getFunction(nameOrSignature: "decayBaseRateFromBorrowing"): TypedContractMethod<[], [void], "nonpayable">;
|
|
317
|
+
getFunction(nameOrSignature: "decayBaseRateFromBorrowing"): TypedContractMethod<[asset: AddressLike], [void], "nonpayable">;
|
|
318
|
+
getFunction(nameOrSignature: "getCurrentRedemptionRate"): TypedContractMethod<[
|
|
319
|
+
asset: AddressLike,
|
|
320
|
+
redeemAmount: BigNumberish,
|
|
321
|
+
_totalSupply: BigNumberish
|
|
322
|
+
], [
|
|
323
|
+
bigint
|
|
324
|
+
], "view">;
|
|
290
325
|
getFunction(nameOrSignature: "getFirstProvider"): TypedContractMethod<[_asset: AddressLike], [string], "view">;
|
|
291
326
|
getFunction(nameOrSignature: "getNextProvider"): TypedContractMethod<[
|
|
292
327
|
_asset: AddressLike,
|
|
@@ -294,8 +329,7 @@ export interface RedemptionManager extends BaseContract {
|
|
|
294
329
|
], [
|
|
295
330
|
string
|
|
296
331
|
], "view">;
|
|
297
|
-
getFunction(nameOrSignature: "getRedemptionRate"): TypedContractMethod<[], [bigint], "view">;
|
|
298
|
-
getFunction(nameOrSignature: "getRedemptionRateWithDecay"): TypedContractMethod<[], [bigint], "view">;
|
|
332
|
+
getFunction(nameOrSignature: "getRedemptionRate"): TypedContractMethod<[asset: AddressLike], [bigint], "view">;
|
|
299
333
|
getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
300
334
|
getFunction(nameOrSignature: "getRoleMember"): TypedContractMethod<[
|
|
301
335
|
role: BytesLike,
|
|
@@ -324,6 +358,7 @@ export interface RedemptionManager extends BaseContract {
|
|
|
324
358
|
void
|
|
325
359
|
], "nonpayable">;
|
|
326
360
|
getFunction(nameOrSignature: "lastFeeOperationTime"): TypedContractMethod<[], [bigint], "view">;
|
|
361
|
+
getFunction(nameOrSignature: "lastFeeOperationTimeMap"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
327
362
|
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
328
363
|
role: BytesLike,
|
|
329
364
|
account: AddressLike
|
|
@@ -341,6 +376,7 @@ export interface RedemptionManager extends BaseContract {
|
|
|
341
376
|
getFunction(nameOrSignature: "sortedBorrows"): TypedContractMethod<[], [string], "view">;
|
|
342
377
|
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
343
378
|
getFunction(nameOrSignature: "updateBaseRateFromRedemption"): TypedContractMethod<[
|
|
379
|
+
asset: AddressLike,
|
|
344
380
|
redeemAmount: BigNumberish,
|
|
345
381
|
_totalSupply: BigNumberish
|
|
346
382
|
], [
|
|
@@ -359,11 +395,11 @@ export interface RedemptionManager extends BaseContract {
|
|
|
359
395
|
getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
360
396
|
getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
361
397
|
filters: {
|
|
362
|
-
"BaseRateUpdated(uint256)": TypedContractEvent<BaseRateUpdatedEvent.InputTuple, BaseRateUpdatedEvent.OutputTuple, BaseRateUpdatedEvent.OutputObject>;
|
|
398
|
+
"BaseRateUpdated(address,uint256)": TypedContractEvent<BaseRateUpdatedEvent.InputTuple, BaseRateUpdatedEvent.OutputTuple, BaseRateUpdatedEvent.OutputObject>;
|
|
363
399
|
BaseRateUpdated: TypedContractEvent<BaseRateUpdatedEvent.InputTuple, BaseRateUpdatedEvent.OutputTuple, BaseRateUpdatedEvent.OutputObject>;
|
|
364
400
|
"Initialized(uint8)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
365
401
|
Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
366
|
-
"LastFeeOpTimeUpdated(uint256)": TypedContractEvent<LastFeeOpTimeUpdatedEvent.InputTuple, LastFeeOpTimeUpdatedEvent.OutputTuple, LastFeeOpTimeUpdatedEvent.OutputObject>;
|
|
402
|
+
"LastFeeOpTimeUpdated(address,uint256)": TypedContractEvent<LastFeeOpTimeUpdatedEvent.InputTuple, LastFeeOpTimeUpdatedEvent.OutputTuple, LastFeeOpTimeUpdatedEvent.OutputObject>;
|
|
367
403
|
LastFeeOpTimeUpdated: TypedContractEvent<LastFeeOpTimeUpdatedEvent.InputTuple, LastFeeOpTimeUpdatedEvent.OutputTuple, LastFeeOpTimeUpdatedEvent.OutputObject>;
|
|
368
404
|
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
369
405
|
RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
@@ -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 ICTokenInterface extends Interface {
|
|
4
4
|
getFunction(nameOrSignature: "_acceptAdmin" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "accrualBlockNumber" | "accrueInterest" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowRatePerBlock" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "seize" | "supplyRatePerBlock" | "totalBorrowsCurrent" | "totalSupply" | "transfer" | "transferFrom"): FunctionFragment;
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
|
|
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;
|
|
8
8
|
encodeFunctionData(functionFragment: "_setComptroller", values: [AddressLike]): string;
|
|
@@ -288,6 +288,36 @@ export declare namespace RedeemEvent {
|
|
|
288
288
|
type Log = TypedEventLog<Event>;
|
|
289
289
|
type LogDescription = TypedLogDescription<Event>;
|
|
290
290
|
}
|
|
291
|
+
export declare namespace RedeemFaceValueEvent {
|
|
292
|
+
type InputTuple = [
|
|
293
|
+
redeemer: AddressLike,
|
|
294
|
+
provider: AddressLike,
|
|
295
|
+
repayAmount: BigNumberish,
|
|
296
|
+
seizeToken: AddressLike,
|
|
297
|
+
seizeAmount: BigNumberish,
|
|
298
|
+
redemptionRateMantissa: BigNumberish
|
|
299
|
+
];
|
|
300
|
+
type OutputTuple = [
|
|
301
|
+
redeemer: string,
|
|
302
|
+
provider: string,
|
|
303
|
+
repayAmount: bigint,
|
|
304
|
+
seizeToken: string,
|
|
305
|
+
seizeAmount: bigint,
|
|
306
|
+
redemptionRateMantissa: bigint
|
|
307
|
+
];
|
|
308
|
+
interface OutputObject {
|
|
309
|
+
redeemer: string;
|
|
310
|
+
provider: string;
|
|
311
|
+
repayAmount: bigint;
|
|
312
|
+
seizeToken: string;
|
|
313
|
+
seizeAmount: bigint;
|
|
314
|
+
redemptionRateMantissa: bigint;
|
|
315
|
+
}
|
|
316
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
317
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
318
|
+
type Log = TypedEventLog<Event>;
|
|
319
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
320
|
+
}
|
|
291
321
|
export declare namespace RepayBorrowEvent {
|
|
292
322
|
type InputTuple = [
|
|
293
323
|
payer: AddressLike,
|
|
@@ -570,6 +600,7 @@ export interface ICToken extends BaseContract {
|
|
|
570
600
|
getEvent(key: "NewPendingAdmin"): TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
|
|
571
601
|
getEvent(key: "NewReserveFactor"): TypedContractEvent<NewReserveFactorEvent.InputTuple, NewReserveFactorEvent.OutputTuple, NewReserveFactorEvent.OutputObject>;
|
|
572
602
|
getEvent(key: "Redeem"): TypedContractEvent<RedeemEvent.InputTuple, RedeemEvent.OutputTuple, RedeemEvent.OutputObject>;
|
|
603
|
+
getEvent(key: "RedeemFaceValue"): TypedContractEvent<RedeemFaceValueEvent.InputTuple, RedeemFaceValueEvent.OutputTuple, RedeemFaceValueEvent.OutputObject>;
|
|
573
604
|
getEvent(key: "RepayBorrow"): TypedContractEvent<RepayBorrowEvent.InputTuple, RepayBorrowEvent.OutputTuple, RepayBorrowEvent.OutputObject>;
|
|
574
605
|
getEvent(key: "ReservesAdded"): TypedContractEvent<ReservesAddedEvent.InputTuple, ReservesAddedEvent.OutputTuple, ReservesAddedEvent.OutputObject>;
|
|
575
606
|
getEvent(key: "ReservesReduced"): TypedContractEvent<ReservesReducedEvent.InputTuple, ReservesReducedEvent.OutputTuple, ReservesReducedEvent.OutputObject>;
|
|
@@ -599,6 +630,8 @@ export interface ICToken extends BaseContract {
|
|
|
599
630
|
NewReserveFactor: TypedContractEvent<NewReserveFactorEvent.InputTuple, NewReserveFactorEvent.OutputTuple, NewReserveFactorEvent.OutputObject>;
|
|
600
631
|
"Redeem(address,uint256,uint256)": TypedContractEvent<RedeemEvent.InputTuple, RedeemEvent.OutputTuple, RedeemEvent.OutputObject>;
|
|
601
632
|
Redeem: TypedContractEvent<RedeemEvent.InputTuple, RedeemEvent.OutputTuple, RedeemEvent.OutputObject>;
|
|
633
|
+
"RedeemFaceValue(address,address,uint256,address,uint256,uint256)": TypedContractEvent<RedeemFaceValueEvent.InputTuple, RedeemFaceValueEvent.OutputTuple, RedeemFaceValueEvent.OutputObject>;
|
|
634
|
+
RedeemFaceValue: TypedContractEvent<RedeemFaceValueEvent.InputTuple, RedeemFaceValueEvent.OutputTuple, RedeemFaceValueEvent.OutputObject>;
|
|
602
635
|
"RepayBorrow(address,address,uint256,uint256,uint256)": TypedContractEvent<RepayBorrowEvent.InputTuple, RepayBorrowEvent.OutputTuple, RepayBorrowEvent.OutputObject>;
|
|
603
636
|
RepayBorrow: TypedContractEvent<RepayBorrowEvent.InputTuple, RepayBorrowEvent.OutputTuple, RepayBorrowEvent.OutputObject>;
|
|
604
637
|
"ReservesAdded(address,uint256,uint256)": TypedContractEvent<ReservesAddedEvent.InputTuple, ReservesAddedEvent.OutputTuple, ReservesAddedEvent.OutputObject>;
|
|
@@ -1,20 +1,20 @@
|
|
|
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 IRedemptionManagerInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "calcActualRepayAndSeize" | "
|
|
4
|
+
getFunction(nameOrSignature: "calcActualRepayAndSeize" | "getCurrentRedemptionRate" | "getFirstProvider" | "getNextProvider" | "getRedemptionRate" | "hasNoProvider" | "updateBaseRateFromRedemption" | "updateSortedBorrows"): FunctionFragment;
|
|
5
5
|
encodeFunctionData(functionFragment: "calcActualRepayAndSeize", values: [BigNumberish, AddressLike, AddressLike, AddressLike, AddressLike]): string;
|
|
6
|
+
encodeFunctionData(functionFragment: "getCurrentRedemptionRate", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
6
7
|
encodeFunctionData(functionFragment: "getFirstProvider", values: [AddressLike]): string;
|
|
7
8
|
encodeFunctionData(functionFragment: "getNextProvider", values: [AddressLike, AddressLike]): string;
|
|
8
|
-
encodeFunctionData(functionFragment: "getRedemptionRate", values
|
|
9
|
-
encodeFunctionData(functionFragment: "getRedemptionRateWithDecay", values?: undefined): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "getRedemptionRate", values: [AddressLike]): string;
|
|
10
10
|
encodeFunctionData(functionFragment: "hasNoProvider", values: [AddressLike]): string;
|
|
11
|
-
encodeFunctionData(functionFragment: "updateBaseRateFromRedemption", values: [BigNumberish, BigNumberish]): string;
|
|
11
|
+
encodeFunctionData(functionFragment: "updateBaseRateFromRedemption", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
12
12
|
encodeFunctionData(functionFragment: "updateSortedBorrows", values: [AddressLike, AddressLike]): string;
|
|
13
13
|
decodeFunctionResult(functionFragment: "calcActualRepayAndSeize", data: BytesLike): Result;
|
|
14
|
+
decodeFunctionResult(functionFragment: "getCurrentRedemptionRate", data: BytesLike): Result;
|
|
14
15
|
decodeFunctionResult(functionFragment: "getFirstProvider", data: BytesLike): Result;
|
|
15
16
|
decodeFunctionResult(functionFragment: "getNextProvider", data: BytesLike): Result;
|
|
16
17
|
decodeFunctionResult(functionFragment: "getRedemptionRate", data: BytesLike): Result;
|
|
17
|
-
decodeFunctionResult(functionFragment: "getRedemptionRateWithDecay", data: BytesLike): Result;
|
|
18
18
|
decodeFunctionResult(functionFragment: "hasNoProvider", data: BytesLike): Result;
|
|
19
19
|
decodeFunctionResult(functionFragment: "updateBaseRateFromRedemption", data: BytesLike): Result;
|
|
20
20
|
decodeFunctionResult(functionFragment: "updateSortedBorrows", data: BytesLike): Result;
|
|
@@ -41,6 +41,13 @@ export interface IRedemptionManager extends BaseContract {
|
|
|
41
41
|
], [
|
|
42
42
|
[bigint, bigint, bigint, bigint]
|
|
43
43
|
], "nonpayable">;
|
|
44
|
+
getCurrentRedemptionRate: TypedContractMethod<[
|
|
45
|
+
asset: AddressLike,
|
|
46
|
+
redeemAmount: BigNumberish,
|
|
47
|
+
_totalSupply: BigNumberish
|
|
48
|
+
], [
|
|
49
|
+
bigint
|
|
50
|
+
], "nonpayable">;
|
|
44
51
|
getFirstProvider: TypedContractMethod<[
|
|
45
52
|
_asset: AddressLike
|
|
46
53
|
], [
|
|
@@ -52,10 +59,14 @@ export interface IRedemptionManager extends BaseContract {
|
|
|
52
59
|
], [
|
|
53
60
|
string
|
|
54
61
|
], "view">;
|
|
55
|
-
getRedemptionRate: TypedContractMethod<[
|
|
56
|
-
|
|
62
|
+
getRedemptionRate: TypedContractMethod<[
|
|
63
|
+
asset: AddressLike
|
|
64
|
+
], [
|
|
65
|
+
bigint
|
|
66
|
+
], "view">;
|
|
57
67
|
hasNoProvider: TypedContractMethod<[_asset: AddressLike], [boolean], "view">;
|
|
58
68
|
updateBaseRateFromRedemption: TypedContractMethod<[
|
|
69
|
+
asset: AddressLike,
|
|
59
70
|
redeemAmount: BigNumberish,
|
|
60
71
|
_totalSupply: BigNumberish
|
|
61
72
|
], [
|
|
@@ -77,6 +88,13 @@ export interface IRedemptionManager extends BaseContract {
|
|
|
77
88
|
], [
|
|
78
89
|
[bigint, bigint, bigint, bigint]
|
|
79
90
|
], "nonpayable">;
|
|
91
|
+
getFunction(nameOrSignature: "getCurrentRedemptionRate"): TypedContractMethod<[
|
|
92
|
+
asset: AddressLike,
|
|
93
|
+
redeemAmount: BigNumberish,
|
|
94
|
+
_totalSupply: BigNumberish
|
|
95
|
+
], [
|
|
96
|
+
bigint
|
|
97
|
+
], "nonpayable">;
|
|
80
98
|
getFunction(nameOrSignature: "getFirstProvider"): TypedContractMethod<[_asset: AddressLike], [string], "view">;
|
|
81
99
|
getFunction(nameOrSignature: "getNextProvider"): TypedContractMethod<[
|
|
82
100
|
_asset: AddressLike,
|
|
@@ -84,10 +102,10 @@ export interface IRedemptionManager extends BaseContract {
|
|
|
84
102
|
], [
|
|
85
103
|
string
|
|
86
104
|
], "view">;
|
|
87
|
-
getFunction(nameOrSignature: "getRedemptionRate"): TypedContractMethod<[], [bigint], "view">;
|
|
88
|
-
getFunction(nameOrSignature: "getRedemptionRateWithDecay"): TypedContractMethod<[], [bigint], "view">;
|
|
105
|
+
getFunction(nameOrSignature: "getRedemptionRate"): TypedContractMethod<[asset: AddressLike], [bigint], "view">;
|
|
89
106
|
getFunction(nameOrSignature: "hasNoProvider"): TypedContractMethod<[_asset: AddressLike], [boolean], "view">;
|
|
90
107
|
getFunction(nameOrSignature: "updateBaseRateFromRedemption"): TypedContractMethod<[
|
|
108
|
+
asset: AddressLike,
|
|
91
109
|
redeemAmount: BigNumberish,
|
|
92
110
|
_totalSupply: BigNumberish
|
|
93
111
|
], [
|