@gearbox-protocol/sdk 1.8.7 → 1.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/lib/contracts/contractsRegister.d.ts +2 -0
  2. package/lib/contracts/contractsRegister.js +6 -1
  3. package/lib/index.d.ts +1 -1
  4. package/lib/index.js +2 -3
  5. package/lib/types/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay.d.ts +66 -0
  6. package/lib/types/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay.js +2 -0
  7. package/lib/types/contracts/integrations/lido/IwstETHGateway.sol/index.d.ts +1 -0
  8. package/lib/types/contracts/integrations/lido/IwstETHGateway.sol/index.js +2 -0
  9. package/lib/types/contracts/integrations/lido/index.d.ts +2 -0
  10. package/lib/types/contracts/interfaces/adapters/lido/IwstETHV1Adapter.d.ts +9 -1
  11. package/lib/types/contracts/pathfinder/interfaces/IPathFinder.d.ts +0 -11
  12. package/lib/types/contracts/pathfinder/interfaces/IWrapper.d.ts +152 -0
  13. package/lib/types/contracts/pathfinder/interfaces/IWrapper.js +2 -0
  14. package/lib/types/contracts/pathfinder/interfaces/index.d.ts +1 -0
  15. package/lib/types/contracts/test/suites/live/ITokenTestSuite.d.ts +1 -49
  16. package/lib/types/factories/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay__factory.d.ts +28 -0
  17. package/lib/types/factories/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay__factory.js +74 -0
  18. package/lib/types/factories/contracts/integrations/lido/IwstETHGateway.sol/index.d.ts +1 -0
  19. package/lib/types/factories/contracts/integrations/lido/IwstETHGateway.sol/index.js +8 -0
  20. package/lib/types/factories/contracts/integrations/lido/index.d.ts +1 -0
  21. package/lib/types/factories/contracts/integrations/lido/index.js +2 -1
  22. package/lib/types/factories/contracts/interfaces/adapters/lido/IwstETHV1Adapter__factory.js +13 -0
  23. package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinder__factory.js +0 -13
  24. package/lib/types/factories/contracts/pathfinder/interfaces/IWrapper__factory.d.ts +61 -0
  25. package/lib/types/factories/contracts/pathfinder/interfaces/IWrapper__factory.js +296 -0
  26. package/lib/types/factories/contracts/pathfinder/interfaces/index.d.ts +1 -0
  27. package/lib/types/factories/contracts/pathfinder/interfaces/index.js +3 -1
  28. package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.d.ts +1 -1
  29. package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.js +1 -1
  30. package/lib/types/factories/contracts/test/suites/live/ITokenTestSuite__factory.js +0 -69
  31. package/lib/types/index.d.ts +4 -0
  32. package/lib/types/index.js +7 -3
  33. package/package.json +1 -1
@@ -99,29 +99,6 @@ var _abi = [
99
99
  stateMutability: "nonpayable",
100
100
  type: "function",
101
101
  },
102
- {
103
- inputs: [
104
- {
105
- internalType: "enum Tokens[]",
106
- name: "tokensToApprove",
107
- type: "uint8[]",
108
- },
109
- {
110
- internalType: "address",
111
- name: "holder",
112
- type: "address",
113
- },
114
- {
115
- internalType: "enum Contracts",
116
- name: "targetContract",
117
- type: "uint8",
118
- },
119
- ],
120
- name: "approveMany",
121
- outputs: [],
122
- stateMutability: "nonpayable",
123
- type: "function",
124
- },
125
102
  {
126
103
  inputs: [
127
104
  {
@@ -192,52 +169,6 @@ var _abi = [
192
169
  stateMutability: "nonpayable",
193
170
  type: "function",
194
171
  },
195
- {
196
- inputs: [
197
- {
198
- internalType: "address",
199
- name: "token",
200
- type: "address",
201
- },
202
- {
203
- internalType: "address",
204
- name: "to",
205
- type: "address",
206
- },
207
- {
208
- internalType: "uint256",
209
- name: "amount",
210
- type: "uint256",
211
- },
212
- ],
213
- name: "mintWithTotalSupply",
214
- outputs: [],
215
- stateMutability: "nonpayable",
216
- type: "function",
217
- },
218
- {
219
- inputs: [
220
- {
221
- internalType: "enum Tokens",
222
- name: "t",
223
- type: "uint8",
224
- },
225
- {
226
- internalType: "address",
227
- name: "to",
228
- type: "address",
229
- },
230
- {
231
- internalType: "uint256",
232
- name: "amount",
233
- type: "uint256",
234
- },
235
- ],
236
- name: "mintWithTotalSupply",
237
- outputs: [],
238
- stateMutability: "nonpayable",
239
- type: "function",
240
- },
241
172
  {
242
173
  inputs: [
243
174
  {
@@ -87,6 +87,8 @@ export type { IwstETH } from "./contracts/integrations/lido/IwstETH.sol/IwstETH"
87
87
  export { IwstETH__factory } from "./factories/contracts/integrations/lido/IwstETH.sol/IwstETH__factory";
88
88
  export type { IwstETHGetters } from "./contracts/integrations/lido/IwstETH.sol/IwstETHGetters";
89
89
  export { IwstETHGetters__factory } from "./factories/contracts/integrations/lido/IwstETH.sol/IwstETHGetters__factory";
90
+ export type { IwstETHGateWay } from "./contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay";
91
+ export { IwstETHGateWay__factory } from "./factories/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay__factory";
90
92
  export type { IQuoter } from "./contracts/integrations/uniswap/IQuoter";
91
93
  export { IQuoter__factory } from "./factories/contracts/integrations/uniswap/IQuoter__factory";
92
94
  export type { IUniswapV2Router01 } from "./contracts/integrations/uniswap/IUniswapV2Router01";
@@ -263,6 +265,8 @@ export type { IWithdrawer } from "./contracts/pathfinder/interfaces/IWithdrawer.
263
265
  export { IWithdrawer__factory } from "./factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory";
264
266
  export type { IWithdrawerOptions } from "./contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions";
265
267
  export { IWithdrawerOptions__factory } from "./factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory";
268
+ export type { IWrapper } from "./contracts/pathfinder/interfaces/IWrapper";
269
+ export { IWrapper__factory } from "./factories/contracts/pathfinder/interfaces/IWrapper__factory";
266
270
  export type { ILidoMockEvents } from "./contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents";
267
271
  export { ILidoMockEvents__factory } from "./factories/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents__factory";
268
272
  export type { ILockedCvx } from "./contracts/test/sigp/interfaces/ILockedCvx";
@@ -23,9 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.IConvexV1BaseRewardPoolAdapterErrors__factory = exports.IConvexV1BaseRewardPoolAdapter__factory = exports.IYVault__factory = exports.IUniswapV3SwapCallback__factory = exports.ISwapRouter__factory = exports.IUniswapV2Router02__factory = exports.IUniswapV2Router01__factory = exports.IQuoter__factory = exports.IwstETHGetters__factory = exports.IwstETH__factory = exports.IstETHGetters__factory = exports.IstETH__factory = exports.ILidoOracle__factory = exports.ICurveRegistry__factory = exports.ICurvePoolStETH__factory = exports.ICurvePool__factory = exports.ICurvePool4Assets__factory = exports.ICurvePool3Assets__factory = exports.ICurvePool2Assets__factory = exports.ICRVToken__factory = exports.IBasicRewards__factory = exports.IWalletChecker__factory = exports.IVoting__factory = exports.IVestedEscrow__factory = exports.ITokenMinter__factory = exports.ITokenFactory__factory = exports.IStashFactory__factory = exports.IStash__factory = exports.IStaker__factory = exports.IRewards__factory = exports.IRewardFactory__factory = exports.IRegistry__factory = exports.IPools__factory = exports.IMinter__factory = exports.IFeeDistro__factory = exports.IDeposit__factory = exports.ICurveVoteEscrow__factory = exports.ICurveGauge__factory = exports.ICrvDeposit__factory = exports.IConvexToken__factory = exports.IClaimZap__factory = exports.IBooster__factory = exports.IBaseRewardPool__factory = exports.IERC165__factory = exports.IERC721Receiver__factory = exports.IERC721__factory = exports.IERC721Metadata__factory = exports.IERC20__factory = exports.IERC20Metadata__factory = exports.factories = void 0;
27
- exports.ILPPriceFeed__factory = exports.IInterestRateModel__factory = exports.IGearToken__factory = exports.IDieselTokenExceptions__factory = exports.IDieselToken__factory = exports.IDegenNFTExceptions__factory = exports.IDegenNFT__factory = exports.IDataCompressorExceptions__factory = exports.IDataCompressor__factory = exports.ICreditManagerV2Exceptions__factory = exports.ICreditManagerV2Events__factory = exports.ICreditManagerV2__factory = exports.ICreditFacadeExtended__factory = exports.ICreditFacadeExceptions__factory = exports.ICreditFacadeEvents__factory = exports.ICreditFacade__factory = exports.ICreditConfiguratorExceptions__factory = exports.ICreditConfiguratorEvents__factory = exports.ICreditConfigurator__factory = exports.ICreditAccount__factory = exports.ICrediAccountExceptions__factory = exports.IContractsRegisterEvents__factory = exports.IContractsRegister__factory = exports.IAddressProviderEvents__factory = exports.IAddressProvider__factory = exports.IACLExceptions__factory = exports.IACLEvents__factory = exports.IACL__factory = exports.IAccountFactoryGetters__factory = exports.IAccountFactoryEvents__factory = exports.IAccountFactory__factory = exports.IWETH__factory = exports.IYearnV2Adapter__factory = exports.IUniswapV3AdapterExceptions__factory = exports.IUniswapV3Adapter__factory = exports.IUniswapV2Adapter__factory = exports.IwstETHV1Adapter__factory = exports.ILidoV1AdapterExceptions__factory = exports.ILidoV1AdapterEvents__factory = exports.ILidoV1Adapter__factory = exports.IUniversalAdapterExceptions__factory = exports.IUniversalAdapter__factory = exports.IAdapterExceptions__factory = exports.IAdapter__factory = exports.ICurveV1AdapterExceptions__factory = exports.ICurveV1Adapter__factory = exports.ICurveV1_4AssetsAdapter__factory = exports.ICurveV1_3AssetsAdapter__factory = exports.ICurveV1_2AssetsAdapter__factory = exports.IConvexV1BoosterAdapter__factory = void 0;
28
- exports.Multicall2__factory = exports.AggregatorV3Interface__factory = exports.IToken__factory = exports.ISupportedContracts__factory = exports.ITokenTestSuite__factory = exports.ILockedCvx__factory = exports.ILidoMockEvents__factory = exports.IWithdrawerOptions__factory = exports.IWithdrawer__factory = exports.ISwapper__factory = exports.ISwapAggregator__factory = exports.IPathResolver__factory = exports.IPathFinderComponent__factory = exports.IPathFinder__factory = exports.ILPWorkerOptions__factory = exports.ILPWorker__factory = exports.IGasPricer__factory = exports.IDepositorOptions__factory = exports.IDepositor__factory = exports.IClosePathResolver__factory = exports.IPriceOracle__factory = exports.ICreditManager__factory = exports.ICreditFilter__factory = exports.IWETHGateway__factory = exports.IVersion__factory = exports.IPriceOracleV2Ext__factory = exports.IPriceOracleV2Exceptions__factory = exports.IPriceOracleV2Events__factory = exports.IPriceOracleV2__factory = exports.IPriceFeedType__factory = exports.IPriceFeedAddress__factory = exports.IPoolServiceEvents__factory = exports.IPoolService__factory = exports.IPhantomERC20__factory = exports.IMerkleDistributor__factory = exports.ILPPriceFeedExceptions__factory = exports.ILPPriceFeedEvents__factory = void 0;
26
+ exports.IConvexV1BaseRewardPoolAdapter__factory = exports.IYVault__factory = exports.IUniswapV3SwapCallback__factory = exports.ISwapRouter__factory = exports.IUniswapV2Router02__factory = exports.IUniswapV2Router01__factory = exports.IQuoter__factory = exports.IwstETHGateWay__factory = exports.IwstETHGetters__factory = exports.IwstETH__factory = exports.IstETHGetters__factory = exports.IstETH__factory = exports.ILidoOracle__factory = exports.ICurveRegistry__factory = exports.ICurvePoolStETH__factory = exports.ICurvePool__factory = exports.ICurvePool4Assets__factory = exports.ICurvePool3Assets__factory = exports.ICurvePool2Assets__factory = exports.ICRVToken__factory = exports.IBasicRewards__factory = exports.IWalletChecker__factory = exports.IVoting__factory = exports.IVestedEscrow__factory = exports.ITokenMinter__factory = exports.ITokenFactory__factory = exports.IStashFactory__factory = exports.IStash__factory = exports.IStaker__factory = exports.IRewards__factory = exports.IRewardFactory__factory = exports.IRegistry__factory = exports.IPools__factory = exports.IMinter__factory = exports.IFeeDistro__factory = exports.IDeposit__factory = exports.ICurveVoteEscrow__factory = exports.ICurveGauge__factory = exports.ICrvDeposit__factory = exports.IConvexToken__factory = exports.IClaimZap__factory = exports.IBooster__factory = exports.IBaseRewardPool__factory = exports.IERC165__factory = exports.IERC721Receiver__factory = exports.IERC721__factory = exports.IERC721Metadata__factory = exports.IERC20__factory = exports.IERC20Metadata__factory = exports.factories = void 0;
27
+ exports.IInterestRateModel__factory = exports.IGearToken__factory = exports.IDieselTokenExceptions__factory = exports.IDieselToken__factory = exports.IDegenNFTExceptions__factory = exports.IDegenNFT__factory = exports.IDataCompressorExceptions__factory = exports.IDataCompressor__factory = exports.ICreditManagerV2Exceptions__factory = exports.ICreditManagerV2Events__factory = exports.ICreditManagerV2__factory = exports.ICreditFacadeExtended__factory = exports.ICreditFacadeExceptions__factory = exports.ICreditFacadeEvents__factory = exports.ICreditFacade__factory = exports.ICreditConfiguratorExceptions__factory = exports.ICreditConfiguratorEvents__factory = exports.ICreditConfigurator__factory = exports.ICreditAccount__factory = exports.ICrediAccountExceptions__factory = exports.IContractsRegisterEvents__factory = exports.IContractsRegister__factory = exports.IAddressProviderEvents__factory = exports.IAddressProvider__factory = exports.IACLExceptions__factory = exports.IACLEvents__factory = exports.IACL__factory = exports.IAccountFactoryGetters__factory = exports.IAccountFactoryEvents__factory = exports.IAccountFactory__factory = exports.IWETH__factory = exports.IYearnV2Adapter__factory = exports.IUniswapV3AdapterExceptions__factory = exports.IUniswapV3Adapter__factory = exports.IUniswapV2Adapter__factory = exports.IwstETHV1Adapter__factory = exports.ILidoV1AdapterExceptions__factory = exports.ILidoV1AdapterEvents__factory = exports.ILidoV1Adapter__factory = exports.IUniversalAdapterExceptions__factory = exports.IUniversalAdapter__factory = exports.IAdapterExceptions__factory = exports.IAdapter__factory = exports.ICurveV1AdapterExceptions__factory = exports.ICurveV1Adapter__factory = exports.ICurveV1_4AssetsAdapter__factory = exports.ICurveV1_3AssetsAdapter__factory = exports.ICurveV1_2AssetsAdapter__factory = exports.IConvexV1BoosterAdapter__factory = exports.IConvexV1BaseRewardPoolAdapterErrors__factory = void 0;
28
+ exports.Multicall2__factory = exports.AggregatorV3Interface__factory = exports.IToken__factory = exports.ISupportedContracts__factory = exports.ITokenTestSuite__factory = exports.ILockedCvx__factory = exports.ILidoMockEvents__factory = exports.IWrapper__factory = exports.IWithdrawerOptions__factory = exports.IWithdrawer__factory = exports.ISwapper__factory = exports.ISwapAggregator__factory = exports.IPathResolver__factory = exports.IPathFinderComponent__factory = exports.IPathFinder__factory = exports.ILPWorkerOptions__factory = exports.ILPWorker__factory = exports.IGasPricer__factory = exports.IDepositorOptions__factory = exports.IDepositor__factory = exports.IClosePathResolver__factory = exports.IPriceOracle__factory = exports.ICreditManager__factory = exports.ICreditFilter__factory = exports.IWETHGateway__factory = exports.IVersion__factory = exports.IPriceOracleV2Ext__factory = exports.IPriceOracleV2Exceptions__factory = exports.IPriceOracleV2Events__factory = exports.IPriceOracleV2__factory = exports.IPriceFeedType__factory = exports.IPriceFeedAddress__factory = exports.IPoolServiceEvents__factory = exports.IPoolService__factory = exports.IPhantomERC20__factory = exports.IMerkleDistributor__factory = exports.ILPPriceFeedExceptions__factory = exports.ILPPriceFeedEvents__factory = exports.ILPPriceFeed__factory = void 0;
29
29
  exports.factories = __importStar(require("./factories"));
30
30
  var IERC20Metadata__factory_1 = require("./factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory");
31
31
  Object.defineProperty(exports, "IERC20Metadata__factory", { enumerable: true, get: function () { return IERC20Metadata__factory_1.IERC20Metadata__factory; } });
@@ -109,6 +109,8 @@ var IwstETH__factory_1 = require("./factories/contracts/integrations/lido/IwstET
109
109
  Object.defineProperty(exports, "IwstETH__factory", { enumerable: true, get: function () { return IwstETH__factory_1.IwstETH__factory; } });
110
110
  var IwstETHGetters__factory_1 = require("./factories/contracts/integrations/lido/IwstETH.sol/IwstETHGetters__factory");
111
111
  Object.defineProperty(exports, "IwstETHGetters__factory", { enumerable: true, get: function () { return IwstETHGetters__factory_1.IwstETHGetters__factory; } });
112
+ var IwstETHGateWay__factory_1 = require("./factories/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay__factory");
113
+ Object.defineProperty(exports, "IwstETHGateWay__factory", { enumerable: true, get: function () { return IwstETHGateWay__factory_1.IwstETHGateWay__factory; } });
112
114
  var IQuoter__factory_1 = require("./factories/contracts/integrations/uniswap/IQuoter__factory");
113
115
  Object.defineProperty(exports, "IQuoter__factory", { enumerable: true, get: function () { return IQuoter__factory_1.IQuoter__factory; } });
114
116
  var IUniswapV2Router01__factory_1 = require("./factories/contracts/integrations/uniswap/IUniswapV2Router01__factory");
@@ -285,6 +287,8 @@ var IWithdrawer__factory_1 = require("./factories/contracts/pathfinder/interface
285
287
  Object.defineProperty(exports, "IWithdrawer__factory", { enumerable: true, get: function () { return IWithdrawer__factory_1.IWithdrawer__factory; } });
286
288
  var IWithdrawerOptions__factory_1 = require("./factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory");
287
289
  Object.defineProperty(exports, "IWithdrawerOptions__factory", { enumerable: true, get: function () { return IWithdrawerOptions__factory_1.IWithdrawerOptions__factory; } });
290
+ var IWrapper__factory_1 = require("./factories/contracts/pathfinder/interfaces/IWrapper__factory");
291
+ Object.defineProperty(exports, "IWrapper__factory", { enumerable: true, get: function () { return IWrapper__factory_1.IWrapper__factory; } });
288
292
  var ILidoMockEvents__factory_1 = require("./factories/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents__factory");
289
293
  Object.defineProperty(exports, "ILidoMockEvents__factory", { enumerable: true, get: function () { return ILidoMockEvents__factory_1.ILidoMockEvents__factory; } });
290
294
  var ILockedCvx__factory_1 = require("./factories/contracts/test/sigp/interfaces/ILockedCvx__factory");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "1.8.7",
3
+ "version": "1.8.9",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",