@gearbox-protocol/sdk 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/core/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/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
package/lib/types/factories/contracts/interfaces/IDataCompressor.sol/IDataCompressor__factory.js
CHANGED
|
@@ -16,6 +16,30 @@ var _abi = [
|
|
|
16
16
|
name: "NotPoolException",
|
|
17
17
|
type: "error",
|
|
18
18
|
},
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "_creditManager",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "address",
|
|
28
|
+
name: "_allowedContract",
|
|
29
|
+
type: "address",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
name: "getAdapter",
|
|
33
|
+
outputs: [
|
|
34
|
+
{
|
|
35
|
+
internalType: "address",
|
|
36
|
+
name: "adapter",
|
|
37
|
+
type: "address",
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
stateMutability: "view",
|
|
41
|
+
type: "function",
|
|
42
|
+
},
|
|
19
43
|
{
|
|
20
44
|
inputs: [
|
|
21
45
|
{
|
|
@@ -416,6 +440,31 @@ var _abi = [
|
|
|
416
440
|
name: "maxEnabledTokensLength",
|
|
417
441
|
type: "uint8",
|
|
418
442
|
},
|
|
443
|
+
{
|
|
444
|
+
internalType: "uint16",
|
|
445
|
+
name: "feeInterest",
|
|
446
|
+
type: "uint16",
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
internalType: "uint16",
|
|
450
|
+
name: "feeLiquidation",
|
|
451
|
+
type: "uint16",
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
internalType: "uint16",
|
|
455
|
+
name: "liquidationDiscount",
|
|
456
|
+
type: "uint16",
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
internalType: "uint16",
|
|
460
|
+
name: "feeLiquidationExpired",
|
|
461
|
+
type: "uint16",
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
internalType: "uint16",
|
|
465
|
+
name: "liquidationDiscountExpired",
|
|
466
|
+
type: "uint16",
|
|
467
|
+
},
|
|
419
468
|
],
|
|
420
469
|
internalType: "struct CreditManagerData",
|
|
421
470
|
name: "",
|
|
@@ -538,6 +587,31 @@ var _abi = [
|
|
|
538
587
|
name: "maxEnabledTokensLength",
|
|
539
588
|
type: "uint8",
|
|
540
589
|
},
|
|
590
|
+
{
|
|
591
|
+
internalType: "uint16",
|
|
592
|
+
name: "feeInterest",
|
|
593
|
+
type: "uint16",
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
internalType: "uint16",
|
|
597
|
+
name: "feeLiquidation",
|
|
598
|
+
type: "uint16",
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
internalType: "uint16",
|
|
602
|
+
name: "liquidationDiscount",
|
|
603
|
+
type: "uint16",
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
internalType: "uint16",
|
|
607
|
+
name: "feeLiquidationExpired",
|
|
608
|
+
type: "uint16",
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
internalType: "uint16",
|
|
612
|
+
name: "liquidationDiscountExpired",
|
|
613
|
+
type: "uint16",
|
|
614
|
+
},
|
|
541
615
|
],
|
|
542
616
|
internalType: "struct CreditManagerData[]",
|
|
543
617
|
name: "",
|
|
@@ -43,12 +43,12 @@ var _abi = [
|
|
|
43
43
|
inputs: [
|
|
44
44
|
{
|
|
45
45
|
internalType: "address",
|
|
46
|
-
name: "",
|
|
46
|
+
name: "from",
|
|
47
47
|
type: "address",
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
internalType: "uint256",
|
|
51
|
-
name: "",
|
|
51
|
+
name: "amount",
|
|
52
52
|
type: "uint256",
|
|
53
53
|
},
|
|
54
54
|
],
|
|
@@ -61,12 +61,12 @@ var _abi = [
|
|
|
61
61
|
inputs: [
|
|
62
62
|
{
|
|
63
63
|
internalType: "address",
|
|
64
|
-
name: "",
|
|
64
|
+
name: "to",
|
|
65
65
|
type: "address",
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
internalType: "uint256",
|
|
69
|
-
name: "",
|
|
69
|
+
name: "amount",
|
|
70
70
|
type: "uint256",
|
|
71
71
|
},
|
|
72
72
|
],
|
package/lib/types/factories/contracts/interfaces/adapters/convex/IConvexV1BoosterAdapter__factory.js
CHANGED
|
@@ -43,19 +43,6 @@ var _abi = [
|
|
|
43
43
|
stateMutability: "pure",
|
|
44
44
|
type: "function",
|
|
45
45
|
},
|
|
46
|
-
{
|
|
47
|
-
inputs: [],
|
|
48
|
-
name: "booster",
|
|
49
|
-
outputs: [
|
|
50
|
-
{
|
|
51
|
-
internalType: "contract IBooster",
|
|
52
|
-
name: "",
|
|
53
|
-
type: "address",
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
stateMutability: "view",
|
|
57
|
-
type: "function",
|
|
58
|
-
},
|
|
59
46
|
{
|
|
60
47
|
inputs: [],
|
|
61
48
|
name: "creditFacade",
|
|
@@ -23,10 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.interfaces = void 0;
|
|
27
27
|
/* Autogenerated file. Do not edit manually. */
|
|
28
28
|
/* tslint:disable */
|
|
29
29
|
/* eslint-disable */
|
|
30
30
|
exports.interfaces = __importStar(require("./interfaces"));
|
|
31
|
-
var ISwapper__factory_1 = require("./ISwapper__factory");
|
|
32
|
-
Object.defineProperty(exports, "ISwapper__factory", { enumerable: true, get: function () { return ISwapper__factory_1.ISwapper__factory; } });
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { IClosePathResolver, IClosePathResolverInterface } from "../../../../contracts/pathfinder/interfaces/IClosePathResolver";
|
|
4
|
+
export declare class IClosePathResolver__factory {
|
|
5
|
+
static readonly abi: {
|
|
6
|
+
inputs: ({
|
|
7
|
+
components: ({
|
|
8
|
+
internalType: string;
|
|
9
|
+
name: string;
|
|
10
|
+
type: string;
|
|
11
|
+
components?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
components: {
|
|
14
|
+
internalType: string;
|
|
15
|
+
name: string;
|
|
16
|
+
type: string;
|
|
17
|
+
}[];
|
|
18
|
+
internalType: string;
|
|
19
|
+
name: string;
|
|
20
|
+
type: string;
|
|
21
|
+
})[];
|
|
22
|
+
internalType: string;
|
|
23
|
+
name: string;
|
|
24
|
+
type: string;
|
|
25
|
+
} | {
|
|
26
|
+
internalType: string;
|
|
27
|
+
name: string;
|
|
28
|
+
type: string;
|
|
29
|
+
components?: undefined;
|
|
30
|
+
})[];
|
|
31
|
+
name: string;
|
|
32
|
+
outputs: {
|
|
33
|
+
components: ({
|
|
34
|
+
internalType: string;
|
|
35
|
+
name: string;
|
|
36
|
+
type: string;
|
|
37
|
+
components?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
components: {
|
|
40
|
+
internalType: string;
|
|
41
|
+
name: string;
|
|
42
|
+
type: string;
|
|
43
|
+
}[];
|
|
44
|
+
internalType: string;
|
|
45
|
+
name: string;
|
|
46
|
+
type: string;
|
|
47
|
+
})[];
|
|
48
|
+
internalType: string;
|
|
49
|
+
name: string;
|
|
50
|
+
type: string;
|
|
51
|
+
}[];
|
|
52
|
+
stateMutability: string;
|
|
53
|
+
type: string;
|
|
54
|
+
}[];
|
|
55
|
+
static createInterface(): IClosePathResolverInterface;
|
|
56
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IClosePathResolver;
|
|
57
|
+
}
|
|
@@ -0,0 +1,264 @@
|
|
|
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.IClosePathResolver__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
components: [
|
|
13
|
+
{
|
|
14
|
+
internalType: "address",
|
|
15
|
+
name: "creditAccount",
|
|
16
|
+
type: "address",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
components: [
|
|
20
|
+
{
|
|
21
|
+
internalType: "address",
|
|
22
|
+
name: "token",
|
|
23
|
+
type: "address",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
internalType: "uint256",
|
|
27
|
+
name: "balance",
|
|
28
|
+
type: "uint256",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
internalType: "struct Balance[]",
|
|
32
|
+
name: "balances",
|
|
33
|
+
type: "tuple[]",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
internalType: "address",
|
|
37
|
+
name: "target",
|
|
38
|
+
type: "address",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
internalType: "address[]",
|
|
42
|
+
name: "connectors",
|
|
43
|
+
type: "address[]",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
internalType: "address[]",
|
|
47
|
+
name: "adapters",
|
|
48
|
+
type: "address[]",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
internalType: "uint256",
|
|
52
|
+
name: "slippage",
|
|
53
|
+
type: "uint256",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
internalType: "enum TokenType",
|
|
57
|
+
name: "targetType",
|
|
58
|
+
type: "uint8",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
components: [
|
|
62
|
+
{
|
|
63
|
+
internalType: "address",
|
|
64
|
+
name: "token",
|
|
65
|
+
type: "address",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
internalType: "address[]",
|
|
69
|
+
name: "adapters",
|
|
70
|
+
type: "address[]",
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
internalType: "struct TokenAdapters[]",
|
|
74
|
+
name: "foundAdapters",
|
|
75
|
+
type: "tuple[]",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
internalType: "uint256",
|
|
79
|
+
name: "gasPriceTargetRAY",
|
|
80
|
+
type: "uint256",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
internalType: "uint256",
|
|
84
|
+
name: "gasUsage",
|
|
85
|
+
type: "uint256",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
internalType: "uint256",
|
|
89
|
+
name: "initTargetBalance",
|
|
90
|
+
type: "uint256",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
components: [
|
|
94
|
+
{
|
|
95
|
+
internalType: "address",
|
|
96
|
+
name: "target",
|
|
97
|
+
type: "address",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
internalType: "bytes",
|
|
101
|
+
name: "callData",
|
|
102
|
+
type: "bytes",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
internalType: "struct MultiCall[]",
|
|
106
|
+
name: "calls",
|
|
107
|
+
type: "tuple[]",
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
internalType: "struct StrategyPathTask",
|
|
111
|
+
name: "task",
|
|
112
|
+
type: "tuple",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
components: [
|
|
116
|
+
{
|
|
117
|
+
internalType: "address",
|
|
118
|
+
name: "target",
|
|
119
|
+
type: "address",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
internalType: "uint8",
|
|
123
|
+
name: "option",
|
|
124
|
+
type: "uint8",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
internalType: "uint8",
|
|
128
|
+
name: "totalOptions",
|
|
129
|
+
type: "uint8",
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
internalType: "struct PathOption[]",
|
|
133
|
+
name: "pathOptions",
|
|
134
|
+
type: "tuple[]",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
internalType: "uint256",
|
|
138
|
+
name: "cycles",
|
|
139
|
+
type: "uint256",
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
name: "findBestClosePath",
|
|
143
|
+
outputs: [
|
|
144
|
+
{
|
|
145
|
+
components: [
|
|
146
|
+
{
|
|
147
|
+
internalType: "address",
|
|
148
|
+
name: "creditAccount",
|
|
149
|
+
type: "address",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
components: [
|
|
153
|
+
{
|
|
154
|
+
internalType: "address",
|
|
155
|
+
name: "token",
|
|
156
|
+
type: "address",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
internalType: "uint256",
|
|
160
|
+
name: "balance",
|
|
161
|
+
type: "uint256",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
internalType: "struct Balance[]",
|
|
165
|
+
name: "balances",
|
|
166
|
+
type: "tuple[]",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
internalType: "address",
|
|
170
|
+
name: "target",
|
|
171
|
+
type: "address",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
internalType: "address[]",
|
|
175
|
+
name: "connectors",
|
|
176
|
+
type: "address[]",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
internalType: "address[]",
|
|
180
|
+
name: "adapters",
|
|
181
|
+
type: "address[]",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
internalType: "uint256",
|
|
185
|
+
name: "slippage",
|
|
186
|
+
type: "uint256",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
internalType: "enum TokenType",
|
|
190
|
+
name: "targetType",
|
|
191
|
+
type: "uint8",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
components: [
|
|
195
|
+
{
|
|
196
|
+
internalType: "address",
|
|
197
|
+
name: "token",
|
|
198
|
+
type: "address",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
internalType: "address[]",
|
|
202
|
+
name: "adapters",
|
|
203
|
+
type: "address[]",
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
internalType: "struct TokenAdapters[]",
|
|
207
|
+
name: "foundAdapters",
|
|
208
|
+
type: "tuple[]",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
internalType: "uint256",
|
|
212
|
+
name: "gasPriceTargetRAY",
|
|
213
|
+
type: "uint256",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
internalType: "uint256",
|
|
217
|
+
name: "gasUsage",
|
|
218
|
+
type: "uint256",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
internalType: "uint256",
|
|
222
|
+
name: "initTargetBalance",
|
|
223
|
+
type: "uint256",
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
components: [
|
|
227
|
+
{
|
|
228
|
+
internalType: "address",
|
|
229
|
+
name: "target",
|
|
230
|
+
type: "address",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
internalType: "bytes",
|
|
234
|
+
name: "callData",
|
|
235
|
+
type: "bytes",
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
internalType: "struct MultiCall[]",
|
|
239
|
+
name: "calls",
|
|
240
|
+
type: "tuple[]",
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
internalType: "struct StrategyPathTask",
|
|
244
|
+
name: "result",
|
|
245
|
+
type: "tuple",
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
stateMutability: "nonpayable",
|
|
249
|
+
type: "function",
|
|
250
|
+
},
|
|
251
|
+
];
|
|
252
|
+
var IClosePathResolver__factory = /** @class */ (function () {
|
|
253
|
+
function IClosePathResolver__factory() {
|
|
254
|
+
}
|
|
255
|
+
IClosePathResolver__factory.createInterface = function () {
|
|
256
|
+
return new ethers_1.utils.Interface(_abi);
|
|
257
|
+
};
|
|
258
|
+
IClosePathResolver__factory.connect = function (address, signerOrProvider) {
|
|
259
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
260
|
+
};
|
|
261
|
+
IClosePathResolver__factory.abi = _abi;
|
|
262
|
+
return IClosePathResolver__factory;
|
|
263
|
+
}());
|
|
264
|
+
exports.IClosePathResolver__factory = IClosePathResolver__factory;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { IDepositorOptions, IDepositorOptionsInterface } from "../../../../../contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions";
|
|
4
|
+
export declare class IDepositorOptions__factory {
|
|
5
|
+
static readonly abi: {
|
|
6
|
+
inputs: ({
|
|
7
|
+
internalType: string;
|
|
8
|
+
name: string;
|
|
9
|
+
type: string;
|
|
10
|
+
components?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
components: ({
|
|
13
|
+
internalType: string;
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
components?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
components: {
|
|
19
|
+
internalType: string;
|
|
20
|
+
name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
}[];
|
|
23
|
+
internalType: string;
|
|
24
|
+
name: string;
|
|
25
|
+
type: string;
|
|
26
|
+
})[];
|
|
27
|
+
internalType: string;
|
|
28
|
+
name: string;
|
|
29
|
+
type: string;
|
|
30
|
+
})[];
|
|
31
|
+
name: string;
|
|
32
|
+
outputs: ({
|
|
33
|
+
internalType: string;
|
|
34
|
+
name: string;
|
|
35
|
+
type: string;
|
|
36
|
+
components?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
components: ({
|
|
39
|
+
internalType: string;
|
|
40
|
+
name: string;
|
|
41
|
+
type: string;
|
|
42
|
+
components?: undefined;
|
|
43
|
+
} | {
|
|
44
|
+
components: {
|
|
45
|
+
internalType: string;
|
|
46
|
+
name: string;
|
|
47
|
+
type: string;
|
|
48
|
+
}[];
|
|
49
|
+
internalType: string;
|
|
50
|
+
name: string;
|
|
51
|
+
type: string;
|
|
52
|
+
})[];
|
|
53
|
+
internalType: string;
|
|
54
|
+
name: string;
|
|
55
|
+
type: string;
|
|
56
|
+
})[];
|
|
57
|
+
stateMutability: string;
|
|
58
|
+
type: string;
|
|
59
|
+
}[];
|
|
60
|
+
static createInterface(): IDepositorOptionsInterface;
|
|
61
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IDepositorOptions;
|
|
62
|
+
}
|