@gearbox-protocol/sdk 3.0.0-next.55 → 3.0.0-next.56
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/contracts/index.sol +5 -0
- package/lib/core/creditAccount.d.ts +1 -2
- package/lib/core/creditAccount.js +0 -7
- package/lib/core/creditManager.js +1 -1
- package/lib/core/trade.d.ts +9 -8
- package/lib/core/trade.js +25 -22
- package/lib/parsers/convexBaseRewardPoolAdapterParser.js +10 -8
- package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +9 -6
- package/lib/parsers/convexBoosterAdapterParser.js +6 -6
- package/lib/parsers/convexBoosterAdapterParser.spec.js +4 -4
- package/lib/parsers/curveAdapterParser.js +10 -10
- package/lib/parsers/curveAdapterParser.spec.js +6 -2
- package/lib/parsers/lidoAdapterParser.js +3 -2
- package/lib/parsers/lidoAdapterParser.spec.js +2 -2
- package/lib/parsers/uniV2AdapterParser.js +4 -3
- package/lib/parsers/uniV2AdapterParser.spec.js +3 -2
- package/lib/parsers/uniV3AdapterParser.js +8 -6
- package/lib/parsers/uniV3AdapterParser.spec.js +3 -2
- package/lib/parsers/wstETHAdapterParser.js +6 -4
- package/lib/parsers/wstETHAdapterParser.spec.js +4 -4
- package/lib/parsers/yearnAdapterParser.spec.js +4 -4
- package/lib/parsers/yearnV2AdapterParser.js +13 -3
- package/lib/pathfinder/core.d.ts +8 -9
- package/lib/pathfinder/pathfinder.d.ts +37 -10
- package/lib/pathfinder/pathfinder.js +45 -33
- package/lib/pathfinder/pathfinder.spec.js +4 -2
- package/lib/payload/creditAccount.d.ts +1 -2
- package/lib/types/IAaveV2_LendingPoolAdapter.d.ts +171 -0
- package/lib/types/IAaveV2_WrappedATokenAdapter.d.ts +290 -0
- package/lib/types/IBalancerV2Vault.sol/IBalancerV2Vault.d.ts +308 -0
- package/lib/types/IBalancerV2Vault.sol/IBalancerV2VaultGetters.d.ts +112 -0
- package/lib/types/IBalancerV2Vault.sol/index.d.ts +2 -0
- package/lib/types/IBalancerV2Vault.sol/index.js +2 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.d.ts +466 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.js +2 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.d.ts +43 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.js +2 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.d.ts +27 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.js +2 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/index.js +2 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.d.ts +216 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.js +2 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.d.ts +27 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.js +2 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/index.js +2 -0
- package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +30 -30
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts +21 -17
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +45 -85
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +24 -26
- package/lib/types/ICreditFacadeV3Multicall.d.ts +32 -40
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +99 -71
- package/lib/types/ICurveV1Adapter.d.ts +41 -105
- package/lib/types/ICurveV1_2AssetsAdapter.d.ts +41 -105
- package/lib/types/ICurveV1_3AssetsAdapter.d.ts +41 -105
- package/lib/types/ICurveV1_4AssetsAdapter.d.ts +41 -105
- package/lib/types/IDataCompressorV2_10.d.ts +1 -27
- package/lib/types/IDataCompressorV3_00.d.ts +1 -27
- package/lib/types/IERC4626Adapter.d.ts +238 -0
- package/lib/types/IERC4626Adapter.js +2 -0
- package/lib/types/ILidoV1Adapter.d.ts +9 -9
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.d.ts +39 -14
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.d.ts +5 -3
- package/lib/types/IUniswapV2Adapter.sol/IUniswapV2Adapter.d.ts +10 -9
- package/lib/types/IUniswapV3Adapter.sol/IUniswapV3Adapter.d.ts +27 -21
- package/lib/types/IYearnV2Adapter.d.ts +22 -22
- package/lib/types/IwstETHV1Adapter.d.ts +17 -17
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.d.ts +158 -0
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.js +215 -0
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +252 -0
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +341 -0
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.d.ts +78 -0
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js +111 -0
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +360 -0
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +475 -0
- package/lib/types/factories/IBalancerV2Vault.sol/index.d.ts +2 -0
- package/lib/types/factories/IBalancerV2Vault.sol/index.js +10 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +23 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +38 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +12 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js +24 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +514 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +675 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.js +12 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +196 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +267 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +16 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js +30 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.js +10 -0
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +18 -6
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +22 -6
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts +10 -2
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js +12 -2
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +13 -18
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +14 -20
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +13 -70
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +14 -86
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +22 -24
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +28 -31
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +153 -135
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +191 -168
- package/lib/types/factories/ICurveV1Adapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1Adapter__factory.js +14 -91
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +14 -91
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +14 -91
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +14 -91
- package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +0 -42
- package/lib/types/factories/IDataCompressorV2_10__factory.js +0 -54
- package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +0 -84
- package/lib/types/factories/IDataCompressorV3_00__factory.js +0 -108
- package/lib/types/factories/IERC4626Adapter__factory.d.ts +220 -0
- package/lib/types/factories/IERC4626Adapter__factory.js +297 -0
- package/lib/types/factories/ILidoV1Adapter__factory.d.ts +6 -2
- package/lib/types/factories/ILidoV1Adapter__factory.js +8 -2
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +5 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +6 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +45 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +59 -0
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +5 -1
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +6 -1
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +12 -4
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +14 -4
- package/lib/types/factories/IYearnV2Adapter__factory.d.ts +21 -13
- package/lib/types/factories/IYearnV2Adapter__factory.js +27 -15
- package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +12 -4
- package/lib/types/factories/IwstETHV1Adapter__factory.js +16 -4
- package/lib/types/factories/index.d.ts +7 -2
- package/lib/types/factories/index.js +12 -5
- package/lib/types/factories/{IRouter__factory.d.ts → interfaces/IRouter__factory.d.ts} +61 -6
- package/lib/types/factories/{IRouter__factory.js → interfaces/IRouter__factory.js} +77 -6
- package/lib/types/factories/interfaces/index.d.ts +1 -0
- package/lib/types/factories/interfaces/index.js +8 -0
- package/lib/types/index.d.ts +39 -17
- package/lib/types/index.js +39 -23
- package/lib/types/{IRouter.d.ts → interfaces/IRouter.d.ts} +37 -34
- package/lib/types/interfaces/IRouter.js +2 -0
- package/lib/types/interfaces/index.d.ts +1 -0
- package/lib/types/interfaces/index.js +2 -0
- package/package.json +6 -6
- package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3.d.ts +0 -370
- package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.d.ts +0 -133
- package/lib/types/IWithdrawalManagerV3.sol/index.d.ts +0 -2
- package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.d.ts +0 -143
- package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.js +0 -188
- package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.d.ts +0 -366
- package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.js +0 -479
- package/lib/types/factories/IWithdrawalManagerV3.sol/index.d.ts +0 -2
- package/lib/types/factories/IWithdrawalManagerV3.sol/index.js +0 -10
- /package/lib/types/{IRouter.js → IAaveV2_LendingPoolAdapter.js} +0 -0
- /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3.js → IAaveV2_WrappedATokenAdapter.js} +0 -0
- /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.js → IBalancerV2Vault.sol/IBalancerV2Vault.js} +0 -0
- /package/lib/types/{IWithdrawalManagerV3.sol/index.js → IBalancerV2Vault.sol/IBalancerV2VaultGetters.js} +0 -0
|
@@ -57,7 +57,7 @@ export declare class ICreditManagerV3__factory {
|
|
|
57
57
|
readonly name: "addCollateral";
|
|
58
58
|
readonly outputs: readonly [{
|
|
59
59
|
readonly internalType: "uint256";
|
|
60
|
-
readonly name: "
|
|
60
|
+
readonly name: "tokensToEnable";
|
|
61
61
|
readonly type: "uint256";
|
|
62
62
|
}];
|
|
63
63
|
readonly stateMutability: "nonpayable";
|
|
@@ -102,95 +102,20 @@ export declare class ICreditManagerV3__factory {
|
|
|
102
102
|
readonly name: "creditAccount";
|
|
103
103
|
readonly type: "address";
|
|
104
104
|
}, {
|
|
105
|
-
readonly internalType: "enum CollateralCalcTask";
|
|
106
|
-
readonly name: "task";
|
|
107
|
-
readonly type: "uint8";
|
|
108
|
-
}];
|
|
109
|
-
readonly name: "calcDebtAndCollateral";
|
|
110
|
-
readonly outputs: readonly [{
|
|
111
|
-
readonly components: readonly [{
|
|
112
|
-
readonly internalType: "uint256";
|
|
113
|
-
readonly name: "debt";
|
|
114
|
-
readonly type: "uint256";
|
|
115
|
-
}, {
|
|
116
|
-
readonly internalType: "uint256";
|
|
117
|
-
readonly name: "cumulativeIndexNow";
|
|
118
|
-
readonly type: "uint256";
|
|
119
|
-
}, {
|
|
120
|
-
readonly internalType: "uint256";
|
|
121
|
-
readonly name: "cumulativeIndexLastUpdate";
|
|
122
|
-
readonly type: "uint256";
|
|
123
|
-
}, {
|
|
124
|
-
readonly internalType: "uint128";
|
|
125
|
-
readonly name: "cumulativeQuotaInterest";
|
|
126
|
-
readonly type: "uint128";
|
|
127
|
-
}, {
|
|
128
|
-
readonly internalType: "uint256";
|
|
129
|
-
readonly name: "accruedInterest";
|
|
130
|
-
readonly type: "uint256";
|
|
131
|
-
}, {
|
|
132
|
-
readonly internalType: "uint256";
|
|
133
|
-
readonly name: "accruedFees";
|
|
134
|
-
readonly type: "uint256";
|
|
135
|
-
}, {
|
|
136
|
-
readonly internalType: "uint256";
|
|
137
|
-
readonly name: "totalDebtUSD";
|
|
138
|
-
readonly type: "uint256";
|
|
139
|
-
}, {
|
|
140
|
-
readonly internalType: "uint256";
|
|
141
|
-
readonly name: "totalValue";
|
|
142
|
-
readonly type: "uint256";
|
|
143
|
-
}, {
|
|
144
|
-
readonly internalType: "uint256";
|
|
145
|
-
readonly name: "totalValueUSD";
|
|
146
|
-
readonly type: "uint256";
|
|
147
|
-
}, {
|
|
148
|
-
readonly internalType: "uint256";
|
|
149
|
-
readonly name: "twvUSD";
|
|
150
|
-
readonly type: "uint256";
|
|
151
|
-
}, {
|
|
152
|
-
readonly internalType: "uint256";
|
|
153
|
-
readonly name: "enabledTokensMask";
|
|
154
|
-
readonly type: "uint256";
|
|
155
|
-
}, {
|
|
156
|
-
readonly internalType: "uint256";
|
|
157
|
-
readonly name: "quotedTokensMask";
|
|
158
|
-
readonly type: "uint256";
|
|
159
|
-
}, {
|
|
160
|
-
readonly internalType: "address[]";
|
|
161
|
-
readonly name: "quotedTokens";
|
|
162
|
-
readonly type: "address[]";
|
|
163
|
-
}, {
|
|
164
|
-
readonly internalType: "address";
|
|
165
|
-
readonly name: "_poolQuotaKeeper";
|
|
166
|
-
readonly type: "address";
|
|
167
|
-
}];
|
|
168
|
-
readonly internalType: "struct CollateralDebtData";
|
|
169
|
-
readonly name: "cdd";
|
|
170
|
-
readonly type: "tuple";
|
|
171
|
-
}];
|
|
172
|
-
readonly stateMutability: "view";
|
|
173
|
-
readonly type: "function";
|
|
174
|
-
}, {
|
|
175
|
-
readonly inputs: readonly [{
|
|
176
105
|
readonly internalType: "address";
|
|
177
|
-
readonly name: "
|
|
106
|
+
readonly name: "token";
|
|
178
107
|
readonly type: "address";
|
|
179
108
|
}, {
|
|
180
109
|
readonly internalType: "address";
|
|
181
|
-
readonly name: "
|
|
110
|
+
readonly name: "spender";
|
|
182
111
|
readonly type: "address";
|
|
183
112
|
}, {
|
|
184
|
-
readonly internalType: "enum ClaimAction";
|
|
185
|
-
readonly name: "action";
|
|
186
|
-
readonly type: "uint8";
|
|
187
|
-
}];
|
|
188
|
-
readonly name: "claimWithdrawals";
|
|
189
|
-
readonly outputs: readonly [{
|
|
190
113
|
readonly internalType: "uint256";
|
|
191
|
-
readonly name: "
|
|
114
|
+
readonly name: "amount";
|
|
192
115
|
readonly type: "uint256";
|
|
193
116
|
}];
|
|
117
|
+
readonly name: "approveToken";
|
|
118
|
+
readonly outputs: readonly [];
|
|
194
119
|
readonly stateMutability: "nonpayable";
|
|
195
120
|
readonly type: "function";
|
|
196
121
|
}, {
|
|
@@ -199,10 +124,12 @@ export declare class ICreditManagerV3__factory {
|
|
|
199
124
|
readonly name: "creditAccount";
|
|
200
125
|
readonly type: "address";
|
|
201
126
|
}, {
|
|
202
|
-
readonly internalType: "enum
|
|
203
|
-
readonly name: "
|
|
127
|
+
readonly internalType: "enum CollateralCalcTask";
|
|
128
|
+
readonly name: "task";
|
|
204
129
|
readonly type: "uint8";
|
|
205
|
-
}
|
|
130
|
+
}];
|
|
131
|
+
readonly name: "calcDebtAndCollateral";
|
|
132
|
+
readonly outputs: readonly [{
|
|
206
133
|
readonly components: readonly [{
|
|
207
134
|
readonly internalType: "uint256";
|
|
208
135
|
readonly name: "debt";
|
|
@@ -261,35 +188,19 @@ export declare class ICreditManagerV3__factory {
|
|
|
261
188
|
readonly type: "address";
|
|
262
189
|
}];
|
|
263
190
|
readonly internalType: "struct CollateralDebtData";
|
|
264
|
-
readonly name: "
|
|
191
|
+
readonly name: "cdd";
|
|
265
192
|
readonly type: "tuple";
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
193
|
+
}];
|
|
194
|
+
readonly stateMutability: "view";
|
|
195
|
+
readonly type: "function";
|
|
196
|
+
}, {
|
|
197
|
+
readonly inputs: readonly [{
|
|
271
198
|
readonly internalType: "address";
|
|
272
|
-
readonly name: "
|
|
199
|
+
readonly name: "creditAccount";
|
|
273
200
|
readonly type: "address";
|
|
274
|
-
}, {
|
|
275
|
-
readonly internalType: "uint256";
|
|
276
|
-
readonly name: "skipTokensMask";
|
|
277
|
-
readonly type: "uint256";
|
|
278
|
-
}, {
|
|
279
|
-
readonly internalType: "bool";
|
|
280
|
-
readonly name: "convertToETH";
|
|
281
|
-
readonly type: "bool";
|
|
282
201
|
}];
|
|
283
202
|
readonly name: "closeCreditAccount";
|
|
284
|
-
readonly outputs: readonly [
|
|
285
|
-
readonly internalType: "uint256";
|
|
286
|
-
readonly name: "remainingFunds";
|
|
287
|
-
readonly type: "uint256";
|
|
288
|
-
}, {
|
|
289
|
-
readonly internalType: "uint256";
|
|
290
|
-
readonly name: "loss";
|
|
291
|
-
readonly type: "uint256";
|
|
292
|
-
}];
|
|
203
|
+
readonly outputs: readonly [];
|
|
293
204
|
readonly stateMutability: "nonpayable";
|
|
294
205
|
readonly type: "function";
|
|
295
206
|
}, {
|
|
@@ -462,6 +373,28 @@ export declare class ICreditManagerV3__factory {
|
|
|
462
373
|
}];
|
|
463
374
|
readonly stateMutability: "nonpayable";
|
|
464
375
|
readonly type: "function";
|
|
376
|
+
}, {
|
|
377
|
+
readonly inputs: readonly [{
|
|
378
|
+
readonly internalType: "address";
|
|
379
|
+
readonly name: "creditAccount";
|
|
380
|
+
readonly type: "address";
|
|
381
|
+
}, {
|
|
382
|
+
readonly internalType: "address";
|
|
383
|
+
readonly name: "target";
|
|
384
|
+
readonly type: "address";
|
|
385
|
+
}, {
|
|
386
|
+
readonly internalType: "bytes";
|
|
387
|
+
readonly name: "callData";
|
|
388
|
+
readonly type: "bytes";
|
|
389
|
+
}];
|
|
390
|
+
readonly name: "externalCall";
|
|
391
|
+
readonly outputs: readonly [{
|
|
392
|
+
readonly internalType: "bytes";
|
|
393
|
+
readonly name: "result";
|
|
394
|
+
readonly type: "bytes";
|
|
395
|
+
}];
|
|
396
|
+
readonly stateMutability: "nonpayable";
|
|
397
|
+
readonly type: "function";
|
|
465
398
|
}, {
|
|
466
399
|
readonly inputs: readonly [];
|
|
467
400
|
readonly name: "fees";
|
|
@@ -519,6 +452,10 @@ export declare class ICreditManagerV3__factory {
|
|
|
519
452
|
readonly internalType: "uint16";
|
|
520
453
|
readonly name: "minHealthFactor";
|
|
521
454
|
readonly type: "uint16";
|
|
455
|
+
}, {
|
|
456
|
+
readonly internalType: "bool";
|
|
457
|
+
readonly name: "useSafePrices";
|
|
458
|
+
readonly type: "bool";
|
|
522
459
|
}];
|
|
523
460
|
readonly name: "fullCollateralCheck";
|
|
524
461
|
readonly outputs: readonly [{
|
|
@@ -598,6 +535,93 @@ export declare class ICreditManagerV3__factory {
|
|
|
598
535
|
}];
|
|
599
536
|
readonly stateMutability: "view";
|
|
600
537
|
readonly type: "function";
|
|
538
|
+
}, {
|
|
539
|
+
readonly inputs: readonly [{
|
|
540
|
+
readonly internalType: "address";
|
|
541
|
+
readonly name: "creditAccount";
|
|
542
|
+
readonly type: "address";
|
|
543
|
+
}, {
|
|
544
|
+
readonly components: readonly [{
|
|
545
|
+
readonly internalType: "uint256";
|
|
546
|
+
readonly name: "debt";
|
|
547
|
+
readonly type: "uint256";
|
|
548
|
+
}, {
|
|
549
|
+
readonly internalType: "uint256";
|
|
550
|
+
readonly name: "cumulativeIndexNow";
|
|
551
|
+
readonly type: "uint256";
|
|
552
|
+
}, {
|
|
553
|
+
readonly internalType: "uint256";
|
|
554
|
+
readonly name: "cumulativeIndexLastUpdate";
|
|
555
|
+
readonly type: "uint256";
|
|
556
|
+
}, {
|
|
557
|
+
readonly internalType: "uint128";
|
|
558
|
+
readonly name: "cumulativeQuotaInterest";
|
|
559
|
+
readonly type: "uint128";
|
|
560
|
+
}, {
|
|
561
|
+
readonly internalType: "uint256";
|
|
562
|
+
readonly name: "accruedInterest";
|
|
563
|
+
readonly type: "uint256";
|
|
564
|
+
}, {
|
|
565
|
+
readonly internalType: "uint256";
|
|
566
|
+
readonly name: "accruedFees";
|
|
567
|
+
readonly type: "uint256";
|
|
568
|
+
}, {
|
|
569
|
+
readonly internalType: "uint256";
|
|
570
|
+
readonly name: "totalDebtUSD";
|
|
571
|
+
readonly type: "uint256";
|
|
572
|
+
}, {
|
|
573
|
+
readonly internalType: "uint256";
|
|
574
|
+
readonly name: "totalValue";
|
|
575
|
+
readonly type: "uint256";
|
|
576
|
+
}, {
|
|
577
|
+
readonly internalType: "uint256";
|
|
578
|
+
readonly name: "totalValueUSD";
|
|
579
|
+
readonly type: "uint256";
|
|
580
|
+
}, {
|
|
581
|
+
readonly internalType: "uint256";
|
|
582
|
+
readonly name: "twvUSD";
|
|
583
|
+
readonly type: "uint256";
|
|
584
|
+
}, {
|
|
585
|
+
readonly internalType: "uint256";
|
|
586
|
+
readonly name: "enabledTokensMask";
|
|
587
|
+
readonly type: "uint256";
|
|
588
|
+
}, {
|
|
589
|
+
readonly internalType: "uint256";
|
|
590
|
+
readonly name: "quotedTokensMask";
|
|
591
|
+
readonly type: "uint256";
|
|
592
|
+
}, {
|
|
593
|
+
readonly internalType: "address[]";
|
|
594
|
+
readonly name: "quotedTokens";
|
|
595
|
+
readonly type: "address[]";
|
|
596
|
+
}, {
|
|
597
|
+
readonly internalType: "address";
|
|
598
|
+
readonly name: "_poolQuotaKeeper";
|
|
599
|
+
readonly type: "address";
|
|
600
|
+
}];
|
|
601
|
+
readonly internalType: "struct CollateralDebtData";
|
|
602
|
+
readonly name: "collateralDebtData";
|
|
603
|
+
readonly type: "tuple";
|
|
604
|
+
}, {
|
|
605
|
+
readonly internalType: "address";
|
|
606
|
+
readonly name: "to";
|
|
607
|
+
readonly type: "address";
|
|
608
|
+
}, {
|
|
609
|
+
readonly internalType: "bool";
|
|
610
|
+
readonly name: "isExpired";
|
|
611
|
+
readonly type: "bool";
|
|
612
|
+
}];
|
|
613
|
+
readonly name: "liquidateCreditAccount";
|
|
614
|
+
readonly outputs: readonly [{
|
|
615
|
+
readonly internalType: "uint256";
|
|
616
|
+
readonly name: "remainingFunds";
|
|
617
|
+
readonly type: "uint256";
|
|
618
|
+
}, {
|
|
619
|
+
readonly internalType: "uint256";
|
|
620
|
+
readonly name: "loss";
|
|
621
|
+
readonly type: "uint256";
|
|
622
|
+
}];
|
|
623
|
+
readonly stateMutability: "nonpayable";
|
|
624
|
+
readonly type: "function";
|
|
601
625
|
}, {
|
|
602
626
|
readonly inputs: readonly [{
|
|
603
627
|
readonly internalType: "address";
|
|
@@ -769,28 +793,6 @@ export declare class ICreditManagerV3__factory {
|
|
|
769
793
|
readonly outputs: readonly [];
|
|
770
794
|
readonly stateMutability: "nonpayable";
|
|
771
795
|
readonly type: "function";
|
|
772
|
-
}, {
|
|
773
|
-
readonly inputs: readonly [{
|
|
774
|
-
readonly internalType: "address";
|
|
775
|
-
readonly name: "creditAccount";
|
|
776
|
-
readonly type: "address";
|
|
777
|
-
}, {
|
|
778
|
-
readonly internalType: "address";
|
|
779
|
-
readonly name: "token";
|
|
780
|
-
readonly type: "address";
|
|
781
|
-
}, {
|
|
782
|
-
readonly internalType: "uint256";
|
|
783
|
-
readonly name: "amount";
|
|
784
|
-
readonly type: "uint256";
|
|
785
|
-
}];
|
|
786
|
-
readonly name: "scheduleWithdrawal";
|
|
787
|
-
readonly outputs: readonly [{
|
|
788
|
-
readonly internalType: "uint256";
|
|
789
|
-
readonly name: "tokensToDisable";
|
|
790
|
-
readonly type: "uint256";
|
|
791
|
-
}];
|
|
792
|
-
readonly stateMutability: "nonpayable";
|
|
793
|
-
readonly type: "function";
|
|
794
796
|
}, {
|
|
795
797
|
readonly inputs: readonly [{
|
|
796
798
|
readonly internalType: "address";
|
|
@@ -1000,14 +1002,30 @@ export declare class ICreditManagerV3__factory {
|
|
|
1000
1002
|
readonly stateMutability: "view";
|
|
1001
1003
|
readonly type: "function";
|
|
1002
1004
|
}, {
|
|
1003
|
-
readonly inputs: readonly [
|
|
1004
|
-
readonly name: "withdrawalManager";
|
|
1005
|
-
readonly outputs: readonly [{
|
|
1005
|
+
readonly inputs: readonly [{
|
|
1006
1006
|
readonly internalType: "address";
|
|
1007
|
-
readonly name: "";
|
|
1007
|
+
readonly name: "creditAccount";
|
|
1008
|
+
readonly type: "address";
|
|
1009
|
+
}, {
|
|
1010
|
+
readonly internalType: "address";
|
|
1011
|
+
readonly name: "token";
|
|
1012
|
+
readonly type: "address";
|
|
1013
|
+
}, {
|
|
1014
|
+
readonly internalType: "uint256";
|
|
1015
|
+
readonly name: "amount";
|
|
1016
|
+
readonly type: "uint256";
|
|
1017
|
+
}, {
|
|
1018
|
+
readonly internalType: "address";
|
|
1019
|
+
readonly name: "to";
|
|
1008
1020
|
readonly type: "address";
|
|
1009
1021
|
}];
|
|
1010
|
-
readonly
|
|
1022
|
+
readonly name: "withdrawCollateral";
|
|
1023
|
+
readonly outputs: readonly [{
|
|
1024
|
+
readonly internalType: "uint256";
|
|
1025
|
+
readonly name: "tokensToDisable";
|
|
1026
|
+
readonly type: "uint256";
|
|
1027
|
+
}];
|
|
1028
|
+
readonly stateMutability: "nonpayable";
|
|
1011
1029
|
readonly type: "function";
|
|
1012
1030
|
}];
|
|
1013
1031
|
static createInterface(): ICreditManagerV3Interface;
|