@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
|
@@ -20,40 +20,46 @@ export type UniswapV3PoolStatusStructOutput = [
|
|
|
20
20
|
allowed: boolean;
|
|
21
21
|
};
|
|
22
22
|
export declare namespace IUniswapV3AdapterTypes {
|
|
23
|
-
type
|
|
23
|
+
type ExactDiffInputParamsStruct = {
|
|
24
24
|
path: PromiseOrValue<BytesLike>;
|
|
25
25
|
deadline: PromiseOrValue<BigNumberish>;
|
|
26
|
+
leftoverAmount: PromiseOrValue<BigNumberish>;
|
|
26
27
|
rateMinRAY: PromiseOrValue<BigNumberish>;
|
|
27
28
|
};
|
|
28
|
-
type
|
|
29
|
+
type ExactDiffInputParamsStructOutput = [
|
|
29
30
|
string,
|
|
30
31
|
BigNumber,
|
|
32
|
+
BigNumber,
|
|
31
33
|
BigNumber
|
|
32
34
|
] & {
|
|
33
35
|
path: string;
|
|
34
36
|
deadline: BigNumber;
|
|
37
|
+
leftoverAmount: BigNumber;
|
|
35
38
|
rateMinRAY: BigNumber;
|
|
36
39
|
};
|
|
37
|
-
type
|
|
40
|
+
type ExactDiffInputSingleParamsStruct = {
|
|
38
41
|
tokenIn: PromiseOrValue<string>;
|
|
39
42
|
tokenOut: PromiseOrValue<string>;
|
|
40
43
|
fee: PromiseOrValue<BigNumberish>;
|
|
41
44
|
deadline: PromiseOrValue<BigNumberish>;
|
|
45
|
+
leftoverAmount: PromiseOrValue<BigNumberish>;
|
|
42
46
|
rateMinRAY: PromiseOrValue<BigNumberish>;
|
|
43
47
|
sqrtPriceLimitX96: PromiseOrValue<BigNumberish>;
|
|
44
48
|
};
|
|
45
|
-
type
|
|
49
|
+
type ExactDiffInputSingleParamsStructOutput = [
|
|
46
50
|
string,
|
|
47
51
|
string,
|
|
48
52
|
number,
|
|
49
53
|
BigNumber,
|
|
50
54
|
BigNumber,
|
|
55
|
+
BigNumber,
|
|
51
56
|
BigNumber
|
|
52
57
|
] & {
|
|
53
58
|
tokenIn: string;
|
|
54
59
|
tokenOut: string;
|
|
55
60
|
fee: number;
|
|
56
61
|
deadline: BigNumber;
|
|
62
|
+
leftoverAmount: BigNumber;
|
|
57
63
|
rateMinRAY: BigNumber;
|
|
58
64
|
sqrtPriceLimitX96: BigNumber;
|
|
59
65
|
};
|
|
@@ -164,8 +170,8 @@ export interface IUniswapV3AdapterInterface extends utils.Interface {
|
|
|
164
170
|
"_gearboxAdapterVersion()": FunctionFragment;
|
|
165
171
|
"addressProvider()": FunctionFragment;
|
|
166
172
|
"creditManager()": FunctionFragment;
|
|
167
|
-
"
|
|
168
|
-
"
|
|
173
|
+
"exactDiffInput((bytes,uint256,uint256,uint256))": FunctionFragment;
|
|
174
|
+
"exactDiffInputSingle((address,address,uint24,uint256,uint256,uint256,uint160))": FunctionFragment;
|
|
169
175
|
"exactInput((bytes,address,uint256,uint256,uint256))": FunctionFragment;
|
|
170
176
|
"exactInputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160))": FunctionFragment;
|
|
171
177
|
"exactOutput((bytes,address,uint256,uint256,uint256))": FunctionFragment;
|
|
@@ -174,13 +180,13 @@ export interface IUniswapV3AdapterInterface extends utils.Interface {
|
|
|
174
180
|
"setPoolStatusBatch((address,address,uint24,bool)[])": FunctionFragment;
|
|
175
181
|
"targetContract()": FunctionFragment;
|
|
176
182
|
};
|
|
177
|
-
getFunction(nameOrSignatureOrTopic: "_gearboxAdapterType" | "_gearboxAdapterVersion" | "addressProvider" | "creditManager" | "
|
|
183
|
+
getFunction(nameOrSignatureOrTopic: "_gearboxAdapterType" | "_gearboxAdapterVersion" | "addressProvider" | "creditManager" | "exactDiffInput" | "exactDiffInputSingle" | "exactInput" | "exactInputSingle" | "exactOutput" | "exactOutputSingle" | "isPoolAllowed" | "setPoolStatusBatch" | "targetContract"): FunctionFragment;
|
|
178
184
|
encodeFunctionData(functionFragment: "_gearboxAdapterType", values?: undefined): string;
|
|
179
185
|
encodeFunctionData(functionFragment: "_gearboxAdapterVersion", values?: undefined): string;
|
|
180
186
|
encodeFunctionData(functionFragment: "addressProvider", values?: undefined): string;
|
|
181
187
|
encodeFunctionData(functionFragment: "creditManager", values?: undefined): string;
|
|
182
|
-
encodeFunctionData(functionFragment: "
|
|
183
|
-
encodeFunctionData(functionFragment: "
|
|
188
|
+
encodeFunctionData(functionFragment: "exactDiffInput", values: [IUniswapV3AdapterTypes.ExactDiffInputParamsStruct]): string;
|
|
189
|
+
encodeFunctionData(functionFragment: "exactDiffInputSingle", values: [IUniswapV3AdapterTypes.ExactDiffInputSingleParamsStruct]): string;
|
|
184
190
|
encodeFunctionData(functionFragment: "exactInput", values: [ISwapRouter.ExactInputParamsStruct]): string;
|
|
185
191
|
encodeFunctionData(functionFragment: "exactInputSingle", values: [ISwapRouter.ExactInputSingleParamsStruct]): string;
|
|
186
192
|
encodeFunctionData(functionFragment: "exactOutput", values: [ISwapRouter.ExactOutputParamsStruct]): string;
|
|
@@ -196,8 +202,8 @@ export interface IUniswapV3AdapterInterface extends utils.Interface {
|
|
|
196
202
|
decodeFunctionResult(functionFragment: "_gearboxAdapterVersion", data: BytesLike): Result;
|
|
197
203
|
decodeFunctionResult(functionFragment: "addressProvider", data: BytesLike): Result;
|
|
198
204
|
decodeFunctionResult(functionFragment: "creditManager", data: BytesLike): Result;
|
|
199
|
-
decodeFunctionResult(functionFragment: "
|
|
200
|
-
decodeFunctionResult(functionFragment: "
|
|
205
|
+
decodeFunctionResult(functionFragment: "exactDiffInput", data: BytesLike): Result;
|
|
206
|
+
decodeFunctionResult(functionFragment: "exactDiffInputSingle", data: BytesLike): Result;
|
|
201
207
|
decodeFunctionResult(functionFragment: "exactInput", data: BytesLike): Result;
|
|
202
208
|
decodeFunctionResult(functionFragment: "exactInputSingle", data: BytesLike): Result;
|
|
203
209
|
decodeFunctionResult(functionFragment: "exactOutput", data: BytesLike): Result;
|
|
@@ -242,10 +248,10 @@ export interface IUniswapV3Adapter extends BaseContract {
|
|
|
242
248
|
_gearboxAdapterVersion(overrides?: CallOverrides): Promise<[number]>;
|
|
243
249
|
addressProvider(overrides?: CallOverrides): Promise<[string]>;
|
|
244
250
|
creditManager(overrides?: CallOverrides): Promise<[string]>;
|
|
245
|
-
|
|
251
|
+
exactDiffInput(params: IUniswapV3AdapterTypes.ExactDiffInputParamsStruct, overrides?: Overrides & {
|
|
246
252
|
from?: PromiseOrValue<string>;
|
|
247
253
|
}): Promise<ContractTransaction>;
|
|
248
|
-
|
|
254
|
+
exactDiffInputSingle(params: IUniswapV3AdapterTypes.ExactDiffInputSingleParamsStruct, overrides?: Overrides & {
|
|
249
255
|
from?: PromiseOrValue<string>;
|
|
250
256
|
}): Promise<ContractTransaction>;
|
|
251
257
|
exactInput(params: ISwapRouter.ExactInputParamsStruct, overrides?: Overrides & {
|
|
@@ -270,10 +276,10 @@ export interface IUniswapV3Adapter extends BaseContract {
|
|
|
270
276
|
_gearboxAdapterVersion(overrides?: CallOverrides): Promise<number>;
|
|
271
277
|
addressProvider(overrides?: CallOverrides): Promise<string>;
|
|
272
278
|
creditManager(overrides?: CallOverrides): Promise<string>;
|
|
273
|
-
|
|
279
|
+
exactDiffInput(params: IUniswapV3AdapterTypes.ExactDiffInputParamsStruct, overrides?: Overrides & {
|
|
274
280
|
from?: PromiseOrValue<string>;
|
|
275
281
|
}): Promise<ContractTransaction>;
|
|
276
|
-
|
|
282
|
+
exactDiffInputSingle(params: IUniswapV3AdapterTypes.ExactDiffInputSingleParamsStruct, overrides?: Overrides & {
|
|
277
283
|
from?: PromiseOrValue<string>;
|
|
278
284
|
}): Promise<ContractTransaction>;
|
|
279
285
|
exactInput(params: ISwapRouter.ExactInputParamsStruct, overrides?: Overrides & {
|
|
@@ -298,14 +304,14 @@ export interface IUniswapV3Adapter extends BaseContract {
|
|
|
298
304
|
_gearboxAdapterVersion(overrides?: CallOverrides): Promise<number>;
|
|
299
305
|
addressProvider(overrides?: CallOverrides): Promise<string>;
|
|
300
306
|
creditManager(overrides?: CallOverrides): Promise<string>;
|
|
301
|
-
|
|
307
|
+
exactDiffInput(params: IUniswapV3AdapterTypes.ExactDiffInputParamsStruct, overrides?: CallOverrides): Promise<[
|
|
302
308
|
BigNumber,
|
|
303
309
|
BigNumber
|
|
304
310
|
] & {
|
|
305
311
|
tokensToEnable: BigNumber;
|
|
306
312
|
tokensToDisable: BigNumber;
|
|
307
313
|
}>;
|
|
308
|
-
|
|
314
|
+
exactDiffInputSingle(params: IUniswapV3AdapterTypes.ExactDiffInputSingleParamsStruct, overrides?: CallOverrides): Promise<[
|
|
309
315
|
BigNumber,
|
|
310
316
|
BigNumber
|
|
311
317
|
] & {
|
|
@@ -353,10 +359,10 @@ export interface IUniswapV3Adapter extends BaseContract {
|
|
|
353
359
|
_gearboxAdapterVersion(overrides?: CallOverrides): Promise<BigNumber>;
|
|
354
360
|
addressProvider(overrides?: CallOverrides): Promise<BigNumber>;
|
|
355
361
|
creditManager(overrides?: CallOverrides): Promise<BigNumber>;
|
|
356
|
-
|
|
362
|
+
exactDiffInput(params: IUniswapV3AdapterTypes.ExactDiffInputParamsStruct, overrides?: Overrides & {
|
|
357
363
|
from?: PromiseOrValue<string>;
|
|
358
364
|
}): Promise<BigNumber>;
|
|
359
|
-
|
|
365
|
+
exactDiffInputSingle(params: IUniswapV3AdapterTypes.ExactDiffInputSingleParamsStruct, overrides?: Overrides & {
|
|
360
366
|
from?: PromiseOrValue<string>;
|
|
361
367
|
}): Promise<BigNumber>;
|
|
362
368
|
exactInput(params: ISwapRouter.ExactInputParamsStruct, overrides?: Overrides & {
|
|
@@ -382,10 +388,10 @@ export interface IUniswapV3Adapter extends BaseContract {
|
|
|
382
388
|
_gearboxAdapterVersion(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
383
389
|
addressProvider(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
384
390
|
creditManager(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
385
|
-
|
|
391
|
+
exactDiffInput(params: IUniswapV3AdapterTypes.ExactDiffInputParamsStruct, overrides?: Overrides & {
|
|
386
392
|
from?: PromiseOrValue<string>;
|
|
387
393
|
}): Promise<PopulatedTransaction>;
|
|
388
|
-
|
|
394
|
+
exactDiffInputSingle(params: IUniswapV3AdapterTypes.ExactDiffInputSingleParamsStruct, overrides?: Overrides & {
|
|
389
395
|
from?: PromiseOrValue<string>;
|
|
390
396
|
}): Promise<PopulatedTransaction>;
|
|
391
397
|
exactInput(params: ISwapRouter.ExactInputParamsStruct, overrides?: Overrides & {
|
|
@@ -10,35 +10,35 @@ export interface IYearnV2AdapterInterface extends utils.Interface {
|
|
|
10
10
|
"creditManager()": FunctionFragment;
|
|
11
11
|
"deposit(uint256,address)": FunctionFragment;
|
|
12
12
|
"deposit(uint256)": FunctionFragment;
|
|
13
|
-
"
|
|
13
|
+
"depositDiff(uint256)": FunctionFragment;
|
|
14
14
|
"targetContract()": FunctionFragment;
|
|
15
15
|
"token()": FunctionFragment;
|
|
16
16
|
"tokenMask()": FunctionFragment;
|
|
17
17
|
"withdraw(uint256,address)": FunctionFragment;
|
|
18
18
|
"withdraw(uint256)": FunctionFragment;
|
|
19
|
-
"withdraw()": FunctionFragment;
|
|
20
19
|
"withdraw(uint256,address,uint256)": FunctionFragment;
|
|
20
|
+
"withdrawDiff(uint256)": FunctionFragment;
|
|
21
21
|
"yTokenMask()": FunctionFragment;
|
|
22
22
|
};
|
|
23
|
-
getFunction(nameOrSignatureOrTopic: "_gearboxAdapterType" | "_gearboxAdapterVersion" | "addressProvider" | "creditManager" | "deposit(uint256,address)" | "deposit(uint256)" | "
|
|
23
|
+
getFunction(nameOrSignatureOrTopic: "_gearboxAdapterType" | "_gearboxAdapterVersion" | "addressProvider" | "creditManager" | "deposit(uint256,address)" | "deposit(uint256)" | "depositDiff" | "targetContract" | "token" | "tokenMask" | "withdraw(uint256,address)" | "withdraw(uint256)" | "withdraw(uint256,address,uint256)" | "withdrawDiff" | "yTokenMask"): FunctionFragment;
|
|
24
24
|
encodeFunctionData(functionFragment: "_gearboxAdapterType", values?: undefined): string;
|
|
25
25
|
encodeFunctionData(functionFragment: "_gearboxAdapterVersion", values?: undefined): string;
|
|
26
26
|
encodeFunctionData(functionFragment: "addressProvider", values?: undefined): string;
|
|
27
27
|
encodeFunctionData(functionFragment: "creditManager", values?: undefined): string;
|
|
28
28
|
encodeFunctionData(functionFragment: "deposit(uint256,address)", values: [PromiseOrValue<BigNumberish>, PromiseOrValue<string>]): string;
|
|
29
29
|
encodeFunctionData(functionFragment: "deposit(uint256)", values: [PromiseOrValue<BigNumberish>]): string;
|
|
30
|
-
encodeFunctionData(functionFragment: "
|
|
30
|
+
encodeFunctionData(functionFragment: "depositDiff", values: [PromiseOrValue<BigNumberish>]): string;
|
|
31
31
|
encodeFunctionData(functionFragment: "targetContract", values?: undefined): string;
|
|
32
32
|
encodeFunctionData(functionFragment: "token", values?: undefined): string;
|
|
33
33
|
encodeFunctionData(functionFragment: "tokenMask", values?: undefined): string;
|
|
34
34
|
encodeFunctionData(functionFragment: "withdraw(uint256,address)", values: [PromiseOrValue<BigNumberish>, PromiseOrValue<string>]): string;
|
|
35
35
|
encodeFunctionData(functionFragment: "withdraw(uint256)", values: [PromiseOrValue<BigNumberish>]): string;
|
|
36
|
-
encodeFunctionData(functionFragment: "withdraw()", values?: undefined): string;
|
|
37
36
|
encodeFunctionData(functionFragment: "withdraw(uint256,address,uint256)", values: [
|
|
38
37
|
PromiseOrValue<BigNumberish>,
|
|
39
38
|
PromiseOrValue<string>,
|
|
40
39
|
PromiseOrValue<BigNumberish>
|
|
41
40
|
]): string;
|
|
41
|
+
encodeFunctionData(functionFragment: "withdrawDiff", values: [PromiseOrValue<BigNumberish>]): string;
|
|
42
42
|
encodeFunctionData(functionFragment: "yTokenMask", values?: undefined): string;
|
|
43
43
|
decodeFunctionResult(functionFragment: "_gearboxAdapterType", data: BytesLike): Result;
|
|
44
44
|
decodeFunctionResult(functionFragment: "_gearboxAdapterVersion", data: BytesLike): Result;
|
|
@@ -46,14 +46,14 @@ export interface IYearnV2AdapterInterface extends utils.Interface {
|
|
|
46
46
|
decodeFunctionResult(functionFragment: "creditManager", data: BytesLike): Result;
|
|
47
47
|
decodeFunctionResult(functionFragment: "deposit(uint256,address)", data: BytesLike): Result;
|
|
48
48
|
decodeFunctionResult(functionFragment: "deposit(uint256)", data: BytesLike): Result;
|
|
49
|
-
decodeFunctionResult(functionFragment: "
|
|
49
|
+
decodeFunctionResult(functionFragment: "depositDiff", data: BytesLike): Result;
|
|
50
50
|
decodeFunctionResult(functionFragment: "targetContract", data: BytesLike): Result;
|
|
51
51
|
decodeFunctionResult(functionFragment: "token", data: BytesLike): Result;
|
|
52
52
|
decodeFunctionResult(functionFragment: "tokenMask", data: BytesLike): Result;
|
|
53
53
|
decodeFunctionResult(functionFragment: "withdraw(uint256,address)", data: BytesLike): Result;
|
|
54
54
|
decodeFunctionResult(functionFragment: "withdraw(uint256)", data: BytesLike): Result;
|
|
55
|
-
decodeFunctionResult(functionFragment: "withdraw()", data: BytesLike): Result;
|
|
56
55
|
decodeFunctionResult(functionFragment: "withdraw(uint256,address,uint256)", data: BytesLike): Result;
|
|
56
|
+
decodeFunctionResult(functionFragment: "withdrawDiff", data: BytesLike): Result;
|
|
57
57
|
decodeFunctionResult(functionFragment: "yTokenMask", data: BytesLike): Result;
|
|
58
58
|
events: {};
|
|
59
59
|
}
|
|
@@ -82,7 +82,7 @@ export interface IYearnV2Adapter extends BaseContract {
|
|
|
82
82
|
"deposit(uint256)"(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
83
83
|
from?: PromiseOrValue<string>;
|
|
84
84
|
}): Promise<ContractTransaction>;
|
|
85
|
-
|
|
85
|
+
depositDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
86
86
|
from?: PromiseOrValue<string>;
|
|
87
87
|
}): Promise<ContractTransaction>;
|
|
88
88
|
targetContract(overrides?: CallOverrides): Promise<[string]>;
|
|
@@ -94,10 +94,10 @@ export interface IYearnV2Adapter extends BaseContract {
|
|
|
94
94
|
"withdraw(uint256)"(maxShares: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
95
95
|
from?: PromiseOrValue<string>;
|
|
96
96
|
}): Promise<ContractTransaction>;
|
|
97
|
-
"withdraw()"(overrides?: Overrides & {
|
|
97
|
+
"withdraw(uint256,address,uint256)"(maxShares: PromiseOrValue<BigNumberish>, arg1: PromiseOrValue<string>, maxLoss: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
98
98
|
from?: PromiseOrValue<string>;
|
|
99
99
|
}): Promise<ContractTransaction>;
|
|
100
|
-
|
|
100
|
+
withdrawDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
101
101
|
from?: PromiseOrValue<string>;
|
|
102
102
|
}): Promise<ContractTransaction>;
|
|
103
103
|
yTokenMask(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
@@ -112,7 +112,7 @@ export interface IYearnV2Adapter extends BaseContract {
|
|
|
112
112
|
"deposit(uint256)"(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
113
113
|
from?: PromiseOrValue<string>;
|
|
114
114
|
}): Promise<ContractTransaction>;
|
|
115
|
-
|
|
115
|
+
depositDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
116
116
|
from?: PromiseOrValue<string>;
|
|
117
117
|
}): Promise<ContractTransaction>;
|
|
118
118
|
targetContract(overrides?: CallOverrides): Promise<string>;
|
|
@@ -124,10 +124,10 @@ export interface IYearnV2Adapter extends BaseContract {
|
|
|
124
124
|
"withdraw(uint256)"(maxShares: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
125
125
|
from?: PromiseOrValue<string>;
|
|
126
126
|
}): Promise<ContractTransaction>;
|
|
127
|
-
"withdraw()"(overrides?: Overrides & {
|
|
127
|
+
"withdraw(uint256,address,uint256)"(maxShares: PromiseOrValue<BigNumberish>, arg1: PromiseOrValue<string>, maxLoss: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
128
128
|
from?: PromiseOrValue<string>;
|
|
129
129
|
}): Promise<ContractTransaction>;
|
|
130
|
-
|
|
130
|
+
withdrawDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
131
131
|
from?: PromiseOrValue<string>;
|
|
132
132
|
}): Promise<ContractTransaction>;
|
|
133
133
|
yTokenMask(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -150,7 +150,7 @@ export interface IYearnV2Adapter extends BaseContract {
|
|
|
150
150
|
tokensToEnable: BigNumber;
|
|
151
151
|
tokensToDisable: BigNumber;
|
|
152
152
|
}>;
|
|
153
|
-
|
|
153
|
+
depositDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
|
|
154
154
|
BigNumber,
|
|
155
155
|
BigNumber
|
|
156
156
|
] & {
|
|
@@ -174,14 +174,14 @@ export interface IYearnV2Adapter extends BaseContract {
|
|
|
174
174
|
tokensToEnable: BigNumber;
|
|
175
175
|
tokensToDisable: BigNumber;
|
|
176
176
|
}>;
|
|
177
|
-
"withdraw()"(overrides?: CallOverrides): Promise<[
|
|
177
|
+
"withdraw(uint256,address,uint256)"(maxShares: PromiseOrValue<BigNumberish>, arg1: PromiseOrValue<string>, maxLoss: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
|
|
178
178
|
BigNumber,
|
|
179
179
|
BigNumber
|
|
180
180
|
] & {
|
|
181
181
|
tokensToEnable: BigNumber;
|
|
182
182
|
tokensToDisable: BigNumber;
|
|
183
183
|
}>;
|
|
184
|
-
|
|
184
|
+
withdrawDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
|
|
185
185
|
BigNumber,
|
|
186
186
|
BigNumber
|
|
187
187
|
] & {
|
|
@@ -202,7 +202,7 @@ export interface IYearnV2Adapter extends BaseContract {
|
|
|
202
202
|
"deposit(uint256)"(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
203
203
|
from?: PromiseOrValue<string>;
|
|
204
204
|
}): Promise<BigNumber>;
|
|
205
|
-
|
|
205
|
+
depositDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
206
206
|
from?: PromiseOrValue<string>;
|
|
207
207
|
}): Promise<BigNumber>;
|
|
208
208
|
targetContract(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -214,10 +214,10 @@ export interface IYearnV2Adapter extends BaseContract {
|
|
|
214
214
|
"withdraw(uint256)"(maxShares: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
215
215
|
from?: PromiseOrValue<string>;
|
|
216
216
|
}): Promise<BigNumber>;
|
|
217
|
-
"withdraw()"(overrides?: Overrides & {
|
|
217
|
+
"withdraw(uint256,address,uint256)"(maxShares: PromiseOrValue<BigNumberish>, arg1: PromiseOrValue<string>, maxLoss: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
218
218
|
from?: PromiseOrValue<string>;
|
|
219
219
|
}): Promise<BigNumber>;
|
|
220
|
-
|
|
220
|
+
withdrawDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
221
221
|
from?: PromiseOrValue<string>;
|
|
222
222
|
}): Promise<BigNumber>;
|
|
223
223
|
yTokenMask(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -233,7 +233,7 @@ export interface IYearnV2Adapter extends BaseContract {
|
|
|
233
233
|
"deposit(uint256)"(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
234
234
|
from?: PromiseOrValue<string>;
|
|
235
235
|
}): Promise<PopulatedTransaction>;
|
|
236
|
-
|
|
236
|
+
depositDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
237
237
|
from?: PromiseOrValue<string>;
|
|
238
238
|
}): Promise<PopulatedTransaction>;
|
|
239
239
|
targetContract(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
@@ -245,10 +245,10 @@ export interface IYearnV2Adapter extends BaseContract {
|
|
|
245
245
|
"withdraw(uint256)"(maxShares: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
246
246
|
from?: PromiseOrValue<string>;
|
|
247
247
|
}): Promise<PopulatedTransaction>;
|
|
248
|
-
"withdraw()"(overrides?: Overrides & {
|
|
248
|
+
"withdraw(uint256,address,uint256)"(maxShares: PromiseOrValue<BigNumberish>, arg1: PromiseOrValue<string>, maxLoss: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
249
249
|
from?: PromiseOrValue<string>;
|
|
250
250
|
}): Promise<PopulatedTransaction>;
|
|
251
|
-
|
|
251
|
+
withdrawDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
252
252
|
from?: PromiseOrValue<string>;
|
|
253
253
|
}): Promise<PopulatedTransaction>;
|
|
254
254
|
yTokenMask(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
@@ -12,12 +12,12 @@ export interface IwstETHV1AdapterInterface extends utils.Interface {
|
|
|
12
12
|
"stETHTokenMask()": FunctionFragment;
|
|
13
13
|
"targetContract()": FunctionFragment;
|
|
14
14
|
"unwrap(uint256)": FunctionFragment;
|
|
15
|
-
"
|
|
15
|
+
"unwrapDiff(uint256)": FunctionFragment;
|
|
16
16
|
"wrap(uint256)": FunctionFragment;
|
|
17
|
-
"
|
|
17
|
+
"wrapDiff(uint256)": FunctionFragment;
|
|
18
18
|
"wstETHTokenMask()": FunctionFragment;
|
|
19
19
|
};
|
|
20
|
-
getFunction(nameOrSignatureOrTopic: "_gearboxAdapterType" | "_gearboxAdapterVersion" | "addressProvider" | "creditManager" | "stETH" | "stETHTokenMask" | "targetContract" | "unwrap" | "
|
|
20
|
+
getFunction(nameOrSignatureOrTopic: "_gearboxAdapterType" | "_gearboxAdapterVersion" | "addressProvider" | "creditManager" | "stETH" | "stETHTokenMask" | "targetContract" | "unwrap" | "unwrapDiff" | "wrap" | "wrapDiff" | "wstETHTokenMask"): FunctionFragment;
|
|
21
21
|
encodeFunctionData(functionFragment: "_gearboxAdapterType", values?: undefined): string;
|
|
22
22
|
encodeFunctionData(functionFragment: "_gearboxAdapterVersion", values?: undefined): string;
|
|
23
23
|
encodeFunctionData(functionFragment: "addressProvider", values?: undefined): string;
|
|
@@ -26,9 +26,9 @@ export interface IwstETHV1AdapterInterface extends utils.Interface {
|
|
|
26
26
|
encodeFunctionData(functionFragment: "stETHTokenMask", values?: undefined): string;
|
|
27
27
|
encodeFunctionData(functionFragment: "targetContract", values?: undefined): string;
|
|
28
28
|
encodeFunctionData(functionFragment: "unwrap", values: [PromiseOrValue<BigNumberish>]): string;
|
|
29
|
-
encodeFunctionData(functionFragment: "
|
|
29
|
+
encodeFunctionData(functionFragment: "unwrapDiff", values: [PromiseOrValue<BigNumberish>]): string;
|
|
30
30
|
encodeFunctionData(functionFragment: "wrap", values: [PromiseOrValue<BigNumberish>]): string;
|
|
31
|
-
encodeFunctionData(functionFragment: "
|
|
31
|
+
encodeFunctionData(functionFragment: "wrapDiff", values: [PromiseOrValue<BigNumberish>]): string;
|
|
32
32
|
encodeFunctionData(functionFragment: "wstETHTokenMask", values?: undefined): string;
|
|
33
33
|
decodeFunctionResult(functionFragment: "_gearboxAdapterType", data: BytesLike): Result;
|
|
34
34
|
decodeFunctionResult(functionFragment: "_gearboxAdapterVersion", data: BytesLike): Result;
|
|
@@ -38,9 +38,9 @@ export interface IwstETHV1AdapterInterface extends utils.Interface {
|
|
|
38
38
|
decodeFunctionResult(functionFragment: "stETHTokenMask", data: BytesLike): Result;
|
|
39
39
|
decodeFunctionResult(functionFragment: "targetContract", data: BytesLike): Result;
|
|
40
40
|
decodeFunctionResult(functionFragment: "unwrap", data: BytesLike): Result;
|
|
41
|
-
decodeFunctionResult(functionFragment: "
|
|
41
|
+
decodeFunctionResult(functionFragment: "unwrapDiff", data: BytesLike): Result;
|
|
42
42
|
decodeFunctionResult(functionFragment: "wrap", data: BytesLike): Result;
|
|
43
|
-
decodeFunctionResult(functionFragment: "
|
|
43
|
+
decodeFunctionResult(functionFragment: "wrapDiff", data: BytesLike): Result;
|
|
44
44
|
decodeFunctionResult(functionFragment: "wstETHTokenMask", data: BytesLike): Result;
|
|
45
45
|
events: {};
|
|
46
46
|
}
|
|
@@ -69,13 +69,13 @@ export interface IwstETHV1Adapter extends BaseContract {
|
|
|
69
69
|
unwrap(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
70
70
|
from?: PromiseOrValue<string>;
|
|
71
71
|
}): Promise<ContractTransaction>;
|
|
72
|
-
|
|
72
|
+
unwrapDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
73
73
|
from?: PromiseOrValue<string>;
|
|
74
74
|
}): Promise<ContractTransaction>;
|
|
75
75
|
wrap(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
76
76
|
from?: PromiseOrValue<string>;
|
|
77
77
|
}): Promise<ContractTransaction>;
|
|
78
|
-
|
|
78
|
+
wrapDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
79
79
|
from?: PromiseOrValue<string>;
|
|
80
80
|
}): Promise<ContractTransaction>;
|
|
81
81
|
wstETHTokenMask(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
@@ -90,13 +90,13 @@ export interface IwstETHV1Adapter extends BaseContract {
|
|
|
90
90
|
unwrap(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
91
91
|
from?: PromiseOrValue<string>;
|
|
92
92
|
}): Promise<ContractTransaction>;
|
|
93
|
-
|
|
93
|
+
unwrapDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
94
94
|
from?: PromiseOrValue<string>;
|
|
95
95
|
}): Promise<ContractTransaction>;
|
|
96
96
|
wrap(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
97
97
|
from?: PromiseOrValue<string>;
|
|
98
98
|
}): Promise<ContractTransaction>;
|
|
99
|
-
|
|
99
|
+
wrapDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
100
100
|
from?: PromiseOrValue<string>;
|
|
101
101
|
}): Promise<ContractTransaction>;
|
|
102
102
|
wstETHTokenMask(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -115,7 +115,7 @@ export interface IwstETHV1Adapter extends BaseContract {
|
|
|
115
115
|
tokensToEnable: BigNumber;
|
|
116
116
|
tokensToDisable: BigNumber;
|
|
117
117
|
}>;
|
|
118
|
-
|
|
118
|
+
unwrapDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
|
|
119
119
|
BigNumber,
|
|
120
120
|
BigNumber
|
|
121
121
|
] & {
|
|
@@ -129,7 +129,7 @@ export interface IwstETHV1Adapter extends BaseContract {
|
|
|
129
129
|
tokensToEnable: BigNumber;
|
|
130
130
|
tokensToDisable: BigNumber;
|
|
131
131
|
}>;
|
|
132
|
-
|
|
132
|
+
wrapDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
|
|
133
133
|
BigNumber,
|
|
134
134
|
BigNumber
|
|
135
135
|
] & {
|
|
@@ -150,13 +150,13 @@ export interface IwstETHV1Adapter extends BaseContract {
|
|
|
150
150
|
unwrap(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
151
151
|
from?: PromiseOrValue<string>;
|
|
152
152
|
}): Promise<BigNumber>;
|
|
153
|
-
|
|
153
|
+
unwrapDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
154
154
|
from?: PromiseOrValue<string>;
|
|
155
155
|
}): Promise<BigNumber>;
|
|
156
156
|
wrap(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
157
157
|
from?: PromiseOrValue<string>;
|
|
158
158
|
}): Promise<BigNumber>;
|
|
159
|
-
|
|
159
|
+
wrapDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
160
160
|
from?: PromiseOrValue<string>;
|
|
161
161
|
}): Promise<BigNumber>;
|
|
162
162
|
wstETHTokenMask(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -172,13 +172,13 @@ export interface IwstETHV1Adapter extends BaseContract {
|
|
|
172
172
|
unwrap(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
173
173
|
from?: PromiseOrValue<string>;
|
|
174
174
|
}): Promise<PopulatedTransaction>;
|
|
175
|
-
|
|
175
|
+
unwrapDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
176
176
|
from?: PromiseOrValue<string>;
|
|
177
177
|
}): Promise<PopulatedTransaction>;
|
|
178
178
|
wrap(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
179
179
|
from?: PromiseOrValue<string>;
|
|
180
180
|
}): Promise<PopulatedTransaction>;
|
|
181
|
-
|
|
181
|
+
wrapDiff(leftoverAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
182
182
|
from?: PromiseOrValue<string>;
|
|
183
183
|
}): Promise<PopulatedTransaction>;
|
|
184
184
|
wstETHTokenMask(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { IAaveV2_LendingPoolAdapter, IAaveV2_LendingPoolAdapterInterface } from "../IAaveV2_LendingPoolAdapter";
|
|
4
|
+
export declare class IAaveV2_LendingPoolAdapter__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly inputs: readonly [];
|
|
7
|
+
readonly name: "_gearboxAdapterType";
|
|
8
|
+
readonly outputs: readonly [{
|
|
9
|
+
readonly internalType: "enum AdapterType";
|
|
10
|
+
readonly name: "";
|
|
11
|
+
readonly type: "uint8";
|
|
12
|
+
}];
|
|
13
|
+
readonly stateMutability: "view";
|
|
14
|
+
readonly type: "function";
|
|
15
|
+
}, {
|
|
16
|
+
readonly inputs: readonly [];
|
|
17
|
+
readonly name: "_gearboxAdapterVersion";
|
|
18
|
+
readonly outputs: readonly [{
|
|
19
|
+
readonly internalType: "uint16";
|
|
20
|
+
readonly name: "";
|
|
21
|
+
readonly type: "uint16";
|
|
22
|
+
}];
|
|
23
|
+
readonly stateMutability: "view";
|
|
24
|
+
readonly type: "function";
|
|
25
|
+
}, {
|
|
26
|
+
readonly inputs: readonly [];
|
|
27
|
+
readonly name: "addressProvider";
|
|
28
|
+
readonly outputs: readonly [{
|
|
29
|
+
readonly internalType: "address";
|
|
30
|
+
readonly name: "";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}];
|
|
33
|
+
readonly stateMutability: "view";
|
|
34
|
+
readonly type: "function";
|
|
35
|
+
}, {
|
|
36
|
+
readonly inputs: readonly [];
|
|
37
|
+
readonly name: "creditManager";
|
|
38
|
+
readonly outputs: readonly [{
|
|
39
|
+
readonly internalType: "address";
|
|
40
|
+
readonly name: "";
|
|
41
|
+
readonly type: "address";
|
|
42
|
+
}];
|
|
43
|
+
readonly stateMutability: "view";
|
|
44
|
+
readonly type: "function";
|
|
45
|
+
}, {
|
|
46
|
+
readonly inputs: readonly [{
|
|
47
|
+
readonly internalType: "address";
|
|
48
|
+
readonly name: "asset";
|
|
49
|
+
readonly type: "address";
|
|
50
|
+
}, {
|
|
51
|
+
readonly internalType: "uint256";
|
|
52
|
+
readonly name: "amount";
|
|
53
|
+
readonly type: "uint256";
|
|
54
|
+
}, {
|
|
55
|
+
readonly internalType: "address";
|
|
56
|
+
readonly name: "";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
}, {
|
|
59
|
+
readonly internalType: "uint16";
|
|
60
|
+
readonly name: "";
|
|
61
|
+
readonly type: "uint16";
|
|
62
|
+
}];
|
|
63
|
+
readonly name: "deposit";
|
|
64
|
+
readonly outputs: readonly [{
|
|
65
|
+
readonly internalType: "uint256";
|
|
66
|
+
readonly name: "tokensToEnable";
|
|
67
|
+
readonly type: "uint256";
|
|
68
|
+
}, {
|
|
69
|
+
readonly internalType: "uint256";
|
|
70
|
+
readonly name: "tokensToDisable";
|
|
71
|
+
readonly type: "uint256";
|
|
72
|
+
}];
|
|
73
|
+
readonly stateMutability: "nonpayable";
|
|
74
|
+
readonly type: "function";
|
|
75
|
+
}, {
|
|
76
|
+
readonly inputs: readonly [{
|
|
77
|
+
readonly internalType: "address";
|
|
78
|
+
readonly name: "asset";
|
|
79
|
+
readonly type: "address";
|
|
80
|
+
}, {
|
|
81
|
+
readonly internalType: "uint256";
|
|
82
|
+
readonly name: "leftoverAmount";
|
|
83
|
+
readonly type: "uint256";
|
|
84
|
+
}];
|
|
85
|
+
readonly name: "depositDiff";
|
|
86
|
+
readonly outputs: readonly [{
|
|
87
|
+
readonly internalType: "uint256";
|
|
88
|
+
readonly name: "tokensToEnable";
|
|
89
|
+
readonly type: "uint256";
|
|
90
|
+
}, {
|
|
91
|
+
readonly internalType: "uint256";
|
|
92
|
+
readonly name: "tokensToDisable";
|
|
93
|
+
readonly type: "uint256";
|
|
94
|
+
}];
|
|
95
|
+
readonly stateMutability: "nonpayable";
|
|
96
|
+
readonly type: "function";
|
|
97
|
+
}, {
|
|
98
|
+
readonly inputs: readonly [];
|
|
99
|
+
readonly name: "targetContract";
|
|
100
|
+
readonly outputs: readonly [{
|
|
101
|
+
readonly internalType: "address";
|
|
102
|
+
readonly name: "";
|
|
103
|
+
readonly type: "address";
|
|
104
|
+
}];
|
|
105
|
+
readonly stateMutability: "view";
|
|
106
|
+
readonly type: "function";
|
|
107
|
+
}, {
|
|
108
|
+
readonly inputs: readonly [{
|
|
109
|
+
readonly internalType: "address";
|
|
110
|
+
readonly name: "asset";
|
|
111
|
+
readonly type: "address";
|
|
112
|
+
}, {
|
|
113
|
+
readonly internalType: "uint256";
|
|
114
|
+
readonly name: "amount";
|
|
115
|
+
readonly type: "uint256";
|
|
116
|
+
}, {
|
|
117
|
+
readonly internalType: "address";
|
|
118
|
+
readonly name: "";
|
|
119
|
+
readonly type: "address";
|
|
120
|
+
}];
|
|
121
|
+
readonly name: "withdraw";
|
|
122
|
+
readonly outputs: readonly [{
|
|
123
|
+
readonly internalType: "uint256";
|
|
124
|
+
readonly name: "tokensToEnable";
|
|
125
|
+
readonly type: "uint256";
|
|
126
|
+
}, {
|
|
127
|
+
readonly internalType: "uint256";
|
|
128
|
+
readonly name: "tokensToDisable";
|
|
129
|
+
readonly type: "uint256";
|
|
130
|
+
}];
|
|
131
|
+
readonly stateMutability: "nonpayable";
|
|
132
|
+
readonly type: "function";
|
|
133
|
+
}, {
|
|
134
|
+
readonly inputs: readonly [{
|
|
135
|
+
readonly internalType: "address";
|
|
136
|
+
readonly name: "asset";
|
|
137
|
+
readonly type: "address";
|
|
138
|
+
}, {
|
|
139
|
+
readonly internalType: "uint256";
|
|
140
|
+
readonly name: "leftoverAmount";
|
|
141
|
+
readonly type: "uint256";
|
|
142
|
+
}];
|
|
143
|
+
readonly name: "withdrawDiff";
|
|
144
|
+
readonly outputs: readonly [{
|
|
145
|
+
readonly internalType: "uint256";
|
|
146
|
+
readonly name: "tokensToEnable";
|
|
147
|
+
readonly type: "uint256";
|
|
148
|
+
}, {
|
|
149
|
+
readonly internalType: "uint256";
|
|
150
|
+
readonly name: "tokensToDisable";
|
|
151
|
+
readonly type: "uint256";
|
|
152
|
+
}];
|
|
153
|
+
readonly stateMutability: "nonpayable";
|
|
154
|
+
readonly type: "function";
|
|
155
|
+
}];
|
|
156
|
+
static createInterface(): IAaveV2_LendingPoolAdapterInterface;
|
|
157
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IAaveV2_LendingPoolAdapter;
|
|
158
|
+
}
|