@gearbox-protocol/sdk 1.1.0 → 1.2.0
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/lib/core/creditManager.d.ts +5 -0
- package/lib/core/creditManager.js +5 -0
- package/lib/pathfinder/path.js +5 -5
- package/lib/payload/creditManager.d.ts +5 -0
- package/lib/strategies/creditFacade.js +1 -1
- package/lib/types/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator.d.ts +271 -20
- package/lib/types/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents.d.ts +8 -19
- package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended.d.ts +9 -9
- package/lib/types/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2.d.ts +52 -116
- package/lib/types/contracts/interfaces/IDataCompressor.sol/IDataCompressor.d.ts +26 -1
- package/lib/types/contracts/interfaces/IDegenNFT.sol/IDegenNFT.d.ts +10 -10
- package/lib/types/contracts/interfaces/V1/ICreditFilter.d.ts +3 -3
- package/lib/types/contracts/interfaces/adapters/convex/IConvexV1BoosterAdapter.d.ts +1 -9
- package/lib/types/contracts/pathfinder/index.d.ts +0 -1
- package/lib/types/contracts/pathfinder/interfaces/IClosePathResolver.d.ts +125 -0
- package/lib/types/contracts/pathfinder/{ISwapper.js → interfaces/IClosePathResolver.js} +0 -0
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor.d.ts +159 -0
- package/lib/types/contracts/pathfinder/interfaces/{ISwapPathFinder.js → IDepositor.sol/IDepositor.js} +0 -0
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions.d.ts +165 -0
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/index.d.ts +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/index.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IGasPricer.d.ts +44 -0
- package/lib/types/contracts/pathfinder/interfaces/IGasPricer.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker.d.ts +113 -0
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions.d.ts +119 -0
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/index.d.ts +2 -0
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/index.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IPathFinder.d.ts +210 -0
- package/lib/types/contracts/pathfinder/interfaces/IPathFinder.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IPathResolver.d.ts +131 -0
- package/lib/types/contracts/pathfinder/interfaces/IPathResolver.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/{ISwapPathFinder.d.ts → ISwapAggregator.d.ts} +98 -14
- package/lib/types/contracts/pathfinder/interfaces/ISwapAggregator.js +2 -0
- package/lib/types/contracts/pathfinder/{ISwapper.d.ts → interfaces/ISwapper.d.ts} +1 -1
- package/lib/types/contracts/pathfinder/interfaces/ISwapper.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer.d.ts +144 -0
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions.d.ts +160 -0
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/index.d.ts +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/index.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/index.d.ts +12 -1
- package/lib/types/factories/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents__factory.js +1 -14
- package/lib/types/factories/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorExceptions__factory.js +2 -17
- package/lib/types/factories/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator__factory.js +240 -31
- package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExceptions__factory.js +7 -2
- package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended__factory.js +1 -1
- package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacade__factory.js +7 -2
- package/lib/types/factories/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +2 -2
- package/lib/types/factories/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2__factory.js +41 -84
- package/lib/types/factories/contracts/interfaces/IDataCompressor.sol/IDataCompressor__factory.d.ts +14 -14
- package/lib/types/factories/contracts/interfaces/IDataCompressor.sol/IDataCompressor__factory.js +74 -0
- package/lib/types/factories/contracts/interfaces/IDegenNFT.sol/IDegenNFT__factory.js +4 -4
- package/lib/types/factories/contracts/interfaces/V1/ICreditFilter__factory.js +1 -1
- package/lib/types/factories/contracts/interfaces/adapters/convex/IConvexV1BoosterAdapter__factory.js +0 -13
- package/lib/types/factories/contracts/pathfinder/index.d.ts +0 -1
- package/lib/types/factories/contracts/pathfinder/index.js +1 -3
- package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.d.ts +57 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.js +264 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory.d.ts +62 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory.js +717 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory.d.ts +62 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory.js +702 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/index.d.ts +2 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/index.js +10 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IGasPricer__factory.d.ts +22 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IGasPricer__factory.js +41 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.d.ts +62 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.js +252 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory.d.ts +62 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory.js +247 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/index.d.ts +2 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/index.js +10 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/{ISwapPathFinder__factory.d.ts → IPathFinder__factory.d.ts} +42 -28
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinder__factory.js +483 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.d.ts +57 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.js +467 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ISwapAggregator__factory.d.ts +62 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ISwapAggregator__factory.js +782 -0
- package/lib/types/factories/contracts/pathfinder/{ISwapper__factory.d.ts → interfaces/ISwapper__factory.d.ts} +1 -1
- package/lib/types/factories/contracts/pathfinder/{ISwapper__factory.js → interfaces/ISwapper__factory.js} +0 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.d.ts +62 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.js +729 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory.d.ts +62 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory.js +692 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/index.d.ts +2 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/index.js +10 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/index.d.ts +9 -1
- package/lib/types/factories/contracts/pathfinder/interfaces/index.js +39 -3
- package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.d.ts +1 -1
- package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.js +1 -1
- package/lib/types/index.d.ts +24 -4
- package/lib/types/index.js +24 -4
- package/package.json +2 -2
- package/lib/types/factories/contracts/pathfinder/interfaces/ISwapPathFinder__factory.js +0 -346
|
@@ -104,6 +104,11 @@ export declare type CreditManagerDataStruct = {
|
|
|
104
104
|
isIncreaseDebtForbidden: boolean;
|
|
105
105
|
forbiddenTokenMask: BigNumberish;
|
|
106
106
|
maxEnabledTokensLength: BigNumberish;
|
|
107
|
+
feeInterest: BigNumberish;
|
|
108
|
+
feeLiquidation: BigNumberish;
|
|
109
|
+
liquidationDiscount: BigNumberish;
|
|
110
|
+
feeLiquidationExpired: BigNumberish;
|
|
111
|
+
liquidationDiscountExpired: BigNumberish;
|
|
107
112
|
};
|
|
108
113
|
export declare type CreditManagerDataStructOutput = [
|
|
109
114
|
string,
|
|
@@ -124,6 +129,11 @@ export declare type CreditManagerDataStructOutput = [
|
|
|
124
129
|
string,
|
|
125
130
|
boolean,
|
|
126
131
|
BigNumber,
|
|
132
|
+
number,
|
|
133
|
+
number,
|
|
134
|
+
number,
|
|
135
|
+
number,
|
|
136
|
+
number,
|
|
127
137
|
number
|
|
128
138
|
] & {
|
|
129
139
|
addr: string;
|
|
@@ -145,6 +155,11 @@ export declare type CreditManagerDataStructOutput = [
|
|
|
145
155
|
isIncreaseDebtForbidden: boolean;
|
|
146
156
|
forbiddenTokenMask: BigNumber;
|
|
147
157
|
maxEnabledTokensLength: number;
|
|
158
|
+
feeInterest: number;
|
|
159
|
+
feeLiquidation: number;
|
|
160
|
+
liquidationDiscount: number;
|
|
161
|
+
feeLiquidationExpired: number;
|
|
162
|
+
liquidationDiscountExpired: number;
|
|
148
163
|
};
|
|
149
164
|
export declare type PoolDataStruct = {
|
|
150
165
|
addr: string;
|
|
@@ -201,6 +216,7 @@ export declare type PoolDataStructOutput = [
|
|
|
201
216
|
};
|
|
202
217
|
export interface IDataCompressorInterface extends utils.Interface {
|
|
203
218
|
functions: {
|
|
219
|
+
"getAdapter(address,address)": FunctionFragment;
|
|
204
220
|
"getCreditAccountData(address,address)": FunctionFragment;
|
|
205
221
|
"getCreditAccountList(address)": FunctionFragment;
|
|
206
222
|
"getCreditManagerData(address)": FunctionFragment;
|
|
@@ -210,7 +226,8 @@ export interface IDataCompressorInterface extends utils.Interface {
|
|
|
210
226
|
"hasOpenedCreditAccount(address,address)": FunctionFragment;
|
|
211
227
|
"version()": FunctionFragment;
|
|
212
228
|
};
|
|
213
|
-
getFunction(nameOrSignatureOrTopic: "getCreditAccountData" | "getCreditAccountList" | "getCreditManagerData" | "getCreditManagersList" | "getPoolData" | "getPoolsList" | "hasOpenedCreditAccount" | "version"): FunctionFragment;
|
|
229
|
+
getFunction(nameOrSignatureOrTopic: "getAdapter" | "getCreditAccountData" | "getCreditAccountList" | "getCreditManagerData" | "getCreditManagersList" | "getPoolData" | "getPoolsList" | "hasOpenedCreditAccount" | "version"): FunctionFragment;
|
|
230
|
+
encodeFunctionData(functionFragment: "getAdapter", values: [string, string]): string;
|
|
214
231
|
encodeFunctionData(functionFragment: "getCreditAccountData", values: [string, string]): string;
|
|
215
232
|
encodeFunctionData(functionFragment: "getCreditAccountList", values: [string]): string;
|
|
216
233
|
encodeFunctionData(functionFragment: "getCreditManagerData", values: [string]): string;
|
|
@@ -219,6 +236,7 @@ export interface IDataCompressorInterface extends utils.Interface {
|
|
|
219
236
|
encodeFunctionData(functionFragment: "getPoolsList", values?: undefined): string;
|
|
220
237
|
encodeFunctionData(functionFragment: "hasOpenedCreditAccount", values: [string, string]): string;
|
|
221
238
|
encodeFunctionData(functionFragment: "version", values?: undefined): string;
|
|
239
|
+
decodeFunctionResult(functionFragment: "getAdapter", data: BytesLike): Result;
|
|
222
240
|
decodeFunctionResult(functionFragment: "getCreditAccountData", data: BytesLike): Result;
|
|
223
241
|
decodeFunctionResult(functionFragment: "getCreditAccountList", data: BytesLike): Result;
|
|
224
242
|
decodeFunctionResult(functionFragment: "getCreditManagerData", data: BytesLike): Result;
|
|
@@ -244,6 +262,9 @@ export interface IDataCompressor extends BaseContract {
|
|
|
244
262
|
once: OnEvent<this>;
|
|
245
263
|
removeListener: OnEvent<this>;
|
|
246
264
|
functions: {
|
|
265
|
+
getAdapter(_creditManager: string, _allowedContract: string, overrides?: CallOverrides): Promise<[string] & {
|
|
266
|
+
adapter: string;
|
|
267
|
+
}>;
|
|
247
268
|
getCreditAccountData(_creditManager: string, borrower: string, overrides?: CallOverrides): Promise<[CreditAccountDataStructOutput]>;
|
|
248
269
|
getCreditAccountList(borrower: string, overrides?: CallOverrides): Promise<[CreditAccountDataStructOutput[]]>;
|
|
249
270
|
getCreditManagerData(_creditManager: string, overrides?: CallOverrides): Promise<[CreditManagerDataStructOutput]>;
|
|
@@ -253,6 +274,7 @@ export interface IDataCompressor extends BaseContract {
|
|
|
253
274
|
hasOpenedCreditAccount(creditManager: string, borrower: string, overrides?: CallOverrides): Promise<[boolean]>;
|
|
254
275
|
version(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
255
276
|
};
|
|
277
|
+
getAdapter(_creditManager: string, _allowedContract: string, overrides?: CallOverrides): Promise<string>;
|
|
256
278
|
getCreditAccountData(_creditManager: string, borrower: string, overrides?: CallOverrides): Promise<CreditAccountDataStructOutput>;
|
|
257
279
|
getCreditAccountList(borrower: string, overrides?: CallOverrides): Promise<CreditAccountDataStructOutput[]>;
|
|
258
280
|
getCreditManagerData(_creditManager: string, overrides?: CallOverrides): Promise<CreditManagerDataStructOutput>;
|
|
@@ -262,6 +284,7 @@ export interface IDataCompressor extends BaseContract {
|
|
|
262
284
|
hasOpenedCreditAccount(creditManager: string, borrower: string, overrides?: CallOverrides): Promise<boolean>;
|
|
263
285
|
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
264
286
|
callStatic: {
|
|
287
|
+
getAdapter(_creditManager: string, _allowedContract: string, overrides?: CallOverrides): Promise<string>;
|
|
265
288
|
getCreditAccountData(_creditManager: string, borrower: string, overrides?: CallOverrides): Promise<CreditAccountDataStructOutput>;
|
|
266
289
|
getCreditAccountList(borrower: string, overrides?: CallOverrides): Promise<CreditAccountDataStructOutput[]>;
|
|
267
290
|
getCreditManagerData(_creditManager: string, overrides?: CallOverrides): Promise<CreditManagerDataStructOutput>;
|
|
@@ -273,6 +296,7 @@ export interface IDataCompressor extends BaseContract {
|
|
|
273
296
|
};
|
|
274
297
|
filters: {};
|
|
275
298
|
estimateGas: {
|
|
299
|
+
getAdapter(_creditManager: string, _allowedContract: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
276
300
|
getCreditAccountData(_creditManager: string, borrower: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
277
301
|
getCreditAccountList(borrower: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
278
302
|
getCreditManagerData(_creditManager: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -283,6 +307,7 @@ export interface IDataCompressor extends BaseContract {
|
|
|
283
307
|
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
284
308
|
};
|
|
285
309
|
populateTransaction: {
|
|
310
|
+
getAdapter(_creditManager: string, _allowedContract: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
286
311
|
getCreditAccountData(_creditManager: string, borrower: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
287
312
|
getCreditAccountList(borrower: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
288
313
|
getCreditManagerData(_creditManager: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
@@ -42,10 +42,10 @@ export interface IDegenNFT extends BaseContract {
|
|
|
42
42
|
removeListener: OnEvent<this>;
|
|
43
43
|
functions: {
|
|
44
44
|
baseURI(overrides?: CallOverrides): Promise<[string]>;
|
|
45
|
-
burn(
|
|
45
|
+
burn(from: string, amount: BigNumberish, overrides?: Overrides & {
|
|
46
46
|
from?: string | Promise<string>;
|
|
47
47
|
}): Promise<ContractTransaction>;
|
|
48
|
-
mint(
|
|
48
|
+
mint(to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
49
49
|
from?: string | Promise<string>;
|
|
50
50
|
}): Promise<ContractTransaction>;
|
|
51
51
|
minter(overrides?: CallOverrides): Promise<[string]>;
|
|
@@ -53,10 +53,10 @@ export interface IDegenNFT extends BaseContract {
|
|
|
53
53
|
version(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
54
54
|
};
|
|
55
55
|
baseURI(overrides?: CallOverrides): Promise<string>;
|
|
56
|
-
burn(
|
|
56
|
+
burn(from: string, amount: BigNumberish, overrides?: Overrides & {
|
|
57
57
|
from?: string | Promise<string>;
|
|
58
58
|
}): Promise<ContractTransaction>;
|
|
59
|
-
mint(
|
|
59
|
+
mint(to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
60
60
|
from?: string | Promise<string>;
|
|
61
61
|
}): Promise<ContractTransaction>;
|
|
62
62
|
minter(overrides?: CallOverrides): Promise<string>;
|
|
@@ -64,8 +64,8 @@ export interface IDegenNFT extends BaseContract {
|
|
|
64
64
|
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
65
65
|
callStatic: {
|
|
66
66
|
baseURI(overrides?: CallOverrides): Promise<string>;
|
|
67
|
-
burn(
|
|
68
|
-
mint(
|
|
67
|
+
burn(from: string, amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
68
|
+
mint(to: string, amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
69
69
|
minter(overrides?: CallOverrides): Promise<string>;
|
|
70
70
|
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
|
71
71
|
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -73,10 +73,10 @@ export interface IDegenNFT extends BaseContract {
|
|
|
73
73
|
filters: {};
|
|
74
74
|
estimateGas: {
|
|
75
75
|
baseURI(overrides?: CallOverrides): Promise<BigNumber>;
|
|
76
|
-
burn(
|
|
76
|
+
burn(from: string, amount: BigNumberish, overrides?: Overrides & {
|
|
77
77
|
from?: string | Promise<string>;
|
|
78
78
|
}): Promise<BigNumber>;
|
|
79
|
-
mint(
|
|
79
|
+
mint(to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
80
80
|
from?: string | Promise<string>;
|
|
81
81
|
}): Promise<BigNumber>;
|
|
82
82
|
minter(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -85,10 +85,10 @@ export interface IDegenNFT extends BaseContract {
|
|
|
85
85
|
};
|
|
86
86
|
populateTransaction: {
|
|
87
87
|
baseURI(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
88
|
-
burn(
|
|
88
|
+
burn(from: string, amount: BigNumberish, overrides?: Overrides & {
|
|
89
89
|
from?: string | Promise<string>;
|
|
90
90
|
}): Promise<PopulatedTransaction>;
|
|
91
|
-
mint(
|
|
91
|
+
mint(to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
92
92
|
from?: string | Promise<string>;
|
|
93
93
|
}): Promise<PopulatedTransaction>;
|
|
94
94
|
minter(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
@@ -172,7 +172,7 @@ export declare type TransferAccountAllowedEvent = TypedEvent<[
|
|
|
172
172
|
], TransferAccountAllowedEventObject>;
|
|
173
173
|
export declare type TransferAccountAllowedEventFilter = TypedEventFilter<TransferAccountAllowedEvent>;
|
|
174
174
|
export interface TransferPluginAllowedEventObject {
|
|
175
|
-
|
|
175
|
+
plugin: string;
|
|
176
176
|
state: boolean;
|
|
177
177
|
}
|
|
178
178
|
export declare type TransferPluginAllowedEvent = TypedEvent<[
|
|
@@ -374,8 +374,8 @@ export interface ICreditFilter extends BaseContract {
|
|
|
374
374
|
TokenForbidden(token?: string | null): TokenForbiddenEventFilter;
|
|
375
375
|
"TransferAccountAllowed(address,address,bool)"(from?: string | null, to?: string | null, state?: null): TransferAccountAllowedEventFilter;
|
|
376
376
|
TransferAccountAllowed(from?: string | null, to?: string | null, state?: null): TransferAccountAllowedEventFilter;
|
|
377
|
-
"TransferPluginAllowed(address,bool)"(
|
|
378
|
-
TransferPluginAllowed(
|
|
377
|
+
"TransferPluginAllowed(address,bool)"(plugin?: string | null, state?: null): TransferPluginAllowedEventFilter;
|
|
378
|
+
TransferPluginAllowed(plugin?: string | null, state?: null): TransferPluginAllowedEventFilter;
|
|
379
379
|
};
|
|
380
380
|
estimateGas: {
|
|
381
381
|
allowContract(targetContract: string, adapter: string, overrides?: Overrides & {
|
|
@@ -31,7 +31,6 @@ export interface IConvexV1BoosterAdapterInterface extends utils.Interface {
|
|
|
31
31
|
functions: {
|
|
32
32
|
"_gearboxAdapterType()": FunctionFragment;
|
|
33
33
|
"_gearboxAdapterVersion()": FunctionFragment;
|
|
34
|
-
"booster()": FunctionFragment;
|
|
35
34
|
"creditFacade()": FunctionFragment;
|
|
36
35
|
"creditManager()": FunctionFragment;
|
|
37
36
|
"crv()": FunctionFragment;
|
|
@@ -50,10 +49,9 @@ export interface IConvexV1BoosterAdapterInterface extends utils.Interface {
|
|
|
50
49
|
"withdraw(uint256,uint256)": FunctionFragment;
|
|
51
50
|
"withdrawAll(uint256)": FunctionFragment;
|
|
52
51
|
};
|
|
53
|
-
getFunction(nameOrSignatureOrTopic: "_gearboxAdapterType" | "_gearboxAdapterVersion" | "
|
|
52
|
+
getFunction(nameOrSignatureOrTopic: "_gearboxAdapterType" | "_gearboxAdapterVersion" | "creditFacade" | "creditManager" | "crv" | "deposit" | "depositAll" | "lockFees" | "lockRewards" | "minter" | "poolInfo" | "poolLength" | "registry" | "staker" | "stakerRewards" | "targetContract" | "updateStakedPhantomTokensMap" | "withdraw" | "withdrawAll"): FunctionFragment;
|
|
54
53
|
encodeFunctionData(functionFragment: "_gearboxAdapterType", values?: undefined): string;
|
|
55
54
|
encodeFunctionData(functionFragment: "_gearboxAdapterVersion", values?: undefined): string;
|
|
56
|
-
encodeFunctionData(functionFragment: "booster", values?: undefined): string;
|
|
57
55
|
encodeFunctionData(functionFragment: "creditFacade", values?: undefined): string;
|
|
58
56
|
encodeFunctionData(functionFragment: "creditManager", values?: undefined): string;
|
|
59
57
|
encodeFunctionData(functionFragment: "crv", values?: undefined): string;
|
|
@@ -73,7 +71,6 @@ export interface IConvexV1BoosterAdapterInterface extends utils.Interface {
|
|
|
73
71
|
encodeFunctionData(functionFragment: "withdrawAll", values: [BigNumberish]): string;
|
|
74
72
|
decodeFunctionResult(functionFragment: "_gearboxAdapterType", data: BytesLike): Result;
|
|
75
73
|
decodeFunctionResult(functionFragment: "_gearboxAdapterVersion", data: BytesLike): Result;
|
|
76
|
-
decodeFunctionResult(functionFragment: "booster", data: BytesLike): Result;
|
|
77
74
|
decodeFunctionResult(functionFragment: "creditFacade", data: BytesLike): Result;
|
|
78
75
|
decodeFunctionResult(functionFragment: "creditManager", data: BytesLike): Result;
|
|
79
76
|
decodeFunctionResult(functionFragment: "crv", data: BytesLike): Result;
|
|
@@ -110,7 +107,6 @@ export interface IConvexV1BoosterAdapter extends BaseContract {
|
|
|
110
107
|
functions: {
|
|
111
108
|
_gearboxAdapterType(overrides?: CallOverrides): Promise<[number]>;
|
|
112
109
|
_gearboxAdapterVersion(overrides?: CallOverrides): Promise<[number]>;
|
|
113
|
-
booster(overrides?: CallOverrides): Promise<[string]>;
|
|
114
110
|
creditFacade(overrides?: CallOverrides): Promise<[string]>;
|
|
115
111
|
creditManager(overrides?: CallOverrides): Promise<[string]>;
|
|
116
112
|
crv(overrides?: CallOverrides): Promise<[string]>;
|
|
@@ -141,7 +137,6 @@ export interface IConvexV1BoosterAdapter extends BaseContract {
|
|
|
141
137
|
};
|
|
142
138
|
_gearboxAdapterType(overrides?: CallOverrides): Promise<number>;
|
|
143
139
|
_gearboxAdapterVersion(overrides?: CallOverrides): Promise<number>;
|
|
144
|
-
booster(overrides?: CallOverrides): Promise<string>;
|
|
145
140
|
creditFacade(overrides?: CallOverrides): Promise<string>;
|
|
146
141
|
creditManager(overrides?: CallOverrides): Promise<string>;
|
|
147
142
|
crv(overrides?: CallOverrides): Promise<string>;
|
|
@@ -172,7 +167,6 @@ export interface IConvexV1BoosterAdapter extends BaseContract {
|
|
|
172
167
|
callStatic: {
|
|
173
168
|
_gearboxAdapterType(overrides?: CallOverrides): Promise<number>;
|
|
174
169
|
_gearboxAdapterVersion(overrides?: CallOverrides): Promise<number>;
|
|
175
|
-
booster(overrides?: CallOverrides): Promise<string>;
|
|
176
170
|
creditFacade(overrides?: CallOverrides): Promise<string>;
|
|
177
171
|
creditManager(overrides?: CallOverrides): Promise<string>;
|
|
178
172
|
crv(overrides?: CallOverrides): Promise<string>;
|
|
@@ -195,7 +189,6 @@ export interface IConvexV1BoosterAdapter extends BaseContract {
|
|
|
195
189
|
estimateGas: {
|
|
196
190
|
_gearboxAdapterType(overrides?: CallOverrides): Promise<BigNumber>;
|
|
197
191
|
_gearboxAdapterVersion(overrides?: CallOverrides): Promise<BigNumber>;
|
|
198
|
-
booster(overrides?: CallOverrides): Promise<BigNumber>;
|
|
199
192
|
creditFacade(overrides?: CallOverrides): Promise<BigNumber>;
|
|
200
193
|
creditManager(overrides?: CallOverrides): Promise<BigNumber>;
|
|
201
194
|
crv(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -227,7 +220,6 @@ export interface IConvexV1BoosterAdapter extends BaseContract {
|
|
|
227
220
|
populateTransaction: {
|
|
228
221
|
_gearboxAdapterType(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
229
222
|
_gearboxAdapterVersion(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
230
|
-
booster(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
231
223
|
creditFacade(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
232
224
|
creditManager(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
233
225
|
crv(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../../common";
|
|
5
|
+
export declare type BalanceStruct = {
|
|
6
|
+
token: string;
|
|
7
|
+
balance: BigNumberish;
|
|
8
|
+
};
|
|
9
|
+
export declare type BalanceStructOutput = [string, BigNumber] & {
|
|
10
|
+
token: string;
|
|
11
|
+
balance: BigNumber;
|
|
12
|
+
};
|
|
13
|
+
export declare type TokenAdaptersStruct = {
|
|
14
|
+
token: string;
|
|
15
|
+
adapters: string[];
|
|
16
|
+
};
|
|
17
|
+
export declare type TokenAdaptersStructOutput = [string, string[]] & {
|
|
18
|
+
token: string;
|
|
19
|
+
adapters: string[];
|
|
20
|
+
};
|
|
21
|
+
export declare type MultiCallStruct = {
|
|
22
|
+
target: string;
|
|
23
|
+
callData: BytesLike;
|
|
24
|
+
};
|
|
25
|
+
export declare type MultiCallStructOutput = [string, string] & {
|
|
26
|
+
target: string;
|
|
27
|
+
callData: string;
|
|
28
|
+
};
|
|
29
|
+
export declare type StrategyPathTaskStruct = {
|
|
30
|
+
creditAccount: string;
|
|
31
|
+
balances: BalanceStruct[];
|
|
32
|
+
target: string;
|
|
33
|
+
connectors: string[];
|
|
34
|
+
adapters: string[];
|
|
35
|
+
slippage: BigNumberish;
|
|
36
|
+
targetType: BigNumberish;
|
|
37
|
+
foundAdapters: TokenAdaptersStruct[];
|
|
38
|
+
gasPriceTargetRAY: BigNumberish;
|
|
39
|
+
gasUsage: BigNumberish;
|
|
40
|
+
initTargetBalance: BigNumberish;
|
|
41
|
+
calls: MultiCallStruct[];
|
|
42
|
+
};
|
|
43
|
+
export declare type StrategyPathTaskStructOutput = [
|
|
44
|
+
string,
|
|
45
|
+
BalanceStructOutput[],
|
|
46
|
+
string,
|
|
47
|
+
string[],
|
|
48
|
+
string[],
|
|
49
|
+
BigNumber,
|
|
50
|
+
number,
|
|
51
|
+
TokenAdaptersStructOutput[],
|
|
52
|
+
BigNumber,
|
|
53
|
+
BigNumber,
|
|
54
|
+
BigNumber,
|
|
55
|
+
MultiCallStructOutput[]
|
|
56
|
+
] & {
|
|
57
|
+
creditAccount: string;
|
|
58
|
+
balances: BalanceStructOutput[];
|
|
59
|
+
target: string;
|
|
60
|
+
connectors: string[];
|
|
61
|
+
adapters: string[];
|
|
62
|
+
slippage: BigNumber;
|
|
63
|
+
targetType: number;
|
|
64
|
+
foundAdapters: TokenAdaptersStructOutput[];
|
|
65
|
+
gasPriceTargetRAY: BigNumber;
|
|
66
|
+
gasUsage: BigNumber;
|
|
67
|
+
initTargetBalance: BigNumber;
|
|
68
|
+
calls: MultiCallStructOutput[];
|
|
69
|
+
};
|
|
70
|
+
export declare type PathOptionStruct = {
|
|
71
|
+
target: string;
|
|
72
|
+
option: BigNumberish;
|
|
73
|
+
totalOptions: BigNumberish;
|
|
74
|
+
};
|
|
75
|
+
export declare type PathOptionStructOutput = [string, number, number] & {
|
|
76
|
+
target: string;
|
|
77
|
+
option: number;
|
|
78
|
+
totalOptions: number;
|
|
79
|
+
};
|
|
80
|
+
export interface IClosePathResolverInterface extends utils.Interface {
|
|
81
|
+
functions: {
|
|
82
|
+
"findBestClosePath((address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address[])[],uint256,uint256,uint256,(address,bytes)[]),(address,uint8,uint8)[],uint256)": FunctionFragment;
|
|
83
|
+
};
|
|
84
|
+
getFunction(nameOrSignatureOrTopic: "findBestClosePath"): FunctionFragment;
|
|
85
|
+
encodeFunctionData(functionFragment: "findBestClosePath", values: [StrategyPathTaskStruct, PathOptionStruct[], BigNumberish]): string;
|
|
86
|
+
decodeFunctionResult(functionFragment: "findBestClosePath", data: BytesLike): Result;
|
|
87
|
+
events: {};
|
|
88
|
+
}
|
|
89
|
+
export interface IClosePathResolver extends BaseContract {
|
|
90
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
91
|
+
attach(addressOrName: string): this;
|
|
92
|
+
deployed(): Promise<this>;
|
|
93
|
+
interface: IClosePathResolverInterface;
|
|
94
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
95
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
96
|
+
listeners(eventName?: string): Array<Listener>;
|
|
97
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
98
|
+
removeAllListeners(eventName?: string): this;
|
|
99
|
+
off: OnEvent<this>;
|
|
100
|
+
on: OnEvent<this>;
|
|
101
|
+
once: OnEvent<this>;
|
|
102
|
+
removeListener: OnEvent<this>;
|
|
103
|
+
functions: {
|
|
104
|
+
findBestClosePath(task: StrategyPathTaskStruct, pathOptions: PathOptionStruct[], cycles: BigNumberish, overrides?: Overrides & {
|
|
105
|
+
from?: string | Promise<string>;
|
|
106
|
+
}): Promise<ContractTransaction>;
|
|
107
|
+
};
|
|
108
|
+
findBestClosePath(task: StrategyPathTaskStruct, pathOptions: PathOptionStruct[], cycles: BigNumberish, overrides?: Overrides & {
|
|
109
|
+
from?: string | Promise<string>;
|
|
110
|
+
}): Promise<ContractTransaction>;
|
|
111
|
+
callStatic: {
|
|
112
|
+
findBestClosePath(task: StrategyPathTaskStruct, pathOptions: PathOptionStruct[], cycles: BigNumberish, overrides?: CallOverrides): Promise<StrategyPathTaskStructOutput>;
|
|
113
|
+
};
|
|
114
|
+
filters: {};
|
|
115
|
+
estimateGas: {
|
|
116
|
+
findBestClosePath(task: StrategyPathTaskStruct, pathOptions: PathOptionStruct[], cycles: BigNumberish, overrides?: Overrides & {
|
|
117
|
+
from?: string | Promise<string>;
|
|
118
|
+
}): Promise<BigNumber>;
|
|
119
|
+
};
|
|
120
|
+
populateTransaction: {
|
|
121
|
+
findBestClosePath(task: StrategyPathTaskStruct, pathOptions: PathOptionStruct[], cycles: BigNumberish, overrides?: Overrides & {
|
|
122
|
+
from?: string | Promise<string>;
|
|
123
|
+
}): Promise<PopulatedTransaction>;
|
|
124
|
+
};
|
|
125
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../../../common";
|
|
5
|
+
export declare type BalanceStruct = {
|
|
6
|
+
token: string;
|
|
7
|
+
balance: BigNumberish;
|
|
8
|
+
};
|
|
9
|
+
export declare type BalanceStructOutput = [string, BigNumber] & {
|
|
10
|
+
token: string;
|
|
11
|
+
balance: BigNumber;
|
|
12
|
+
};
|
|
13
|
+
export declare type TokenAdaptersStruct = {
|
|
14
|
+
token: string;
|
|
15
|
+
adapters: string[];
|
|
16
|
+
};
|
|
17
|
+
export declare type TokenAdaptersStructOutput = [string, string[]] & {
|
|
18
|
+
token: string;
|
|
19
|
+
adapters: string[];
|
|
20
|
+
};
|
|
21
|
+
export declare type MultiCallStruct = {
|
|
22
|
+
target: string;
|
|
23
|
+
callData: BytesLike;
|
|
24
|
+
};
|
|
25
|
+
export declare type MultiCallStructOutput = [string, string] & {
|
|
26
|
+
target: string;
|
|
27
|
+
callData: string;
|
|
28
|
+
};
|
|
29
|
+
export declare type StrategyPathTaskStruct = {
|
|
30
|
+
creditAccount: string;
|
|
31
|
+
balances: BalanceStruct[];
|
|
32
|
+
target: string;
|
|
33
|
+
connectors: string[];
|
|
34
|
+
adapters: string[];
|
|
35
|
+
slippage: BigNumberish;
|
|
36
|
+
targetType: BigNumberish;
|
|
37
|
+
foundAdapters: TokenAdaptersStruct[];
|
|
38
|
+
gasPriceTargetRAY: BigNumberish;
|
|
39
|
+
gasUsage: BigNumberish;
|
|
40
|
+
initTargetBalance: BigNumberish;
|
|
41
|
+
calls: MultiCallStruct[];
|
|
42
|
+
};
|
|
43
|
+
export declare type StrategyPathTaskStructOutput = [
|
|
44
|
+
string,
|
|
45
|
+
BalanceStructOutput[],
|
|
46
|
+
string,
|
|
47
|
+
string[],
|
|
48
|
+
string[],
|
|
49
|
+
BigNumber,
|
|
50
|
+
number,
|
|
51
|
+
TokenAdaptersStructOutput[],
|
|
52
|
+
BigNumber,
|
|
53
|
+
BigNumber,
|
|
54
|
+
BigNumber,
|
|
55
|
+
MultiCallStructOutput[]
|
|
56
|
+
] & {
|
|
57
|
+
creditAccount: string;
|
|
58
|
+
balances: BalanceStructOutput[];
|
|
59
|
+
target: string;
|
|
60
|
+
connectors: string[];
|
|
61
|
+
adapters: string[];
|
|
62
|
+
slippage: BigNumber;
|
|
63
|
+
targetType: number;
|
|
64
|
+
foundAdapters: TokenAdaptersStructOutput[];
|
|
65
|
+
gasPriceTargetRAY: BigNumber;
|
|
66
|
+
gasUsage: BigNumber;
|
|
67
|
+
initTargetBalance: BigNumber;
|
|
68
|
+
calls: MultiCallStructOutput[];
|
|
69
|
+
};
|
|
70
|
+
export interface IDepositorInterface extends utils.Interface {
|
|
71
|
+
functions: {
|
|
72
|
+
"deposit(uint256,address,(address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address[])[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
73
|
+
"depositAll(address,(address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address[])[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
74
|
+
"getUnderlying(address,(address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address[])[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
75
|
+
};
|
|
76
|
+
getFunction(nameOrSignatureOrTopic: "deposit" | "depositAll" | "getUnderlying"): FunctionFragment;
|
|
77
|
+
encodeFunctionData(functionFragment: "deposit", values: [BigNumberish, string, StrategyPathTaskStruct]): string;
|
|
78
|
+
encodeFunctionData(functionFragment: "depositAll", values: [string, StrategyPathTaskStruct]): string;
|
|
79
|
+
encodeFunctionData(functionFragment: "getUnderlying", values: [string, StrategyPathTaskStruct]): string;
|
|
80
|
+
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
|
81
|
+
decodeFunctionResult(functionFragment: "depositAll", data: BytesLike): Result;
|
|
82
|
+
decodeFunctionResult(functionFragment: "getUnderlying", data: BytesLike): Result;
|
|
83
|
+
events: {};
|
|
84
|
+
}
|
|
85
|
+
export interface IDepositor extends BaseContract {
|
|
86
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
87
|
+
attach(addressOrName: string): this;
|
|
88
|
+
deployed(): Promise<this>;
|
|
89
|
+
interface: IDepositorInterface;
|
|
90
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
91
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
92
|
+
listeners(eventName?: string): Array<Listener>;
|
|
93
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
94
|
+
removeAllListeners(eventName?: string): this;
|
|
95
|
+
off: OnEvent<this>;
|
|
96
|
+
on: OnEvent<this>;
|
|
97
|
+
once: OnEvent<this>;
|
|
98
|
+
removeListener: OnEvent<this>;
|
|
99
|
+
functions: {
|
|
100
|
+
deposit(amountIn: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
|
|
101
|
+
BigNumber,
|
|
102
|
+
StrategyPathTaskStructOutput
|
|
103
|
+
] & {
|
|
104
|
+
amountOut: BigNumber;
|
|
105
|
+
}>;
|
|
106
|
+
depositAll(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
|
|
107
|
+
BigNumber,
|
|
108
|
+
StrategyPathTaskStructOutput
|
|
109
|
+
] & {
|
|
110
|
+
amountOut: BigNumber;
|
|
111
|
+
}>;
|
|
112
|
+
getUnderlying(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[string, StrategyPathTaskStructOutput] & {
|
|
113
|
+
tokenIn: string;
|
|
114
|
+
}>;
|
|
115
|
+
};
|
|
116
|
+
deposit(amountIn: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
|
|
117
|
+
BigNumber,
|
|
118
|
+
StrategyPathTaskStructOutput
|
|
119
|
+
] & {
|
|
120
|
+
amountOut: BigNumber;
|
|
121
|
+
}>;
|
|
122
|
+
depositAll(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
|
|
123
|
+
BigNumber,
|
|
124
|
+
StrategyPathTaskStructOutput
|
|
125
|
+
] & {
|
|
126
|
+
amountOut: BigNumber;
|
|
127
|
+
}>;
|
|
128
|
+
getUnderlying(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[string, StrategyPathTaskStructOutput] & {
|
|
129
|
+
tokenIn: string;
|
|
130
|
+
}>;
|
|
131
|
+
callStatic: {
|
|
132
|
+
deposit(amountIn: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
|
|
133
|
+
BigNumber,
|
|
134
|
+
StrategyPathTaskStructOutput
|
|
135
|
+
] & {
|
|
136
|
+
amountOut: BigNumber;
|
|
137
|
+
}>;
|
|
138
|
+
depositAll(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
|
|
139
|
+
BigNumber,
|
|
140
|
+
StrategyPathTaskStructOutput
|
|
141
|
+
] & {
|
|
142
|
+
amountOut: BigNumber;
|
|
143
|
+
}>;
|
|
144
|
+
getUnderlying(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[string, StrategyPathTaskStructOutput] & {
|
|
145
|
+
tokenIn: string;
|
|
146
|
+
}>;
|
|
147
|
+
};
|
|
148
|
+
filters: {};
|
|
149
|
+
estimateGas: {
|
|
150
|
+
deposit(amountIn: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<BigNumber>;
|
|
151
|
+
depositAll(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<BigNumber>;
|
|
152
|
+
getUnderlying(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<BigNumber>;
|
|
153
|
+
};
|
|
154
|
+
populateTransaction: {
|
|
155
|
+
deposit(amountIn: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
156
|
+
depositAll(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
157
|
+
getUnderlying(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
158
|
+
};
|
|
159
|
+
}
|
|
File without changes
|