@meterio/sumer-js 0.1.24 → 0.1.25
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.d.ts +35 -7
- package/dist/nodejs/abi.js +398 -77
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/constants/metertest.js +1 -1
- package/dist/nodejs/errors.d.ts +35 -7
- package/dist/nodejs/errors.js +41 -13
- package/dist/nodejs/errors.js.map +1 -1
- package/dist/nodejs/index.d.ts +70 -14
- package/dist/nodejs/typechain/contracts/Comptroller/CompoundLens.d.ts +2 -2
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +17 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +43 -11
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +53 -12
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +43 -11
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +53 -12
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +42 -10
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +52 -11
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +43 -11
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +53 -12
- 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/CompoundLens__factory.d.ts +47 -11
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +58 -12
- 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/Comptroller__factory.d.ts +65 -11
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +82 -12
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +43 -11
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +53 -12
- 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
|
@@ -8,7 +8,7 @@ exports.metertest = {
|
|
|
8
8
|
"Multicall2": "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
9
9
|
"Sumer": "0x264b7316b535515db9759a77dc4041c0c2263527",
|
|
10
10
|
"SUMER": "0x264b7316b535515db9759a77dc4041c0c2263527",
|
|
11
|
-
"CompoundLens": "
|
|
11
|
+
"CompoundLens": "0x336F528FeF493fe23325f183334Fb212Ed3Ab228",
|
|
12
12
|
"FeedPriceOracle": "0x31AdFa19C2c834B0900cA716C37B0619C9bD2C6B",
|
|
13
13
|
"AccountLiquidity": "0x20A8794d5BEcBa1B19A35D8CaA2b7e0e0b7CF832",
|
|
14
14
|
"CompLogic": "0xC16b4a53e10317b3e30Cffea16999DD5ec35929a",
|
package/dist/nodejs/errors.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const errors: {
|
|
|
27
27
|
err: string;
|
|
28
28
|
explain: string;
|
|
29
29
|
};
|
|
30
|
-
"
|
|
30
|
+
"0x52688730": {
|
|
31
31
|
err: string;
|
|
32
32
|
explain: string;
|
|
33
33
|
};
|
|
@@ -63,6 +63,10 @@ export declare const errors: {
|
|
|
63
63
|
err: string;
|
|
64
64
|
explain: string;
|
|
65
65
|
};
|
|
66
|
+
"0x3a23d825": {
|
|
67
|
+
err: string;
|
|
68
|
+
explain: string;
|
|
69
|
+
};
|
|
66
70
|
"0x47556579": {
|
|
67
71
|
err: string;
|
|
68
72
|
explain: string;
|
|
@@ -99,10 +103,6 @@ export declare const errors: {
|
|
|
99
103
|
err: string;
|
|
100
104
|
explain: string;
|
|
101
105
|
};
|
|
102
|
-
"0x8e10cbd3": {
|
|
103
|
-
err: string;
|
|
104
|
-
explain: string;
|
|
105
|
-
};
|
|
106
106
|
"0x431f269d": {
|
|
107
107
|
err: string;
|
|
108
108
|
explain: string;
|
|
@@ -115,7 +115,15 @@ export declare const errors: {
|
|
|
115
115
|
err: string;
|
|
116
116
|
explain: string;
|
|
117
117
|
};
|
|
118
|
-
"
|
|
118
|
+
"0x91240a1b": {
|
|
119
|
+
err: string;
|
|
120
|
+
explain: string;
|
|
121
|
+
};
|
|
122
|
+
"0x48c25881": {
|
|
123
|
+
err: string;
|
|
124
|
+
explain: string;
|
|
125
|
+
};
|
|
126
|
+
"0x3345e999": {
|
|
119
127
|
err: string;
|
|
120
128
|
explain: string;
|
|
121
129
|
};
|
|
@@ -167,7 +175,11 @@ export declare const errors: {
|
|
|
167
175
|
err: string;
|
|
168
176
|
explain: string;
|
|
169
177
|
};
|
|
170
|
-
"
|
|
178
|
+
"0xfbf3ea79": {
|
|
179
|
+
err: string;
|
|
180
|
+
explain: string;
|
|
181
|
+
};
|
|
182
|
+
"0x7d10c4f6": {
|
|
171
183
|
err: string;
|
|
172
184
|
explain: string;
|
|
173
185
|
};
|
|
@@ -175,6 +187,22 @@ export declare const errors: {
|
|
|
175
187
|
err: string;
|
|
176
188
|
explain: string;
|
|
177
189
|
};
|
|
190
|
+
"0x5d1f8c0c": {
|
|
191
|
+
err: string;
|
|
192
|
+
explain: string;
|
|
193
|
+
};
|
|
194
|
+
"0x7b964b3b": {
|
|
195
|
+
err: string;
|
|
196
|
+
explain: string;
|
|
197
|
+
};
|
|
198
|
+
"0x9d4e8c1b": {
|
|
199
|
+
err: string;
|
|
200
|
+
explain: string;
|
|
201
|
+
};
|
|
202
|
+
"0xf68a5d02": {
|
|
203
|
+
err: string;
|
|
204
|
+
explain: string;
|
|
205
|
+
};
|
|
178
206
|
"0xee366600": {
|
|
179
207
|
err: string;
|
|
180
208
|
explain: string;
|
package/dist/nodejs/errors.js
CHANGED
|
@@ -30,9 +30,9 @@ exports.errors = {
|
|
|
30
30
|
"err": "InvalidMinSuBorrowValue",
|
|
31
31
|
"explain": "invalid min su borrow value"
|
|
32
32
|
},
|
|
33
|
-
"
|
|
34
|
-
"err": "
|
|
35
|
-
"explain": "borrow
|
|
33
|
+
"0x52688730": {
|
|
34
|
+
"err": "BorrowValueMustBeLargerThanThreshold(uint256 usdThreshold)",
|
|
35
|
+
"explain": "borrow value must be larger than threshold(uint256 usd threshold)"
|
|
36
36
|
},
|
|
37
37
|
"0xaf0b004c": {
|
|
38
38
|
"err": "ProtocolIsPaused",
|
|
@@ -66,6 +66,10 @@ exports.errors = {
|
|
|
66
66
|
"err": "SeizePaused",
|
|
67
67
|
"explain": "seize paused"
|
|
68
68
|
},
|
|
69
|
+
"0x3a23d825": {
|
|
70
|
+
"err": "InsufficientCollateral",
|
|
71
|
+
"explain": "insufficient collateral"
|
|
72
|
+
},
|
|
69
73
|
"0x47556579": {
|
|
70
74
|
"err": "OnlyAdmin",
|
|
71
75
|
"explain": "only admin"
|
|
@@ -102,10 +106,6 @@ exports.errors = {
|
|
|
102
106
|
"err": "TransferNotAllowed",
|
|
103
107
|
"explain": "transfer not allowed"
|
|
104
108
|
},
|
|
105
|
-
"0x8e10cbd3": {
|
|
106
|
-
"err": "MarketNotFresh",
|
|
107
|
-
"explain": "market not fresh"
|
|
108
|
-
},
|
|
109
109
|
"0x431f269d": {
|
|
110
110
|
"err": "TokenInOrAmountInMustBeZero",
|
|
111
111
|
"explain": "token in or amount in must be zero"
|
|
@@ -118,9 +118,17 @@ exports.errors = {
|
|
|
118
118
|
"err": "ReduceReservesOverflow",
|
|
119
119
|
"explain": "reduce reserves overflow"
|
|
120
120
|
},
|
|
121
|
-
"
|
|
122
|
-
"err": "
|
|
123
|
-
"explain": "
|
|
121
|
+
"0x91240a1b": {
|
|
122
|
+
"err": "RedeemTransferOutNotPossible",
|
|
123
|
+
"explain": "redeem transfer out not possible"
|
|
124
|
+
},
|
|
125
|
+
"0x48c25881": {
|
|
126
|
+
"err": "BorrowCashNotAvailable",
|
|
127
|
+
"explain": "borrow cash not available"
|
|
128
|
+
},
|
|
129
|
+
"0x3345e999": {
|
|
130
|
+
"err": "ReduceReservesCashNotAvailable",
|
|
131
|
+
"explain": "reduce reserves cash not available"
|
|
124
132
|
},
|
|
125
133
|
"0x2977522e": {
|
|
126
134
|
"err": "InvalidDiscountRate",
|
|
@@ -170,14 +178,34 @@ exports.errors = {
|
|
|
170
178
|
"err": "RedeemMarketNotFresh",
|
|
171
179
|
"explain": "redeem market not fresh"
|
|
172
180
|
},
|
|
173
|
-
"
|
|
174
|
-
"err": "
|
|
175
|
-
"explain": "liquidate
|
|
181
|
+
"0xfbf3ea79": {
|
|
182
|
+
"err": "LiquidateMarketNotFresh",
|
|
183
|
+
"explain": "liquidate market not fresh"
|
|
184
|
+
},
|
|
185
|
+
"0x7d10c4f6": {
|
|
186
|
+
"err": "LiquidateCollateralMarketNotFresh",
|
|
187
|
+
"explain": "liquidate collateral market not fresh"
|
|
176
188
|
},
|
|
177
189
|
"0x0a2af062": {
|
|
178
190
|
"err": "RedeemAndTransferMarketNotFresh",
|
|
179
191
|
"explain": "redeem and transfer market not fresh"
|
|
180
192
|
},
|
|
193
|
+
"0x5d1f8c0c": {
|
|
194
|
+
"err": "ReduceReservesMarketNotFresh",
|
|
195
|
+
"explain": "reduce reserves market not fresh"
|
|
196
|
+
},
|
|
197
|
+
"0x7b964b3b": {
|
|
198
|
+
"err": "SetInterestRateModelMarketNotFresh",
|
|
199
|
+
"explain": "set interest rate model market not fresh"
|
|
200
|
+
},
|
|
201
|
+
"0x9d4e8c1b": {
|
|
202
|
+
"err": "AddReservesMarketNotFresh",
|
|
203
|
+
"explain": "add reserves market not fresh"
|
|
204
|
+
},
|
|
205
|
+
"0xf68a5d02": {
|
|
206
|
+
"err": "SetReservesFactorMarketNotFresh",
|
|
207
|
+
"explain": "set reserves factor market not fresh"
|
|
208
|
+
},
|
|
181
209
|
"0xee366600": {
|
|
182
210
|
"err": "NotCToken",
|
|
183
211
|
"explain": "not c token"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IACpB,YAAY,EAAE;QACZ,KAAK,EAAE,YAAY;QACnB,SAAS,EAAE,aAAa;KACzB;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,sBAAsB;QAC7B,SAAS,EAAE,wBAAwB;KACpC;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,iBAAiB;QACxB,SAAS,EAAE,mBAAmB;KAC/B;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,wBAAwB;KACpC;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,cAAc;QACrB,SAAS,EAAE,gBAAgB;KAC5B;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,4CAA4C;QACnD,SAAS,EAAE,qDAAqD;KACjE;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,yBAAyB;QAChC,SAAS,EAAE,6BAA6B;KACzC;IACD,YAAY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
+
inputs: {
|
|
83
|
+
internalType: string;
|
|
84
|
+
name: string;
|
|
85
|
+
type: string;
|
|
86
|
+
}[];
|
|
83
87
|
name: string;
|
|
84
88
|
type: string;
|
|
85
89
|
}[];
|
|
@@ -211,7 +215,11 @@ declare const Sumer: {
|
|
|
211
215
|
outputs?: undefined;
|
|
212
216
|
})[];
|
|
213
217
|
CErc20: ({
|
|
214
|
-
inputs:
|
|
218
|
+
inputs: {
|
|
219
|
+
internalType: string;
|
|
220
|
+
name: string;
|
|
221
|
+
type: string;
|
|
222
|
+
}[];
|
|
215
223
|
name: string;
|
|
216
224
|
type: string;
|
|
217
225
|
anonymous?: undefined;
|
|
@@ -246,7 +254,11 @@ declare const Sumer: {
|
|
|
246
254
|
anonymous?: undefined;
|
|
247
255
|
})[];
|
|
248
256
|
CEther: ({
|
|
249
|
-
inputs:
|
|
257
|
+
inputs: {
|
|
258
|
+
internalType: string;
|
|
259
|
+
name: string;
|
|
260
|
+
type: string;
|
|
261
|
+
}[];
|
|
250
262
|
name: string;
|
|
251
263
|
type: string;
|
|
252
264
|
anonymous?: undefined;
|
|
@@ -288,7 +300,11 @@ declare const Sumer: {
|
|
|
288
300
|
outputs?: undefined;
|
|
289
301
|
})[];
|
|
290
302
|
CToken: ({
|
|
291
|
-
inputs:
|
|
303
|
+
inputs: {
|
|
304
|
+
internalType: string;
|
|
305
|
+
name: string;
|
|
306
|
+
type: string;
|
|
307
|
+
}[];
|
|
292
308
|
name: string;
|
|
293
309
|
type: string;
|
|
294
310
|
anonymous?: undefined;
|
|
@@ -351,7 +367,11 @@ declare const Sumer: {
|
|
|
351
367
|
anonymous?: undefined;
|
|
352
368
|
})[];
|
|
353
369
|
suErc20: ({
|
|
354
|
-
inputs:
|
|
370
|
+
inputs: {
|
|
371
|
+
internalType: string;
|
|
372
|
+
name: string;
|
|
373
|
+
type: string;
|
|
374
|
+
}[];
|
|
355
375
|
name: string;
|
|
356
376
|
type: string;
|
|
357
377
|
anonymous?: undefined;
|
|
@@ -463,7 +483,11 @@ declare const Sumer: {
|
|
|
463
483
|
anonymous?: undefined;
|
|
464
484
|
})[];
|
|
465
485
|
CompoundLens: ({
|
|
466
|
-
inputs:
|
|
486
|
+
inputs: {
|
|
487
|
+
internalType: string;
|
|
488
|
+
name: string;
|
|
489
|
+
type: string;
|
|
490
|
+
}[];
|
|
467
491
|
name: string;
|
|
468
492
|
type: string;
|
|
469
493
|
outputs?: undefined;
|
|
@@ -503,7 +527,11 @@ declare const Sumer: {
|
|
|
503
527
|
type: string;
|
|
504
528
|
})[];
|
|
505
529
|
Comptroller: ({
|
|
506
|
-
inputs:
|
|
530
|
+
inputs: {
|
|
531
|
+
internalType: string;
|
|
532
|
+
name: string;
|
|
533
|
+
type: string;
|
|
534
|
+
}[];
|
|
507
535
|
name: string;
|
|
508
536
|
type: string;
|
|
509
537
|
anonymous?: undefined;
|
|
@@ -2007,7 +2035,7 @@ declare const Sumer: {
|
|
|
2007
2035
|
err: string;
|
|
2008
2036
|
explain: string;
|
|
2009
2037
|
};
|
|
2010
|
-
"
|
|
2038
|
+
"0x52688730": {
|
|
2011
2039
|
err: string;
|
|
2012
2040
|
explain: string;
|
|
2013
2041
|
};
|
|
@@ -2043,6 +2071,10 @@ declare const Sumer: {
|
|
|
2043
2071
|
err: string;
|
|
2044
2072
|
explain: string;
|
|
2045
2073
|
};
|
|
2074
|
+
"0x3a23d825": {
|
|
2075
|
+
err: string;
|
|
2076
|
+
explain: string;
|
|
2077
|
+
};
|
|
2046
2078
|
"0x47556579": {
|
|
2047
2079
|
err: string;
|
|
2048
2080
|
explain: string;
|
|
@@ -2079,10 +2111,6 @@ declare const Sumer: {
|
|
|
2079
2111
|
err: string;
|
|
2080
2112
|
explain: string;
|
|
2081
2113
|
};
|
|
2082
|
-
"0x8e10cbd3": {
|
|
2083
|
-
err: string;
|
|
2084
|
-
explain: string;
|
|
2085
|
-
};
|
|
2086
2114
|
"0x431f269d": {
|
|
2087
2115
|
err: string;
|
|
2088
2116
|
explain: string;
|
|
@@ -2095,7 +2123,15 @@ declare const Sumer: {
|
|
|
2095
2123
|
err: string;
|
|
2096
2124
|
explain: string;
|
|
2097
2125
|
};
|
|
2098
|
-
"
|
|
2126
|
+
"0x91240a1b": {
|
|
2127
|
+
err: string;
|
|
2128
|
+
explain: string;
|
|
2129
|
+
};
|
|
2130
|
+
"0x48c25881": {
|
|
2131
|
+
err: string;
|
|
2132
|
+
explain: string;
|
|
2133
|
+
};
|
|
2134
|
+
"0x3345e999": {
|
|
2099
2135
|
err: string;
|
|
2100
2136
|
explain: string;
|
|
2101
2137
|
};
|
|
@@ -2147,7 +2183,11 @@ declare const Sumer: {
|
|
|
2147
2183
|
err: string;
|
|
2148
2184
|
explain: string;
|
|
2149
2185
|
};
|
|
2150
|
-
"
|
|
2186
|
+
"0xfbf3ea79": {
|
|
2187
|
+
err: string;
|
|
2188
|
+
explain: string;
|
|
2189
|
+
};
|
|
2190
|
+
"0x7d10c4f6": {
|
|
2151
2191
|
err: string;
|
|
2152
2192
|
explain: string;
|
|
2153
2193
|
};
|
|
@@ -2155,6 +2195,22 @@ declare const Sumer: {
|
|
|
2155
2195
|
err: string;
|
|
2156
2196
|
explain: string;
|
|
2157
2197
|
};
|
|
2198
|
+
"0x5d1f8c0c": {
|
|
2199
|
+
err: string;
|
|
2200
|
+
explain: string;
|
|
2201
|
+
};
|
|
2202
|
+
"0x7b964b3b": {
|
|
2203
|
+
err: string;
|
|
2204
|
+
explain: string;
|
|
2205
|
+
};
|
|
2206
|
+
"0x9d4e8c1b": {
|
|
2207
|
+
err: string;
|
|
2208
|
+
explain: string;
|
|
2209
|
+
};
|
|
2210
|
+
"0xf68a5d02": {
|
|
2211
|
+
err: string;
|
|
2212
|
+
explain: string;
|
|
2213
|
+
};
|
|
2158
2214
|
"0xee366600": {
|
|
2159
2215
|
err: string;
|
|
2160
2216
|
explain: string;
|
|
@@ -384,7 +384,7 @@ export interface CompoundLens extends BaseContract {
|
|
|
384
384
|
suToken: AddressLike,
|
|
385
385
|
suBorrowAmount: BigNumberish
|
|
386
386
|
], [
|
|
387
|
-
bigint
|
|
387
|
+
[bigint, bigint]
|
|
388
388
|
], "view">;
|
|
389
389
|
getAccountLimits: TypedContractMethod<[
|
|
390
390
|
comptroller: AddressLike,
|
|
@@ -477,7 +477,7 @@ export interface CompoundLens extends BaseContract {
|
|
|
477
477
|
suToken: AddressLike,
|
|
478
478
|
suBorrowAmount: BigNumberish
|
|
479
479
|
], [
|
|
480
|
-
bigint
|
|
480
|
+
[bigint, bigint]
|
|
481
481
|
], "view">;
|
|
482
482
|
getFunction(nameOrSignature: "getAccountLimits"): TypedContractMethod<[
|
|
483
483
|
comptroller: AddressLike,
|
|
@@ -32,7 +32,7 @@ export declare namespace IComptroller {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export interface ComptrollerInterface extends Interface {
|
|
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" | "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;
|
|
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
36
|
getEvent(nameOrSignatureOrTopic: "ActionPaused" | "Initialized" | "MarketEntered" | "MarketExited" | "MarketListed" | "NewAssetGroup" | "NewBorrowCap" | "NewBorrowCapGuardian" | "NewCloseFactor" | "NewLiquidationIncentive" | "NewPauseGuardian" | "NewPriceOracle" | "Redemption" | "RemoveAssetGroup" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "SetMaxSupply"): EventFragment;
|
|
37
37
|
encodeFunctionData(functionFragment: "CAPPER_ROLE", values?: undefined): string;
|
|
38
38
|
encodeFunctionData(functionFragment: "COMP_LOGIC", values?: undefined): string;
|
|
@@ -103,6 +103,7 @@ export interface ComptrollerInterface extends Interface {
|
|
|
103
103
|
BigNumberish,
|
|
104
104
|
AddressLike
|
|
105
105
|
]): string;
|
|
106
|
+
encodeFunctionData(functionFragment: "isBorrowValueLargerThanThreshold", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
106
107
|
encodeFunctionData(functionFragment: "isComptroller", values?: undefined): string;
|
|
107
108
|
encodeFunctionData(functionFragment: "isListed", values: [AddressLike]): string;
|
|
108
109
|
encodeFunctionData(functionFragment: "liquidateBorrowAllowed", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
@@ -210,6 +211,7 @@ export interface ComptrollerInterface extends Interface {
|
|
|
210
211
|
decodeFunctionResult(functionFragment: "heteroLiquidationIncentiveMantissa", data: BytesLike): Result;
|
|
211
212
|
decodeFunctionResult(functionFragment: "homoLiquidationIncentiveMantissa", data: BytesLike): Result;
|
|
212
213
|
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
214
|
+
decodeFunctionResult(functionFragment: "isBorrowValueLargerThanThreshold", data: BytesLike): Result;
|
|
213
215
|
decodeFunctionResult(functionFragment: "isComptroller", data: BytesLike): Result;
|
|
214
216
|
decodeFunctionResult(functionFragment: "isListed", data: BytesLike): Result;
|
|
215
217
|
decodeFunctionResult(functionFragment: "liquidateBorrowAllowed", data: BytesLike): Result;
|
|
@@ -818,6 +820,13 @@ export interface Comptroller extends BaseContract {
|
|
|
818
820
|
], [
|
|
819
821
|
void
|
|
820
822
|
], "nonpayable">;
|
|
823
|
+
isBorrowValueLargerThanThreshold: TypedContractMethod<[
|
|
824
|
+
cToken: AddressLike,
|
|
825
|
+
account: AddressLike,
|
|
826
|
+
extraBorrowAmount: BigNumberish
|
|
827
|
+
], [
|
|
828
|
+
boolean
|
|
829
|
+
], "nonpayable">;
|
|
821
830
|
isComptroller: TypedContractMethod<[], [boolean], "view">;
|
|
822
831
|
isListed: TypedContractMethod<[asset: AddressLike], [boolean], "view">;
|
|
823
832
|
liquidateBorrowAllowed: TypedContractMethod<[
|
|
@@ -1217,6 +1226,13 @@ export interface Comptroller extends BaseContract {
|
|
|
1217
1226
|
], [
|
|
1218
1227
|
void
|
|
1219
1228
|
], "nonpayable">;
|
|
1229
|
+
getFunction(nameOrSignature: "isBorrowValueLargerThanThreshold"): TypedContractMethod<[
|
|
1230
|
+
cToken: AddressLike,
|
|
1231
|
+
account: AddressLike,
|
|
1232
|
+
extraBorrowAmount: BigNumberish
|
|
1233
|
+
], [
|
|
1234
|
+
boolean
|
|
1235
|
+
], "nonpayable">;
|
|
1220
1236
|
getFunction(nameOrSignature: "isComptroller"): TypedContractMethod<[], [boolean], "view">;
|
|
1221
1237
|
getFunction(nameOrSignature: "isListed"): TypedContractMethod<[asset: AddressLike], [boolean], "view">;
|
|
1222
1238
|
getFunction(nameOrSignature: "liquidateBorrowAllowed"): TypedContractMethod<[
|