@gearbox-protocol/sdk 1.1.0 → 1.2.2
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/creditManager.d.ts +5 -0
- package/lib/core/creditManager.js +5 -0
- package/lib/pathfinder/path.js +5 -5
- package/lib/payload/creditManager.d.ts +5 -0
- package/lib/strategies/creditFacade.js +1 -1
- package/lib/tokens/token.js +18 -18
- package/lib/types/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator.d.ts +271 -20
- package/lib/types/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents.d.ts +8 -19
- package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended.d.ts +9 -9
- package/lib/types/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2.d.ts +52 -116
- package/lib/types/contracts/interfaces/IDataCompressor.sol/IDataCompressor.d.ts +26 -1
- package/lib/types/contracts/interfaces/IDegenNFT.sol/IDegenNFT.d.ts +10 -10
- package/lib/types/contracts/interfaces/V1/ICreditFilter.d.ts +3 -3
- package/lib/types/contracts/interfaces/adapters/convex/IConvexV1BoosterAdapter.d.ts +1 -9
- package/lib/types/contracts/pathfinder/index.d.ts +0 -1
- package/lib/types/contracts/pathfinder/interfaces/IClosePathResolver.d.ts +125 -0
- package/lib/types/contracts/pathfinder/{ISwapper.js → interfaces/IClosePathResolver.js} +0 -0
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor.d.ts +159 -0
- package/lib/types/contracts/pathfinder/interfaces/{ISwapPathFinder.js → IDepositor.sol/IDepositor.js} +0 -0
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions.d.ts +165 -0
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/index.d.ts +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/index.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IGasPricer.d.ts +44 -0
- package/lib/types/contracts/pathfinder/interfaces/IGasPricer.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker.d.ts +113 -0
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions.d.ts +119 -0
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/index.d.ts +2 -0
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/index.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IPathFinder.d.ts +210 -0
- package/lib/types/contracts/pathfinder/interfaces/IPathFinder.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IPathResolver.d.ts +131 -0
- package/lib/types/contracts/pathfinder/interfaces/IPathResolver.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/{ISwapPathFinder.d.ts → ISwapAggregator.d.ts} +98 -14
- package/lib/types/contracts/pathfinder/interfaces/ISwapAggregator.js +2 -0
- package/lib/types/contracts/pathfinder/{ISwapper.d.ts → interfaces/ISwapper.d.ts} +1 -1
- package/lib/types/contracts/pathfinder/interfaces/ISwapper.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer.d.ts +144 -0
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions.d.ts +160 -0
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/index.d.ts +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/index.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/index.d.ts +12 -1
- package/lib/types/factories/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents__factory.js +1 -14
- package/lib/types/factories/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorExceptions__factory.js +2 -17
- package/lib/types/factories/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator__factory.js +240 -31
- package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExceptions__factory.js +7 -2
- package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended__factory.js +1 -1
- package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacade__factory.js +7 -2
- package/lib/types/factories/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +2 -2
- package/lib/types/factories/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2__factory.js +41 -84
- package/lib/types/factories/contracts/interfaces/IDataCompressor.sol/IDataCompressor__factory.d.ts +14 -14
- package/lib/types/factories/contracts/interfaces/IDataCompressor.sol/IDataCompressor__factory.js +74 -0
- package/lib/types/factories/contracts/interfaces/IDegenNFT.sol/IDegenNFT__factory.js +4 -4
- package/lib/types/factories/contracts/interfaces/V1/ICreditFilter__factory.js +1 -1
- package/lib/types/factories/contracts/interfaces/adapters/convex/IConvexV1BoosterAdapter__factory.js +0 -13
- package/lib/types/factories/contracts/pathfinder/index.d.ts +0 -1
- package/lib/types/factories/contracts/pathfinder/index.js +1 -3
- package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.d.ts +57 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.js +264 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory.d.ts +62 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory.js +717 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory.d.ts +62 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory.js +702 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/index.d.ts +2 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/index.js +10 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IGasPricer__factory.d.ts +22 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IGasPricer__factory.js +41 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.d.ts +62 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.js +252 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory.d.ts +62 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory.js +247 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/index.d.ts +2 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/index.js +10 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/{ISwapPathFinder__factory.d.ts → IPathFinder__factory.d.ts} +42 -28
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinder__factory.js +483 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.d.ts +57 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.js +467 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ISwapAggregator__factory.d.ts +62 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/ISwapAggregator__factory.js +782 -0
- package/lib/types/factories/contracts/pathfinder/{ISwapper__factory.d.ts → interfaces/ISwapper__factory.d.ts} +1 -1
- package/lib/types/factories/contracts/pathfinder/{ISwapper__factory.js → interfaces/ISwapper__factory.js} +0 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.d.ts +62 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.js +729 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory.d.ts +62 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory.js +692 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/index.d.ts +2 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/index.js +10 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/index.d.ts +9 -1
- package/lib/types/factories/contracts/pathfinder/interfaces/index.js +39 -3
- 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/index.d.ts +24 -4
- package/lib/types/index.js +24 -4
- package/package.json +2 -2
- package/lib/types/factories/contracts/pathfinder/interfaces/ISwapPathFinder__factory.js +0 -346
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IWithdrawerOptions__factory = exports.IWithdrawer__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
var IWithdrawer__factory_1 = require("./IWithdrawer__factory");
|
|
8
|
+
Object.defineProperty(exports, "IWithdrawer__factory", { enumerable: true, get: function () { return IWithdrawer__factory_1.IWithdrawer__factory; } });
|
|
9
|
+
var IWithdrawerOptions__factory_1 = require("./IWithdrawerOptions__factory");
|
|
10
|
+
Object.defineProperty(exports, "IWithdrawerOptions__factory", { enumerable: true, get: function () { return IWithdrawerOptions__factory_1.IWithdrawerOptions__factory; } });
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * as iDepositorSol from "./IDepositor.sol";
|
|
2
|
+
export * as ilpWorkerSol from "./ILPWorker.sol";
|
|
3
|
+
export * as iWithdrawerSol from "./IWithdrawer.sol";
|
|
4
|
+
export { IClosePathResolver__factory } from "./IClosePathResolver__factory";
|
|
5
|
+
export { IGasPricer__factory } from "./IGasPricer__factory";
|
|
6
|
+
export { IPathFinder__factory } from "./IPathFinder__factory";
|
|
7
|
+
export { IPathResolver__factory } from "./IPathResolver__factory";
|
|
8
|
+
export { ISwapAggregator__factory } from "./ISwapAggregator__factory";
|
|
9
|
+
export { ISwapper__factory } from "./ISwapper__factory";
|
|
@@ -1,8 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
26
|
+
exports.ISwapper__factory = exports.ISwapAggregator__factory = exports.IPathResolver__factory = exports.IPathFinder__factory = exports.IGasPricer__factory = exports.IClosePathResolver__factory = exports.iWithdrawerSol = exports.ilpWorkerSol = exports.iDepositorSol = void 0;
|
|
4
27
|
/* Autogenerated file. Do not edit manually. */
|
|
5
28
|
/* tslint:disable */
|
|
6
29
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
30
|
+
exports.iDepositorSol = __importStar(require("./IDepositor.sol"));
|
|
31
|
+
exports.ilpWorkerSol = __importStar(require("./ILPWorker.sol"));
|
|
32
|
+
exports.iWithdrawerSol = __importStar(require("./IWithdrawer.sol"));
|
|
33
|
+
var IClosePathResolver__factory_1 = require("./IClosePathResolver__factory");
|
|
34
|
+
Object.defineProperty(exports, "IClosePathResolver__factory", { enumerable: true, get: function () { return IClosePathResolver__factory_1.IClosePathResolver__factory; } });
|
|
35
|
+
var IGasPricer__factory_1 = require("./IGasPricer__factory");
|
|
36
|
+
Object.defineProperty(exports, "IGasPricer__factory", { enumerable: true, get: function () { return IGasPricer__factory_1.IGasPricer__factory; } });
|
|
37
|
+
var IPathFinder__factory_1 = require("./IPathFinder__factory");
|
|
38
|
+
Object.defineProperty(exports, "IPathFinder__factory", { enumerable: true, get: function () { return IPathFinder__factory_1.IPathFinder__factory; } });
|
|
39
|
+
var IPathResolver__factory_1 = require("./IPathResolver__factory");
|
|
40
|
+
Object.defineProperty(exports, "IPathResolver__factory", { enumerable: true, get: function () { return IPathResolver__factory_1.IPathResolver__factory; } });
|
|
41
|
+
var ISwapAggregator__factory_1 = require("./ISwapAggregator__factory");
|
|
42
|
+
Object.defineProperty(exports, "ISwapAggregator__factory", { enumerable: true, get: function () { return ISwapAggregator__factory_1.ISwapAggregator__factory; } });
|
|
43
|
+
var ISwapper__factory_1 = require("./ISwapper__factory");
|
|
44
|
+
Object.defineProperty(exports, "ISwapper__factory", { enumerable: true, get: function () { return ISwapper__factory_1.ISwapper__factory; } });
|
|
@@ -12,7 +12,7 @@ export declare class Multicall2__factory extends ContractFactory {
|
|
|
12
12
|
}): TransactionRequest;
|
|
13
13
|
attach(address: string): Multicall2;
|
|
14
14
|
connect(signer: Signer): Multicall2__factory;
|
|
15
|
-
static readonly bytecode = "";
|
|
15
|
+
static readonly bytecode = "0x608060405234801561001057600080fd5b50610b51806100206000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806372425d9d11610081578063bce38bd71161005b578063bce38bd714610181578063c3077fa9146101a1578063ee82ac5e146101b457600080fd5b806372425d9d1461016757806386d516e81461016d578063a8b0574e1461017357600080fd5b8063399542e9116100b2578063399542e91461011757806342cbb15c146101395780634d2301cc1461013f57600080fd5b80630f28c97d146100d9578063252dba42146100ee57806327e86d6e1461010f575b600080fd5b425b6040519081526020015b60405180910390f35b6101016100fc3660046107df565b6101c6565b6040516100e5929190610896565b6100db610373565b61012a61012536600461091e565b610386565b6040516100e5939291906109db565b436100db565b6100db61014d366004610a03565b73ffffffffffffffffffffffffffffffffffffffff163190565b446100db565b456100db565b6040514181526020016100e5565b61019461018f36600461091e565b61039e565b6040516100e59190610a25565b61012a6101af3660046107df565b610599565b6100db6101c2366004610a38565b4090565b8051439060609067ffffffffffffffff8111156101e5576101e56105b6565b60405190808252806020026020018201604052801561021857816020015b60608152602001906001900390816102035790505b50905060005b835181101561036d5760008085838151811061023c5761023c610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1686848151811061027057610270610a51565b6020026020010151602001516040516102899190610a80565b6000604051808303816000865af19150503d80600081146102c6576040519150601f19603f3d011682016040523d82523d6000602084013e6102cb565b606091505b50915091508161033c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4d756c746963616c6c206167677265676174653a2063616c6c206661696c656460448201526064015b60405180910390fd5b8084848151811061034f5761034f610a51565b602002602001018190525050508061036690610acb565b905061021e565b50915091565b6000610380600143610b04565b40905090565b4380406060610395858561039e565b90509250925092565b6060815167ffffffffffffffff8111156103ba576103ba6105b6565b60405190808252806020026020018201604052801561040057816020015b6040805180820190915260008152606060208201528152602001906001900390816103d85790505b50905060005b82518110156105925760008084838151811061042457610424610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1685848151811061045857610458610a51565b6020026020010151602001516040516104719190610a80565b6000604051808303816000865af19150503d80600081146104ae576040519150601f19603f3d011682016040523d82523d6000602084013e6104b3565b606091505b5091509150851561054b578161054b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4d756c746963616c6c32206167677265676174653a2063616c6c206661696c6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610333565b604051806040016040528083151581526020018281525084848151811061057457610574610a51565b602002602001018190525050508061058b90610acb565b9050610406565b5092915050565b60008060606105a9600185610386565b9196909550909350915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715610608576106086105b6565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610655576106556105b6565b604052919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461068157600080fd5b919050565b6000601f838184011261069857600080fd5b8235602067ffffffffffffffff808311156106b5576106b56105b6565b8260051b6106c483820161060e565b93845286810183019383810190898611156106de57600080fd5b84890192505b858310156107d2578235848111156106fc5760008081fd5b890160407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0828d0381018213156107335760008081fd5b61073b6105e5565b61074689850161065d565b8152828401358881111561075a5760008081fd5b8085019450508d603f8501126107705760008081fd5b8884013588811115610784576107846105b6565b6107938a848e8401160161060e565b92508083528e848287010111156107aa5760008081fd5b808486018b85013760009083018a0152808901919091528452505091840191908401906106e4565b9998505050505050505050565b6000602082840312156107f157600080fd5b813567ffffffffffffffff81111561080857600080fd5b61081484828501610686565b949350505050565b60005b8381101561083757818101518382015260200161081f565b83811115610846576000848401525b50505050565b6000815180845261086481602086016020860161081c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600060408201848352602060408185015281855180845260608601915060608160051b870101935082870160005b82811015610910577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08887030184526108fe86835161084c565b955092840192908401906001016108c4565b509398975050505050505050565b6000806040838503121561093157600080fd5b8235801515811461094157600080fd5b9150602083013567ffffffffffffffff81111561095d57600080fd5b61096985828601610686565b9150509250929050565b6000815180845260208085019450848260051b860182860160005b858110156109ce578383038952815180511515845285015160408685018190526109ba8186018361084c565b9a87019a945050509084019060010161098e565b5090979650505050505050565b8381528260208201526060604082015260006109fa6060830184610973565b95945050505050565b600060208284031215610a1557600080fd5b610a1e8261065d565b9392505050565b602081526000610a1e6020830184610973565b600060208284031215610a4a57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008251610a9281846020870161081c565b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415610afd57610afd610a9c565b5060010190565b600082821015610b1657610b16610a9c565b50039056fea2646970667358221220125df3e1e21b5f72a198b151923a51a6f30c33ef274b23d8593ad64b95e7c91f64736f6c634300080a0033";
|
|
16
16
|
static readonly abi: {
|
|
17
17
|
inputs: ({
|
|
18
18
|
internalType: string;
|
|
@@ -333,7 +333,7 @@ var _abi = [
|
|
|
333
333
|
type: "function",
|
|
334
334
|
},
|
|
335
335
|
];
|
|
336
|
-
var _bytecode = "";
|
|
336
|
+
var _bytecode = "0x608060405234801561001057600080fd5b50610b51806100206000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806372425d9d11610081578063bce38bd71161005b578063bce38bd714610181578063c3077fa9146101a1578063ee82ac5e146101b457600080fd5b806372425d9d1461016757806386d516e81461016d578063a8b0574e1461017357600080fd5b8063399542e9116100b2578063399542e91461011757806342cbb15c146101395780634d2301cc1461013f57600080fd5b80630f28c97d146100d9578063252dba42146100ee57806327e86d6e1461010f575b600080fd5b425b6040519081526020015b60405180910390f35b6101016100fc3660046107df565b6101c6565b6040516100e5929190610896565b6100db610373565b61012a61012536600461091e565b610386565b6040516100e5939291906109db565b436100db565b6100db61014d366004610a03565b73ffffffffffffffffffffffffffffffffffffffff163190565b446100db565b456100db565b6040514181526020016100e5565b61019461018f36600461091e565b61039e565b6040516100e59190610a25565b61012a6101af3660046107df565b610599565b6100db6101c2366004610a38565b4090565b8051439060609067ffffffffffffffff8111156101e5576101e56105b6565b60405190808252806020026020018201604052801561021857816020015b60608152602001906001900390816102035790505b50905060005b835181101561036d5760008085838151811061023c5761023c610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1686848151811061027057610270610a51565b6020026020010151602001516040516102899190610a80565b6000604051808303816000865af19150503d80600081146102c6576040519150601f19603f3d011682016040523d82523d6000602084013e6102cb565b606091505b50915091508161033c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4d756c746963616c6c206167677265676174653a2063616c6c206661696c656460448201526064015b60405180910390fd5b8084848151811061034f5761034f610a51565b602002602001018190525050508061036690610acb565b905061021e565b50915091565b6000610380600143610b04565b40905090565b4380406060610395858561039e565b90509250925092565b6060815167ffffffffffffffff8111156103ba576103ba6105b6565b60405190808252806020026020018201604052801561040057816020015b6040805180820190915260008152606060208201528152602001906001900390816103d85790505b50905060005b82518110156105925760008084838151811061042457610424610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1685848151811061045857610458610a51565b6020026020010151602001516040516104719190610a80565b6000604051808303816000865af19150503d80600081146104ae576040519150601f19603f3d011682016040523d82523d6000602084013e6104b3565b606091505b5091509150851561054b578161054b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4d756c746963616c6c32206167677265676174653a2063616c6c206661696c6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610333565b604051806040016040528083151581526020018281525084848151811061057457610574610a51565b602002602001018190525050508061058b90610acb565b9050610406565b5092915050565b60008060606105a9600185610386565b9196909550909350915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715610608576106086105b6565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610655576106556105b6565b604052919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461068157600080fd5b919050565b6000601f838184011261069857600080fd5b8235602067ffffffffffffffff808311156106b5576106b56105b6565b8260051b6106c483820161060e565b93845286810183019383810190898611156106de57600080fd5b84890192505b858310156107d2578235848111156106fc5760008081fd5b890160407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0828d0381018213156107335760008081fd5b61073b6105e5565b61074689850161065d565b8152828401358881111561075a5760008081fd5b8085019450508d603f8501126107705760008081fd5b8884013588811115610784576107846105b6565b6107938a848e8401160161060e565b92508083528e848287010111156107aa5760008081fd5b808486018b85013760009083018a0152808901919091528452505091840191908401906106e4565b9998505050505050505050565b6000602082840312156107f157600080fd5b813567ffffffffffffffff81111561080857600080fd5b61081484828501610686565b949350505050565b60005b8381101561083757818101518382015260200161081f565b83811115610846576000848401525b50505050565b6000815180845261086481602086016020860161081c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600060408201848352602060408185015281855180845260608601915060608160051b870101935082870160005b82811015610910577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08887030184526108fe86835161084c565b955092840192908401906001016108c4565b509398975050505050505050565b6000806040838503121561093157600080fd5b8235801515811461094157600080fd5b9150602083013567ffffffffffffffff81111561095d57600080fd5b61096985828601610686565b9150509250929050565b6000815180845260208085019450848260051b860182860160005b858110156109ce578383038952815180511515845285015160408685018190526109ba8186018361084c565b9a87019a945050509084019060010161098e565b5090979650505050505050565b8381528260208201526060604082015260006109fa6060830184610973565b95945050505050565b600060208284031215610a1557600080fd5b610a1e8261065d565b9392505050565b602081526000610a1e6020830184610973565b600060208284031215610a4a57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008251610a9281846020870161081c565b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415610afd57610afd610a9c565b5060010190565b600082821015610b1657610b16610a9c565b50039056fea2646970667358221220125df3e1e21b5f72a198b151923a51a6f30c33ef274b23d8593ad64b95e7c91f64736f6c634300080a0033";
|
|
337
337
|
var isSuperArgs = function (xs) { return xs.length > 1; };
|
|
338
338
|
var Multicall2__factory = /** @class */ (function (_super) {
|
|
339
339
|
__extends(Multicall2__factory, _super);
|
package/lib/types/index.d.ts
CHANGED
|
@@ -221,10 +221,30 @@ export type { ICreditFilter } from "./contracts/interfaces/V1/ICreditFilter";
|
|
|
221
221
|
export { ICreditFilter__factory } from "./factories/contracts/interfaces/V1/ICreditFilter__factory";
|
|
222
222
|
export type { ICreditManager } from "./contracts/interfaces/V1/ICreditManager";
|
|
223
223
|
export { ICreditManager__factory } from "./factories/contracts/interfaces/V1/ICreditManager__factory";
|
|
224
|
-
export type {
|
|
225
|
-
export {
|
|
226
|
-
export type {
|
|
227
|
-
export {
|
|
224
|
+
export type { IClosePathResolver } from "./contracts/pathfinder/interfaces/IClosePathResolver";
|
|
225
|
+
export { IClosePathResolver__factory } from "./factories/contracts/pathfinder/interfaces/IClosePathResolver__factory";
|
|
226
|
+
export type { IDepositor } from "./contracts/pathfinder/interfaces/IDepositor.sol/IDepositor";
|
|
227
|
+
export { IDepositor__factory } from "./factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory";
|
|
228
|
+
export type { IDepositorOptions } from "./contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions";
|
|
229
|
+
export { IDepositorOptions__factory } from "./factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory";
|
|
230
|
+
export type { IGasPricer } from "./contracts/pathfinder/interfaces/IGasPricer";
|
|
231
|
+
export { IGasPricer__factory } from "./factories/contracts/pathfinder/interfaces/IGasPricer__factory";
|
|
232
|
+
export type { ILPWorker } from "./contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker";
|
|
233
|
+
export { ILPWorker__factory } from "./factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory";
|
|
234
|
+
export type { ILPWorkerOptions } from "./contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions";
|
|
235
|
+
export { ILPWorkerOptions__factory } from "./factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory";
|
|
236
|
+
export type { IPathFinder } from "./contracts/pathfinder/interfaces/IPathFinder";
|
|
237
|
+
export { IPathFinder__factory } from "./factories/contracts/pathfinder/interfaces/IPathFinder__factory";
|
|
238
|
+
export type { IPathResolver } from "./contracts/pathfinder/interfaces/IPathResolver";
|
|
239
|
+
export { IPathResolver__factory } from "./factories/contracts/pathfinder/interfaces/IPathResolver__factory";
|
|
240
|
+
export type { ISwapAggregator } from "./contracts/pathfinder/interfaces/ISwapAggregator";
|
|
241
|
+
export { ISwapAggregator__factory } from "./factories/contracts/pathfinder/interfaces/ISwapAggregator__factory";
|
|
242
|
+
export type { ISwapper } from "./contracts/pathfinder/interfaces/ISwapper";
|
|
243
|
+
export { ISwapper__factory } from "./factories/contracts/pathfinder/interfaces/ISwapper__factory";
|
|
244
|
+
export type { IWithdrawer } from "./contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer";
|
|
245
|
+
export { IWithdrawer__factory } from "./factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory";
|
|
246
|
+
export type { IWithdrawerOptions } from "./contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions";
|
|
247
|
+
export { IWithdrawerOptions__factory } from "./factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory";
|
|
228
248
|
export type { ILidoMockEvents } from "./contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents";
|
|
229
249
|
export { ILidoMockEvents__factory } from "./factories/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents__factory";
|
|
230
250
|
export type { ILockedCvx } from "./contracts/test/sigp/interfaces/ILockedCvx";
|
package/lib/types/index.js
CHANGED
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.ICurveV1Adapter__factory = exports.IConvexV1BoosterAdapter__factory = 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.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
27
|
exports.IPriceFeedAddress__factory = exports.IPoolServiceEvents__factory = exports.IPoolService__factory = exports.IPhantomERC20__factory = exports.IMerkleDistributor__factory = exports.ILPPriceFeedExceptions__factory = exports.ILPPriceFeedEvents__factory = 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.IUniswapV3AdapterExceptions__factory = exports.IUniswapV3Adapter__factory = exports.IUniswapV2Adapter__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 = void 0;
|
|
28
|
-
exports.Multicall2__factory = exports.AggregatorV3Interface__factory = exports.ILockedCvx__factory = exports.ILidoMockEvents__factory = exports.ISwapper__factory = exports.
|
|
28
|
+
exports.Multicall2__factory = exports.AggregatorV3Interface__factory = exports.ILockedCvx__factory = exports.ILidoMockEvents__factory = exports.IWithdrawerOptions__factory = exports.IWithdrawer__factory = exports.ISwapper__factory = exports.ISwapAggregator__factory = exports.IPathResolver__factory = exports.IPathFinder__factory = exports.ILPWorkerOptions__factory = exports.ILPWorker__factory = exports.IGasPricer__factory = exports.IDepositorOptions__factory = exports.IDepositor__factory = exports.IClosePathResolver__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 = 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; } });
|
|
@@ -243,10 +243,30 @@ var ICreditFilter__factory_1 = require("./factories/contracts/interfaces/V1/ICre
|
|
|
243
243
|
Object.defineProperty(exports, "ICreditFilter__factory", { enumerable: true, get: function () { return ICreditFilter__factory_1.ICreditFilter__factory; } });
|
|
244
244
|
var ICreditManager__factory_1 = require("./factories/contracts/interfaces/V1/ICreditManager__factory");
|
|
245
245
|
Object.defineProperty(exports, "ICreditManager__factory", { enumerable: true, get: function () { return ICreditManager__factory_1.ICreditManager__factory; } });
|
|
246
|
-
var
|
|
247
|
-
Object.defineProperty(exports, "
|
|
248
|
-
var
|
|
246
|
+
var IClosePathResolver__factory_1 = require("./factories/contracts/pathfinder/interfaces/IClosePathResolver__factory");
|
|
247
|
+
Object.defineProperty(exports, "IClosePathResolver__factory", { enumerable: true, get: function () { return IClosePathResolver__factory_1.IClosePathResolver__factory; } });
|
|
248
|
+
var IDepositor__factory_1 = require("./factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory");
|
|
249
|
+
Object.defineProperty(exports, "IDepositor__factory", { enumerable: true, get: function () { return IDepositor__factory_1.IDepositor__factory; } });
|
|
250
|
+
var IDepositorOptions__factory_1 = require("./factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory");
|
|
251
|
+
Object.defineProperty(exports, "IDepositorOptions__factory", { enumerable: true, get: function () { return IDepositorOptions__factory_1.IDepositorOptions__factory; } });
|
|
252
|
+
var IGasPricer__factory_1 = require("./factories/contracts/pathfinder/interfaces/IGasPricer__factory");
|
|
253
|
+
Object.defineProperty(exports, "IGasPricer__factory", { enumerable: true, get: function () { return IGasPricer__factory_1.IGasPricer__factory; } });
|
|
254
|
+
var ILPWorker__factory_1 = require("./factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory");
|
|
255
|
+
Object.defineProperty(exports, "ILPWorker__factory", { enumerable: true, get: function () { return ILPWorker__factory_1.ILPWorker__factory; } });
|
|
256
|
+
var ILPWorkerOptions__factory_1 = require("./factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory");
|
|
257
|
+
Object.defineProperty(exports, "ILPWorkerOptions__factory", { enumerable: true, get: function () { return ILPWorkerOptions__factory_1.ILPWorkerOptions__factory; } });
|
|
258
|
+
var IPathFinder__factory_1 = require("./factories/contracts/pathfinder/interfaces/IPathFinder__factory");
|
|
259
|
+
Object.defineProperty(exports, "IPathFinder__factory", { enumerable: true, get: function () { return IPathFinder__factory_1.IPathFinder__factory; } });
|
|
260
|
+
var IPathResolver__factory_1 = require("./factories/contracts/pathfinder/interfaces/IPathResolver__factory");
|
|
261
|
+
Object.defineProperty(exports, "IPathResolver__factory", { enumerable: true, get: function () { return IPathResolver__factory_1.IPathResolver__factory; } });
|
|
262
|
+
var ISwapAggregator__factory_1 = require("./factories/contracts/pathfinder/interfaces/ISwapAggregator__factory");
|
|
263
|
+
Object.defineProperty(exports, "ISwapAggregator__factory", { enumerable: true, get: function () { return ISwapAggregator__factory_1.ISwapAggregator__factory; } });
|
|
264
|
+
var ISwapper__factory_1 = require("./factories/contracts/pathfinder/interfaces/ISwapper__factory");
|
|
249
265
|
Object.defineProperty(exports, "ISwapper__factory", { enumerable: true, get: function () { return ISwapper__factory_1.ISwapper__factory; } });
|
|
266
|
+
var IWithdrawer__factory_1 = require("./factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory");
|
|
267
|
+
Object.defineProperty(exports, "IWithdrawer__factory", { enumerable: true, get: function () { return IWithdrawer__factory_1.IWithdrawer__factory; } });
|
|
268
|
+
var IWithdrawerOptions__factory_1 = require("./factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory");
|
|
269
|
+
Object.defineProperty(exports, "IWithdrawerOptions__factory", { enumerable: true, get: function () { return IWithdrawerOptions__factory_1.IWithdrawerOptions__factory; } });
|
|
250
270
|
var ILidoMockEvents__factory_1 = require("./factories/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents__factory");
|
|
251
271
|
Object.defineProperty(exports, "ILidoMockEvents__factory", { enumerable: true, get: function () { return ILidoMockEvents__factory_1.ILidoMockEvents__factory; } });
|
|
252
272
|
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.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"prettier": "@gearbox-protocol/prettier-config",
|
|
54
54
|
"lint-staged": {
|
|
55
|
-
"*.
|
|
55
|
+
"*.ts": [
|
|
56
56
|
"eslint --fix",
|
|
57
57
|
"prettier --write"
|
|
58
58
|
],
|
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* Autogenerated file. Do not edit manually. */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ISwapPathFinder__factory = void 0;
|
|
7
|
-
var ethers_1 = require("ethers");
|
|
8
|
-
var _abi = [
|
|
9
|
-
{
|
|
10
|
-
inputs: [
|
|
11
|
-
{
|
|
12
|
-
components: [
|
|
13
|
-
{
|
|
14
|
-
internalType: "enum SwapOperation",
|
|
15
|
-
name: "swapOperation",
|
|
16
|
-
type: "uint8",
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
internalType: "address",
|
|
20
|
-
name: "creditAccount",
|
|
21
|
-
type: "address",
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
internalType: "address",
|
|
25
|
-
name: "tokenIn",
|
|
26
|
-
type: "address",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
internalType: "address",
|
|
30
|
-
name: "tokenOut",
|
|
31
|
-
type: "address",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
internalType: "address[]",
|
|
35
|
-
name: "connectors",
|
|
36
|
-
type: "address[]",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
internalType: "uint256",
|
|
40
|
-
name: "amount",
|
|
41
|
-
type: "uint256",
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
internalType: "uint256",
|
|
45
|
-
name: "slippage",
|
|
46
|
-
type: "uint256",
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
internalType: "bool",
|
|
50
|
-
name: "externalSlippage",
|
|
51
|
-
type: "bool",
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
internalType: "struct SwapTask",
|
|
55
|
-
name: "swapTask",
|
|
56
|
-
type: "tuple",
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
internalType: "address[]",
|
|
60
|
-
name: "adapters",
|
|
61
|
-
type: "address[]",
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
name: "findAllSwaps",
|
|
65
|
-
outputs: [
|
|
66
|
-
{
|
|
67
|
-
components: [
|
|
68
|
-
{
|
|
69
|
-
components: [
|
|
70
|
-
{
|
|
71
|
-
internalType: "address",
|
|
72
|
-
name: "target",
|
|
73
|
-
type: "address",
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
internalType: "bytes",
|
|
77
|
-
name: "callData",
|
|
78
|
-
type: "bytes",
|
|
79
|
-
},
|
|
80
|
-
],
|
|
81
|
-
internalType: "struct MultiCall",
|
|
82
|
-
name: "multiCall",
|
|
83
|
-
type: "tuple",
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
internalType: "uint256",
|
|
87
|
-
name: "amount",
|
|
88
|
-
type: "uint256",
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
internalType: "bool",
|
|
92
|
-
name: "found",
|
|
93
|
-
type: "bool",
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
internalType: "uint256",
|
|
97
|
-
name: "gasUsage",
|
|
98
|
-
type: "uint256",
|
|
99
|
-
},
|
|
100
|
-
],
|
|
101
|
-
internalType: "struct SwapQuote[]",
|
|
102
|
-
name: "results",
|
|
103
|
-
type: "tuple[]",
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
stateMutability: "nonpayable",
|
|
107
|
-
type: "function",
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
inputs: [
|
|
111
|
-
{
|
|
112
|
-
components: [
|
|
113
|
-
{
|
|
114
|
-
internalType: "enum SwapOperation",
|
|
115
|
-
name: "swapOperation",
|
|
116
|
-
type: "uint8",
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
internalType: "address",
|
|
120
|
-
name: "creditAccount",
|
|
121
|
-
type: "address",
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
internalType: "address",
|
|
125
|
-
name: "tokenIn",
|
|
126
|
-
type: "address",
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
internalType: "address",
|
|
130
|
-
name: "tokenOut",
|
|
131
|
-
type: "address",
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
internalType: "address[]",
|
|
135
|
-
name: "connectors",
|
|
136
|
-
type: "address[]",
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
internalType: "uint256",
|
|
140
|
-
name: "amount",
|
|
141
|
-
type: "uint256",
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
internalType: "uint256",
|
|
145
|
-
name: "slippage",
|
|
146
|
-
type: "uint256",
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
internalType: "bool",
|
|
150
|
-
name: "externalSlippage",
|
|
151
|
-
type: "bool",
|
|
152
|
-
},
|
|
153
|
-
],
|
|
154
|
-
internalType: "struct SwapTask",
|
|
155
|
-
name: "swapTask",
|
|
156
|
-
type: "tuple",
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
internalType: "address[]",
|
|
160
|
-
name: "adapters",
|
|
161
|
-
type: "address[]",
|
|
162
|
-
},
|
|
163
|
-
],
|
|
164
|
-
name: "findBestSwap",
|
|
165
|
-
outputs: [
|
|
166
|
-
{
|
|
167
|
-
components: [
|
|
168
|
-
{
|
|
169
|
-
components: [
|
|
170
|
-
{
|
|
171
|
-
internalType: "address",
|
|
172
|
-
name: "target",
|
|
173
|
-
type: "address",
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
internalType: "bytes",
|
|
177
|
-
name: "callData",
|
|
178
|
-
type: "bytes",
|
|
179
|
-
},
|
|
180
|
-
],
|
|
181
|
-
internalType: "struct MultiCall",
|
|
182
|
-
name: "multiCall",
|
|
183
|
-
type: "tuple",
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
internalType: "uint256",
|
|
187
|
-
name: "amount",
|
|
188
|
-
type: "uint256",
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
internalType: "bool",
|
|
192
|
-
name: "found",
|
|
193
|
-
type: "bool",
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
internalType: "uint256",
|
|
197
|
-
name: "gasUsage",
|
|
198
|
-
type: "uint256",
|
|
199
|
-
},
|
|
200
|
-
],
|
|
201
|
-
internalType: "struct SwapQuote",
|
|
202
|
-
name: "bestQuote",
|
|
203
|
-
type: "tuple",
|
|
204
|
-
},
|
|
205
|
-
],
|
|
206
|
-
stateMutability: "nonpayable",
|
|
207
|
-
type: "function",
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
inputs: [
|
|
211
|
-
{
|
|
212
|
-
components: [
|
|
213
|
-
{
|
|
214
|
-
internalType: "enum SwapOperation",
|
|
215
|
-
name: "swapOperation",
|
|
216
|
-
type: "uint8",
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
internalType: "address",
|
|
220
|
-
name: "creditAccount",
|
|
221
|
-
type: "address",
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
internalType: "address",
|
|
225
|
-
name: "tokenIn",
|
|
226
|
-
type: "address",
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
internalType: "address",
|
|
230
|
-
name: "tokenOut",
|
|
231
|
-
type: "address",
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
internalType: "address[]",
|
|
235
|
-
name: "connectors",
|
|
236
|
-
type: "address[]",
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
internalType: "uint256",
|
|
240
|
-
name: "amount",
|
|
241
|
-
type: "uint256",
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
internalType: "uint256",
|
|
245
|
-
name: "slippage",
|
|
246
|
-
type: "uint256",
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
internalType: "bool",
|
|
250
|
-
name: "externalSlippage",
|
|
251
|
-
type: "bool",
|
|
252
|
-
},
|
|
253
|
-
],
|
|
254
|
-
internalType: "struct SwapTask",
|
|
255
|
-
name: "swapTask",
|
|
256
|
-
type: "tuple",
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
internalType: "address[]",
|
|
260
|
-
name: "adapters",
|
|
261
|
-
type: "address[]",
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
internalType: "uint256",
|
|
265
|
-
name: "gasPriceInTokenOut",
|
|
266
|
-
type: "uint256",
|
|
267
|
-
},
|
|
268
|
-
],
|
|
269
|
-
name: "getBestDirectPairSwap",
|
|
270
|
-
outputs: [
|
|
271
|
-
{
|
|
272
|
-
components: [
|
|
273
|
-
{
|
|
274
|
-
components: [
|
|
275
|
-
{
|
|
276
|
-
internalType: "address",
|
|
277
|
-
name: "target",
|
|
278
|
-
type: "address",
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
internalType: "bytes",
|
|
282
|
-
name: "callData",
|
|
283
|
-
type: "bytes",
|
|
284
|
-
},
|
|
285
|
-
],
|
|
286
|
-
internalType: "struct MultiCall",
|
|
287
|
-
name: "multiCall",
|
|
288
|
-
type: "tuple",
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
internalType: "uint256",
|
|
292
|
-
name: "amount",
|
|
293
|
-
type: "uint256",
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
internalType: "bool",
|
|
297
|
-
name: "found",
|
|
298
|
-
type: "bool",
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
internalType: "uint256",
|
|
302
|
-
name: "gasUsage",
|
|
303
|
-
type: "uint256",
|
|
304
|
-
},
|
|
305
|
-
],
|
|
306
|
-
internalType: "struct SwapQuote",
|
|
307
|
-
name: "quote",
|
|
308
|
-
type: "tuple",
|
|
309
|
-
},
|
|
310
|
-
],
|
|
311
|
-
stateMutability: "nonpayable",
|
|
312
|
-
type: "function",
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
inputs: [
|
|
316
|
-
{
|
|
317
|
-
internalType: "address",
|
|
318
|
-
name: "adapter",
|
|
319
|
-
type: "address",
|
|
320
|
-
},
|
|
321
|
-
],
|
|
322
|
-
name: "getPathFinder",
|
|
323
|
-
outputs: [
|
|
324
|
-
{
|
|
325
|
-
internalType: "address",
|
|
326
|
-
name: "pathFinder",
|
|
327
|
-
type: "address",
|
|
328
|
-
},
|
|
329
|
-
],
|
|
330
|
-
stateMutability: "view",
|
|
331
|
-
type: "function",
|
|
332
|
-
},
|
|
333
|
-
];
|
|
334
|
-
var ISwapPathFinder__factory = /** @class */ (function () {
|
|
335
|
-
function ISwapPathFinder__factory() {
|
|
336
|
-
}
|
|
337
|
-
ISwapPathFinder__factory.createInterface = function () {
|
|
338
|
-
return new ethers_1.utils.Interface(_abi);
|
|
339
|
-
};
|
|
340
|
-
ISwapPathFinder__factory.connect = function (address, signerOrProvider) {
|
|
341
|
-
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
342
|
-
};
|
|
343
|
-
ISwapPathFinder__factory.abi = _abi;
|
|
344
|
-
return ISwapPathFinder__factory;
|
|
345
|
-
}());
|
|
346
|
-
exports.ISwapPathFinder__factory = ISwapPathFinder__factory;
|