@meterio/sumer-js 0.2.44 → 0.2.45
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/constants/zklink.d.ts +14 -4
- package/dist/nodejs/constants/zklink.js +11 -15
- package/dist/nodejs/constants/zklink.js.map +1 -1
- package/dist/nodejs/typechain/contracts/Comptroller/CompoundLens.d.ts +9 -2
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +1 -19
- package/dist/nodejs/typechain/contracts/Test.d.ts +30 -2
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +1 -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 +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__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/CompLogic__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +19 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +24 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +1 -27
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +1 -35
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Test__factory.d.ts +45 -1
- package/dist/nodejs/typechain/factories/contracts/Test__factory.js +59 -1
- package/dist/nodejs/typechain/factories/contracts/Test__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
- package/package.json +1 -1
|
@@ -24,10 +24,10 @@ export declare const zklink: {
|
|
|
24
24
|
"SolvBTC.m": string;
|
|
25
25
|
sdrpufETH: string;
|
|
26
26
|
pufETH: string;
|
|
27
|
-
sdrSTONE: string;
|
|
28
|
-
STONE: string;
|
|
29
|
-
sdrManta: string;
|
|
30
|
-
Manta: string;
|
|
27
|
+
"sdrSTONE.manta": string;
|
|
28
|
+
"STONE.manta": string;
|
|
29
|
+
"sdrManta.manta": string;
|
|
30
|
+
"Manta.manta": string;
|
|
31
31
|
};
|
|
32
32
|
tokenPairs: ({
|
|
33
33
|
ctokenSym: string;
|
|
@@ -39,6 +39,16 @@ export declare const zklink: {
|
|
|
39
39
|
permitEnabled: boolean;
|
|
40
40
|
underlyAddr: string;
|
|
41
41
|
assetGroupId: number;
|
|
42
|
+
} | {
|
|
43
|
+
ctokenSym: string;
|
|
44
|
+
underlySym: string;
|
|
45
|
+
ctokenDecimal: number;
|
|
46
|
+
underlyDecimal: number;
|
|
47
|
+
ctokenIsEther: boolean;
|
|
48
|
+
permitEnabled: boolean;
|
|
49
|
+
assetGroupId: number;
|
|
50
|
+
ctokenAddr?: undefined;
|
|
51
|
+
underlyAddr?: undefined;
|
|
42
52
|
} | {
|
|
43
53
|
ctokenSym: string;
|
|
44
54
|
ctokenAddr: string;
|
|
@@ -7,7 +7,7 @@ exports.zklink = {
|
|
|
7
7
|
"Multicall2": "0x825267E0fA5CAe92F98540828a54198dcB3Eaeb5",
|
|
8
8
|
"Sumer": "0x553d713e0fB958932b6C40ABAf0b5A1fFae73Da2",
|
|
9
9
|
"SUMER": "0x553d713e0fB958932b6C40ABAf0b5A1fFae73Da2",
|
|
10
|
-
"CompoundLens": "
|
|
10
|
+
"CompoundLens": "0x20A18997838B8804ef01ff7781E84233952f1c43",
|
|
11
11
|
"FeedPriceOracle": "0x3B2Ea1B8A20293e93cb68D7c918f22403700f91A",
|
|
12
12
|
"CompLogic": "0xe93557e3C2f9D6fAbc2e60c0490e927114f89F7C",
|
|
13
13
|
"RedemptionManager": "0xc3A01A290587e099C89dbb9EF2F553A7616D0780",
|
|
@@ -27,10 +27,10 @@ exports.zklink = {
|
|
|
27
27
|
"SolvBTC.m": "0xbEAf16cFD8eFe0FC97C2a07E349B9411F5dC272C",
|
|
28
28
|
"sdrpufETH": "0xE143694271a0b34ea6C7928d9B66d31f60B2BfeD",
|
|
29
29
|
"pufETH": "0x1B49eCf1A8323Db4abf48b2F5EFaA33F7DdAB3FC",
|
|
30
|
-
"sdrSTONE": "0x03979c0Fba55EA5A8022c79951fEED1c4a3C8324",
|
|
31
|
-
"STONE": "0xDeEC33dc735Baf36b473598C33BCD077A0f32049",
|
|
32
|
-
"sdrManta": "0x67CF127b95A6B957aeDEA5B15626311245167979",
|
|
33
|
-
"Manta": "0xF5d3953a33F78E0412A8988FD77B4920AA968B0b"
|
|
30
|
+
"sdrSTONE.manta": "0x03979c0Fba55EA5A8022c79951fEED1c4a3C8324",
|
|
31
|
+
"STONE.manta": "0xDeEC33dc735Baf36b473598C33BCD077A0f32049",
|
|
32
|
+
"sdrManta.manta": "0x67CF127b95A6B957aeDEA5B15626311245167979",
|
|
33
|
+
"Manta.manta": "0xF5d3953a33F78E0412A8988FD77B4920AA968B0b"
|
|
34
34
|
},
|
|
35
35
|
"tokenPairs": [
|
|
36
36
|
{
|
|
@@ -100,25 +100,21 @@ exports.zklink = {
|
|
|
100
100
|
"assetGroupId": 2
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
"ctokenSym": "sdrSTONE",
|
|
104
|
-
"
|
|
105
|
-
"underlySym": "STONE",
|
|
103
|
+
"ctokenSym": "sdrSTONE.manta",
|
|
104
|
+
"underlySym": "STONE.manta",
|
|
106
105
|
"ctokenDecimal": 18,
|
|
107
106
|
"underlyDecimal": 18,
|
|
108
107
|
"ctokenIsEther": false,
|
|
109
108
|
"permitEnabled": false,
|
|
110
|
-
"underlyAddr": "0xDeEC33dc735Baf36b473598C33BCD077A0f32049",
|
|
111
109
|
"assetGroupId": 2
|
|
112
110
|
},
|
|
113
111
|
{
|
|
114
|
-
"ctokenSym": "sdrManta",
|
|
115
|
-
"
|
|
116
|
-
"underlySym": "Manta",
|
|
112
|
+
"ctokenSym": "sdrManta.manta",
|
|
113
|
+
"underlySym": "Manta.manta",
|
|
117
114
|
"ctokenDecimal": 18,
|
|
118
115
|
"underlyDecimal": 18,
|
|
119
116
|
"ctokenIsEther": false,
|
|
120
117
|
"permitEnabled": false,
|
|
121
|
-
"underlyAddr": "0xF5d3953a33F78E0412A8988FD77B4920AA968B0b",
|
|
122
118
|
"assetGroupId": 4
|
|
123
119
|
},
|
|
124
120
|
{
|
|
@@ -154,8 +150,8 @@ exports.zklink = {
|
|
|
154
150
|
"MBTC",
|
|
155
151
|
"SolvBTC.m",
|
|
156
152
|
"pufETH",
|
|
157
|
-
"STONE",
|
|
158
|
-
"Manta"
|
|
153
|
+
"STONE.manta",
|
|
154
|
+
"Manta.manta"
|
|
159
155
|
],
|
|
160
156
|
"baseRatePerYear": "0",
|
|
161
157
|
"multiplierPerYear": "0.01",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zklink.js","sourceRoot":"","sources":["../../../src/constants/zklink.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IACpB,WAAW,EAAE;QACX,YAAY,EAAE,4CAA4C;QAC1D,YAAY,EAAE,4CAA4C;QAC1D,OAAO,EAAE,4CAA4C;QACrD,OAAO,EAAE,4CAA4C;QACrD,cAAc,EAAE,4CAA4C;QAC5D,iBAAiB,EAAE,4CAA4C;QAC/D,WAAW,EAAE,4CAA4C;QACzD,mBAAmB,EAAE,4CAA4C;QACjE,UAAU,EAAE,4CAA4C;QACxD,aAAa,EAAE,4CAA4C;QAC3D,QAAQ,EAAE,4CAA4C;QACtD,KAAK,EAAE,4CAA4C;QACnD,SAAS,EAAE,4CAA4C;QACvD,MAAM,EAAE,4CAA4C;QACpD,SAAS,EAAE,4CAA4C;QACvD,MAAM,EAAE,4CAA4C;QACpD,SAAS,EAAE,4CAA4C;QACvD,MAAM,EAAE,4CAA4C;QACpD,SAAS,EAAE,4CAA4C;QACvD,MAAM,EAAE,4CAA4C;QACpD,cAAc,EAAE,4CAA4C;QAC5D,WAAW,EAAE,4CAA4C;QACzD,WAAW,EAAE,4CAA4C;QACzD,QAAQ,EAAE,4CAA4C;QACtD,
|
|
1
|
+
{"version":3,"file":"zklink.js","sourceRoot":"","sources":["../../../src/constants/zklink.ts"],"names":[],"mappings":";;;AAAa,QAAA,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EAAE,aAAa;YAC3B,eAAe,EAAE,EAAE;YACnB,gBAAgB,EAAE,EAAE;YACpB,eAAe,EAAE,KAAK;YACtB,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,CAAC;SAClB;QACD;YACE,WAAW,EAAE,QAAQ;YACrB,YAAY,EAAE,4CAA4C;YAC1D,YAAY,EAAE,KAAK;YACnB,eAAe,EAAE,EAAE;YACnB,gBAAgB,EAAE,EAAE;YACpB,eAAe,EAAE,IAAI;YACrB,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,4CAA4C;SAC5D;KACF;IACD,YAAY,EAAE;QACZ;YACE,MAAM,EAAE,iBAAiB;YACzB,SAAS,EAAE,4CAA4C;YACvD,QAAQ,EAAE;gBACR,MAAM;gBACN,MAAM;gBACN,MAAM;gBACN,KAAK;aACN;YACD,iBAAiB,EAAE,GAAG;YACtB,mBAAmB,EAAE,KAAK;YAC1B,uBAAuB,EAAE,GAAG;YAC5B,MAAM,EAAE,MAAM;SACf;QACD;YACE,MAAM,EAAE,iBAAiB;YACzB,SAAS,EAAE,4CAA4C;YACvD,QAAQ,EAAE;gBACR,MAAM;gBACN,WAAW;gBACX,QAAQ;gBACR,aAAa;gBACb,aAAa;aACd;YACD,iBAAiB,EAAE,GAAG;YACtB,mBAAmB,EAAE,MAAM;YAC3B,uBAAuB,EAAE,GAAG;YAC5B,MAAM,EAAE,MAAM;SACf;KACF;IACD,eAAe,EAAE,QAAQ;CAC1B,CAAA"}
|
|
@@ -56,6 +56,7 @@ export declare namespace CompoundLens {
|
|
|
56
56
|
mintRate: BigNumberish;
|
|
57
57
|
interRate: BigNumberish;
|
|
58
58
|
discountRate: BigNumberish;
|
|
59
|
+
interMintRate: BigNumberish;
|
|
59
60
|
};
|
|
60
61
|
type CTokenMetadataStructOutput = [
|
|
61
62
|
cToken: string,
|
|
@@ -82,7 +83,8 @@ export declare namespace CompoundLens {
|
|
|
82
83
|
intraRate: bigint,
|
|
83
84
|
mintRate: bigint,
|
|
84
85
|
interRate: bigint,
|
|
85
|
-
discountRate: bigint
|
|
86
|
+
discountRate: bigint,
|
|
87
|
+
interMintRate: bigint
|
|
86
88
|
] & {
|
|
87
89
|
cToken: string;
|
|
88
90
|
exchangeRateCurrent: bigint;
|
|
@@ -109,6 +111,7 @@ export declare namespace CompoundLens {
|
|
|
109
111
|
mintRate: bigint;
|
|
110
112
|
interRate: bigint;
|
|
111
113
|
discountRate: bigint;
|
|
114
|
+
interMintRate: bigint;
|
|
112
115
|
};
|
|
113
116
|
type CTokenUnderlyingPriceStruct = {
|
|
114
117
|
cToken: AddressLike;
|
|
@@ -301,7 +304,7 @@ export declare namespace CompoundLens {
|
|
|
301
304
|
};
|
|
302
305
|
}
|
|
303
306
|
export interface CompoundLensInterface extends Interface {
|
|
304
|
-
getFunction(nameOrSignature: "cTokenBalances" | "cTokenBalancesAll" | "cTokenMetadata" | "cTokenMetadataAll" | "cTokenUnderlyingPrice" | "cTokenUnderlyingPriceAll" | "calcBorrowAmountForProtectedMint" | "getAccountLimits" | "getCollateralRate" | "getCompBalanceMetadata" | "getCompBalanceMetadataExt" | "getCompVotes" | "getGovBravoProposals" | "getGovBravoReceipts" | "getGovProposals" | "getGovReceipts" | "percentScale"): FunctionFragment;
|
|
307
|
+
getFunction(nameOrSignature: "cTokenBalances" | "cTokenBalancesAll" | "cTokenMetadata" | "cTokenMetadataAll" | "cTokenUnderlyingPrice" | "cTokenUnderlyingPriceAll" | "calcBorrowAmountForProtectedMint" | "getAccountLimits" | "getCollateralRate" | "getCompBalanceMetadata" | "getCompBalanceMetadataExt" | "getCompVotes" | "getGovBravoProposals" | "getGovBravoReceipts" | "getGovProposals" | "getGovReceipts" | "percentScale" | "version"): FunctionFragment;
|
|
305
308
|
encodeFunctionData(functionFragment: "cTokenBalances", values: [AddressLike, AddressLike]): string;
|
|
306
309
|
encodeFunctionData(functionFragment: "cTokenBalancesAll", values: [AddressLike[], AddressLike]): string;
|
|
307
310
|
encodeFunctionData(functionFragment: "cTokenMetadata", values: [AddressLike]): string;
|
|
@@ -319,6 +322,7 @@ export interface CompoundLensInterface extends Interface {
|
|
|
319
322
|
encodeFunctionData(functionFragment: "getGovProposals", values: [AddressLike, BigNumberish[]]): string;
|
|
320
323
|
encodeFunctionData(functionFragment: "getGovReceipts", values: [AddressLike, AddressLike, BigNumberish[]]): string;
|
|
321
324
|
encodeFunctionData(functionFragment: "percentScale", values?: undefined): string;
|
|
325
|
+
encodeFunctionData(functionFragment: "version", values?: undefined): string;
|
|
322
326
|
decodeFunctionResult(functionFragment: "cTokenBalances", data: BytesLike): Result;
|
|
323
327
|
decodeFunctionResult(functionFragment: "cTokenBalancesAll", data: BytesLike): Result;
|
|
324
328
|
decodeFunctionResult(functionFragment: "cTokenMetadata", data: BytesLike): Result;
|
|
@@ -336,6 +340,7 @@ export interface CompoundLensInterface extends Interface {
|
|
|
336
340
|
decodeFunctionResult(functionFragment: "getGovProposals", data: BytesLike): Result;
|
|
337
341
|
decodeFunctionResult(functionFragment: "getGovReceipts", data: BytesLike): Result;
|
|
338
342
|
decodeFunctionResult(functionFragment: "percentScale", data: BytesLike): Result;
|
|
343
|
+
decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
|
|
339
344
|
}
|
|
340
345
|
export interface CompoundLens extends BaseContract {
|
|
341
346
|
connect(runner?: ContractRunner | null): CompoundLens;
|
|
@@ -450,6 +455,7 @@ export interface CompoundLens extends BaseContract {
|
|
|
450
455
|
CompoundLens.GovReceiptStructOutput[]
|
|
451
456
|
], "view">;
|
|
452
457
|
percentScale: TypedContractMethod<[], [bigint], "view">;
|
|
458
|
+
version: TypedContractMethod<[], [bigint], "view">;
|
|
453
459
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
454
460
|
getFunction(nameOrSignature: "cTokenBalances"): TypedContractMethod<[
|
|
455
461
|
cToken: AddressLike,
|
|
@@ -551,5 +557,6 @@ export interface CompoundLens extends BaseContract {
|
|
|
551
557
|
CompoundLens.GovReceiptStructOutput[]
|
|
552
558
|
], "view">;
|
|
553
559
|
getFunction(nameOrSignature: "percentScale"): TypedContractMethod<[], [bigint], "view">;
|
|
560
|
+
getFunction(nameOrSignature: "version"): TypedContractMethod<[], [bigint], "view">;
|
|
554
561
|
filters: {};
|
|
555
562
|
}
|
|
@@ -35,7 +35,7 @@ export type LiquidationIncentiveStructOutput = [
|
|
|
35
35
|
sutokenPercent: bigint;
|
|
36
36
|
};
|
|
37
37
|
export interface ComptrollerInterface extends Interface {
|
|
38
|
-
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "PAUSER_ROLE" | "_pause" | "_setCaps" | "_setGlobalConfig" | "_setGovTokenAddress" | "_setLiquidationIncentive" | "_setPauseGuardian" | "_setPriceOracle" | "_setTimelock" | "_supportMarket" | "accountAssets" | "allMarkets" | "assetGroup" | "borrowAllowed" | "borrowVerify" | "compLogic" | "enterMarkets" | "exitMarket" | "
|
|
38
|
+
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "PAUSER_ROLE" | "_pause" | "_setCaps" | "_setGlobalConfig" | "_setGovTokenAddress" | "_setLiquidationIncentive" | "_setPauseGuardian" | "_setPriceOracle" | "_setTimelock" | "_supportMarket" | "accountAssets" | "allMarkets" | "assetGroup" | "borrowAllowed" | "borrowVerify" | "compLogic" | "enterMarkets" | "exitMarket" | "getAllMarkets" | "getAssetsIn" | "getHypotheticalAccountLiquidity" | "getRoleAdmin" | "getUnderlyingPriceNormalized" | "globalConfig" | "governanceToken" | "grantRole" | "hasRole" | "initialize" | "isComptroller" | "isListed" | "lastBorrowedAt" | "liquidateBorrowAllowed" | "liquidationIncentive" | "marketConfig" | "markets" | "mintAllowed" | "oracle" | "pauseGuardian" | "redeemAllowed" | "redemptionManager" | "removeAssetGroup" | "renounceRole" | "repayBorrowAllowed" | "revokeRole" | "seizeAllowed" | "setAssetGroup" | "supportsInterface" | "timelock" | "transferAllowed" | "version"): FunctionFragment;
|
|
39
39
|
getEvent(nameOrSignatureOrTopic: "Initialized" | "MarketEntered" | "MarketExited" | "MarketListed" | "NewAssetGroup" | "NewCap" | "NewDependencies" | "NewGlobalConfig" | "NewLiquidationIncentive" | "NewPause" | "NewPauseGuardian" | "NewPriceOracle" | "NewTimelock" | "RemoveAssetGroup" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked"): EventFragment;
|
|
40
40
|
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
41
41
|
encodeFunctionData(functionFragment: "PAUSER_ROLE", values?: undefined): string;
|
|
@@ -56,7 +56,6 @@ export interface ComptrollerInterface extends Interface {
|
|
|
56
56
|
encodeFunctionData(functionFragment: "compLogic", values?: undefined): string;
|
|
57
57
|
encodeFunctionData(functionFragment: "enterMarkets", values: [AddressLike[]]): string;
|
|
58
58
|
encodeFunctionData(functionFragment: "exitMarket", values: [AddressLike]): string;
|
|
59
|
-
encodeFunctionData(functionFragment: "getAccountSafeLimit", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
60
59
|
encodeFunctionData(functionFragment: "getAllMarkets", values?: undefined): string;
|
|
61
60
|
encodeFunctionData(functionFragment: "getAssetsIn", values: [AddressLike]): string;
|
|
62
61
|
encodeFunctionData(functionFragment: "getHypotheticalAccountLiquidity", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
@@ -123,7 +122,6 @@ export interface ComptrollerInterface extends Interface {
|
|
|
123
122
|
decodeFunctionResult(functionFragment: "compLogic", data: BytesLike): Result;
|
|
124
123
|
decodeFunctionResult(functionFragment: "enterMarkets", data: BytesLike): Result;
|
|
125
124
|
decodeFunctionResult(functionFragment: "exitMarket", data: BytesLike): Result;
|
|
126
|
-
decodeFunctionResult(functionFragment: "getAccountSafeLimit", data: BytesLike): Result;
|
|
127
125
|
decodeFunctionResult(functionFragment: "getAllMarkets", data: BytesLike): Result;
|
|
128
126
|
decodeFunctionResult(functionFragment: "getAssetsIn", data: BytesLike): Result;
|
|
129
127
|
decodeFunctionResult(functionFragment: "getHypotheticalAccountLiquidity", data: BytesLike): Result;
|
|
@@ -574,14 +572,6 @@ export interface Comptroller extends BaseContract {
|
|
|
574
572
|
], [
|
|
575
573
|
void
|
|
576
574
|
], "nonpayable">;
|
|
577
|
-
getAccountSafeLimit: TypedContractMethod<[
|
|
578
|
-
account: AddressLike,
|
|
579
|
-
cTokenModify: AddressLike,
|
|
580
|
-
intraSafeLimitMantissa: BigNumberish,
|
|
581
|
-
interSafeLimitMantissa: BigNumberish
|
|
582
|
-
], [
|
|
583
|
-
bigint
|
|
584
|
-
], "view">;
|
|
585
575
|
getAllMarkets: TypedContractMethod<[], [string[]], "view">;
|
|
586
576
|
getAssetsIn: TypedContractMethod<[account: AddressLike], [string[]], "view">;
|
|
587
577
|
getHypotheticalAccountLiquidity: TypedContractMethod<[
|
|
@@ -855,14 +845,6 @@ export interface Comptroller extends BaseContract {
|
|
|
855
845
|
getFunction(nameOrSignature: "compLogic"): TypedContractMethod<[], [string], "view">;
|
|
856
846
|
getFunction(nameOrSignature: "enterMarkets"): TypedContractMethod<[cTokens: AddressLike[]], [void], "nonpayable">;
|
|
857
847
|
getFunction(nameOrSignature: "exitMarket"): TypedContractMethod<[cTokenAddress: AddressLike], [void], "nonpayable">;
|
|
858
|
-
getFunction(nameOrSignature: "getAccountSafeLimit"): TypedContractMethod<[
|
|
859
|
-
account: AddressLike,
|
|
860
|
-
cTokenModify: AddressLike,
|
|
861
|
-
intraSafeLimitMantissa: BigNumberish,
|
|
862
|
-
interSafeLimitMantissa: BigNumberish
|
|
863
|
-
], [
|
|
864
|
-
bigint
|
|
865
|
-
], "view">;
|
|
866
848
|
getFunction(nameOrSignature: "getAllMarkets"): TypedContractMethod<[], [string[]], "view">;
|
|
867
849
|
getFunction(nameOrSignature: "getAssetsIn"): TypedContractMethod<[account: AddressLike], [string[]], "view">;
|
|
868
850
|
getFunction(nameOrSignature: "getHypotheticalAccountLiquidity"): TypedContractMethod<[
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../common";
|
|
3
3
|
export interface TestInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "getBlockNumber"): FunctionFragment;
|
|
4
|
+
getFunction(nameOrSignature: "getBlockNumber" | "mul" | "mulTruncate"): FunctionFragment;
|
|
5
5
|
encodeFunctionData(functionFragment: "getBlockNumber", values?: undefined): string;
|
|
6
|
+
encodeFunctionData(functionFragment: "mul", values: [BigNumberish, BigNumberish]): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "mulTruncate", values: [BigNumberish, BigNumberish]): string;
|
|
6
8
|
decodeFunctionResult(functionFragment: "getBlockNumber", data: BytesLike): Result;
|
|
9
|
+
decodeFunctionResult(functionFragment: "mul", data: BytesLike): Result;
|
|
10
|
+
decodeFunctionResult(functionFragment: "mulTruncate", data: BytesLike): Result;
|
|
7
11
|
}
|
|
8
12
|
export interface Test extends BaseContract {
|
|
9
13
|
connect(runner?: ContractRunner | null): Test;
|
|
@@ -19,7 +23,31 @@ export interface Test extends BaseContract {
|
|
|
19
23
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
20
24
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
21
25
|
getBlockNumber: TypedContractMethod<[], [bigint], "view">;
|
|
26
|
+
mul: TypedContractMethod<[
|
|
27
|
+
a: BigNumberish,
|
|
28
|
+
b: BigNumberish
|
|
29
|
+
], [
|
|
30
|
+
[bigint, bigint]
|
|
31
|
+
], "view">;
|
|
32
|
+
mulTruncate: TypedContractMethod<[
|
|
33
|
+
a: BigNumberish,
|
|
34
|
+
b: BigNumberish
|
|
35
|
+
], [
|
|
36
|
+
[bigint, bigint]
|
|
37
|
+
], "view">;
|
|
22
38
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
23
39
|
getFunction(nameOrSignature: "getBlockNumber"): TypedContractMethod<[], [bigint], "view">;
|
|
40
|
+
getFunction(nameOrSignature: "mul"): TypedContractMethod<[
|
|
41
|
+
a: BigNumberish,
|
|
42
|
+
b: BigNumberish
|
|
43
|
+
], [
|
|
44
|
+
[bigint, bigint]
|
|
45
|
+
], "view">;
|
|
46
|
+
getFunction(nameOrSignature: "mulTruncate"): TypedContractMethod<[
|
|
47
|
+
a: BigNumberish,
|
|
48
|
+
b: BigNumberish
|
|
49
|
+
], [
|
|
50
|
+
[bigint, bigint]
|
|
51
|
+
], "view">;
|
|
24
52
|
filters: {};
|
|
25
53
|
}
|