@gearbox-protocol/sdk 1.20.21 → 1.20.23
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/README.md +4 -0
- package/lib/apy/convexAPY.d.ts +2 -2
- package/lib/apy/curveAPY.d.ts +2 -2
- package/lib/apy/curveAPY.js +4 -2
- package/lib/apy/index.d.ts +3 -3
- package/lib/apy/lidoAPY.js +1 -1
- package/lib/apy/yearnAPY.d.ts +1 -1
- package/lib/apy/yearnAPY.js +1 -1
- package/lib/contracts/adapters.d.ts +2 -1
- package/lib/contracts/adapters.js +1 -0
- package/lib/contracts/contracts.d.ts +21 -17
- package/lib/contracts/contracts.js +27 -8
- package/lib/contracts/contractsRegister.d.ts +1 -1
- package/lib/contracts/protocols.d.ts +2 -1
- package/lib/contracts/protocols.js +5 -0
- package/lib/core/assets.d.ts +1 -1
- package/lib/core/chains.d.ts +1 -1
- package/lib/core/chains.js +1 -1
- package/lib/core/creditSession.d.ts +6 -5
- package/lib/core/creditSession.js +1 -0
- package/lib/core/errors.d.ts +1 -1
- package/lib/core/eventOrTx.d.ts +4 -4
- package/lib/core/events.d.ts +2 -2
- package/lib/core/history.d.ts +2 -2
- package/lib/core/pool/data.js +1 -1
- package/lib/core/pool/operation.d.ts +1 -1
- package/lib/core/rewardClaimer.js +1 -1
- package/lib/core/rewardConvex.js +1 -1
- package/lib/core/strategy.d.ts +1 -1
- package/lib/core/trade.d.ts +1 -1
- package/lib/core/trade.js +1 -1
- package/lib/core/transactions.d.ts +1 -1
- package/lib/core/wcOperation/index.d.ts +2 -2
- package/lib/core/wcOperation/operations.d.ts +5 -5
- package/lib/oracles/oracles.d.ts +13 -2
- package/lib/oracles/oracles.js +5 -0
- package/lib/oracles/priceFeeds.js +56 -0
- package/lib/pathfinder/pathOptions.d.ts +1 -1
- package/lib/pathfinder/pathfinder.js +1 -1
- package/lib/pathfinder/tradeTypes.d.ts +13 -2
- package/lib/pathfinder/tradeTypes.js +2 -0
- package/lib/payload/creditAccount.d.ts +2 -2
- package/lib/payload/creditManager.d.ts +1 -1
- package/lib/payload/creditSession.d.ts +1 -0
- package/lib/payload/pool.d.ts +1 -1
- package/lib/tokens/balancer.d.ts +22 -0
- package/lib/tokens/balancer.js +53 -0
- package/lib/tokens/convex.d.ts +5 -5
- package/lib/tokens/convex.js +42 -0
- package/lib/tokens/curveLP.d.ts +4 -4
- package/lib/tokens/curveLP.js +23 -0
- package/lib/tokens/decimals.js +7 -0
- package/lib/tokens/gear.d.ts +4 -4
- package/lib/tokens/normal.d.ts +2 -2
- package/lib/tokens/normal.js +35 -0
- package/lib/tokens/token.d.ts +5 -4
- package/lib/tokens/token.js +18 -1
- package/lib/tokens/tokenData.d.ts +1 -1
- package/lib/tokens/tokenType.d.ts +2 -1
- package/lib/tokens/tokenType.js +1 -0
- package/lib/tokens/yearn.d.ts +4 -4
- package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.d.ts +4 -4
- package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IACL.sol/IACL.d.ts +8 -8
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IACL.sol/IACLEvents.d.ts +8 -8
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IAccountFactory.sol/IAccountFactory.d.ts +10 -10
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IAccountFactory.sol/IAccountFactoryEvents.d.ts +10 -10
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IAddressProvider.sol/IAddressProvider.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IAddressProvider.sol/IAddressProviderEvents.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IAirdropDistributor.sol/IAirdropDistributor.d.ts +6 -6
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IAirdropDistributor.sol/IAirdropDistributorEvents.d.ts +6 -6
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IContractsRegister.sol/IContractsRegister.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IContractsRegister.sol/IContractsRegisterEvents.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator.d.ts +38 -38
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents.d.ts +38 -38
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacade.d.ts +28 -28
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeEvents.d.ts +26 -26
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2Events.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IDataCompressor.sol/IDataCompressor.d.ts +10 -10
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IDegenDistributor.sol/IDegenDistributor.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IDegenDistributor.sol/IDegenDistributorEvents.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IDegenNFT.sol/IDegenNFT.d.ts +12 -12
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IDegenNFT.sol/IDegenNFTEvents.d.ts +6 -6
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IDieselToken.sol/IDieselToken.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ILPPriceFeed.sol/ILPPriceFeed.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ILPPriceFeed.sol/ILPPriceFeedEvents.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IPhantomERC20.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IPoolService.sol/IPoolService.d.ts +20 -20
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IPoolService.sol/IPoolServiceEvents.d.ts +20 -20
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2Events.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2Ext.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/V1/ICreditFilter.d.ts +16 -16
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/V1/ICreditManager.d.ts +20 -20
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IUniversalAdapter.sol/IUniversalAdapter.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/pool/PoolService.d.ts +24 -24
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IConvexToken.d.ts +4 -4
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IstETH.sol/IstETH.d.ts +4 -4
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IstETH.sol/IstETHGetters.d.ts +4 -4
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IwstETH.sol/IwstETH.d.ts +4 -4
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IwstETH.sol/IwstETHGetters.d.ts +4 -4
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/integrations/yearn/IYVault.d.ts +4 -4
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/ILidoV1Adapter.sol/ILidoV1Adapter.d.ts +2 -2
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/ILidoV1Adapter.sol/ILidoV1AdapterEvents.d.ts +2 -2
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/yearn/IYearnV2Adapter.d.ts +4 -4
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents.d.ts +2 -2
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IClosePathResolver.d.ts +10 -10
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IDepositor.sol/IDepositor.d.ts +8 -8
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IDepositor.sol/IDepositorOptions.d.ts +8 -8
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/ILPWorker.sol/ILPWorker.d.ts +8 -8
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/ILPWorker.sol/ILPWorkerOptions.d.ts +8 -8
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IPathResolver.d.ts +8 -8
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IRouter.d.ts +16 -16
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/ISwapAggregator.d.ts +12 -12
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/ISwapper.d.ts +6 -6
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IWithdrawer.sol/IWithdrawer.d.ts +8 -8
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IWithdrawer.sol/IWithdrawerOptions.d.ts +10 -10
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IWrapper.d.ts +6 -6
- package/lib/types/@openzeppelin/contracts/token/ERC20/IERC20.d.ts +4 -4
- package/lib/types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.d.ts +4 -4
- package/lib/types/@openzeppelin/contracts/token/ERC721/IERC721.d.ts +6 -6
- package/lib/types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.d.ts +6 -6
- package/lib/types/common.d.ts +4 -4
- package/lib/types/contracts/ITokenDistributor.sol/ITokenDistributor.d.ts +8 -8
- package/lib/types/contracts/ITokenDistributor.sol/ITokenDistributorEvents.d.ts +8 -8
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/pool/PoolService__factory.d.ts +1 -1
- package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.d.ts +1 -1
- package/lib/utils/mappers.d.ts +1 -1
- package/lib/utils/multicall.js +1 -1
- package/lib/utils/repeater.js +1 -1
- package/lib/utils/types.d.ts +5 -5
- package/lib/watchers/creditAccountWatcher.d.ts +1 -1
- package/lib/watchers/creditAccountWatcher.js +1 -1
- package/lib/watchers/creditManagerWatcher.js +1 -1
- package/package.json +1 -1
|
@@ -60,23 +60,23 @@ export interface ApprovalEventObject {
|
|
|
60
60
|
spender: string;
|
|
61
61
|
value: BigNumber;
|
|
62
62
|
}
|
|
63
|
-
export
|
|
63
|
+
export type ApprovalEvent = TypedEvent<[
|
|
64
64
|
string,
|
|
65
65
|
string,
|
|
66
66
|
BigNumber
|
|
67
67
|
], ApprovalEventObject>;
|
|
68
|
-
export
|
|
68
|
+
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
69
69
|
export interface TransferEventObject {
|
|
70
70
|
from: string;
|
|
71
71
|
to: string;
|
|
72
72
|
value: BigNumber;
|
|
73
73
|
}
|
|
74
|
-
export
|
|
74
|
+
export type TransferEvent = TypedEvent<[
|
|
75
75
|
string,
|
|
76
76
|
string,
|
|
77
77
|
BigNumber
|
|
78
78
|
], TransferEventObject>;
|
|
79
|
-
export
|
|
79
|
+
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
80
80
|
export interface IwstETHGetters extends BaseContract {
|
|
81
81
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
82
82
|
attach(addressOrName: string): this;
|
package/lib/types/@gearbox-protocol/integrations-v2/contracts/integrations/yearn/IYVault.d.ts
CHANGED
|
@@ -72,23 +72,23 @@ export interface ApprovalEventObject {
|
|
|
72
72
|
spender: string;
|
|
73
73
|
value: BigNumber;
|
|
74
74
|
}
|
|
75
|
-
export
|
|
75
|
+
export type ApprovalEvent = TypedEvent<[
|
|
76
76
|
string,
|
|
77
77
|
string,
|
|
78
78
|
BigNumber
|
|
79
79
|
], ApprovalEventObject>;
|
|
80
|
-
export
|
|
80
|
+
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
81
81
|
export interface TransferEventObject {
|
|
82
82
|
from: string;
|
|
83
83
|
to: string;
|
|
84
84
|
value: BigNumber;
|
|
85
85
|
}
|
|
86
|
-
export
|
|
86
|
+
export type TransferEvent = TypedEvent<[
|
|
87
87
|
string,
|
|
88
88
|
string,
|
|
89
89
|
BigNumber
|
|
90
90
|
], TransferEventObject>;
|
|
91
|
-
export
|
|
91
|
+
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
92
92
|
export interface IYVault extends BaseContract {
|
|
93
93
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
94
94
|
attach(addressOrName: string): this;
|
|
@@ -77,8 +77,8 @@ export interface ILidoV1AdapterInterface extends utils.Interface {
|
|
|
77
77
|
export interface NewLimitEventObject {
|
|
78
78
|
_limit: BigNumber;
|
|
79
79
|
}
|
|
80
|
-
export
|
|
81
|
-
export
|
|
80
|
+
export type NewLimitEvent = TypedEvent<[BigNumber], NewLimitEventObject>;
|
|
81
|
+
export type NewLimitEventFilter = TypedEventFilter<NewLimitEvent>;
|
|
82
82
|
export interface ILidoV1Adapter extends BaseContract {
|
|
83
83
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
84
84
|
attach(addressOrName: string): this;
|
|
@@ -12,8 +12,8 @@ export interface ILidoV1AdapterEventsInterface extends utils.Interface {
|
|
|
12
12
|
export interface NewLimitEventObject {
|
|
13
13
|
_limit: BigNumber;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
16
|
-
export
|
|
15
|
+
export type NewLimitEvent = TypedEvent<[BigNumber], NewLimitEventObject>;
|
|
16
|
+
export type NewLimitEventFilter = TypedEventFilter<NewLimitEvent>;
|
|
17
17
|
export interface ILidoV1AdapterEvents extends BaseContract {
|
|
18
18
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
19
19
|
attach(addressOrName: string): this;
|
package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/yearn/IYearnV2Adapter.d.ts
CHANGED
|
@@ -84,23 +84,23 @@ export interface ApprovalEventObject {
|
|
|
84
84
|
spender: string;
|
|
85
85
|
value: BigNumber;
|
|
86
86
|
}
|
|
87
|
-
export
|
|
87
|
+
export type ApprovalEvent = TypedEvent<[
|
|
88
88
|
string,
|
|
89
89
|
string,
|
|
90
90
|
BigNumber
|
|
91
91
|
], ApprovalEventObject>;
|
|
92
|
-
export
|
|
92
|
+
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
93
93
|
export interface TransferEventObject {
|
|
94
94
|
from: string;
|
|
95
95
|
to: string;
|
|
96
96
|
value: BigNumber;
|
|
97
97
|
}
|
|
98
|
-
export
|
|
98
|
+
export type TransferEvent = TypedEvent<[
|
|
99
99
|
string,
|
|
100
100
|
string,
|
|
101
101
|
BigNumber
|
|
102
102
|
], TransferEventObject>;
|
|
103
|
-
export
|
|
103
|
+
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
104
104
|
export interface IYearnV2Adapter extends BaseContract {
|
|
105
105
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
106
106
|
attach(addressOrName: string): this;
|
|
@@ -14,12 +14,12 @@ export interface Mock_SubmittedEventObject {
|
|
|
14
14
|
amount: BigNumber;
|
|
15
15
|
referral: string;
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export type Mock_SubmittedEvent = TypedEvent<[
|
|
18
18
|
string,
|
|
19
19
|
BigNumber,
|
|
20
20
|
string
|
|
21
21
|
], Mock_SubmittedEventObject>;
|
|
22
|
-
export
|
|
22
|
+
export type Mock_SubmittedEventFilter = TypedEventFilter<Mock_SubmittedEvent>;
|
|
23
23
|
export interface ILidoMockEvents extends BaseContract {
|
|
24
24
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
25
25
|
attach(addressOrName: string): this;
|
|
@@ -2,33 +2,33 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, C
|
|
|
2
2
|
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
3
|
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
4
|
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../../../common";
|
|
5
|
-
export
|
|
5
|
+
export type BalanceStruct = {
|
|
6
6
|
token: string;
|
|
7
7
|
balance: BigNumberish;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type BalanceStructOutput = [string, BigNumber] & {
|
|
10
10
|
token: string;
|
|
11
11
|
balance: BigNumber;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type TokenAdaptersStruct = {
|
|
14
14
|
token: string;
|
|
15
15
|
depositAdapter: string;
|
|
16
16
|
withdrawAdapter: string;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type TokenAdaptersStructOutput = [string, string, string] & {
|
|
19
19
|
token: string;
|
|
20
20
|
depositAdapter: string;
|
|
21
21
|
withdrawAdapter: string;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type MultiCallStruct = {
|
|
24
24
|
target: string;
|
|
25
25
|
callData: BytesLike;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type MultiCallStructOutput = [string, string] & {
|
|
28
28
|
target: string;
|
|
29
29
|
callData: string;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export type StrategyPathTaskStruct = {
|
|
32
32
|
creditAccount: string;
|
|
33
33
|
balances: BalanceStruct[];
|
|
34
34
|
target: string;
|
|
@@ -43,7 +43,7 @@ export declare type StrategyPathTaskStruct = {
|
|
|
43
43
|
initTargetBalance: BigNumberish;
|
|
44
44
|
calls: MultiCallStruct[];
|
|
45
45
|
};
|
|
46
|
-
export
|
|
46
|
+
export type StrategyPathTaskStructOutput = [
|
|
47
47
|
string,
|
|
48
48
|
BalanceStructOutput[],
|
|
49
49
|
string,
|
|
@@ -72,12 +72,12 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
72
72
|
initTargetBalance: BigNumber;
|
|
73
73
|
calls: MultiCallStructOutput[];
|
|
74
74
|
};
|
|
75
|
-
export
|
|
75
|
+
export type PathOptionStruct = {
|
|
76
76
|
target: string;
|
|
77
77
|
option: BigNumberish;
|
|
78
78
|
totalOptions: BigNumberish;
|
|
79
79
|
};
|
|
80
|
-
export
|
|
80
|
+
export type PathOptionStructOutput = [string, number, number] & {
|
|
81
81
|
target: string;
|
|
82
82
|
option: number;
|
|
83
83
|
totalOptions: number;
|
package/lib/types/@gearbox-protocol/router/contracts/interfaces/IDepositor.sol/IDepositor.d.ts
CHANGED
|
@@ -2,33 +2,33 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, P
|
|
|
2
2
|
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
3
|
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
4
|
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../../../../common";
|
|
5
|
-
export
|
|
5
|
+
export type BalanceStruct = {
|
|
6
6
|
token: string;
|
|
7
7
|
balance: BigNumberish;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type BalanceStructOutput = [string, BigNumber] & {
|
|
10
10
|
token: string;
|
|
11
11
|
balance: BigNumber;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type TokenAdaptersStruct = {
|
|
14
14
|
token: string;
|
|
15
15
|
depositAdapter: string;
|
|
16
16
|
withdrawAdapter: string;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type TokenAdaptersStructOutput = [string, string, string] & {
|
|
19
19
|
token: string;
|
|
20
20
|
depositAdapter: string;
|
|
21
21
|
withdrawAdapter: string;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type MultiCallStruct = {
|
|
24
24
|
target: string;
|
|
25
25
|
callData: BytesLike;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type MultiCallStructOutput = [string, string] & {
|
|
28
28
|
target: string;
|
|
29
29
|
callData: string;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export type StrategyPathTaskStruct = {
|
|
32
32
|
creditAccount: string;
|
|
33
33
|
balances: BalanceStruct[];
|
|
34
34
|
target: string;
|
|
@@ -43,7 +43,7 @@ export declare type StrategyPathTaskStruct = {
|
|
|
43
43
|
initTargetBalance: BigNumberish;
|
|
44
44
|
calls: MultiCallStruct[];
|
|
45
45
|
};
|
|
46
|
-
export
|
|
46
|
+
export type StrategyPathTaskStructOutput = [
|
|
47
47
|
string,
|
|
48
48
|
BalanceStructOutput[],
|
|
49
49
|
string,
|
|
@@ -2,33 +2,33 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, P
|
|
|
2
2
|
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
3
|
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
4
|
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../../../../common";
|
|
5
|
-
export
|
|
5
|
+
export type BalanceStruct = {
|
|
6
6
|
token: string;
|
|
7
7
|
balance: BigNumberish;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type BalanceStructOutput = [string, BigNumber] & {
|
|
10
10
|
token: string;
|
|
11
11
|
balance: BigNumber;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type TokenAdaptersStruct = {
|
|
14
14
|
token: string;
|
|
15
15
|
depositAdapter: string;
|
|
16
16
|
withdrawAdapter: string;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type TokenAdaptersStructOutput = [string, string, string] & {
|
|
19
19
|
token: string;
|
|
20
20
|
depositAdapter: string;
|
|
21
21
|
withdrawAdapter: string;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type MultiCallStruct = {
|
|
24
24
|
target: string;
|
|
25
25
|
callData: BytesLike;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type MultiCallStructOutput = [string, string] & {
|
|
28
28
|
target: string;
|
|
29
29
|
callData: string;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export type StrategyPathTaskStruct = {
|
|
32
32
|
creditAccount: string;
|
|
33
33
|
balances: BalanceStruct[];
|
|
34
34
|
target: string;
|
|
@@ -43,7 +43,7 @@ export declare type StrategyPathTaskStruct = {
|
|
|
43
43
|
initTargetBalance: BigNumberish;
|
|
44
44
|
calls: MultiCallStruct[];
|
|
45
45
|
};
|
|
46
|
-
export
|
|
46
|
+
export type StrategyPathTaskStructOutput = [
|
|
47
47
|
string,
|
|
48
48
|
BalanceStructOutput[],
|
|
49
49
|
string,
|
package/lib/types/@gearbox-protocol/router/contracts/interfaces/ILPWorker.sol/ILPWorker.d.ts
CHANGED
|
@@ -2,33 +2,33 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, P
|
|
|
2
2
|
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
3
|
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
4
|
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../../../../common";
|
|
5
|
-
export
|
|
5
|
+
export type BalanceStruct = {
|
|
6
6
|
token: string;
|
|
7
7
|
balance: BigNumberish;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type BalanceStructOutput = [string, BigNumber] & {
|
|
10
10
|
token: string;
|
|
11
11
|
balance: BigNumber;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type TokenAdaptersStruct = {
|
|
14
14
|
token: string;
|
|
15
15
|
depositAdapter: string;
|
|
16
16
|
withdrawAdapter: string;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type TokenAdaptersStructOutput = [string, string, string] & {
|
|
19
19
|
token: string;
|
|
20
20
|
depositAdapter: string;
|
|
21
21
|
withdrawAdapter: string;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type MultiCallStruct = {
|
|
24
24
|
target: string;
|
|
25
25
|
callData: BytesLike;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type MultiCallStructOutput = [string, string] & {
|
|
28
28
|
target: string;
|
|
29
29
|
callData: string;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export type StrategyPathTaskStruct = {
|
|
32
32
|
creditAccount: string;
|
|
33
33
|
balances: BalanceStruct[];
|
|
34
34
|
target: string;
|
|
@@ -43,7 +43,7 @@ export declare type StrategyPathTaskStruct = {
|
|
|
43
43
|
initTargetBalance: BigNumberish;
|
|
44
44
|
calls: MultiCallStruct[];
|
|
45
45
|
};
|
|
46
|
-
export
|
|
46
|
+
export type StrategyPathTaskStructOutput = [
|
|
47
47
|
string,
|
|
48
48
|
BalanceStructOutput[],
|
|
49
49
|
string,
|
package/lib/types/@gearbox-protocol/router/contracts/interfaces/ILPWorker.sol/ILPWorkerOptions.d.ts
CHANGED
|
@@ -2,33 +2,33 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, P
|
|
|
2
2
|
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
3
|
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
4
|
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../../../../common";
|
|
5
|
-
export
|
|
5
|
+
export type BalanceStruct = {
|
|
6
6
|
token: string;
|
|
7
7
|
balance: BigNumberish;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type BalanceStructOutput = [string, BigNumber] & {
|
|
10
10
|
token: string;
|
|
11
11
|
balance: BigNumber;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type TokenAdaptersStruct = {
|
|
14
14
|
token: string;
|
|
15
15
|
depositAdapter: string;
|
|
16
16
|
withdrawAdapter: string;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type TokenAdaptersStructOutput = [string, string, string] & {
|
|
19
19
|
token: string;
|
|
20
20
|
depositAdapter: string;
|
|
21
21
|
withdrawAdapter: string;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type MultiCallStruct = {
|
|
24
24
|
target: string;
|
|
25
25
|
callData: BytesLike;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type MultiCallStructOutput = [string, string] & {
|
|
28
28
|
target: string;
|
|
29
29
|
callData: string;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export type StrategyPathTaskStruct = {
|
|
32
32
|
creditAccount: string;
|
|
33
33
|
balances: BalanceStruct[];
|
|
34
34
|
target: string;
|
|
@@ -43,7 +43,7 @@ export declare type StrategyPathTaskStruct = {
|
|
|
43
43
|
initTargetBalance: BigNumberish;
|
|
44
44
|
calls: MultiCallStruct[];
|
|
45
45
|
};
|
|
46
|
-
export
|
|
46
|
+
export type StrategyPathTaskStructOutput = [
|
|
47
47
|
string,
|
|
48
48
|
BalanceStructOutput[],
|
|
49
49
|
string,
|
|
@@ -2,33 +2,33 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, C
|
|
|
2
2
|
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
3
|
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
4
|
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../../../common";
|
|
5
|
-
export
|
|
5
|
+
export type BalanceStruct = {
|
|
6
6
|
token: string;
|
|
7
7
|
balance: BigNumberish;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type BalanceStructOutput = [string, BigNumber] & {
|
|
10
10
|
token: string;
|
|
11
11
|
balance: BigNumber;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type TokenAdaptersStruct = {
|
|
14
14
|
token: string;
|
|
15
15
|
depositAdapter: string;
|
|
16
16
|
withdrawAdapter: string;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type TokenAdaptersStructOutput = [string, string, string] & {
|
|
19
19
|
token: string;
|
|
20
20
|
depositAdapter: string;
|
|
21
21
|
withdrawAdapter: string;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type MultiCallStruct = {
|
|
24
24
|
target: string;
|
|
25
25
|
callData: BytesLike;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type MultiCallStructOutput = [string, string] & {
|
|
28
28
|
target: string;
|
|
29
29
|
callData: string;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export type StrategyPathTaskStruct = {
|
|
32
32
|
creditAccount: string;
|
|
33
33
|
balances: BalanceStruct[];
|
|
34
34
|
target: string;
|
|
@@ -43,7 +43,7 @@ export declare type StrategyPathTaskStruct = {
|
|
|
43
43
|
initTargetBalance: BigNumberish;
|
|
44
44
|
calls: MultiCallStruct[];
|
|
45
45
|
};
|
|
46
|
-
export
|
|
46
|
+
export type StrategyPathTaskStructOutput = [
|
|
47
47
|
string,
|
|
48
48
|
BalanceStructOutput[],
|
|
49
49
|
string,
|
|
@@ -2,7 +2,7 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, C
|
|
|
2
2
|
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
3
3
|
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
4
|
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../../../common";
|
|
5
|
-
export
|
|
5
|
+
export type SwapTaskStruct = {
|
|
6
6
|
swapOperation: BigNumberish;
|
|
7
7
|
creditAccount: string;
|
|
8
8
|
tokenIn: string;
|
|
@@ -12,7 +12,7 @@ export declare type SwapTaskStruct = {
|
|
|
12
12
|
slippage: BigNumberish;
|
|
13
13
|
externalSlippage: boolean;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type SwapTaskStructOutput = [
|
|
16
16
|
number,
|
|
17
17
|
string,
|
|
18
18
|
string,
|
|
@@ -31,20 +31,20 @@ export declare type SwapTaskStructOutput = [
|
|
|
31
31
|
slippage: BigNumber;
|
|
32
32
|
externalSlippage: boolean;
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type MultiCallStruct = {
|
|
35
35
|
target: string;
|
|
36
36
|
callData: BytesLike;
|
|
37
37
|
};
|
|
38
|
-
export
|
|
38
|
+
export type MultiCallStructOutput = [string, string] & {
|
|
39
39
|
target: string;
|
|
40
40
|
callData: string;
|
|
41
41
|
};
|
|
42
|
-
export
|
|
42
|
+
export type RouterResultStruct = {
|
|
43
43
|
amount: BigNumberish;
|
|
44
44
|
gasUsage: BigNumberish;
|
|
45
45
|
calls: MultiCallStruct[];
|
|
46
46
|
};
|
|
47
|
-
export
|
|
47
|
+
export type RouterResultStructOutput = [
|
|
48
48
|
BigNumber,
|
|
49
49
|
BigNumber,
|
|
50
50
|
MultiCallStructOutput[]
|
|
@@ -53,21 +53,21 @@ export declare type RouterResultStructOutput = [
|
|
|
53
53
|
gasUsage: BigNumber;
|
|
54
54
|
calls: MultiCallStructOutput[];
|
|
55
55
|
};
|
|
56
|
-
export
|
|
56
|
+
export type PathOptionStruct = {
|
|
57
57
|
target: string;
|
|
58
58
|
option: BigNumberish;
|
|
59
59
|
totalOptions: BigNumberish;
|
|
60
60
|
};
|
|
61
|
-
export
|
|
61
|
+
export type PathOptionStructOutput = [string, number, number] & {
|
|
62
62
|
target: string;
|
|
63
63
|
option: number;
|
|
64
64
|
totalOptions: number;
|
|
65
65
|
};
|
|
66
|
-
export
|
|
66
|
+
export type BalanceStruct = {
|
|
67
67
|
token: string;
|
|
68
68
|
balance: BigNumberish;
|
|
69
69
|
};
|
|
70
|
-
export
|
|
70
|
+
export type BalanceStructOutput = [string, BigNumber] & {
|
|
71
71
|
token: string;
|
|
72
72
|
balance: BigNumber;
|
|
73
73
|
};
|
|
@@ -123,30 +123,30 @@ export interface ResolverUpdateEventObject {
|
|
|
123
123
|
arg1: number;
|
|
124
124
|
arg2: number;
|
|
125
125
|
}
|
|
126
|
-
export
|
|
126
|
+
export type ResolverUpdateEvent = TypedEvent<[
|
|
127
127
|
number,
|
|
128
128
|
number,
|
|
129
129
|
number
|
|
130
130
|
], ResolverUpdateEventObject>;
|
|
131
|
-
export
|
|
131
|
+
export type ResolverUpdateEventFilter = TypedEventFilter<ResolverUpdateEvent>;
|
|
132
132
|
export interface RouterComponentUpdateEventObject {
|
|
133
133
|
arg0: number;
|
|
134
134
|
arg1: string;
|
|
135
135
|
}
|
|
136
|
-
export
|
|
136
|
+
export type RouterComponentUpdateEvent = TypedEvent<[
|
|
137
137
|
number,
|
|
138
138
|
string
|
|
139
139
|
], RouterComponentUpdateEventObject>;
|
|
140
|
-
export
|
|
140
|
+
export type RouterComponentUpdateEventFilter = TypedEventFilter<RouterComponentUpdateEvent>;
|
|
141
141
|
export interface TokenTypeUpdateEventObject {
|
|
142
142
|
arg0: string;
|
|
143
143
|
arg1: number;
|
|
144
144
|
}
|
|
145
|
-
export
|
|
145
|
+
export type TokenTypeUpdateEvent = TypedEvent<[
|
|
146
146
|
string,
|
|
147
147
|
number
|
|
148
148
|
], TokenTypeUpdateEventObject>;
|
|
149
|
-
export
|
|
149
|
+
export type TokenTypeUpdateEventFilter = TypedEventFilter<TokenTypeUpdateEvent>;
|
|
150
150
|
export interface IRouter extends BaseContract {
|
|
151
151
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
152
152
|
attach(addressOrName: string): this;
|
|
@@ -2,33 +2,33 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, C
|
|
|
2
2
|
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
3
|
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
4
|
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../../../common";
|
|
5
|
-
export
|
|
5
|
+
export type BalanceStruct = {
|
|
6
6
|
token: string;
|
|
7
7
|
balance: BigNumberish;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type BalanceStructOutput = [string, BigNumber] & {
|
|
10
10
|
token: string;
|
|
11
11
|
balance: BigNumber;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type TokenAdaptersStruct = {
|
|
14
14
|
token: string;
|
|
15
15
|
depositAdapter: string;
|
|
16
16
|
withdrawAdapter: string;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type TokenAdaptersStructOutput = [string, string, string] & {
|
|
19
19
|
token: string;
|
|
20
20
|
depositAdapter: string;
|
|
21
21
|
withdrawAdapter: string;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type MultiCallStruct = {
|
|
24
24
|
target: string;
|
|
25
25
|
callData: BytesLike;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type MultiCallStructOutput = [string, string] & {
|
|
28
28
|
target: string;
|
|
29
29
|
callData: string;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export type StrategyPathTaskStruct = {
|
|
32
32
|
creditAccount: string;
|
|
33
33
|
balances: BalanceStruct[];
|
|
34
34
|
target: string;
|
|
@@ -43,7 +43,7 @@ export declare type StrategyPathTaskStruct = {
|
|
|
43
43
|
initTargetBalance: BigNumberish;
|
|
44
44
|
calls: MultiCallStruct[];
|
|
45
45
|
};
|
|
46
|
-
export
|
|
46
|
+
export type StrategyPathTaskStructOutput = [
|
|
47
47
|
string,
|
|
48
48
|
BalanceStructOutput[],
|
|
49
49
|
string,
|
|
@@ -72,7 +72,7 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
72
72
|
initTargetBalance: BigNumber;
|
|
73
73
|
calls: MultiCallStructOutput[];
|
|
74
74
|
};
|
|
75
|
-
export
|
|
75
|
+
export type SwapTaskStruct = {
|
|
76
76
|
swapOperation: BigNumberish;
|
|
77
77
|
creditAccount: string;
|
|
78
78
|
tokenIn: string;
|
|
@@ -82,7 +82,7 @@ export declare type SwapTaskStruct = {
|
|
|
82
82
|
slippage: BigNumberish;
|
|
83
83
|
externalSlippage: boolean;
|
|
84
84
|
};
|
|
85
|
-
export
|
|
85
|
+
export type SwapTaskStructOutput = [
|
|
86
86
|
number,
|
|
87
87
|
string,
|
|
88
88
|
string,
|
|
@@ -101,13 +101,13 @@ export declare type SwapTaskStructOutput = [
|
|
|
101
101
|
slippage: BigNumber;
|
|
102
102
|
externalSlippage: boolean;
|
|
103
103
|
};
|
|
104
|
-
export
|
|
104
|
+
export type SwapQuoteStruct = {
|
|
105
105
|
multiCall: MultiCallStruct;
|
|
106
106
|
amount: BigNumberish;
|
|
107
107
|
found: boolean;
|
|
108
108
|
gasUsage: BigNumberish;
|
|
109
109
|
};
|
|
110
|
-
export
|
|
110
|
+
export type SwapQuoteStructOutput = [
|
|
111
111
|
MultiCallStructOutput,
|
|
112
112
|
BigNumber,
|
|
113
113
|
boolean,
|