@gearbox-protocol/sdk 8.23.5 → 8.24.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/package.json +6 -6
- package/dist/cjs/plugins/adapters/AbstractAdapter.js +0 -39
- package/dist/cjs/plugins/adapters/AdaptersPlugin.js +0 -156
- package/dist/cjs/plugins/adapters/BalancerV2VaultAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/BalancerV3RouterAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/CamelotV3AdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/ConvexV1BaseRewardPoolAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/ConvexV1BoosterAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/Curve2AssetsAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/Curve3AssetsAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/Curve4AssetsAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/CurveV1AdapterDeposit.js +0 -38
- package/dist/cjs/plugins/adapters/CurveV1AdapterStETHContract.js +0 -38
- package/dist/cjs/plugins/adapters/CurveV1StableNGAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/DaiUsdsAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/ERC4626AdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/EqualizerRouterAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/FluidDexAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/InfraredVaultAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/KodiakIslandGatewayAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/LidoV1AdapterContract.js +0 -37
- package/dist/cjs/plugins/adapters/MellowClaimerAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/MellowDVVAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/MellowERC4626VaultAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/MellowVaultAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/MellowWrapperAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/PendleRouterAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/StakingRewardsAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/TraderJoeRouterAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/UniswapV2AdapterContract.js +0 -59
- package/dist/cjs/plugins/adapters/UniswapV3AdapterContract.js +0 -154
- package/dist/cjs/plugins/adapters/UpshiftVaultAdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/VelodromeV2AdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/WstETHV1AdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/YearnV2AdapterContract.js +0 -38
- package/dist/cjs/plugins/adapters/abi/adapters.js +0 -5611
- package/dist/cjs/plugins/adapters/abi/index.js +0 -22
- package/dist/cjs/plugins/adapters/index.js +0 -92
- package/dist/cjs/plugins/adapters/package.json +0 -1
- package/dist/cjs/plugins/adapters/types.js +0 -16
- package/dist/esm/plugins/adapters/AbstractAdapter.js +0 -15
- package/dist/esm/plugins/adapters/AdaptersPlugin.js +0 -132
- package/dist/esm/plugins/adapters/BalancerV2VaultAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/BalancerV3RouterAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/CamelotV3AdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/ConvexV1BaseRewardPoolAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/ConvexV1BoosterAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/Curve2AssetsAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/Curve3AssetsAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/Curve4AssetsAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/CurveV1AdapterDeposit.js +0 -14
- package/dist/esm/plugins/adapters/CurveV1AdapterStETHContract.js +0 -14
- package/dist/esm/plugins/adapters/CurveV1StableNGAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/DaiUsdsAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/ERC4626AdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/EqualizerRouterAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/FluidDexAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/InfraredVaultAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/KodiakIslandGatewayAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/LidoV1AdapterContract.js +0 -13
- package/dist/esm/plugins/adapters/MellowClaimerAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/MellowDVVAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/MellowERC4626VaultAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/MellowVaultAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/MellowWrapperAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/PendleRouterAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/StakingRewardsAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/TraderJoeRouterAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/UniswapV2AdapterContract.js +0 -35
- package/dist/esm/plugins/adapters/UniswapV3AdapterContract.js +0 -130
- package/dist/esm/plugins/adapters/UpshiftVaultAdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/VelodromeV2AdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/WstETHV1AdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/YearnV2AdapterContract.js +0 -14
- package/dist/esm/plugins/adapters/abi/adapters.js +0 -5552
- package/dist/esm/plugins/adapters/abi/index.js +0 -1
- package/dist/esm/plugins/adapters/index.js +0 -36
- package/dist/esm/plugins/adapters/package.json +0 -1
- package/dist/esm/plugins/adapters/types.js +0 -0
- package/dist/types/plugins/adapters/AbstractAdapter.d.ts +0 -13
- package/dist/types/plugins/adapters/AdaptersPlugin.d.ts +0 -11
- package/dist/types/plugins/adapters/BalancerV2VaultAdapterContract.d.ts +0 -479
- package/dist/types/plugins/adapters/BalancerV3RouterAdapterContract.d.ts +0 -196
- package/dist/types/plugins/adapters/CamelotV3AdapterContract.d.ts +0 -435
- package/dist/types/plugins/adapters/ConvexV1BaseRewardPoolAdapterContract.d.ts +0 -256
- package/dist/types/plugins/adapters/ConvexV1BoosterAdapterContract.d.ts +0 -200
- package/dist/types/plugins/adapters/Curve2AssetsAdapterContract.d.ts +0 -526
- package/dist/types/plugins/adapters/Curve3AssetsAdapterContract.d.ts +0 -526
- package/dist/types/plugins/adapters/Curve4AssetsAdapterContract.d.ts +0 -526
- package/dist/types/plugins/adapters/CurveV1AdapterDeposit.d.ts +0 -473
- package/dist/types/plugins/adapters/CurveV1AdapterStETHContract.d.ts +0 -526
- package/dist/types/plugins/adapters/CurveV1StableNGAdapterContract.d.ts +0 -526
- package/dist/types/plugins/adapters/DaiUsdsAdapterContract.d.ts +0 -143
- package/dist/types/plugins/adapters/ERC4626AdapterContract.d.ts +0 -176
- package/dist/types/plugins/adapters/EqualizerRouterAdapterContract.d.ts +0 -219
- package/dist/types/plugins/adapters/FluidDexAdapterContract.d.ts +0 -127
- package/dist/types/plugins/adapters/InfraredVaultAdapterContract.d.ts +0 -195
- package/dist/types/plugins/adapters/KodiakIslandGatewayAdapterContract.d.ts +0 -390
- package/dist/types/plugins/adapters/LidoV1AdapterContract.d.ts +0 -8
- package/dist/types/plugins/adapters/MellowClaimerAdapterContract.d.ts +0 -255
- package/dist/types/plugins/adapters/MellowDVVAdapterContract.d.ts +0 -229
- package/dist/types/plugins/adapters/MellowERC4626VaultAdapterContract.d.ts +0 -176
- package/dist/types/plugins/adapters/MellowVaultAdapterContract.d.ts +0 -200
- package/dist/types/plugins/adapters/MellowWrapperAdapterContract.d.ts +0 -159
- package/dist/types/plugins/adapters/PendleRouterAdapterContract.d.ts +0 -815
- package/dist/types/plugins/adapters/StakingRewardsAdapterContract.d.ts +0 -173
- package/dist/types/plugins/adapters/TraderJoeRouterAdapterContract.d.ts +0 -341
- package/dist/types/plugins/adapters/UniswapV2AdapterContract.d.ts +0 -211
- package/dist/types/plugins/adapters/UniswapV3AdapterContract.d.ts +0 -378
- package/dist/types/plugins/adapters/UpshiftVaultAdapterContract.d.ts +0 -265
- package/dist/types/plugins/adapters/VelodromeV2AdapterContract.d.ts +0 -239
- package/dist/types/plugins/adapters/WstETHV1AdapterContract.d.ts +0 -124
- package/dist/types/plugins/adapters/YearnV2AdapterContract.d.ts +0 -182
- package/dist/types/plugins/adapters/abi/adapters.d.ts +0 -8946
- package/dist/types/plugins/adapters/abi/index.d.ts +0 -1
- package/dist/types/plugins/adapters/index.d.ts +0 -36
- package/dist/types/plugins/adapters/types.d.ts +0 -2
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import type { GearboxSDK } from "../../sdk/index.js";
|
|
2
|
-
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
3
|
-
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
4
|
-
declare const abi: readonly [{
|
|
5
|
-
readonly type: "function";
|
|
6
|
-
readonly inputs: readonly [];
|
|
7
|
-
readonly name: "asset";
|
|
8
|
-
readonly outputs: readonly [{
|
|
9
|
-
readonly name: "";
|
|
10
|
-
readonly internalType: "address";
|
|
11
|
-
readonly type: "address";
|
|
12
|
-
}];
|
|
13
|
-
readonly stateMutability: "view";
|
|
14
|
-
}, {
|
|
15
|
-
readonly type: "function";
|
|
16
|
-
readonly inputs: readonly [];
|
|
17
|
-
readonly name: "contractType";
|
|
18
|
-
readonly outputs: readonly [{
|
|
19
|
-
readonly name: "";
|
|
20
|
-
readonly internalType: "bytes32";
|
|
21
|
-
readonly type: "bytes32";
|
|
22
|
-
}];
|
|
23
|
-
readonly stateMutability: "view";
|
|
24
|
-
}, {
|
|
25
|
-
readonly type: "function";
|
|
26
|
-
readonly inputs: readonly [];
|
|
27
|
-
readonly name: "creditManager";
|
|
28
|
-
readonly outputs: readonly [{
|
|
29
|
-
readonly name: "";
|
|
30
|
-
readonly internalType: "address";
|
|
31
|
-
readonly type: "address";
|
|
32
|
-
}];
|
|
33
|
-
readonly stateMutability: "view";
|
|
34
|
-
}, {
|
|
35
|
-
readonly type: "function";
|
|
36
|
-
readonly inputs: readonly [{
|
|
37
|
-
readonly name: "assets";
|
|
38
|
-
readonly internalType: "uint256";
|
|
39
|
-
readonly type: "uint256";
|
|
40
|
-
}, {
|
|
41
|
-
readonly name: "";
|
|
42
|
-
readonly internalType: "address";
|
|
43
|
-
readonly type: "address";
|
|
44
|
-
}];
|
|
45
|
-
readonly name: "deposit";
|
|
46
|
-
readonly outputs: readonly [{
|
|
47
|
-
readonly name: "useSafePrices";
|
|
48
|
-
readonly internalType: "bool";
|
|
49
|
-
readonly type: "bool";
|
|
50
|
-
}];
|
|
51
|
-
readonly stateMutability: "nonpayable";
|
|
52
|
-
}, {
|
|
53
|
-
readonly type: "function";
|
|
54
|
-
readonly inputs: readonly [{
|
|
55
|
-
readonly name: "leftoverAmount";
|
|
56
|
-
readonly internalType: "uint256";
|
|
57
|
-
readonly type: "uint256";
|
|
58
|
-
}];
|
|
59
|
-
readonly name: "depositDiff";
|
|
60
|
-
readonly outputs: readonly [{
|
|
61
|
-
readonly name: "useSafePrices";
|
|
62
|
-
readonly internalType: "bool";
|
|
63
|
-
readonly type: "bool";
|
|
64
|
-
}];
|
|
65
|
-
readonly stateMutability: "nonpayable";
|
|
66
|
-
}, {
|
|
67
|
-
readonly type: "function";
|
|
68
|
-
readonly inputs: readonly [{
|
|
69
|
-
readonly name: "shares";
|
|
70
|
-
readonly internalType: "uint256";
|
|
71
|
-
readonly type: "uint256";
|
|
72
|
-
}, {
|
|
73
|
-
readonly name: "";
|
|
74
|
-
readonly internalType: "address";
|
|
75
|
-
readonly type: "address";
|
|
76
|
-
}];
|
|
77
|
-
readonly name: "mint";
|
|
78
|
-
readonly outputs: readonly [{
|
|
79
|
-
readonly name: "useSafePrices";
|
|
80
|
-
readonly internalType: "bool";
|
|
81
|
-
readonly type: "bool";
|
|
82
|
-
}];
|
|
83
|
-
readonly stateMutability: "nonpayable";
|
|
84
|
-
}, {
|
|
85
|
-
readonly type: "function";
|
|
86
|
-
readonly inputs: readonly [{
|
|
87
|
-
readonly name: "shares";
|
|
88
|
-
readonly internalType: "uint256";
|
|
89
|
-
readonly type: "uint256";
|
|
90
|
-
}, {
|
|
91
|
-
readonly name: "";
|
|
92
|
-
readonly internalType: "address";
|
|
93
|
-
readonly type: "address";
|
|
94
|
-
}, {
|
|
95
|
-
readonly name: "";
|
|
96
|
-
readonly internalType: "address";
|
|
97
|
-
readonly type: "address";
|
|
98
|
-
}];
|
|
99
|
-
readonly name: "redeem";
|
|
100
|
-
readonly outputs: readonly [{
|
|
101
|
-
readonly name: "useSafePrices";
|
|
102
|
-
readonly internalType: "bool";
|
|
103
|
-
readonly type: "bool";
|
|
104
|
-
}];
|
|
105
|
-
readonly stateMutability: "nonpayable";
|
|
106
|
-
}, {
|
|
107
|
-
readonly type: "function";
|
|
108
|
-
readonly inputs: readonly [{
|
|
109
|
-
readonly name: "leftoverAmount";
|
|
110
|
-
readonly internalType: "uint256";
|
|
111
|
-
readonly type: "uint256";
|
|
112
|
-
}];
|
|
113
|
-
readonly name: "redeemDiff";
|
|
114
|
-
readonly outputs: readonly [{
|
|
115
|
-
readonly name: "useSafePrices";
|
|
116
|
-
readonly internalType: "bool";
|
|
117
|
-
readonly type: "bool";
|
|
118
|
-
}];
|
|
119
|
-
readonly stateMutability: "nonpayable";
|
|
120
|
-
}, {
|
|
121
|
-
readonly type: "function";
|
|
122
|
-
readonly inputs: readonly [];
|
|
123
|
-
readonly name: "serialize";
|
|
124
|
-
readonly outputs: readonly [{
|
|
125
|
-
readonly name: "serializedData";
|
|
126
|
-
readonly internalType: "bytes";
|
|
127
|
-
readonly type: "bytes";
|
|
128
|
-
}];
|
|
129
|
-
readonly stateMutability: "view";
|
|
130
|
-
}, {
|
|
131
|
-
readonly type: "function";
|
|
132
|
-
readonly inputs: readonly [];
|
|
133
|
-
readonly name: "targetContract";
|
|
134
|
-
readonly outputs: readonly [{
|
|
135
|
-
readonly name: "";
|
|
136
|
-
readonly internalType: "address";
|
|
137
|
-
readonly type: "address";
|
|
138
|
-
}];
|
|
139
|
-
readonly stateMutability: "view";
|
|
140
|
-
}, {
|
|
141
|
-
readonly type: "function";
|
|
142
|
-
readonly inputs: readonly [];
|
|
143
|
-
readonly name: "version";
|
|
144
|
-
readonly outputs: readonly [{
|
|
145
|
-
readonly name: "";
|
|
146
|
-
readonly internalType: "uint256";
|
|
147
|
-
readonly type: "uint256";
|
|
148
|
-
}];
|
|
149
|
-
readonly stateMutability: "view";
|
|
150
|
-
}, {
|
|
151
|
-
readonly type: "function";
|
|
152
|
-
readonly inputs: readonly [{
|
|
153
|
-
readonly name: "assets";
|
|
154
|
-
readonly internalType: "uint256";
|
|
155
|
-
readonly type: "uint256";
|
|
156
|
-
}, {
|
|
157
|
-
readonly name: "";
|
|
158
|
-
readonly internalType: "address";
|
|
159
|
-
readonly type: "address";
|
|
160
|
-
}, {
|
|
161
|
-
readonly name: "";
|
|
162
|
-
readonly internalType: "address";
|
|
163
|
-
readonly type: "address";
|
|
164
|
-
}];
|
|
165
|
-
readonly name: "withdraw";
|
|
166
|
-
readonly outputs: readonly [{
|
|
167
|
-
readonly name: "useSafePrices";
|
|
168
|
-
readonly internalType: "bool";
|
|
169
|
-
readonly type: "bool";
|
|
170
|
-
}];
|
|
171
|
-
readonly stateMutability: "nonpayable";
|
|
172
|
-
}];
|
|
173
|
-
export declare class ERC4626AdapterContract extends AbstractAdapterContract<typeof abi> {
|
|
174
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi>, "abi">);
|
|
175
|
-
}
|
|
176
|
-
export {};
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
import type { GearboxSDK } from "../../sdk/index.js";
|
|
2
|
-
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
3
|
-
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
4
|
-
declare const abi: readonly [{
|
|
5
|
-
readonly type: "function";
|
|
6
|
-
readonly inputs: readonly [];
|
|
7
|
-
readonly name: "contractType";
|
|
8
|
-
readonly outputs: readonly [{
|
|
9
|
-
readonly name: "";
|
|
10
|
-
readonly internalType: "bytes32";
|
|
11
|
-
readonly type: "bytes32";
|
|
12
|
-
}];
|
|
13
|
-
readonly stateMutability: "view";
|
|
14
|
-
}, {
|
|
15
|
-
readonly type: "function";
|
|
16
|
-
readonly inputs: readonly [];
|
|
17
|
-
readonly name: "creditManager";
|
|
18
|
-
readonly outputs: readonly [{
|
|
19
|
-
readonly name: "";
|
|
20
|
-
readonly internalType: "address";
|
|
21
|
-
readonly type: "address";
|
|
22
|
-
}];
|
|
23
|
-
readonly stateMutability: "view";
|
|
24
|
-
}, {
|
|
25
|
-
readonly type: "function";
|
|
26
|
-
readonly inputs: readonly [{
|
|
27
|
-
readonly name: "token0";
|
|
28
|
-
readonly internalType: "address";
|
|
29
|
-
readonly type: "address";
|
|
30
|
-
}, {
|
|
31
|
-
readonly name: "token1";
|
|
32
|
-
readonly internalType: "address";
|
|
33
|
-
readonly type: "address";
|
|
34
|
-
}, {
|
|
35
|
-
readonly name: "stable";
|
|
36
|
-
readonly internalType: "bool";
|
|
37
|
-
readonly type: "bool";
|
|
38
|
-
}];
|
|
39
|
-
readonly name: "isPoolAllowed";
|
|
40
|
-
readonly outputs: readonly [{
|
|
41
|
-
readonly name: "";
|
|
42
|
-
readonly internalType: "bool";
|
|
43
|
-
readonly type: "bool";
|
|
44
|
-
}];
|
|
45
|
-
readonly stateMutability: "view";
|
|
46
|
-
}, {
|
|
47
|
-
readonly type: "function";
|
|
48
|
-
readonly inputs: readonly [];
|
|
49
|
-
readonly name: "serialize";
|
|
50
|
-
readonly outputs: readonly [{
|
|
51
|
-
readonly name: "serializedData";
|
|
52
|
-
readonly internalType: "bytes";
|
|
53
|
-
readonly type: "bytes";
|
|
54
|
-
}];
|
|
55
|
-
readonly stateMutability: "view";
|
|
56
|
-
}, {
|
|
57
|
-
readonly type: "function";
|
|
58
|
-
readonly inputs: readonly [{
|
|
59
|
-
readonly name: "pools";
|
|
60
|
-
readonly internalType: "struct EqualizerPoolStatus[]";
|
|
61
|
-
readonly type: "tuple[]";
|
|
62
|
-
readonly components: readonly [{
|
|
63
|
-
readonly name: "token0";
|
|
64
|
-
readonly internalType: "address";
|
|
65
|
-
readonly type: "address";
|
|
66
|
-
}, {
|
|
67
|
-
readonly name: "token1";
|
|
68
|
-
readonly internalType: "address";
|
|
69
|
-
readonly type: "address";
|
|
70
|
-
}, {
|
|
71
|
-
readonly name: "stable";
|
|
72
|
-
readonly internalType: "bool";
|
|
73
|
-
readonly type: "bool";
|
|
74
|
-
}, {
|
|
75
|
-
readonly name: "allowed";
|
|
76
|
-
readonly internalType: "bool";
|
|
77
|
-
readonly type: "bool";
|
|
78
|
-
}];
|
|
79
|
-
}];
|
|
80
|
-
readonly name: "setPoolStatusBatch";
|
|
81
|
-
readonly outputs: readonly [];
|
|
82
|
-
readonly stateMutability: "nonpayable";
|
|
83
|
-
}, {
|
|
84
|
-
readonly type: "function";
|
|
85
|
-
readonly inputs: readonly [{
|
|
86
|
-
readonly name: "leftoverAmount";
|
|
87
|
-
readonly internalType: "uint256";
|
|
88
|
-
readonly type: "uint256";
|
|
89
|
-
}, {
|
|
90
|
-
readonly name: "rateMinRAY";
|
|
91
|
-
readonly internalType: "uint256";
|
|
92
|
-
readonly type: "uint256";
|
|
93
|
-
}, {
|
|
94
|
-
readonly name: "routes";
|
|
95
|
-
readonly internalType: "struct Route[]";
|
|
96
|
-
readonly type: "tuple[]";
|
|
97
|
-
readonly components: readonly [{
|
|
98
|
-
readonly name: "from";
|
|
99
|
-
readonly internalType: "address";
|
|
100
|
-
readonly type: "address";
|
|
101
|
-
}, {
|
|
102
|
-
readonly name: "to";
|
|
103
|
-
readonly internalType: "address";
|
|
104
|
-
readonly type: "address";
|
|
105
|
-
}, {
|
|
106
|
-
readonly name: "stable";
|
|
107
|
-
readonly internalType: "bool";
|
|
108
|
-
readonly type: "bool";
|
|
109
|
-
}];
|
|
110
|
-
}, {
|
|
111
|
-
readonly name: "deadline";
|
|
112
|
-
readonly internalType: "uint256";
|
|
113
|
-
readonly type: "uint256";
|
|
114
|
-
}];
|
|
115
|
-
readonly name: "swapDiffTokensForTokens";
|
|
116
|
-
readonly outputs: readonly [{
|
|
117
|
-
readonly name: "useSafePrices";
|
|
118
|
-
readonly internalType: "bool";
|
|
119
|
-
readonly type: "bool";
|
|
120
|
-
}];
|
|
121
|
-
readonly stateMutability: "nonpayable";
|
|
122
|
-
}, {
|
|
123
|
-
readonly type: "function";
|
|
124
|
-
readonly inputs: readonly [{
|
|
125
|
-
readonly name: "amountIn";
|
|
126
|
-
readonly internalType: "uint256";
|
|
127
|
-
readonly type: "uint256";
|
|
128
|
-
}, {
|
|
129
|
-
readonly name: "amountOutMin";
|
|
130
|
-
readonly internalType: "uint256";
|
|
131
|
-
readonly type: "uint256";
|
|
132
|
-
}, {
|
|
133
|
-
readonly name: "routes";
|
|
134
|
-
readonly internalType: "struct Route[]";
|
|
135
|
-
readonly type: "tuple[]";
|
|
136
|
-
readonly components: readonly [{
|
|
137
|
-
readonly name: "from";
|
|
138
|
-
readonly internalType: "address";
|
|
139
|
-
readonly type: "address";
|
|
140
|
-
}, {
|
|
141
|
-
readonly name: "to";
|
|
142
|
-
readonly internalType: "address";
|
|
143
|
-
readonly type: "address";
|
|
144
|
-
}, {
|
|
145
|
-
readonly name: "stable";
|
|
146
|
-
readonly internalType: "bool";
|
|
147
|
-
readonly type: "bool";
|
|
148
|
-
}];
|
|
149
|
-
}, {
|
|
150
|
-
readonly name: "";
|
|
151
|
-
readonly internalType: "address";
|
|
152
|
-
readonly type: "address";
|
|
153
|
-
}, {
|
|
154
|
-
readonly name: "deadline";
|
|
155
|
-
readonly internalType: "uint256";
|
|
156
|
-
readonly type: "uint256";
|
|
157
|
-
}];
|
|
158
|
-
readonly name: "swapExactTokensForTokens";
|
|
159
|
-
readonly outputs: readonly [{
|
|
160
|
-
readonly name: "useSafePrices";
|
|
161
|
-
readonly internalType: "bool";
|
|
162
|
-
readonly type: "bool";
|
|
163
|
-
}];
|
|
164
|
-
readonly stateMutability: "nonpayable";
|
|
165
|
-
}, {
|
|
166
|
-
readonly type: "function";
|
|
167
|
-
readonly inputs: readonly [];
|
|
168
|
-
readonly name: "targetContract";
|
|
169
|
-
readonly outputs: readonly [{
|
|
170
|
-
readonly name: "";
|
|
171
|
-
readonly internalType: "address";
|
|
172
|
-
readonly type: "address";
|
|
173
|
-
}];
|
|
174
|
-
readonly stateMutability: "view";
|
|
175
|
-
}, {
|
|
176
|
-
readonly type: "function";
|
|
177
|
-
readonly inputs: readonly [];
|
|
178
|
-
readonly name: "version";
|
|
179
|
-
readonly outputs: readonly [{
|
|
180
|
-
readonly name: "";
|
|
181
|
-
readonly internalType: "uint256";
|
|
182
|
-
readonly type: "uint256";
|
|
183
|
-
}];
|
|
184
|
-
readonly stateMutability: "view";
|
|
185
|
-
}, {
|
|
186
|
-
readonly type: "event";
|
|
187
|
-
readonly anonymous: false;
|
|
188
|
-
readonly inputs: readonly [{
|
|
189
|
-
readonly name: "token0";
|
|
190
|
-
readonly internalType: "address";
|
|
191
|
-
readonly type: "address";
|
|
192
|
-
readonly indexed: true;
|
|
193
|
-
}, {
|
|
194
|
-
readonly name: "token1";
|
|
195
|
-
readonly internalType: "address";
|
|
196
|
-
readonly type: "address";
|
|
197
|
-
readonly indexed: true;
|
|
198
|
-
}, {
|
|
199
|
-
readonly name: "stable";
|
|
200
|
-
readonly internalType: "bool";
|
|
201
|
-
readonly type: "bool";
|
|
202
|
-
readonly indexed: false;
|
|
203
|
-
}, {
|
|
204
|
-
readonly name: "allowed";
|
|
205
|
-
readonly internalType: "bool";
|
|
206
|
-
readonly type: "bool";
|
|
207
|
-
readonly indexed: false;
|
|
208
|
-
}];
|
|
209
|
-
readonly name: "SetPoolStatus";
|
|
210
|
-
}, {
|
|
211
|
-
readonly type: "error";
|
|
212
|
-
readonly inputs: readonly [];
|
|
213
|
-
readonly name: "InvalidPathException";
|
|
214
|
-
}];
|
|
215
|
-
type abi = typeof abi;
|
|
216
|
-
export declare class EqualizerRouterAdapterContract extends AbstractAdapterContract<abi> {
|
|
217
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
218
|
-
}
|
|
219
|
-
export {};
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import type { GearboxSDK } from "../../sdk/index.js";
|
|
2
|
-
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
3
|
-
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
4
|
-
declare const abi: readonly [{
|
|
5
|
-
readonly type: "function";
|
|
6
|
-
readonly name: "contractType";
|
|
7
|
-
readonly inputs: readonly [];
|
|
8
|
-
readonly outputs: readonly [{
|
|
9
|
-
readonly name: "";
|
|
10
|
-
readonly type: "bytes32";
|
|
11
|
-
readonly internalType: "bytes32";
|
|
12
|
-
}];
|
|
13
|
-
readonly stateMutability: "view";
|
|
14
|
-
}, {
|
|
15
|
-
readonly type: "function";
|
|
16
|
-
readonly name: "creditManager";
|
|
17
|
-
readonly inputs: readonly [];
|
|
18
|
-
readonly outputs: readonly [{
|
|
19
|
-
readonly name: "";
|
|
20
|
-
readonly type: "address";
|
|
21
|
-
readonly internalType: "address";
|
|
22
|
-
}];
|
|
23
|
-
readonly stateMutability: "view";
|
|
24
|
-
}, {
|
|
25
|
-
readonly type: "function";
|
|
26
|
-
readonly name: "serialize";
|
|
27
|
-
readonly inputs: readonly [];
|
|
28
|
-
readonly outputs: readonly [{
|
|
29
|
-
readonly name: "serializedData";
|
|
30
|
-
readonly type: "bytes";
|
|
31
|
-
readonly internalType: "bytes";
|
|
32
|
-
}];
|
|
33
|
-
readonly stateMutability: "view";
|
|
34
|
-
}, {
|
|
35
|
-
readonly type: "function";
|
|
36
|
-
readonly name: "swapIn";
|
|
37
|
-
readonly inputs: readonly [{
|
|
38
|
-
readonly name: "swap0to1";
|
|
39
|
-
readonly type: "bool";
|
|
40
|
-
readonly internalType: "bool";
|
|
41
|
-
}, {
|
|
42
|
-
readonly name: "amountIn";
|
|
43
|
-
readonly type: "uint256";
|
|
44
|
-
readonly internalType: "uint256";
|
|
45
|
-
}, {
|
|
46
|
-
readonly name: "amountOutMin";
|
|
47
|
-
readonly type: "uint256";
|
|
48
|
-
readonly internalType: "uint256";
|
|
49
|
-
}, {
|
|
50
|
-
readonly name: "to";
|
|
51
|
-
readonly type: "address";
|
|
52
|
-
readonly internalType: "address";
|
|
53
|
-
}];
|
|
54
|
-
readonly outputs: readonly [{
|
|
55
|
-
readonly name: "";
|
|
56
|
-
readonly type: "bool";
|
|
57
|
-
readonly internalType: "bool";
|
|
58
|
-
}];
|
|
59
|
-
readonly stateMutability: "nonpayable";
|
|
60
|
-
}, {
|
|
61
|
-
readonly type: "function";
|
|
62
|
-
readonly name: "swapInDiff";
|
|
63
|
-
readonly inputs: readonly [{
|
|
64
|
-
readonly name: "swap0to1";
|
|
65
|
-
readonly type: "bool";
|
|
66
|
-
readonly internalType: "bool";
|
|
67
|
-
}, {
|
|
68
|
-
readonly name: "leftoverAmount";
|
|
69
|
-
readonly type: "uint256";
|
|
70
|
-
readonly internalType: "uint256";
|
|
71
|
-
}, {
|
|
72
|
-
readonly name: "rateMinRAY";
|
|
73
|
-
readonly type: "uint256";
|
|
74
|
-
readonly internalType: "uint256";
|
|
75
|
-
}];
|
|
76
|
-
readonly outputs: readonly [{
|
|
77
|
-
readonly name: "";
|
|
78
|
-
readonly type: "bool";
|
|
79
|
-
readonly internalType: "bool";
|
|
80
|
-
}];
|
|
81
|
-
readonly stateMutability: "nonpayable";
|
|
82
|
-
}, {
|
|
83
|
-
readonly type: "function";
|
|
84
|
-
readonly name: "targetContract";
|
|
85
|
-
readonly inputs: readonly [];
|
|
86
|
-
readonly outputs: readonly [{
|
|
87
|
-
readonly name: "";
|
|
88
|
-
readonly type: "address";
|
|
89
|
-
readonly internalType: "address";
|
|
90
|
-
}];
|
|
91
|
-
readonly stateMutability: "view";
|
|
92
|
-
}, {
|
|
93
|
-
readonly type: "function";
|
|
94
|
-
readonly name: "token0";
|
|
95
|
-
readonly inputs: readonly [];
|
|
96
|
-
readonly outputs: readonly [{
|
|
97
|
-
readonly name: "";
|
|
98
|
-
readonly type: "address";
|
|
99
|
-
readonly internalType: "address";
|
|
100
|
-
}];
|
|
101
|
-
readonly stateMutability: "view";
|
|
102
|
-
}, {
|
|
103
|
-
readonly type: "function";
|
|
104
|
-
readonly name: "token1";
|
|
105
|
-
readonly inputs: readonly [];
|
|
106
|
-
readonly outputs: readonly [{
|
|
107
|
-
readonly name: "";
|
|
108
|
-
readonly type: "address";
|
|
109
|
-
readonly internalType: "address";
|
|
110
|
-
}];
|
|
111
|
-
readonly stateMutability: "view";
|
|
112
|
-
}, {
|
|
113
|
-
readonly type: "function";
|
|
114
|
-
readonly name: "version";
|
|
115
|
-
readonly inputs: readonly [];
|
|
116
|
-
readonly outputs: readonly [{
|
|
117
|
-
readonly name: "";
|
|
118
|
-
readonly type: "uint256";
|
|
119
|
-
readonly internalType: "uint256";
|
|
120
|
-
}];
|
|
121
|
-
readonly stateMutability: "view";
|
|
122
|
-
}];
|
|
123
|
-
type abi = typeof abi;
|
|
124
|
-
export declare class FluidDexAdapterContract extends AbstractAdapterContract<abi> {
|
|
125
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
126
|
-
}
|
|
127
|
-
export {};
|