@gearbox-protocol/sdk 1.20.22 → 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 +5 -5
- 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/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
|
@@ -2,11 +2,11 @@ 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 ExchangeStruct = {
|
|
6
6
|
path: string[];
|
|
7
7
|
amountOutMin: BigNumberish;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type ExchangeStructOutput = [string[], BigNumber] & {
|
|
10
10
|
path: string[];
|
|
11
11
|
amountOutMin: BigNumber;
|
|
12
12
|
};
|
|
@@ -121,52 +121,52 @@ export interface AddCollateralEventObject {
|
|
|
121
121
|
token: string;
|
|
122
122
|
value: BigNumber;
|
|
123
123
|
}
|
|
124
|
-
export
|
|
124
|
+
export type AddCollateralEvent = TypedEvent<[
|
|
125
125
|
string,
|
|
126
126
|
string,
|
|
127
127
|
BigNumber
|
|
128
128
|
], AddCollateralEventObject>;
|
|
129
|
-
export
|
|
129
|
+
export type AddCollateralEventFilter = TypedEventFilter<AddCollateralEvent>;
|
|
130
130
|
export interface CloseCreditAccountEventObject {
|
|
131
131
|
owner: string;
|
|
132
132
|
to: string;
|
|
133
133
|
remainingFunds: BigNumber;
|
|
134
134
|
}
|
|
135
|
-
export
|
|
135
|
+
export type CloseCreditAccountEvent = TypedEvent<[
|
|
136
136
|
string,
|
|
137
137
|
string,
|
|
138
138
|
BigNumber
|
|
139
139
|
], CloseCreditAccountEventObject>;
|
|
140
|
-
export
|
|
140
|
+
export type CloseCreditAccountEventFilter = TypedEventFilter<CloseCreditAccountEvent>;
|
|
141
141
|
export interface ExecuteOrderEventObject {
|
|
142
142
|
borrower: string;
|
|
143
143
|
target: string;
|
|
144
144
|
}
|
|
145
|
-
export
|
|
145
|
+
export type ExecuteOrderEvent = TypedEvent<[
|
|
146
146
|
string,
|
|
147
147
|
string
|
|
148
148
|
], ExecuteOrderEventObject>;
|
|
149
|
-
export
|
|
149
|
+
export type ExecuteOrderEventFilter = TypedEventFilter<ExecuteOrderEvent>;
|
|
150
150
|
export interface IncreaseBorrowedAmountEventObject {
|
|
151
151
|
borrower: string;
|
|
152
152
|
amount: BigNumber;
|
|
153
153
|
}
|
|
154
|
-
export
|
|
154
|
+
export type IncreaseBorrowedAmountEvent = TypedEvent<[
|
|
155
155
|
string,
|
|
156
156
|
BigNumber
|
|
157
157
|
], IncreaseBorrowedAmountEventObject>;
|
|
158
|
-
export
|
|
158
|
+
export type IncreaseBorrowedAmountEventFilter = TypedEventFilter<IncreaseBorrowedAmountEvent>;
|
|
159
159
|
export interface LiquidateCreditAccountEventObject {
|
|
160
160
|
owner: string;
|
|
161
161
|
liquidator: string;
|
|
162
162
|
remainingFunds: BigNumber;
|
|
163
163
|
}
|
|
164
|
-
export
|
|
164
|
+
export type LiquidateCreditAccountEvent = TypedEvent<[
|
|
165
165
|
string,
|
|
166
166
|
string,
|
|
167
167
|
BigNumber
|
|
168
168
|
], LiquidateCreditAccountEventObject>;
|
|
169
|
-
export
|
|
169
|
+
export type LiquidateCreditAccountEventFilter = TypedEventFilter<LiquidateCreditAccountEvent>;
|
|
170
170
|
export interface NewParametersEventObject {
|
|
171
171
|
minAmount: BigNumber;
|
|
172
172
|
maxAmount: BigNumber;
|
|
@@ -175,7 +175,7 @@ export interface NewParametersEventObject {
|
|
|
175
175
|
feeLiquidation: BigNumber;
|
|
176
176
|
liquidationDiscount: BigNumber;
|
|
177
177
|
}
|
|
178
|
-
export
|
|
178
|
+
export type NewParametersEvent = TypedEvent<[
|
|
179
179
|
BigNumber,
|
|
180
180
|
BigNumber,
|
|
181
181
|
BigNumber,
|
|
@@ -183,7 +183,7 @@ export declare type NewParametersEvent = TypedEvent<[
|
|
|
183
183
|
BigNumber,
|
|
184
184
|
BigNumber
|
|
185
185
|
], NewParametersEventObject>;
|
|
186
|
-
export
|
|
186
|
+
export type NewParametersEventFilter = TypedEventFilter<NewParametersEvent>;
|
|
187
187
|
export interface OpenCreditAccountEventObject {
|
|
188
188
|
sender: string;
|
|
189
189
|
onBehalfOf: string;
|
|
@@ -192,7 +192,7 @@ export interface OpenCreditAccountEventObject {
|
|
|
192
192
|
borrowAmount: BigNumber;
|
|
193
193
|
referralCode: BigNumber;
|
|
194
194
|
}
|
|
195
|
-
export
|
|
195
|
+
export type OpenCreditAccountEvent = TypedEvent<[
|
|
196
196
|
string,
|
|
197
197
|
string,
|
|
198
198
|
string,
|
|
@@ -200,25 +200,25 @@ export declare type OpenCreditAccountEvent = TypedEvent<[
|
|
|
200
200
|
BigNumber,
|
|
201
201
|
BigNumber
|
|
202
202
|
], OpenCreditAccountEventObject>;
|
|
203
|
-
export
|
|
203
|
+
export type OpenCreditAccountEventFilter = TypedEventFilter<OpenCreditAccountEvent>;
|
|
204
204
|
export interface RepayCreditAccountEventObject {
|
|
205
205
|
owner: string;
|
|
206
206
|
to: string;
|
|
207
207
|
}
|
|
208
|
-
export
|
|
208
|
+
export type RepayCreditAccountEvent = TypedEvent<[
|
|
209
209
|
string,
|
|
210
210
|
string
|
|
211
211
|
], RepayCreditAccountEventObject>;
|
|
212
|
-
export
|
|
212
|
+
export type RepayCreditAccountEventFilter = TypedEventFilter<RepayCreditAccountEvent>;
|
|
213
213
|
export interface TransferAccountEventObject {
|
|
214
214
|
oldOwner: string;
|
|
215
215
|
newOwner: string;
|
|
216
216
|
}
|
|
217
|
-
export
|
|
217
|
+
export type TransferAccountEvent = TypedEvent<[
|
|
218
218
|
string,
|
|
219
219
|
string
|
|
220
220
|
], TransferAccountEventObject>;
|
|
221
|
-
export
|
|
221
|
+
export type TransferAccountEventFilter = TypedEventFilter<TransferAccountEvent>;
|
|
222
222
|
export interface ICreditManager extends BaseContract {
|
|
223
223
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
224
224
|
attach(addressOrName: string): this;
|
|
@@ -2,11 +2,11 @@ import type { BaseContract, BigNumber, BytesLike, CallOverrides, ContractTransac
|
|
|
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 RevocationPairStruct = {
|
|
6
6
|
spender: string;
|
|
7
7
|
token: string;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type RevocationPairStructOutput = [string, string] & {
|
|
10
10
|
spender: string;
|
|
11
11
|
token: string;
|
|
12
12
|
};
|
|
@@ -150,102 +150,102 @@ export interface AddLiquidityEventObject {
|
|
|
150
150
|
amount: BigNumber;
|
|
151
151
|
referralCode: BigNumber;
|
|
152
152
|
}
|
|
153
|
-
export
|
|
153
|
+
export type AddLiquidityEvent = TypedEvent<[
|
|
154
154
|
string,
|
|
155
155
|
string,
|
|
156
156
|
BigNumber,
|
|
157
157
|
BigNumber
|
|
158
158
|
], AddLiquidityEventObject>;
|
|
159
|
-
export
|
|
159
|
+
export type AddLiquidityEventFilter = TypedEventFilter<AddLiquidityEvent>;
|
|
160
160
|
export interface BorrowEventObject {
|
|
161
161
|
creditManager: string;
|
|
162
162
|
creditAccount: string;
|
|
163
163
|
amount: BigNumber;
|
|
164
164
|
}
|
|
165
|
-
export
|
|
165
|
+
export type BorrowEvent = TypedEvent<[
|
|
166
166
|
string,
|
|
167
167
|
string,
|
|
168
168
|
BigNumber
|
|
169
169
|
], BorrowEventObject>;
|
|
170
|
-
export
|
|
170
|
+
export type BorrowEventFilter = TypedEventFilter<BorrowEvent>;
|
|
171
171
|
export interface BorrowForbiddenEventObject {
|
|
172
172
|
creditManager: string;
|
|
173
173
|
}
|
|
174
|
-
export
|
|
174
|
+
export type BorrowForbiddenEvent = TypedEvent<[
|
|
175
175
|
string
|
|
176
176
|
], BorrowForbiddenEventObject>;
|
|
177
|
-
export
|
|
177
|
+
export type BorrowForbiddenEventFilter = TypedEventFilter<BorrowForbiddenEvent>;
|
|
178
178
|
export interface NewCreditManagerConnectedEventObject {
|
|
179
179
|
creditManager: string;
|
|
180
180
|
}
|
|
181
|
-
export
|
|
181
|
+
export type NewCreditManagerConnectedEvent = TypedEvent<[
|
|
182
182
|
string
|
|
183
183
|
], NewCreditManagerConnectedEventObject>;
|
|
184
|
-
export
|
|
184
|
+
export type NewCreditManagerConnectedEventFilter = TypedEventFilter<NewCreditManagerConnectedEvent>;
|
|
185
185
|
export interface NewExpectedLiquidityLimitEventObject {
|
|
186
186
|
newLimit: BigNumber;
|
|
187
187
|
}
|
|
188
|
-
export
|
|
188
|
+
export type NewExpectedLiquidityLimitEvent = TypedEvent<[
|
|
189
189
|
BigNumber
|
|
190
190
|
], NewExpectedLiquidityLimitEventObject>;
|
|
191
|
-
export
|
|
191
|
+
export type NewExpectedLiquidityLimitEventFilter = TypedEventFilter<NewExpectedLiquidityLimitEvent>;
|
|
192
192
|
export interface NewInterestRateModelEventObject {
|
|
193
193
|
newInterestRateModel: string;
|
|
194
194
|
}
|
|
195
|
-
export
|
|
195
|
+
export type NewInterestRateModelEvent = TypedEvent<[
|
|
196
196
|
string
|
|
197
197
|
], NewInterestRateModelEventObject>;
|
|
198
|
-
export
|
|
198
|
+
export type NewInterestRateModelEventFilter = TypedEventFilter<NewInterestRateModelEvent>;
|
|
199
199
|
export interface NewWithdrawFeeEventObject {
|
|
200
200
|
fee: BigNumber;
|
|
201
201
|
}
|
|
202
|
-
export
|
|
202
|
+
export type NewWithdrawFeeEvent = TypedEvent<[
|
|
203
203
|
BigNumber
|
|
204
204
|
], NewWithdrawFeeEventObject>;
|
|
205
|
-
export
|
|
205
|
+
export type NewWithdrawFeeEventFilter = TypedEventFilter<NewWithdrawFeeEvent>;
|
|
206
206
|
export interface PausedEventObject {
|
|
207
207
|
account: string;
|
|
208
208
|
}
|
|
209
|
-
export
|
|
210
|
-
export
|
|
209
|
+
export type PausedEvent = TypedEvent<[string], PausedEventObject>;
|
|
210
|
+
export type PausedEventFilter = TypedEventFilter<PausedEvent>;
|
|
211
211
|
export interface RemoveLiquidityEventObject {
|
|
212
212
|
sender: string;
|
|
213
213
|
to: string;
|
|
214
214
|
amount: BigNumber;
|
|
215
215
|
}
|
|
216
|
-
export
|
|
216
|
+
export type RemoveLiquidityEvent = TypedEvent<[
|
|
217
217
|
string,
|
|
218
218
|
string,
|
|
219
219
|
BigNumber
|
|
220
220
|
], RemoveLiquidityEventObject>;
|
|
221
|
-
export
|
|
221
|
+
export type RemoveLiquidityEventFilter = TypedEventFilter<RemoveLiquidityEvent>;
|
|
222
222
|
export interface RepayEventObject {
|
|
223
223
|
creditManager: string;
|
|
224
224
|
borrowedAmount: BigNumber;
|
|
225
225
|
profit: BigNumber;
|
|
226
226
|
loss: BigNumber;
|
|
227
227
|
}
|
|
228
|
-
export
|
|
228
|
+
export type RepayEvent = TypedEvent<[
|
|
229
229
|
string,
|
|
230
230
|
BigNumber,
|
|
231
231
|
BigNumber,
|
|
232
232
|
BigNumber
|
|
233
233
|
], RepayEventObject>;
|
|
234
|
-
export
|
|
234
|
+
export type RepayEventFilter = TypedEventFilter<RepayEvent>;
|
|
235
235
|
export interface UncoveredLossEventObject {
|
|
236
236
|
creditManager: string;
|
|
237
237
|
loss: BigNumber;
|
|
238
238
|
}
|
|
239
|
-
export
|
|
239
|
+
export type UncoveredLossEvent = TypedEvent<[
|
|
240
240
|
string,
|
|
241
241
|
BigNumber
|
|
242
242
|
], UncoveredLossEventObject>;
|
|
243
|
-
export
|
|
243
|
+
export type UncoveredLossEventFilter = TypedEventFilter<UncoveredLossEvent>;
|
|
244
244
|
export interface UnpausedEventObject {
|
|
245
245
|
account: string;
|
|
246
246
|
}
|
|
247
|
-
export
|
|
248
|
-
export
|
|
247
|
+
export type UnpausedEvent = TypedEvent<[string], UnpausedEventObject>;
|
|
248
|
+
export type UnpausedEventFilter = TypedEventFilter<UnpausedEvent>;
|
|
249
249
|
export interface PoolService extends BaseContract {
|
|
250
250
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
251
251
|
attach(addressOrName: string): this;
|
package/lib/types/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IConvexToken.d.ts
CHANGED
|
@@ -51,23 +51,23 @@ export interface ApprovalEventObject {
|
|
|
51
51
|
spender: string;
|
|
52
52
|
value: BigNumber;
|
|
53
53
|
}
|
|
54
|
-
export
|
|
54
|
+
export type ApprovalEvent = TypedEvent<[
|
|
55
55
|
string,
|
|
56
56
|
string,
|
|
57
57
|
BigNumber
|
|
58
58
|
], ApprovalEventObject>;
|
|
59
|
-
export
|
|
59
|
+
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
60
60
|
export interface TransferEventObject {
|
|
61
61
|
from: string;
|
|
62
62
|
to: string;
|
|
63
63
|
value: BigNumber;
|
|
64
64
|
}
|
|
65
|
-
export
|
|
65
|
+
export type TransferEvent = TypedEvent<[
|
|
66
66
|
string,
|
|
67
67
|
string,
|
|
68
68
|
BigNumber
|
|
69
69
|
], TransferEventObject>;
|
|
70
|
-
export
|
|
70
|
+
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
71
71
|
export interface IConvexToken extends BaseContract {
|
|
72
72
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
73
73
|
attach(addressOrName: string): this;
|
|
@@ -66,23 +66,23 @@ export interface ApprovalEventObject {
|
|
|
66
66
|
spender: string;
|
|
67
67
|
value: BigNumber;
|
|
68
68
|
}
|
|
69
|
-
export
|
|
69
|
+
export type ApprovalEvent = TypedEvent<[
|
|
70
70
|
string,
|
|
71
71
|
string,
|
|
72
72
|
BigNumber
|
|
73
73
|
], ApprovalEventObject>;
|
|
74
|
-
export
|
|
74
|
+
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
75
75
|
export interface TransferEventObject {
|
|
76
76
|
from: string;
|
|
77
77
|
to: string;
|
|
78
78
|
value: BigNumber;
|
|
79
79
|
}
|
|
80
|
-
export
|
|
80
|
+
export type TransferEvent = TypedEvent<[
|
|
81
81
|
string,
|
|
82
82
|
string,
|
|
83
83
|
BigNumber
|
|
84
84
|
], TransferEventObject>;
|
|
85
|
-
export
|
|
85
|
+
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
86
86
|
export interface IstETH extends BaseContract {
|
|
87
87
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
88
88
|
attach(addressOrName: string): this;
|
|
@@ -63,23 +63,23 @@ export interface ApprovalEventObject {
|
|
|
63
63
|
spender: string;
|
|
64
64
|
value: BigNumber;
|
|
65
65
|
}
|
|
66
|
-
export
|
|
66
|
+
export type ApprovalEvent = TypedEvent<[
|
|
67
67
|
string,
|
|
68
68
|
string,
|
|
69
69
|
BigNumber
|
|
70
70
|
], ApprovalEventObject>;
|
|
71
|
-
export
|
|
71
|
+
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
72
72
|
export interface TransferEventObject {
|
|
73
73
|
from: string;
|
|
74
74
|
to: string;
|
|
75
75
|
value: BigNumber;
|
|
76
76
|
}
|
|
77
|
-
export
|
|
77
|
+
export type TransferEvent = TypedEvent<[
|
|
78
78
|
string,
|
|
79
79
|
string,
|
|
80
80
|
BigNumber
|
|
81
81
|
], TransferEventObject>;
|
|
82
|
-
export
|
|
82
|
+
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
83
83
|
export interface IstETHGetters extends BaseContract {
|
|
84
84
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
85
85
|
attach(addressOrName: string): this;
|
|
@@ -66,23 +66,23 @@ export interface ApprovalEventObject {
|
|
|
66
66
|
spender: string;
|
|
67
67
|
value: BigNumber;
|
|
68
68
|
}
|
|
69
|
-
export
|
|
69
|
+
export type ApprovalEvent = TypedEvent<[
|
|
70
70
|
string,
|
|
71
71
|
string,
|
|
72
72
|
BigNumber
|
|
73
73
|
], ApprovalEventObject>;
|
|
74
|
-
export
|
|
74
|
+
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
75
75
|
export interface TransferEventObject {
|
|
76
76
|
from: string;
|
|
77
77
|
to: string;
|
|
78
78
|
value: BigNumber;
|
|
79
79
|
}
|
|
80
|
-
export
|
|
80
|
+
export type TransferEvent = TypedEvent<[
|
|
81
81
|
string,
|
|
82
82
|
string,
|
|
83
83
|
BigNumber
|
|
84
84
|
], TransferEventObject>;
|
|
85
|
-
export
|
|
85
|
+
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
86
86
|
export interface IwstETH extends BaseContract {
|
|
87
87
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
88
88
|
attach(addressOrName: string): this;
|
|
@@ -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,
|