@gearbox-protocol/sdk 1.3.4 → 1.4.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/constants.d.ts +1 -0
- package/lib/core/constants.js +3 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/parsers/abstractParser.d.ts +18 -0
- package/lib/parsers/abstractParser.js +32 -0
- package/lib/parsers/convexBaseRewardPoolAdapterParser.d.ts +9 -0
- package/lib/parsers/convexBaseRewardPoolAdapterParser.js +60 -0
- package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.d.ts +1 -0
- package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +24 -0
- package/lib/parsers/convexBoosterAdapterParser.d.ts +10 -0
- package/lib/parsers/convexBoosterAdapterParser.js +62 -0
- package/lib/parsers/convexBoosterAdapterParser.spec.d.ts +1 -0
- package/lib/parsers/convexBoosterAdapterParser.spec.js +20 -0
- package/lib/parsers/creditFacadeParser.d.ts +9 -0
- package/lib/parsers/creditFacadeParser.js +66 -0
- package/lib/parsers/creditFacadeParser.spec.d.ts +1 -0
- package/lib/parsers/creditFacadeParser.spec.js +27 -0
- package/lib/parsers/curveAdapterParser.d.ts +12 -0
- package/lib/parsers/curveAdapterParser.js +106 -0
- package/lib/parsers/curveAdapterParser.spec.d.ts +1 -0
- package/lib/parsers/curveAdapterParser.spec.js +49 -0
- package/lib/parsers/iParser.d.ts +3 -0
- package/lib/{types/contracts/test/suites/mainnet/IPriceFeedsRegistry.js → parsers/iParser.js} +0 -0
- package/lib/parsers/lidoAdapterParser.d.ts +7 -0
- package/lib/parsers/lidoAdapterParser.js +46 -0
- package/lib/parsers/lidoAdapterParser.spec.d.ts +1 -0
- package/lib/parsers/lidoAdapterParser.spec.js +17 -0
- package/lib/parsers/txParser.d.ts +18 -0
- package/lib/parsers/txParser.js +122 -0
- package/lib/parsers/uniV2AdapterParser.d.ts +8 -0
- package/lib/parsers/uniV2AdapterParser.js +73 -0
- package/lib/parsers/uniV2AdapterParser.spec.d.ts +1 -0
- package/lib/parsers/uniV2AdapterParser.spec.js +48 -0
- package/lib/parsers/uniV3AdapterParser.d.ts +9 -0
- package/lib/parsers/uniV3AdapterParser.js +99 -0
- package/lib/parsers/uniV3AdapterParser.spec.d.ts +1 -0
- package/lib/parsers/uniV3AdapterParser.spec.js +82 -0
- package/lib/parsers/yearnAdapterParser.spec.d.ts +1 -0
- package/lib/parsers/yearnAdapterParser.spec.js +36 -0
- package/lib/parsers/yearnV2AdapterParser.d.ts +7 -0
- package/lib/parsers/yearnV2AdapterParser.js +54 -0
- package/lib/tokens/convex.d.ts +4 -2
- package/lib/tokens/convex.js +10 -1
- package/lib/tokens/decimals.d.ts +2 -0
- package/lib/tokens/decimals.js +62 -0
- package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended.d.ts +66 -2
- package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_2AssetsAdapter.d.ts +620 -0
- package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_2AssetsAdapter.js +2 -0
- package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_3AssetsAdapter.d.ts +622 -0
- package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_3AssetsAdapter.js +2 -0
- package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_4AssetsAdapter.d.ts +648 -0
- package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_4AssetsAdapter.js +2 -0
- package/lib/types/contracts/interfaces/adapters/curve/index.d.ts +3 -0
- package/lib/types/contracts/interfaces/adapters/index.d.ts +2 -0
- package/lib/types/contracts/interfaces/adapters/yearn/IYearnV2Adapter.d.ts +330 -0
- package/lib/types/contracts/interfaces/adapters/yearn/IYearnV2Adapter.js +2 -0
- package/lib/types/contracts/interfaces/adapters/yearn/index.d.ts +1 -0
- package/lib/types/contracts/interfaces/adapters/yearn/index.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IClosePathResolver.d.ts +28 -7
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor.d.ts +30 -9
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions.d.ts +31 -10
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker.d.ts +28 -7
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions.d.ts +28 -7
- package/lib/types/contracts/pathfinder/interfaces/IPathFinder.d.ts +24 -0
- package/lib/types/contracts/pathfinder/interfaces/IPathFinderComponent.d.ts +50 -0
- package/lib/types/contracts/pathfinder/interfaces/IPathFinderComponent.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IPathResolver.d.ts +29 -8
- package/lib/types/contracts/pathfinder/interfaces/ISwapAggregator.d.ts +99 -15
- package/lib/types/contracts/pathfinder/interfaces/ISwapper.d.ts +17 -1
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer.d.ts +53 -9
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions.d.ts +53 -9
- package/lib/types/contracts/pathfinder/interfaces/index.d.ts +1 -0
- package/lib/types/contracts/test/suites/mainnet/ITokenTestSuite.d.ts +110 -18
- package/lib/types/contracts/test/suites/mainnet/SupportedContracts.sol/ISupportedContracts.d.ts +50 -0
- package/lib/types/contracts/test/suites/mainnet/SupportedContracts.sol/ISupportedContracts.js +2 -0
- package/lib/types/contracts/test/suites/mainnet/SupportedContracts.sol/index.d.ts +1 -0
- package/lib/types/contracts/test/suites/mainnet/SupportedContracts.sol/index.js +2 -0
- package/lib/types/contracts/test/suites/mainnet/Tokens.sol/IToken.d.ts +60 -0
- package/lib/types/contracts/test/suites/mainnet/Tokens.sol/IToken.js +2 -0
- package/lib/types/contracts/test/suites/mainnet/Tokens.sol/index.d.ts +1 -0
- package/lib/types/contracts/test/suites/mainnet/Tokens.sol/index.js +2 -0
- package/lib/types/contracts/test/suites/mainnet/index.d.ts +4 -1
- package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended__factory.js +62 -0
- package/lib/types/factories/contracts/{test/suites/mainnet/IPriceFeedsRegistry__factory.d.ts → interfaces/adapters/curve/ICurveV1_2AssetsAdapter__factory.d.ts} +4 -4
- package/lib/types/factories/contracts/interfaces/adapters/curve/ICurveV1_2AssetsAdapter__factory.js +1066 -0
- package/lib/types/factories/contracts/interfaces/adapters/curve/ICurveV1_3AssetsAdapter__factory.d.ts +32 -0
- package/lib/types/factories/contracts/interfaces/adapters/curve/ICurveV1_3AssetsAdapter__factory.js +1066 -0
- package/lib/types/factories/contracts/interfaces/adapters/curve/ICurveV1_4AssetsAdapter__factory.d.ts +32 -0
- package/lib/types/factories/contracts/interfaces/adapters/curve/ICurveV1_4AssetsAdapter__factory.js +1066 -0
- package/lib/types/factories/contracts/interfaces/adapters/curve/index.d.ts +3 -0
- package/lib/types/factories/contracts/interfaces/adapters/curve/index.js +7 -1
- package/lib/types/factories/contracts/interfaces/adapters/index.d.ts +1 -0
- package/lib/types/factories/contracts/interfaces/adapters/index.js +2 -1
- package/lib/types/factories/contracts/interfaces/adapters/yearn/IYearnV2Adapter__factory.d.ts +46 -0
- package/lib/types/factories/contracts/interfaces/adapters/yearn/IYearnV2Adapter__factory.js +487 -0
- package/lib/types/factories/contracts/interfaces/adapters/yearn/index.d.ts +1 -0
- package/lib/types/factories/contracts/interfaces/adapters/yearn/index.js +8 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.d.ts +12 -2
- package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.js +54 -8
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory.js +138 -32
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory.js +110 -24
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.js +54 -8
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory.js +54 -8
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinderComponent__factory.d.ts +18 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinderComponent__factory.js +48 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinder__factory.js +32 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.d.ts +12 -2
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.js +82 -16
- package/lib/types/factories/contracts/pathfinder/interfaces/ISwapAggregator__factory.js +877 -56
- package/lib/types/factories/contracts/pathfinder/interfaces/ISwapper__factory.d.ts +12 -2
- package/lib/types/factories/contracts/pathfinder/interfaces/ISwapper__factory.js +26 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.js +365 -24
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory.js +355 -24
- package/lib/types/factories/contracts/pathfinder/interfaces/index.d.ts +1 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/index.js +3 -1
- 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/factories/contracts/test/suites/mainnet/ITokenTestSuite__factory.d.ts +2 -12
- package/lib/types/factories/contracts/test/suites/mainnet/ITokenTestSuite__factory.js +140 -12
- package/lib/types/factories/contracts/test/suites/mainnet/SupportedContracts.sol/ISupportedContracts__factory.d.ts +22 -0
- package/lib/types/factories/contracts/test/suites/mainnet/{IPriceFeedsRegistry__factory.js → SupportedContracts.sol/ISupportedContracts__factory.js} +25 -17
- package/lib/types/factories/contracts/test/suites/mainnet/SupportedContracts.sol/index.d.ts +1 -0
- package/lib/types/factories/contracts/test/suites/mainnet/SupportedContracts.sol/index.js +8 -0
- package/lib/types/factories/contracts/test/suites/mainnet/Tokens.sol/IToken__factory.d.ts +22 -0
- package/lib/types/factories/contracts/test/suites/mainnet/Tokens.sol/IToken__factory.js +79 -0
- package/lib/types/factories/contracts/test/suites/mainnet/Tokens.sol/index.d.ts +1 -0
- package/lib/types/factories/contracts/test/suites/mainnet/Tokens.sol/index.js +8 -0
- package/lib/types/factories/contracts/test/suites/mainnet/index.d.ts +2 -1
- package/lib/types/factories/contracts/test/suites/mainnet/index.js +26 -3
- package/lib/types/index.d.ts +14 -2
- package/lib/types/index.js +17 -5
- package/package.json +6 -2
- package/lib/types/contracts/test/suites/mainnet/IPriceFeedsRegistry.d.ts +0 -42
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import type * as iCurveV1AdapterSol from "./ICurveV1Adapter.sol";
|
|
2
2
|
export type { iCurveV1AdapterSol };
|
|
3
|
+
export type { ICurveV1_2AssetsAdapter } from "./ICurveV1_2AssetsAdapter";
|
|
4
|
+
export type { ICurveV1_3AssetsAdapter } from "./ICurveV1_3AssetsAdapter";
|
|
5
|
+
export type { ICurveV1_4AssetsAdapter } from "./ICurveV1_4AssetsAdapter";
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
+
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../../../common";
|
|
5
|
+
export interface IYearnV2AdapterInterface extends utils.Interface {
|
|
6
|
+
functions: {
|
|
7
|
+
"_gearboxAdapterType()": FunctionFragment;
|
|
8
|
+
"_gearboxAdapterVersion()": FunctionFragment;
|
|
9
|
+
"allowance(address,address)": FunctionFragment;
|
|
10
|
+
"approve(address,uint256)": FunctionFragment;
|
|
11
|
+
"balanceOf(address)": FunctionFragment;
|
|
12
|
+
"creditFacade()": FunctionFragment;
|
|
13
|
+
"creditManager()": FunctionFragment;
|
|
14
|
+
"decimals()": FunctionFragment;
|
|
15
|
+
"deposit(uint256,address)": FunctionFragment;
|
|
16
|
+
"deposit(uint256)": FunctionFragment;
|
|
17
|
+
"deposit()": FunctionFragment;
|
|
18
|
+
"name()": FunctionFragment;
|
|
19
|
+
"pricePerShare()": FunctionFragment;
|
|
20
|
+
"symbol()": FunctionFragment;
|
|
21
|
+
"targetContract()": FunctionFragment;
|
|
22
|
+
"token()": FunctionFragment;
|
|
23
|
+
"totalSupply()": FunctionFragment;
|
|
24
|
+
"transfer(address,uint256)": FunctionFragment;
|
|
25
|
+
"transferFrom(address,address,uint256)": FunctionFragment;
|
|
26
|
+
"withdraw(uint256,address)": FunctionFragment;
|
|
27
|
+
"withdraw(uint256)": FunctionFragment;
|
|
28
|
+
"withdraw()": FunctionFragment;
|
|
29
|
+
"withdraw(uint256,address,uint256)": FunctionFragment;
|
|
30
|
+
};
|
|
31
|
+
getFunction(nameOrSignatureOrTopic: "_gearboxAdapterType" | "_gearboxAdapterVersion" | "allowance" | "approve" | "balanceOf" | "creditFacade" | "creditManager" | "decimals" | "deposit(uint256,address)" | "deposit(uint256)" | "deposit()" | "name" | "pricePerShare" | "symbol" | "targetContract" | "token" | "totalSupply" | "transfer" | "transferFrom" | "withdraw(uint256,address)" | "withdraw(uint256)" | "withdraw()" | "withdraw(uint256,address,uint256)"): FunctionFragment;
|
|
32
|
+
encodeFunctionData(functionFragment: "_gearboxAdapterType", values?: undefined): string;
|
|
33
|
+
encodeFunctionData(functionFragment: "_gearboxAdapterVersion", values?: undefined): string;
|
|
34
|
+
encodeFunctionData(functionFragment: "allowance", values: [string, string]): string;
|
|
35
|
+
encodeFunctionData(functionFragment: "approve", values: [string, BigNumberish]): string;
|
|
36
|
+
encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
|
|
37
|
+
encodeFunctionData(functionFragment: "creditFacade", values?: undefined): string;
|
|
38
|
+
encodeFunctionData(functionFragment: "creditManager", values?: undefined): string;
|
|
39
|
+
encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
|
|
40
|
+
encodeFunctionData(functionFragment: "deposit(uint256,address)", values: [BigNumberish, string]): string;
|
|
41
|
+
encodeFunctionData(functionFragment: "deposit(uint256)", values: [BigNumberish]): string;
|
|
42
|
+
encodeFunctionData(functionFragment: "deposit()", values?: undefined): string;
|
|
43
|
+
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
|
44
|
+
encodeFunctionData(functionFragment: "pricePerShare", values?: undefined): string;
|
|
45
|
+
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
|
|
46
|
+
encodeFunctionData(functionFragment: "targetContract", values?: undefined): string;
|
|
47
|
+
encodeFunctionData(functionFragment: "token", values?: undefined): string;
|
|
48
|
+
encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
|
|
49
|
+
encodeFunctionData(functionFragment: "transfer", values: [string, BigNumberish]): string;
|
|
50
|
+
encodeFunctionData(functionFragment: "transferFrom", values: [string, string, BigNumberish]): string;
|
|
51
|
+
encodeFunctionData(functionFragment: "withdraw(uint256,address)", values: [BigNumberish, string]): string;
|
|
52
|
+
encodeFunctionData(functionFragment: "withdraw(uint256)", values: [BigNumberish]): string;
|
|
53
|
+
encodeFunctionData(functionFragment: "withdraw()", values?: undefined): string;
|
|
54
|
+
encodeFunctionData(functionFragment: "withdraw(uint256,address,uint256)", values: [BigNumberish, string, BigNumberish]): string;
|
|
55
|
+
decodeFunctionResult(functionFragment: "_gearboxAdapterType", data: BytesLike): Result;
|
|
56
|
+
decodeFunctionResult(functionFragment: "_gearboxAdapterVersion", data: BytesLike): Result;
|
|
57
|
+
decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
|
|
58
|
+
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
59
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
60
|
+
decodeFunctionResult(functionFragment: "creditFacade", data: BytesLike): Result;
|
|
61
|
+
decodeFunctionResult(functionFragment: "creditManager", data: BytesLike): Result;
|
|
62
|
+
decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
|
|
63
|
+
decodeFunctionResult(functionFragment: "deposit(uint256,address)", data: BytesLike): Result;
|
|
64
|
+
decodeFunctionResult(functionFragment: "deposit(uint256)", data: BytesLike): Result;
|
|
65
|
+
decodeFunctionResult(functionFragment: "deposit()", data: BytesLike): Result;
|
|
66
|
+
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
|
67
|
+
decodeFunctionResult(functionFragment: "pricePerShare", data: BytesLike): Result;
|
|
68
|
+
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
|
69
|
+
decodeFunctionResult(functionFragment: "targetContract", data: BytesLike): Result;
|
|
70
|
+
decodeFunctionResult(functionFragment: "token", data: BytesLike): Result;
|
|
71
|
+
decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
|
|
72
|
+
decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
|
|
73
|
+
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
74
|
+
decodeFunctionResult(functionFragment: "withdraw(uint256,address)", data: BytesLike): Result;
|
|
75
|
+
decodeFunctionResult(functionFragment: "withdraw(uint256)", data: BytesLike): Result;
|
|
76
|
+
decodeFunctionResult(functionFragment: "withdraw()", data: BytesLike): Result;
|
|
77
|
+
decodeFunctionResult(functionFragment: "withdraw(uint256,address,uint256)", data: BytesLike): Result;
|
|
78
|
+
events: {
|
|
79
|
+
"Approval(address,address,uint256)": EventFragment;
|
|
80
|
+
"Transfer(address,address,uint256)": EventFragment;
|
|
81
|
+
};
|
|
82
|
+
getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment;
|
|
83
|
+
getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment;
|
|
84
|
+
}
|
|
85
|
+
export interface ApprovalEventObject {
|
|
86
|
+
owner: string;
|
|
87
|
+
spender: string;
|
|
88
|
+
value: BigNumber;
|
|
89
|
+
}
|
|
90
|
+
export declare type ApprovalEvent = TypedEvent<[
|
|
91
|
+
string,
|
|
92
|
+
string,
|
|
93
|
+
BigNumber
|
|
94
|
+
], ApprovalEventObject>;
|
|
95
|
+
export declare type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
96
|
+
export interface TransferEventObject {
|
|
97
|
+
from: string;
|
|
98
|
+
to: string;
|
|
99
|
+
value: BigNumber;
|
|
100
|
+
}
|
|
101
|
+
export declare type TransferEvent = TypedEvent<[
|
|
102
|
+
string,
|
|
103
|
+
string,
|
|
104
|
+
BigNumber
|
|
105
|
+
], TransferEventObject>;
|
|
106
|
+
export declare type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
107
|
+
export interface IYearnV2Adapter extends BaseContract {
|
|
108
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
109
|
+
attach(addressOrName: string): this;
|
|
110
|
+
deployed(): Promise<this>;
|
|
111
|
+
interface: IYearnV2AdapterInterface;
|
|
112
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
113
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
114
|
+
listeners(eventName?: string): Array<Listener>;
|
|
115
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
116
|
+
removeAllListeners(eventName?: string): this;
|
|
117
|
+
off: OnEvent<this>;
|
|
118
|
+
on: OnEvent<this>;
|
|
119
|
+
once: OnEvent<this>;
|
|
120
|
+
removeListener: OnEvent<this>;
|
|
121
|
+
functions: {
|
|
122
|
+
_gearboxAdapterType(overrides?: CallOverrides): Promise<[number]>;
|
|
123
|
+
_gearboxAdapterVersion(overrides?: CallOverrides): Promise<[number]>;
|
|
124
|
+
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
125
|
+
approve(spender: string, amount: BigNumberish, overrides?: Overrides & {
|
|
126
|
+
from?: string | Promise<string>;
|
|
127
|
+
}): Promise<ContractTransaction>;
|
|
128
|
+
balanceOf(account: string, overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
129
|
+
creditFacade(overrides?: CallOverrides): Promise<[string]>;
|
|
130
|
+
creditManager(overrides?: CallOverrides): Promise<[string]>;
|
|
131
|
+
decimals(overrides?: CallOverrides): Promise<[number]>;
|
|
132
|
+
"deposit(uint256,address)"(_amount: BigNumberish, recipient: string, overrides?: Overrides & {
|
|
133
|
+
from?: string | Promise<string>;
|
|
134
|
+
}): Promise<ContractTransaction>;
|
|
135
|
+
"deposit(uint256)"(_amount: BigNumberish, overrides?: Overrides & {
|
|
136
|
+
from?: string | Promise<string>;
|
|
137
|
+
}): Promise<ContractTransaction>;
|
|
138
|
+
"deposit()"(overrides?: Overrides & {
|
|
139
|
+
from?: string | Promise<string>;
|
|
140
|
+
}): Promise<ContractTransaction>;
|
|
141
|
+
name(overrides?: CallOverrides): Promise<[string]>;
|
|
142
|
+
pricePerShare(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
143
|
+
symbol(overrides?: CallOverrides): Promise<[string]>;
|
|
144
|
+
targetContract(overrides?: CallOverrides): Promise<[string]>;
|
|
145
|
+
token(overrides?: CallOverrides): Promise<[string]>;
|
|
146
|
+
totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
147
|
+
transfer(recipient: string, amount: BigNumberish, overrides?: Overrides & {
|
|
148
|
+
from?: string | Promise<string>;
|
|
149
|
+
}): Promise<ContractTransaction>;
|
|
150
|
+
transferFrom(sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides & {
|
|
151
|
+
from?: string | Promise<string>;
|
|
152
|
+
}): Promise<ContractTransaction>;
|
|
153
|
+
"withdraw(uint256,address)"(maxShares: BigNumberish, recipient: string, overrides?: Overrides & {
|
|
154
|
+
from?: string | Promise<string>;
|
|
155
|
+
}): Promise<ContractTransaction>;
|
|
156
|
+
"withdraw(uint256)"(maxShares: BigNumberish, overrides?: Overrides & {
|
|
157
|
+
from?: string | Promise<string>;
|
|
158
|
+
}): Promise<ContractTransaction>;
|
|
159
|
+
"withdraw()"(overrides?: Overrides & {
|
|
160
|
+
from?: string | Promise<string>;
|
|
161
|
+
}): Promise<ContractTransaction>;
|
|
162
|
+
"withdraw(uint256,address,uint256)"(maxShares: BigNumberish, recipient: string, maxLoss: BigNumberish, overrides?: Overrides & {
|
|
163
|
+
from?: string | Promise<string>;
|
|
164
|
+
}): Promise<ContractTransaction>;
|
|
165
|
+
};
|
|
166
|
+
_gearboxAdapterType(overrides?: CallOverrides): Promise<number>;
|
|
167
|
+
_gearboxAdapterVersion(overrides?: CallOverrides): Promise<number>;
|
|
168
|
+
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
169
|
+
approve(spender: string, amount: BigNumberish, overrides?: Overrides & {
|
|
170
|
+
from?: string | Promise<string>;
|
|
171
|
+
}): Promise<ContractTransaction>;
|
|
172
|
+
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
173
|
+
creditFacade(overrides?: CallOverrides): Promise<string>;
|
|
174
|
+
creditManager(overrides?: CallOverrides): Promise<string>;
|
|
175
|
+
decimals(overrides?: CallOverrides): Promise<number>;
|
|
176
|
+
"deposit(uint256,address)"(_amount: BigNumberish, recipient: string, overrides?: Overrides & {
|
|
177
|
+
from?: string | Promise<string>;
|
|
178
|
+
}): Promise<ContractTransaction>;
|
|
179
|
+
"deposit(uint256)"(_amount: BigNumberish, overrides?: Overrides & {
|
|
180
|
+
from?: string | Promise<string>;
|
|
181
|
+
}): Promise<ContractTransaction>;
|
|
182
|
+
"deposit()"(overrides?: Overrides & {
|
|
183
|
+
from?: string | Promise<string>;
|
|
184
|
+
}): Promise<ContractTransaction>;
|
|
185
|
+
name(overrides?: CallOverrides): Promise<string>;
|
|
186
|
+
pricePerShare(overrides?: CallOverrides): Promise<BigNumber>;
|
|
187
|
+
symbol(overrides?: CallOverrides): Promise<string>;
|
|
188
|
+
targetContract(overrides?: CallOverrides): Promise<string>;
|
|
189
|
+
token(overrides?: CallOverrides): Promise<string>;
|
|
190
|
+
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
|
191
|
+
transfer(recipient: string, amount: BigNumberish, overrides?: Overrides & {
|
|
192
|
+
from?: string | Promise<string>;
|
|
193
|
+
}): Promise<ContractTransaction>;
|
|
194
|
+
transferFrom(sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides & {
|
|
195
|
+
from?: string | Promise<string>;
|
|
196
|
+
}): Promise<ContractTransaction>;
|
|
197
|
+
"withdraw(uint256,address)"(maxShares: BigNumberish, recipient: string, overrides?: Overrides & {
|
|
198
|
+
from?: string | Promise<string>;
|
|
199
|
+
}): Promise<ContractTransaction>;
|
|
200
|
+
"withdraw(uint256)"(maxShares: BigNumberish, overrides?: Overrides & {
|
|
201
|
+
from?: string | Promise<string>;
|
|
202
|
+
}): Promise<ContractTransaction>;
|
|
203
|
+
"withdraw()"(overrides?: Overrides & {
|
|
204
|
+
from?: string | Promise<string>;
|
|
205
|
+
}): Promise<ContractTransaction>;
|
|
206
|
+
"withdraw(uint256,address,uint256)"(maxShares: BigNumberish, recipient: string, maxLoss: BigNumberish, overrides?: Overrides & {
|
|
207
|
+
from?: string | Promise<string>;
|
|
208
|
+
}): Promise<ContractTransaction>;
|
|
209
|
+
callStatic: {
|
|
210
|
+
_gearboxAdapterType(overrides?: CallOverrides): Promise<number>;
|
|
211
|
+
_gearboxAdapterVersion(overrides?: CallOverrides): Promise<number>;
|
|
212
|
+
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
213
|
+
approve(spender: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
|
214
|
+
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
215
|
+
creditFacade(overrides?: CallOverrides): Promise<string>;
|
|
216
|
+
creditManager(overrides?: CallOverrides): Promise<string>;
|
|
217
|
+
decimals(overrides?: CallOverrides): Promise<number>;
|
|
218
|
+
"deposit(uint256,address)"(_amount: BigNumberish, recipient: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
219
|
+
"deposit(uint256)"(_amount: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
220
|
+
"deposit()"(overrides?: CallOverrides): Promise<BigNumber>;
|
|
221
|
+
name(overrides?: CallOverrides): Promise<string>;
|
|
222
|
+
pricePerShare(overrides?: CallOverrides): Promise<BigNumber>;
|
|
223
|
+
symbol(overrides?: CallOverrides): Promise<string>;
|
|
224
|
+
targetContract(overrides?: CallOverrides): Promise<string>;
|
|
225
|
+
token(overrides?: CallOverrides): Promise<string>;
|
|
226
|
+
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
|
227
|
+
transfer(recipient: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
|
228
|
+
transferFrom(sender: string, recipient: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
|
229
|
+
"withdraw(uint256,address)"(maxShares: BigNumberish, recipient: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
230
|
+
"withdraw(uint256)"(maxShares: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
231
|
+
"withdraw()"(overrides?: CallOverrides): Promise<BigNumber>;
|
|
232
|
+
"withdraw(uint256,address,uint256)"(maxShares: BigNumberish, recipient: string, maxLoss: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
233
|
+
};
|
|
234
|
+
filters: {
|
|
235
|
+
"Approval(address,address,uint256)"(owner?: string | null, spender?: string | null, value?: null): ApprovalEventFilter;
|
|
236
|
+
Approval(owner?: string | null, spender?: string | null, value?: null): ApprovalEventFilter;
|
|
237
|
+
"Transfer(address,address,uint256)"(from?: string | null, to?: string | null, value?: null): TransferEventFilter;
|
|
238
|
+
Transfer(from?: string | null, to?: string | null, value?: null): TransferEventFilter;
|
|
239
|
+
};
|
|
240
|
+
estimateGas: {
|
|
241
|
+
_gearboxAdapterType(overrides?: CallOverrides): Promise<BigNumber>;
|
|
242
|
+
_gearboxAdapterVersion(overrides?: CallOverrides): Promise<BigNumber>;
|
|
243
|
+
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
244
|
+
approve(spender: string, amount: BigNumberish, overrides?: Overrides & {
|
|
245
|
+
from?: string | Promise<string>;
|
|
246
|
+
}): Promise<BigNumber>;
|
|
247
|
+
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
248
|
+
creditFacade(overrides?: CallOverrides): Promise<BigNumber>;
|
|
249
|
+
creditManager(overrides?: CallOverrides): Promise<BigNumber>;
|
|
250
|
+
decimals(overrides?: CallOverrides): Promise<BigNumber>;
|
|
251
|
+
"deposit(uint256,address)"(_amount: BigNumberish, recipient: string, overrides?: Overrides & {
|
|
252
|
+
from?: string | Promise<string>;
|
|
253
|
+
}): Promise<BigNumber>;
|
|
254
|
+
"deposit(uint256)"(_amount: BigNumberish, overrides?: Overrides & {
|
|
255
|
+
from?: string | Promise<string>;
|
|
256
|
+
}): Promise<BigNumber>;
|
|
257
|
+
"deposit()"(overrides?: Overrides & {
|
|
258
|
+
from?: string | Promise<string>;
|
|
259
|
+
}): Promise<BigNumber>;
|
|
260
|
+
name(overrides?: CallOverrides): Promise<BigNumber>;
|
|
261
|
+
pricePerShare(overrides?: CallOverrides): Promise<BigNumber>;
|
|
262
|
+
symbol(overrides?: CallOverrides): Promise<BigNumber>;
|
|
263
|
+
targetContract(overrides?: CallOverrides): Promise<BigNumber>;
|
|
264
|
+
token(overrides?: CallOverrides): Promise<BigNumber>;
|
|
265
|
+
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
|
266
|
+
transfer(recipient: string, amount: BigNumberish, overrides?: Overrides & {
|
|
267
|
+
from?: string | Promise<string>;
|
|
268
|
+
}): Promise<BigNumber>;
|
|
269
|
+
transferFrom(sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides & {
|
|
270
|
+
from?: string | Promise<string>;
|
|
271
|
+
}): Promise<BigNumber>;
|
|
272
|
+
"withdraw(uint256,address)"(maxShares: BigNumberish, recipient: string, overrides?: Overrides & {
|
|
273
|
+
from?: string | Promise<string>;
|
|
274
|
+
}): Promise<BigNumber>;
|
|
275
|
+
"withdraw(uint256)"(maxShares: BigNumberish, overrides?: Overrides & {
|
|
276
|
+
from?: string | Promise<string>;
|
|
277
|
+
}): Promise<BigNumber>;
|
|
278
|
+
"withdraw()"(overrides?: Overrides & {
|
|
279
|
+
from?: string | Promise<string>;
|
|
280
|
+
}): Promise<BigNumber>;
|
|
281
|
+
"withdraw(uint256,address,uint256)"(maxShares: BigNumberish, recipient: string, maxLoss: BigNumberish, overrides?: Overrides & {
|
|
282
|
+
from?: string | Promise<string>;
|
|
283
|
+
}): Promise<BigNumber>;
|
|
284
|
+
};
|
|
285
|
+
populateTransaction: {
|
|
286
|
+
_gearboxAdapterType(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
287
|
+
_gearboxAdapterVersion(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
288
|
+
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
289
|
+
approve(spender: string, amount: BigNumberish, overrides?: Overrides & {
|
|
290
|
+
from?: string | Promise<string>;
|
|
291
|
+
}): Promise<PopulatedTransaction>;
|
|
292
|
+
balanceOf(account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
293
|
+
creditFacade(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
294
|
+
creditManager(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
295
|
+
decimals(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
296
|
+
"deposit(uint256,address)"(_amount: BigNumberish, recipient: string, overrides?: Overrides & {
|
|
297
|
+
from?: string | Promise<string>;
|
|
298
|
+
}): Promise<PopulatedTransaction>;
|
|
299
|
+
"deposit(uint256)"(_amount: BigNumberish, overrides?: Overrides & {
|
|
300
|
+
from?: string | Promise<string>;
|
|
301
|
+
}): Promise<PopulatedTransaction>;
|
|
302
|
+
"deposit()"(overrides?: Overrides & {
|
|
303
|
+
from?: string | Promise<string>;
|
|
304
|
+
}): Promise<PopulatedTransaction>;
|
|
305
|
+
name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
306
|
+
pricePerShare(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
307
|
+
symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
308
|
+
targetContract(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
309
|
+
token(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
310
|
+
totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
311
|
+
transfer(recipient: string, amount: BigNumberish, overrides?: Overrides & {
|
|
312
|
+
from?: string | Promise<string>;
|
|
313
|
+
}): Promise<PopulatedTransaction>;
|
|
314
|
+
transferFrom(sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides & {
|
|
315
|
+
from?: string | Promise<string>;
|
|
316
|
+
}): Promise<PopulatedTransaction>;
|
|
317
|
+
"withdraw(uint256,address)"(maxShares: BigNumberish, recipient: string, overrides?: Overrides & {
|
|
318
|
+
from?: string | Promise<string>;
|
|
319
|
+
}): Promise<PopulatedTransaction>;
|
|
320
|
+
"withdraw(uint256)"(maxShares: BigNumberish, overrides?: Overrides & {
|
|
321
|
+
from?: string | Promise<string>;
|
|
322
|
+
}): Promise<PopulatedTransaction>;
|
|
323
|
+
"withdraw()"(overrides?: Overrides & {
|
|
324
|
+
from?: string | Promise<string>;
|
|
325
|
+
}): Promise<PopulatedTransaction>;
|
|
326
|
+
"withdraw(uint256,address,uint256)"(maxShares: BigNumberish, recipient: string, maxLoss: BigNumberish, overrides?: Overrides & {
|
|
327
|
+
from?: string | Promise<string>;
|
|
328
|
+
}): Promise<PopulatedTransaction>;
|
|
329
|
+
};
|
|
330
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { IYearnV2Adapter } from "./IYearnV2Adapter";
|
|
@@ -12,11 +12,13 @@ export declare type BalanceStructOutput = [string, BigNumber] & {
|
|
|
12
12
|
};
|
|
13
13
|
export declare type TokenAdaptersStruct = {
|
|
14
14
|
token: string;
|
|
15
|
-
|
|
15
|
+
depositAdapter: string;
|
|
16
|
+
withdrawAdapter: string;
|
|
16
17
|
};
|
|
17
|
-
export declare type TokenAdaptersStructOutput = [string, string
|
|
18
|
+
export declare type TokenAdaptersStructOutput = [string, string, string] & {
|
|
18
19
|
token: string;
|
|
19
|
-
|
|
20
|
+
depositAdapter: string;
|
|
21
|
+
withdrawAdapter: string;
|
|
20
22
|
};
|
|
21
23
|
export declare type MultiCallStruct = {
|
|
22
24
|
target: string;
|
|
@@ -32,11 +34,12 @@ export declare type StrategyPathTaskStruct = {
|
|
|
32
34
|
target: string;
|
|
33
35
|
connectors: string[];
|
|
34
36
|
adapters: string[];
|
|
35
|
-
|
|
37
|
+
slippagePerStep: BigNumberish;
|
|
36
38
|
targetType: BigNumberish;
|
|
37
39
|
foundAdapters: TokenAdaptersStruct[];
|
|
38
40
|
gasPriceTargetRAY: BigNumberish;
|
|
39
41
|
gasUsage: BigNumberish;
|
|
42
|
+
slippageMultiplier: BigNumberish;
|
|
40
43
|
initTargetBalance: BigNumberish;
|
|
41
44
|
calls: MultiCallStruct[];
|
|
42
45
|
};
|
|
@@ -52,6 +55,7 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
52
55
|
BigNumber,
|
|
53
56
|
BigNumber,
|
|
54
57
|
BigNumber,
|
|
58
|
+
BigNumber,
|
|
55
59
|
MultiCallStructOutput[]
|
|
56
60
|
] & {
|
|
57
61
|
creditAccount: string;
|
|
@@ -59,11 +63,12 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
59
63
|
target: string;
|
|
60
64
|
connectors: string[];
|
|
61
65
|
adapters: string[];
|
|
62
|
-
|
|
66
|
+
slippagePerStep: BigNumber;
|
|
63
67
|
targetType: number;
|
|
64
68
|
foundAdapters: TokenAdaptersStructOutput[];
|
|
65
69
|
gasPriceTargetRAY: BigNumber;
|
|
66
70
|
gasUsage: BigNumber;
|
|
71
|
+
slippageMultiplier: BigNumber;
|
|
67
72
|
initTargetBalance: BigNumber;
|
|
68
73
|
calls: MultiCallStructOutput[];
|
|
69
74
|
};
|
|
@@ -79,11 +84,17 @@ export declare type PathOptionStructOutput = [string, number, number] & {
|
|
|
79
84
|
};
|
|
80
85
|
export interface IClosePathResolverInterface extends utils.Interface {
|
|
81
86
|
functions: {
|
|
82
|
-
"findBestClosePath((address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address
|
|
87
|
+
"findBestClosePath((address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address,address)[],uint256,uint256,uint256,uint256,(address,bytes)[]),(address,uint8,uint8)[],uint256)": FunctionFragment;
|
|
88
|
+
"getComponentId()": FunctionFragment;
|
|
89
|
+
"version()": FunctionFragment;
|
|
83
90
|
};
|
|
84
|
-
getFunction(nameOrSignatureOrTopic: "findBestClosePath"): FunctionFragment;
|
|
91
|
+
getFunction(nameOrSignatureOrTopic: "findBestClosePath" | "getComponentId" | "version"): FunctionFragment;
|
|
85
92
|
encodeFunctionData(functionFragment: "findBestClosePath", values: [StrategyPathTaskStruct, PathOptionStruct[], BigNumberish]): string;
|
|
93
|
+
encodeFunctionData(functionFragment: "getComponentId", values?: undefined): string;
|
|
94
|
+
encodeFunctionData(functionFragment: "version", values?: undefined): string;
|
|
86
95
|
decodeFunctionResult(functionFragment: "findBestClosePath", data: BytesLike): Result;
|
|
96
|
+
decodeFunctionResult(functionFragment: "getComponentId", data: BytesLike): Result;
|
|
97
|
+
decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
|
|
87
98
|
events: {};
|
|
88
99
|
}
|
|
89
100
|
export interface IClosePathResolver extends BaseContract {
|
|
@@ -104,22 +115,32 @@ export interface IClosePathResolver extends BaseContract {
|
|
|
104
115
|
findBestClosePath(task: StrategyPathTaskStruct, pathOptions: PathOptionStruct[], cycles: BigNumberish, overrides?: Overrides & {
|
|
105
116
|
from?: string | Promise<string>;
|
|
106
117
|
}): Promise<ContractTransaction>;
|
|
118
|
+
getComponentId(overrides?: CallOverrides): Promise<[number]>;
|
|
119
|
+
version(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
107
120
|
};
|
|
108
121
|
findBestClosePath(task: StrategyPathTaskStruct, pathOptions: PathOptionStruct[], cycles: BigNumberish, overrides?: Overrides & {
|
|
109
122
|
from?: string | Promise<string>;
|
|
110
123
|
}): Promise<ContractTransaction>;
|
|
124
|
+
getComponentId(overrides?: CallOverrides): Promise<number>;
|
|
125
|
+
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
111
126
|
callStatic: {
|
|
112
127
|
findBestClosePath(task: StrategyPathTaskStruct, pathOptions: PathOptionStruct[], cycles: BigNumberish, overrides?: CallOverrides): Promise<StrategyPathTaskStructOutput>;
|
|
128
|
+
getComponentId(overrides?: CallOverrides): Promise<number>;
|
|
129
|
+
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
113
130
|
};
|
|
114
131
|
filters: {};
|
|
115
132
|
estimateGas: {
|
|
116
133
|
findBestClosePath(task: StrategyPathTaskStruct, pathOptions: PathOptionStruct[], cycles: BigNumberish, overrides?: Overrides & {
|
|
117
134
|
from?: string | Promise<string>;
|
|
118
135
|
}): Promise<BigNumber>;
|
|
136
|
+
getComponentId(overrides?: CallOverrides): Promise<BigNumber>;
|
|
137
|
+
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
119
138
|
};
|
|
120
139
|
populateTransaction: {
|
|
121
140
|
findBestClosePath(task: StrategyPathTaskStruct, pathOptions: PathOptionStruct[], cycles: BigNumberish, overrides?: Overrides & {
|
|
122
141
|
from?: string | Promise<string>;
|
|
123
142
|
}): Promise<PopulatedTransaction>;
|
|
143
|
+
getComponentId(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
144
|
+
version(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
124
145
|
};
|
|
125
146
|
}
|
|
@@ -12,11 +12,13 @@ export declare type BalanceStructOutput = [string, BigNumber] & {
|
|
|
12
12
|
};
|
|
13
13
|
export declare type TokenAdaptersStruct = {
|
|
14
14
|
token: string;
|
|
15
|
-
|
|
15
|
+
depositAdapter: string;
|
|
16
|
+
withdrawAdapter: string;
|
|
16
17
|
};
|
|
17
|
-
export declare type TokenAdaptersStructOutput = [string, string
|
|
18
|
+
export declare type TokenAdaptersStructOutput = [string, string, string] & {
|
|
18
19
|
token: string;
|
|
19
|
-
|
|
20
|
+
depositAdapter: string;
|
|
21
|
+
withdrawAdapter: string;
|
|
20
22
|
};
|
|
21
23
|
export declare type MultiCallStruct = {
|
|
22
24
|
target: string;
|
|
@@ -32,11 +34,12 @@ export declare type StrategyPathTaskStruct = {
|
|
|
32
34
|
target: string;
|
|
33
35
|
connectors: string[];
|
|
34
36
|
adapters: string[];
|
|
35
|
-
|
|
37
|
+
slippagePerStep: BigNumberish;
|
|
36
38
|
targetType: BigNumberish;
|
|
37
39
|
foundAdapters: TokenAdaptersStruct[];
|
|
38
40
|
gasPriceTargetRAY: BigNumberish;
|
|
39
41
|
gasUsage: BigNumberish;
|
|
42
|
+
slippageMultiplier: BigNumberish;
|
|
40
43
|
initTargetBalance: BigNumberish;
|
|
41
44
|
calls: MultiCallStruct[];
|
|
42
45
|
};
|
|
@@ -52,6 +55,7 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
52
55
|
BigNumber,
|
|
53
56
|
BigNumber,
|
|
54
57
|
BigNumber,
|
|
58
|
+
BigNumber,
|
|
55
59
|
MultiCallStructOutput[]
|
|
56
60
|
] & {
|
|
57
61
|
creditAccount: string;
|
|
@@ -59,27 +63,34 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
59
63
|
target: string;
|
|
60
64
|
connectors: string[];
|
|
61
65
|
adapters: string[];
|
|
62
|
-
|
|
66
|
+
slippagePerStep: BigNumber;
|
|
63
67
|
targetType: number;
|
|
64
68
|
foundAdapters: TokenAdaptersStructOutput[];
|
|
65
69
|
gasPriceTargetRAY: BigNumber;
|
|
66
70
|
gasUsage: BigNumber;
|
|
71
|
+
slippageMultiplier: BigNumber;
|
|
67
72
|
initTargetBalance: BigNumber;
|
|
68
73
|
calls: MultiCallStructOutput[];
|
|
69
74
|
};
|
|
70
75
|
export interface IDepositorInterface extends utils.Interface {
|
|
71
76
|
functions: {
|
|
72
|
-
"deposit(uint256,address,(address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address
|
|
73
|
-
"depositAll(address,(address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address
|
|
74
|
-
"
|
|
77
|
+
"deposit(uint256,address,(address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address,address)[],uint256,uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
78
|
+
"depositAll(address,(address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address,address)[],uint256,uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
79
|
+
"getComponentId()": FunctionFragment;
|
|
80
|
+
"getUnderlying(address,(address,(address,uint256)[],address,address[],address[],uint256,uint8,(address,address,address)[],uint256,uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
81
|
+
"version()": FunctionFragment;
|
|
75
82
|
};
|
|
76
|
-
getFunction(nameOrSignatureOrTopic: "deposit" | "depositAll" | "getUnderlying"): FunctionFragment;
|
|
83
|
+
getFunction(nameOrSignatureOrTopic: "deposit" | "depositAll" | "getComponentId" | "getUnderlying" | "version"): FunctionFragment;
|
|
77
84
|
encodeFunctionData(functionFragment: "deposit", values: [BigNumberish, string, StrategyPathTaskStruct]): string;
|
|
78
85
|
encodeFunctionData(functionFragment: "depositAll", values: [string, StrategyPathTaskStruct]): string;
|
|
86
|
+
encodeFunctionData(functionFragment: "getComponentId", values?: undefined): string;
|
|
79
87
|
encodeFunctionData(functionFragment: "getUnderlying", values: [string, StrategyPathTaskStruct]): string;
|
|
88
|
+
encodeFunctionData(functionFragment: "version", values?: undefined): string;
|
|
80
89
|
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
|
81
90
|
decodeFunctionResult(functionFragment: "depositAll", data: BytesLike): Result;
|
|
91
|
+
decodeFunctionResult(functionFragment: "getComponentId", data: BytesLike): Result;
|
|
82
92
|
decodeFunctionResult(functionFragment: "getUnderlying", data: BytesLike): Result;
|
|
93
|
+
decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
|
|
83
94
|
events: {};
|
|
84
95
|
}
|
|
85
96
|
export interface IDepositor extends BaseContract {
|
|
@@ -109,9 +120,11 @@ export interface IDepositor extends BaseContract {
|
|
|
109
120
|
] & {
|
|
110
121
|
amountOut: BigNumber;
|
|
111
122
|
}>;
|
|
123
|
+
getComponentId(overrides?: CallOverrides): Promise<[number]>;
|
|
112
124
|
getUnderlying(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[string, StrategyPathTaskStructOutput] & {
|
|
113
125
|
tokenIn: string;
|
|
114
126
|
}>;
|
|
127
|
+
version(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
115
128
|
};
|
|
116
129
|
deposit(amountIn: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
|
|
117
130
|
BigNumber,
|
|
@@ -125,9 +138,11 @@ export interface IDepositor extends BaseContract {
|
|
|
125
138
|
] & {
|
|
126
139
|
amountOut: BigNumber;
|
|
127
140
|
}>;
|
|
141
|
+
getComponentId(overrides?: CallOverrides): Promise<number>;
|
|
128
142
|
getUnderlying(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[string, StrategyPathTaskStructOutput] & {
|
|
129
143
|
tokenIn: string;
|
|
130
144
|
}>;
|
|
145
|
+
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
131
146
|
callStatic: {
|
|
132
147
|
deposit(amountIn: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[
|
|
133
148
|
BigNumber,
|
|
@@ -141,19 +156,25 @@ export interface IDepositor extends BaseContract {
|
|
|
141
156
|
] & {
|
|
142
157
|
amountOut: BigNumber;
|
|
143
158
|
}>;
|
|
159
|
+
getComponentId(overrides?: CallOverrides): Promise<number>;
|
|
144
160
|
getUnderlying(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<[string, StrategyPathTaskStructOutput] & {
|
|
145
161
|
tokenIn: string;
|
|
146
162
|
}>;
|
|
163
|
+
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
147
164
|
};
|
|
148
165
|
filters: {};
|
|
149
166
|
estimateGas: {
|
|
150
167
|
deposit(amountIn: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<BigNumber>;
|
|
151
168
|
depositAll(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<BigNumber>;
|
|
169
|
+
getComponentId(overrides?: CallOverrides): Promise<BigNumber>;
|
|
152
170
|
getUnderlying(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<BigNumber>;
|
|
171
|
+
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
153
172
|
};
|
|
154
173
|
populateTransaction: {
|
|
155
174
|
deposit(amountIn: BigNumberish, tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
156
175
|
depositAll(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
176
|
+
getComponentId(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
157
177
|
getUnderlying(tokenOut: string, task: StrategyPathTaskStruct, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
178
|
+
version(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
158
179
|
};
|
|
159
180
|
}
|