@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.
Files changed (98) hide show
  1. package/lib/core/creditManager.d.ts +5 -0
  2. package/lib/core/creditManager.js +5 -0
  3. package/lib/pathfinder/path.js +5 -5
  4. package/lib/payload/creditManager.d.ts +5 -0
  5. package/lib/strategies/creditFacade.js +1 -1
  6. package/lib/types/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator.d.ts +271 -20
  7. package/lib/types/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents.d.ts +8 -19
  8. package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended.d.ts +9 -9
  9. package/lib/types/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2.d.ts +52 -116
  10. package/lib/types/contracts/interfaces/IDataCompressor.sol/IDataCompressor.d.ts +26 -1
  11. package/lib/types/contracts/interfaces/IDegenNFT.sol/IDegenNFT.d.ts +10 -10
  12. package/lib/types/contracts/interfaces/V1/ICreditFilter.d.ts +3 -3
  13. package/lib/types/contracts/interfaces/adapters/convex/IConvexV1BoosterAdapter.d.ts +1 -9
  14. package/lib/types/contracts/pathfinder/index.d.ts +0 -1
  15. package/lib/types/contracts/pathfinder/interfaces/IClosePathResolver.d.ts +125 -0
  16. package/lib/types/contracts/pathfinder/{ISwapper.js → interfaces/IClosePathResolver.js} +0 -0
  17. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor.d.ts +159 -0
  18. package/lib/types/contracts/pathfinder/interfaces/{ISwapPathFinder.js → IDepositor.sol/IDepositor.js} +0 -0
  19. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions.d.ts +165 -0
  20. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions.js +2 -0
  21. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/index.d.ts +2 -0
  22. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/index.js +2 -0
  23. package/lib/types/contracts/pathfinder/interfaces/IGasPricer.d.ts +44 -0
  24. package/lib/types/contracts/pathfinder/interfaces/IGasPricer.js +2 -0
  25. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker.d.ts +113 -0
  26. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker.js +2 -0
  27. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions.d.ts +119 -0
  28. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions.js +2 -0
  29. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/index.d.ts +2 -0
  30. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/index.js +2 -0
  31. package/lib/types/contracts/pathfinder/interfaces/IPathFinder.d.ts +210 -0
  32. package/lib/types/contracts/pathfinder/interfaces/IPathFinder.js +2 -0
  33. package/lib/types/contracts/pathfinder/interfaces/IPathResolver.d.ts +131 -0
  34. package/lib/types/contracts/pathfinder/interfaces/IPathResolver.js +2 -0
  35. package/lib/types/contracts/pathfinder/interfaces/{ISwapPathFinder.d.ts → ISwapAggregator.d.ts} +98 -14
  36. package/lib/types/contracts/pathfinder/interfaces/ISwapAggregator.js +2 -0
  37. package/lib/types/contracts/pathfinder/{ISwapper.d.ts → interfaces/ISwapper.d.ts} +1 -1
  38. package/lib/types/contracts/pathfinder/interfaces/ISwapper.js +2 -0
  39. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer.d.ts +144 -0
  40. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer.js +2 -0
  41. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions.d.ts +160 -0
  42. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions.js +2 -0
  43. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/index.d.ts +2 -0
  44. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/index.js +2 -0
  45. package/lib/types/contracts/pathfinder/interfaces/index.d.ts +12 -1
  46. package/lib/types/factories/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents__factory.js +1 -14
  47. package/lib/types/factories/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorExceptions__factory.js +2 -17
  48. package/lib/types/factories/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator__factory.js +240 -31
  49. package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExceptions__factory.js +7 -2
  50. package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended__factory.js +1 -1
  51. package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacade__factory.js +7 -2
  52. package/lib/types/factories/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +2 -2
  53. package/lib/types/factories/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2__factory.js +41 -84
  54. package/lib/types/factories/contracts/interfaces/IDataCompressor.sol/IDataCompressor__factory.d.ts +14 -14
  55. package/lib/types/factories/contracts/interfaces/IDataCompressor.sol/IDataCompressor__factory.js +74 -0
  56. package/lib/types/factories/contracts/interfaces/IDegenNFT.sol/IDegenNFT__factory.js +4 -4
  57. package/lib/types/factories/contracts/interfaces/V1/ICreditFilter__factory.js +1 -1
  58. package/lib/types/factories/contracts/interfaces/adapters/convex/IConvexV1BoosterAdapter__factory.js +0 -13
  59. package/lib/types/factories/contracts/pathfinder/index.d.ts +0 -1
  60. package/lib/types/factories/contracts/pathfinder/index.js +1 -3
  61. package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.d.ts +57 -0
  62. package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.js +264 -0
  63. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory.d.ts +62 -0
  64. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory.js +717 -0
  65. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory.d.ts +62 -0
  66. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory.js +702 -0
  67. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/index.d.ts +2 -0
  68. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/index.js +10 -0
  69. package/lib/types/factories/contracts/pathfinder/interfaces/IGasPricer__factory.d.ts +22 -0
  70. package/lib/types/factories/contracts/pathfinder/interfaces/IGasPricer__factory.js +41 -0
  71. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.d.ts +62 -0
  72. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.js +252 -0
  73. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory.d.ts +62 -0
  74. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory.js +247 -0
  75. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/index.d.ts +2 -0
  76. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/index.js +10 -0
  77. package/lib/types/factories/contracts/pathfinder/interfaces/{ISwapPathFinder__factory.d.ts → IPathFinder__factory.d.ts} +42 -28
  78. package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinder__factory.js +483 -0
  79. package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.d.ts +57 -0
  80. package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.js +467 -0
  81. package/lib/types/factories/contracts/pathfinder/interfaces/ISwapAggregator__factory.d.ts +62 -0
  82. package/lib/types/factories/contracts/pathfinder/interfaces/ISwapAggregator__factory.js +782 -0
  83. package/lib/types/factories/contracts/pathfinder/{ISwapper__factory.d.ts → interfaces/ISwapper__factory.d.ts} +1 -1
  84. package/lib/types/factories/contracts/pathfinder/{ISwapper__factory.js → interfaces/ISwapper__factory.js} +0 -0
  85. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.d.ts +62 -0
  86. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.js +729 -0
  87. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory.d.ts +62 -0
  88. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory.js +692 -0
  89. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/index.d.ts +2 -0
  90. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/index.js +10 -0
  91. package/lib/types/factories/contracts/pathfinder/interfaces/index.d.ts +9 -1
  92. package/lib/types/factories/contracts/pathfinder/interfaces/index.js +39 -3
  93. package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.d.ts +1 -1
  94. package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.js +1 -1
  95. package/lib/types/index.d.ts +24 -4
  96. package/lib/types/index.js +24 -4
  97. package/package.json +2 -2
  98. package/lib/types/factories/contracts/pathfinder/interfaces/ISwapPathFinder__factory.js +0 -346
@@ -0,0 +1,144 @@
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 IWithdrawerInterface extends utils.Interface {
71
+ functions: {
72
+ "getUnderlying(address,(address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address[])[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
73
+ "withdraw(uint256,address,(address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address[])[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
74
+ "withdrawAllTokens((address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address[])[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
75
+ };
76
+ getFunction(nameOrSignatureOrTopic: "getUnderlying" | "withdraw" | "withdrawAllTokens"): FunctionFragment;
77
+ encodeFunctionData(functionFragment: "getUnderlying", values: [string, StrategyPathTaskStruct]): string;
78
+ encodeFunctionData(functionFragment: "withdraw", values: [BigNumberish, string, StrategyPathTaskStruct]): string;
79
+ encodeFunctionData(functionFragment: "withdrawAllTokens", values: [StrategyPathTaskStruct]): string;
80
+ decodeFunctionResult(functionFragment: "getUnderlying", data: BytesLike): Result;
81
+ decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
82
+ decodeFunctionResult(functionFragment: "withdrawAllTokens", data: BytesLike): Result;
83
+ events: {};
84
+ }
85
+ export interface IWithdrawer extends BaseContract {
86
+ connect(signerOrProvider: Signer | Provider | string): this;
87
+ attach(addressOrName: string): this;
88
+ deployed(): Promise<this>;
89
+ interface: IWithdrawerInterface;
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
+ getUnderlying(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[string, StrategyPathTaskStructOutput] & {
101
+ tokenIn: string;
102
+ }>;
103
+ withdraw(amountIn: BigNumberish, lpToken: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
104
+ BigNumber,
105
+ StrategyPathTaskStructOutput
106
+ ] & {
107
+ amountOut: BigNumber;
108
+ }>;
109
+ withdrawAllTokens(task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[StrategyPathTaskStructOutput]>;
110
+ };
111
+ getUnderlying(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[string, StrategyPathTaskStructOutput] & {
112
+ tokenIn: string;
113
+ }>;
114
+ withdraw(amountIn: BigNumberish, lpToken: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
115
+ BigNumber,
116
+ StrategyPathTaskStructOutput
117
+ ] & {
118
+ amountOut: BigNumber;
119
+ }>;
120
+ withdrawAllTokens(task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<StrategyPathTaskStructOutput>;
121
+ callStatic: {
122
+ getUnderlying(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[string, StrategyPathTaskStructOutput] & {
123
+ tokenIn: string;
124
+ }>;
125
+ withdraw(amountIn: BigNumberish, lpToken: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
126
+ BigNumber,
127
+ StrategyPathTaskStructOutput
128
+ ] & {
129
+ amountOut: BigNumber;
130
+ }>;
131
+ withdrawAllTokens(task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<StrategyPathTaskStructOutput>;
132
+ };
133
+ filters: {};
134
+ estimateGas: {
135
+ getUnderlying(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<BigNumber>;
136
+ withdraw(amountIn: BigNumberish, lpToken: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<BigNumber>;
137
+ withdrawAllTokens(task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<BigNumber>;
138
+ };
139
+ populateTransaction: {
140
+ getUnderlying(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<PopulatedTransaction>;
141
+ withdraw(amountIn: BigNumberish, lpToken: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<PopulatedTransaction>;
142
+ withdrawAllTokens(task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<PopulatedTransaction>;
143
+ };
144
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,160 @@
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 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 IWithdrawerOptionsInterface extends utils.Interface {
81
+ functions: {
82
+ "getUnderlyings(uint8,address,(address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address[])[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
83
+ "withdraw(address,uint256,uint8,address,(address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address[])[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
84
+ "withdrawAllTokens((address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address[])[],uint256,uint256,uint256,(address,bytes)[]),(address,uint8,uint8)[])": FunctionFragment;
85
+ };
86
+ getFunction(nameOrSignatureOrTopic: "getUnderlyings" | "withdraw" | "withdrawAllTokens"): FunctionFragment;
87
+ encodeFunctionData(functionFragment: "getUnderlyings", values: [BigNumberish, string, StrategyPathTaskStruct]): string;
88
+ encodeFunctionData(functionFragment: "withdraw", values: [string, BigNumberish, BigNumberish, string, StrategyPathTaskStruct]): string;
89
+ encodeFunctionData(functionFragment: "withdrawAllTokens", values: [StrategyPathTaskStruct, PathOptionStruct[]]): string;
90
+ decodeFunctionResult(functionFragment: "getUnderlyings", data: BytesLike): Result;
91
+ decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
92
+ decodeFunctionResult(functionFragment: "withdrawAllTokens", data: BytesLike): Result;
93
+ events: {};
94
+ }
95
+ export interface IWithdrawerOptions extends BaseContract {
96
+ connect(signerOrProvider: Signer | Provider | string): this;
97
+ attach(addressOrName: string): this;
98
+ deployed(): Promise<this>;
99
+ interface: IWithdrawerOptionsInterface;
100
+ queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
101
+ listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
102
+ listeners(eventName?: string): Array<Listener>;
103
+ removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
104
+ removeAllListeners(eventName?: string): this;
105
+ off: OnEvent<this>;
106
+ on: OnEvent<this>;
107
+ once: OnEvent<this>;
108
+ removeListener: OnEvent<this>;
109
+ functions: {
110
+ getUnderlyings(ttIn: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
111
+ string[],
112
+ StrategyPathTaskStructOutput
113
+ ] & {
114
+ tokensIn: string[];
115
+ }>;
116
+ withdraw(tokenIn: string, amount: BigNumberish, ttOut: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
117
+ BigNumber,
118
+ StrategyPathTaskStructOutput
119
+ ] & {
120
+ amountOut: BigNumber;
121
+ }>;
122
+ withdrawAllTokens(task: StrategyPathTaskStruct, pathOptions: PathOptionStruct[], overrides?: CallOverrides): Promise<[StrategyPathTaskStructOutput]>;
123
+ };
124
+ getUnderlyings(ttIn: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[string[], StrategyPathTaskStructOutput] & {
125
+ tokensIn: string[];
126
+ }>;
127
+ withdraw(tokenIn: string, amount: BigNumberish, ttOut: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
128
+ BigNumber,
129
+ StrategyPathTaskStructOutput
130
+ ] & {
131
+ amountOut: BigNumber;
132
+ }>;
133
+ withdrawAllTokens(task: StrategyPathTaskStruct, pathOptions: PathOptionStruct[], overrides?: CallOverrides): Promise<StrategyPathTaskStructOutput>;
134
+ callStatic: {
135
+ getUnderlyings(ttIn: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
136
+ string[],
137
+ StrategyPathTaskStructOutput
138
+ ] & {
139
+ tokensIn: string[];
140
+ }>;
141
+ withdraw(tokenIn: string, amount: BigNumberish, ttOut: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
142
+ BigNumber,
143
+ StrategyPathTaskStructOutput
144
+ ] & {
145
+ amountOut: BigNumber;
146
+ }>;
147
+ withdrawAllTokens(task: StrategyPathTaskStruct, pathOptions: PathOptionStruct[], overrides?: CallOverrides): Promise<StrategyPathTaskStructOutput>;
148
+ };
149
+ filters: {};
150
+ estimateGas: {
151
+ getUnderlyings(ttIn: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<BigNumber>;
152
+ withdraw(tokenIn: string, amount: BigNumberish, ttOut: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<BigNumber>;
153
+ withdrawAllTokens(task: StrategyPathTaskStruct, pathOptions: PathOptionStruct[], overrides?: CallOverrides): Promise<BigNumber>;
154
+ };
155
+ populateTransaction: {
156
+ getUnderlyings(ttIn: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<PopulatedTransaction>;
157
+ withdraw(tokenIn: string, amount: BigNumberish, ttOut: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<PopulatedTransaction>;
158
+ withdrawAllTokens(task: StrategyPathTaskStruct, pathOptions: PathOptionStruct[], overrides?: CallOverrides): Promise<PopulatedTransaction>;
159
+ };
160
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export type { IWithdrawer } from "./IWithdrawer";
2
+ export type { IWithdrawerOptions } from "./IWithdrawerOptions";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,12 @@
1
- export type { ISwapPathFinder } from "./ISwapPathFinder";
1
+ import type * as iDepositorSol from "./IDepositor.sol";
2
+ export type { iDepositorSol };
3
+ import type * as ilpWorkerSol from "./ILPWorker.sol";
4
+ export type { ilpWorkerSol };
5
+ import type * as iWithdrawerSol from "./IWithdrawer.sol";
6
+ export type { iWithdrawerSol };
7
+ export type { IClosePathResolver } from "./IClosePathResolver";
8
+ export type { IGasPricer } from "./IGasPricer";
9
+ export type { IPathFinder } from "./IPathFinder";
10
+ export type { IPathResolver } from "./IPathResolver";
11
+ export type { ISwapAggregator } from "./ISwapAggregator";
12
+ export type { ISwapper } from "./ISwapper";
@@ -77,19 +77,6 @@ var _abi = [
77
77
  name: "CreditFacadeUpgraded",
78
78
  type: "event",
79
79
  },
80
- {
81
- anonymous: false,
82
- inputs: [
83
- {
84
- indexed: false,
85
- internalType: "bool",
86
- name: "",
87
- type: "bool",
88
- },
89
- ],
90
- name: "DegenModeUpdated",
91
- type: "event",
92
- },
93
80
  {
94
81
  anonymous: false,
95
82
  inputs: [
@@ -176,7 +163,7 @@ var _abi = [
176
163
  type: "bool",
177
164
  },
178
165
  ],
179
- name: "IncreaseDebtModeUpdated",
166
+ name: "IncreaseDebtForbiddenModeChanged",
180
167
  type: "event",
181
168
  },
182
169
  {
@@ -13,27 +13,12 @@ var _abi = [
13
13
  },
14
14
  {
15
15
  inputs: [],
16
- name: "ChiThresholdMoreOneException",
16
+ name: "ContractIsNotAnAllowedAdapterException",
17
17
  type: "error",
18
18
  },
19
19
  {
20
20
  inputs: [],
21
- name: "ContractNotInAllowedList",
22
- type: "error",
23
- },
24
- {
25
- inputs: [],
26
- name: "CreditManagerOrFacadeUsedAsAllowContractsException",
27
- type: "error",
28
- },
29
- {
30
- inputs: [],
31
- name: "DegenNFTnotSetException",
32
- type: "error",
33
- },
34
- {
35
- inputs: [],
36
- name: "FastCheckNotCoverCollateralDropException",
21
+ name: "CreditManagerOrFacadeUsedAsTargetContractsException",
37
22
  type: "error",
38
23
  },
39
24
  {