@gearbox-protocol/sdk 8.23.4 → 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.
Files changed (119) hide show
  1. package/dist/cjs/sdk/sdk-legacy/tokens/tokenData.js +1 -0
  2. package/dist/esm/sdk/sdk-legacy/tokens/tokenData.js +1 -0
  3. package/package.json +6 -6
  4. package/dist/cjs/plugins/adapters/AbstractAdapter.js +0 -39
  5. package/dist/cjs/plugins/adapters/AdaptersPlugin.js +0 -156
  6. package/dist/cjs/plugins/adapters/BalancerV2VaultAdapterContract.js +0 -38
  7. package/dist/cjs/plugins/adapters/BalancerV3RouterAdapterContract.js +0 -38
  8. package/dist/cjs/plugins/adapters/CamelotV3AdapterContract.js +0 -38
  9. package/dist/cjs/plugins/adapters/ConvexV1BaseRewardPoolAdapterContract.js +0 -38
  10. package/dist/cjs/plugins/adapters/ConvexV1BoosterAdapterContract.js +0 -38
  11. package/dist/cjs/plugins/adapters/Curve2AssetsAdapterContract.js +0 -38
  12. package/dist/cjs/plugins/adapters/Curve3AssetsAdapterContract.js +0 -38
  13. package/dist/cjs/plugins/adapters/Curve4AssetsAdapterContract.js +0 -38
  14. package/dist/cjs/plugins/adapters/CurveV1AdapterDeposit.js +0 -38
  15. package/dist/cjs/plugins/adapters/CurveV1AdapterStETHContract.js +0 -38
  16. package/dist/cjs/plugins/adapters/CurveV1StableNGAdapterContract.js +0 -38
  17. package/dist/cjs/plugins/adapters/DaiUsdsAdapterContract.js +0 -38
  18. package/dist/cjs/plugins/adapters/ERC4626AdapterContract.js +0 -38
  19. package/dist/cjs/plugins/adapters/EqualizerRouterAdapterContract.js +0 -38
  20. package/dist/cjs/plugins/adapters/FluidDexAdapterContract.js +0 -38
  21. package/dist/cjs/plugins/adapters/InfraredVaultAdapterContract.js +0 -38
  22. package/dist/cjs/plugins/adapters/KodiakIslandGatewayAdapterContract.js +0 -38
  23. package/dist/cjs/plugins/adapters/LidoV1AdapterContract.js +0 -37
  24. package/dist/cjs/plugins/adapters/MellowClaimerAdapterContract.js +0 -38
  25. package/dist/cjs/plugins/adapters/MellowDVVAdapterContract.js +0 -38
  26. package/dist/cjs/plugins/adapters/MellowERC4626VaultAdapterContract.js +0 -38
  27. package/dist/cjs/plugins/adapters/MellowVaultAdapterContract.js +0 -38
  28. package/dist/cjs/plugins/adapters/MellowWrapperAdapterContract.js +0 -38
  29. package/dist/cjs/plugins/adapters/PendleRouterAdapterContract.js +0 -38
  30. package/dist/cjs/plugins/adapters/StakingRewardsAdapterContract.js +0 -38
  31. package/dist/cjs/plugins/adapters/TraderJoeRouterAdapterContract.js +0 -38
  32. package/dist/cjs/plugins/adapters/UniswapV2AdapterContract.js +0 -59
  33. package/dist/cjs/plugins/adapters/UniswapV3AdapterContract.js +0 -154
  34. package/dist/cjs/plugins/adapters/UpshiftVaultAdapterContract.js +0 -38
  35. package/dist/cjs/plugins/adapters/VelodromeV2AdapterContract.js +0 -38
  36. package/dist/cjs/plugins/adapters/WstETHV1AdapterContract.js +0 -38
  37. package/dist/cjs/plugins/adapters/YearnV2AdapterContract.js +0 -38
  38. package/dist/cjs/plugins/adapters/abi/adapters.js +0 -5611
  39. package/dist/cjs/plugins/adapters/abi/index.js +0 -22
  40. package/dist/cjs/plugins/adapters/index.js +0 -92
  41. package/dist/cjs/plugins/adapters/package.json +0 -1
  42. package/dist/cjs/plugins/adapters/types.js +0 -16
  43. package/dist/esm/plugins/adapters/AbstractAdapter.js +0 -15
  44. package/dist/esm/plugins/adapters/AdaptersPlugin.js +0 -132
  45. package/dist/esm/plugins/adapters/BalancerV2VaultAdapterContract.js +0 -14
  46. package/dist/esm/plugins/adapters/BalancerV3RouterAdapterContract.js +0 -14
  47. package/dist/esm/plugins/adapters/CamelotV3AdapterContract.js +0 -14
  48. package/dist/esm/plugins/adapters/ConvexV1BaseRewardPoolAdapterContract.js +0 -14
  49. package/dist/esm/plugins/adapters/ConvexV1BoosterAdapterContract.js +0 -14
  50. package/dist/esm/plugins/adapters/Curve2AssetsAdapterContract.js +0 -14
  51. package/dist/esm/plugins/adapters/Curve3AssetsAdapterContract.js +0 -14
  52. package/dist/esm/plugins/adapters/Curve4AssetsAdapterContract.js +0 -14
  53. package/dist/esm/plugins/adapters/CurveV1AdapterDeposit.js +0 -14
  54. package/dist/esm/plugins/adapters/CurveV1AdapterStETHContract.js +0 -14
  55. package/dist/esm/plugins/adapters/CurveV1StableNGAdapterContract.js +0 -14
  56. package/dist/esm/plugins/adapters/DaiUsdsAdapterContract.js +0 -14
  57. package/dist/esm/plugins/adapters/ERC4626AdapterContract.js +0 -14
  58. package/dist/esm/plugins/adapters/EqualizerRouterAdapterContract.js +0 -14
  59. package/dist/esm/plugins/adapters/FluidDexAdapterContract.js +0 -14
  60. package/dist/esm/plugins/adapters/InfraredVaultAdapterContract.js +0 -14
  61. package/dist/esm/plugins/adapters/KodiakIslandGatewayAdapterContract.js +0 -14
  62. package/dist/esm/plugins/adapters/LidoV1AdapterContract.js +0 -13
  63. package/dist/esm/plugins/adapters/MellowClaimerAdapterContract.js +0 -14
  64. package/dist/esm/plugins/adapters/MellowDVVAdapterContract.js +0 -14
  65. package/dist/esm/plugins/adapters/MellowERC4626VaultAdapterContract.js +0 -14
  66. package/dist/esm/plugins/adapters/MellowVaultAdapterContract.js +0 -14
  67. package/dist/esm/plugins/adapters/MellowWrapperAdapterContract.js +0 -14
  68. package/dist/esm/plugins/adapters/PendleRouterAdapterContract.js +0 -14
  69. package/dist/esm/plugins/adapters/StakingRewardsAdapterContract.js +0 -14
  70. package/dist/esm/plugins/adapters/TraderJoeRouterAdapterContract.js +0 -14
  71. package/dist/esm/plugins/adapters/UniswapV2AdapterContract.js +0 -35
  72. package/dist/esm/plugins/adapters/UniswapV3AdapterContract.js +0 -130
  73. package/dist/esm/plugins/adapters/UpshiftVaultAdapterContract.js +0 -14
  74. package/dist/esm/plugins/adapters/VelodromeV2AdapterContract.js +0 -14
  75. package/dist/esm/plugins/adapters/WstETHV1AdapterContract.js +0 -14
  76. package/dist/esm/plugins/adapters/YearnV2AdapterContract.js +0 -14
  77. package/dist/esm/plugins/adapters/abi/adapters.js +0 -5552
  78. package/dist/esm/plugins/adapters/abi/index.js +0 -1
  79. package/dist/esm/plugins/adapters/index.js +0 -36
  80. package/dist/esm/plugins/adapters/package.json +0 -1
  81. package/dist/esm/plugins/adapters/types.js +0 -0
  82. package/dist/types/plugins/adapters/AbstractAdapter.d.ts +0 -13
  83. package/dist/types/plugins/adapters/AdaptersPlugin.d.ts +0 -11
  84. package/dist/types/plugins/adapters/BalancerV2VaultAdapterContract.d.ts +0 -479
  85. package/dist/types/plugins/adapters/BalancerV3RouterAdapterContract.d.ts +0 -196
  86. package/dist/types/plugins/adapters/CamelotV3AdapterContract.d.ts +0 -435
  87. package/dist/types/plugins/adapters/ConvexV1BaseRewardPoolAdapterContract.d.ts +0 -256
  88. package/dist/types/plugins/adapters/ConvexV1BoosterAdapterContract.d.ts +0 -200
  89. package/dist/types/plugins/adapters/Curve2AssetsAdapterContract.d.ts +0 -526
  90. package/dist/types/plugins/adapters/Curve3AssetsAdapterContract.d.ts +0 -526
  91. package/dist/types/plugins/adapters/Curve4AssetsAdapterContract.d.ts +0 -526
  92. package/dist/types/plugins/adapters/CurveV1AdapterDeposit.d.ts +0 -473
  93. package/dist/types/plugins/adapters/CurveV1AdapterStETHContract.d.ts +0 -526
  94. package/dist/types/plugins/adapters/CurveV1StableNGAdapterContract.d.ts +0 -526
  95. package/dist/types/plugins/adapters/DaiUsdsAdapterContract.d.ts +0 -143
  96. package/dist/types/plugins/adapters/ERC4626AdapterContract.d.ts +0 -176
  97. package/dist/types/plugins/adapters/EqualizerRouterAdapterContract.d.ts +0 -219
  98. package/dist/types/plugins/adapters/FluidDexAdapterContract.d.ts +0 -127
  99. package/dist/types/plugins/adapters/InfraredVaultAdapterContract.d.ts +0 -195
  100. package/dist/types/plugins/adapters/KodiakIslandGatewayAdapterContract.d.ts +0 -390
  101. package/dist/types/plugins/adapters/LidoV1AdapterContract.d.ts +0 -8
  102. package/dist/types/plugins/adapters/MellowClaimerAdapterContract.d.ts +0 -255
  103. package/dist/types/plugins/adapters/MellowDVVAdapterContract.d.ts +0 -229
  104. package/dist/types/plugins/adapters/MellowERC4626VaultAdapterContract.d.ts +0 -176
  105. package/dist/types/plugins/adapters/MellowVaultAdapterContract.d.ts +0 -200
  106. package/dist/types/plugins/adapters/MellowWrapperAdapterContract.d.ts +0 -159
  107. package/dist/types/plugins/adapters/PendleRouterAdapterContract.d.ts +0 -815
  108. package/dist/types/plugins/adapters/StakingRewardsAdapterContract.d.ts +0 -173
  109. package/dist/types/plugins/adapters/TraderJoeRouterAdapterContract.d.ts +0 -341
  110. package/dist/types/plugins/adapters/UniswapV2AdapterContract.d.ts +0 -211
  111. package/dist/types/plugins/adapters/UniswapV3AdapterContract.d.ts +0 -378
  112. package/dist/types/plugins/adapters/UpshiftVaultAdapterContract.d.ts +0 -265
  113. package/dist/types/plugins/adapters/VelodromeV2AdapterContract.d.ts +0 -239
  114. package/dist/types/plugins/adapters/WstETHV1AdapterContract.d.ts +0 -124
  115. package/dist/types/plugins/adapters/YearnV2AdapterContract.d.ts +0 -182
  116. package/dist/types/plugins/adapters/abi/adapters.d.ts +0 -8946
  117. package/dist/types/plugins/adapters/abi/index.d.ts +0 -1
  118. package/dist/types/plugins/adapters/index.d.ts +0 -36
  119. package/dist/types/plugins/adapters/types.d.ts +0 -2
@@ -1,173 +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: "getReward";
28
- readonly outputs: readonly [{
29
- readonly name: "useSafePrices";
30
- readonly internalType: "bool";
31
- readonly type: "bool";
32
- }];
33
- readonly stateMutability: "nonpayable";
34
- }, {
35
- readonly type: "function";
36
- readonly inputs: readonly [];
37
- readonly name: "rewardsToken";
38
- readonly outputs: readonly [{
39
- readonly name: "";
40
- readonly internalType: "address";
41
- readonly type: "address";
42
- }];
43
- readonly stateMutability: "view";
44
- }, {
45
- readonly type: "function";
46
- readonly inputs: readonly [];
47
- readonly name: "serialize";
48
- readonly outputs: readonly [{
49
- readonly name: "serializedData";
50
- readonly internalType: "bytes";
51
- readonly type: "bytes";
52
- }];
53
- readonly stateMutability: "view";
54
- }, {
55
- readonly type: "function";
56
- readonly inputs: readonly [{
57
- readonly name: "amount";
58
- readonly internalType: "uint256";
59
- readonly type: "uint256";
60
- }];
61
- readonly name: "stake";
62
- readonly outputs: readonly [{
63
- readonly name: "useSafePrices";
64
- readonly internalType: "bool";
65
- readonly type: "bool";
66
- }];
67
- readonly stateMutability: "nonpayable";
68
- }, {
69
- readonly type: "function";
70
- readonly inputs: readonly [{
71
- readonly name: "leftoverAmount";
72
- readonly internalType: "uint256";
73
- readonly type: "uint256";
74
- }];
75
- readonly name: "stakeDiff";
76
- readonly outputs: readonly [{
77
- readonly name: "useSafePrices";
78
- readonly internalType: "bool";
79
- readonly type: "bool";
80
- }];
81
- readonly stateMutability: "nonpayable";
82
- }, {
83
- readonly type: "function";
84
- readonly inputs: readonly [];
85
- readonly name: "stakedPhantomToken";
86
- readonly outputs: readonly [{
87
- readonly name: "";
88
- readonly internalType: "address";
89
- readonly type: "address";
90
- }];
91
- readonly stateMutability: "view";
92
- }, {
93
- readonly type: "function";
94
- readonly inputs: readonly [];
95
- readonly name: "stakingToken";
96
- readonly outputs: readonly [{
97
- readonly name: "";
98
- readonly internalType: "address";
99
- readonly type: "address";
100
- }];
101
- readonly stateMutability: "view";
102
- }, {
103
- readonly type: "function";
104
- readonly inputs: readonly [];
105
- readonly name: "targetContract";
106
- readonly outputs: readonly [{
107
- readonly name: "";
108
- readonly internalType: "address";
109
- readonly type: "address";
110
- }];
111
- readonly stateMutability: "view";
112
- }, {
113
- readonly type: "function";
114
- readonly inputs: readonly [];
115
- readonly name: "version";
116
- readonly outputs: readonly [{
117
- readonly name: "";
118
- readonly internalType: "uint256";
119
- readonly type: "uint256";
120
- }];
121
- readonly stateMutability: "view";
122
- }, {
123
- readonly type: "function";
124
- readonly inputs: readonly [{
125
- readonly name: "amount";
126
- readonly internalType: "uint256";
127
- readonly type: "uint256";
128
- }];
129
- readonly name: "withdraw";
130
- readonly outputs: readonly [{
131
- readonly name: "useSafePrices";
132
- readonly internalType: "bool";
133
- readonly type: "bool";
134
- }];
135
- readonly stateMutability: "nonpayable";
136
- }, {
137
- readonly type: "function";
138
- readonly inputs: readonly [{
139
- readonly name: "leftoverAmount";
140
- readonly internalType: "uint256";
141
- readonly type: "uint256";
142
- }];
143
- readonly name: "withdrawDiff";
144
- readonly outputs: readonly [{
145
- readonly name: "useSafePrices";
146
- readonly internalType: "bool";
147
- readonly type: "bool";
148
- }];
149
- readonly stateMutability: "nonpayable";
150
- }, {
151
- readonly type: "function";
152
- readonly inputs: readonly [{
153
- readonly name: "token";
154
- readonly internalType: "address";
155
- readonly type: "address";
156
- }, {
157
- readonly name: "amount";
158
- readonly internalType: "uint256";
159
- readonly type: "uint256";
160
- }];
161
- readonly name: "withdrawPhantomToken";
162
- readonly outputs: readonly [{
163
- readonly name: "useSafePrices";
164
- readonly internalType: "bool";
165
- readonly type: "bool";
166
- }];
167
- readonly stateMutability: "nonpayable";
168
- }];
169
- type abi = typeof abi;
170
- export declare class StakingRewardsAdapterContract extends AbstractAdapterContract<typeof abi> {
171
- constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
172
- }
173
- export {};
@@ -1,341 +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: "isPoolAllowed";
27
- readonly inputs: readonly [{
28
- readonly name: "token0";
29
- readonly type: "address";
30
- readonly internalType: "address";
31
- }, {
32
- readonly name: "token1";
33
- readonly type: "address";
34
- readonly internalType: "address";
35
- }, {
36
- readonly name: "binStep";
37
- readonly type: "uint256";
38
- readonly internalType: "uint256";
39
- }, {
40
- readonly name: "poolVersion";
41
- readonly type: "uint8";
42
- readonly internalType: "enum Version";
43
- }];
44
- readonly outputs: readonly [{
45
- readonly name: "";
46
- readonly type: "bool";
47
- readonly internalType: "bool";
48
- }];
49
- readonly stateMutability: "view";
50
- }, {
51
- readonly type: "function";
52
- readonly name: "serialize";
53
- readonly inputs: readonly [];
54
- readonly outputs: readonly [{
55
- readonly name: "serializedData";
56
- readonly type: "bytes";
57
- readonly internalType: "bytes";
58
- }];
59
- readonly stateMutability: "view";
60
- }, {
61
- readonly type: "function";
62
- readonly name: "setPoolStatusBatch";
63
- readonly inputs: readonly [{
64
- readonly name: "pools";
65
- readonly type: "tuple[]";
66
- readonly internalType: "struct TraderJoePoolStatus[]";
67
- readonly components: readonly [{
68
- readonly name: "token0";
69
- readonly type: "address";
70
- readonly internalType: "address";
71
- }, {
72
- readonly name: "token1";
73
- readonly type: "address";
74
- readonly internalType: "address";
75
- }, {
76
- readonly name: "binStep";
77
- readonly type: "uint256";
78
- readonly internalType: "uint256";
79
- }, {
80
- readonly name: "poolVersion";
81
- readonly type: "uint8";
82
- readonly internalType: "enum Version";
83
- }, {
84
- readonly name: "allowed";
85
- readonly type: "bool";
86
- readonly internalType: "bool";
87
- }];
88
- }];
89
- readonly outputs: readonly [];
90
- readonly stateMutability: "nonpayable";
91
- }, {
92
- readonly type: "function";
93
- readonly name: "supportedPools";
94
- readonly inputs: readonly [];
95
- readonly outputs: readonly [{
96
- readonly name: "pools";
97
- readonly type: "tuple[]";
98
- readonly internalType: "struct TraderJoePool[]";
99
- readonly components: readonly [{
100
- readonly name: "token0";
101
- readonly type: "address";
102
- readonly internalType: "address";
103
- }, {
104
- readonly name: "token1";
105
- readonly type: "address";
106
- readonly internalType: "address";
107
- }, {
108
- readonly name: "binStep";
109
- readonly type: "uint256";
110
- readonly internalType: "uint256";
111
- }, {
112
- readonly name: "poolVersion";
113
- readonly type: "uint8";
114
- readonly internalType: "enum Version";
115
- }];
116
- }];
117
- readonly stateMutability: "view";
118
- }, {
119
- readonly type: "function";
120
- readonly name: "swapDiffTokensForTokens";
121
- readonly inputs: readonly [{
122
- readonly name: "leftoverAmount";
123
- readonly type: "uint256";
124
- readonly internalType: "uint256";
125
- }, {
126
- readonly name: "rateMinRAY";
127
- readonly type: "uint256";
128
- readonly internalType: "uint256";
129
- }, {
130
- readonly name: "path";
131
- readonly type: "tuple";
132
- readonly internalType: "struct Path";
133
- readonly components: readonly [{
134
- readonly name: "pairBinSteps";
135
- readonly type: "uint256[]";
136
- readonly internalType: "uint256[]";
137
- }, {
138
- readonly name: "versions";
139
- readonly type: "uint8[]";
140
- readonly internalType: "enum Version[]";
141
- }, {
142
- readonly name: "tokenPath";
143
- readonly type: "address[]";
144
- readonly internalType: "contract IERC20[]";
145
- }];
146
- }, {
147
- readonly name: "deadline";
148
- readonly type: "uint256";
149
- readonly internalType: "uint256";
150
- }];
151
- readonly outputs: readonly [{
152
- readonly name: "useSafePrices";
153
- readonly type: "bool";
154
- readonly internalType: "bool";
155
- }];
156
- readonly stateMutability: "nonpayable";
157
- }, {
158
- readonly type: "function";
159
- readonly name: "swapDiffTokensForTokensSupportingFeeOnTransferTokens";
160
- readonly inputs: readonly [{
161
- readonly name: "leftoverAmount";
162
- readonly type: "uint256";
163
- readonly internalType: "uint256";
164
- }, {
165
- readonly name: "rateMinRAY";
166
- readonly type: "uint256";
167
- readonly internalType: "uint256";
168
- }, {
169
- readonly name: "path";
170
- readonly type: "tuple";
171
- readonly internalType: "struct Path";
172
- readonly components: readonly [{
173
- readonly name: "pairBinSteps";
174
- readonly type: "uint256[]";
175
- readonly internalType: "uint256[]";
176
- }, {
177
- readonly name: "versions";
178
- readonly type: "uint8[]";
179
- readonly internalType: "enum Version[]";
180
- }, {
181
- readonly name: "tokenPath";
182
- readonly type: "address[]";
183
- readonly internalType: "contract IERC20[]";
184
- }];
185
- }, {
186
- readonly name: "deadline";
187
- readonly type: "uint256";
188
- readonly internalType: "uint256";
189
- }];
190
- readonly outputs: readonly [{
191
- readonly name: "useSafePrices";
192
- readonly type: "bool";
193
- readonly internalType: "bool";
194
- }];
195
- readonly stateMutability: "nonpayable";
196
- }, {
197
- readonly type: "function";
198
- readonly name: "swapExactTokensForTokens";
199
- readonly inputs: readonly [{
200
- readonly name: "amountIn";
201
- readonly type: "uint256";
202
- readonly internalType: "uint256";
203
- }, {
204
- readonly name: "amountOutMin";
205
- readonly type: "uint256";
206
- readonly internalType: "uint256";
207
- }, {
208
- readonly name: "path";
209
- readonly type: "tuple";
210
- readonly internalType: "struct Path";
211
- readonly components: readonly [{
212
- readonly name: "pairBinSteps";
213
- readonly type: "uint256[]";
214
- readonly internalType: "uint256[]";
215
- }, {
216
- readonly name: "versions";
217
- readonly type: "uint8[]";
218
- readonly internalType: "enum Version[]";
219
- }, {
220
- readonly name: "tokenPath";
221
- readonly type: "address[]";
222
- readonly internalType: "contract IERC20[]";
223
- }];
224
- }, {
225
- readonly name: "_to";
226
- readonly type: "address";
227
- readonly internalType: "address";
228
- }, {
229
- readonly name: "deadline";
230
- readonly type: "uint256";
231
- readonly internalType: "uint256";
232
- }];
233
- readonly outputs: readonly [{
234
- readonly name: "useSafePrices";
235
- readonly type: "bool";
236
- readonly internalType: "bool";
237
- }];
238
- readonly stateMutability: "nonpayable";
239
- }, {
240
- readonly type: "function";
241
- readonly name: "swapExactTokensForTokensSupportingFeeOnTransferTokens";
242
- readonly inputs: readonly [{
243
- readonly name: "amountIn";
244
- readonly type: "uint256";
245
- readonly internalType: "uint256";
246
- }, {
247
- readonly name: "amountOutMin";
248
- readonly type: "uint256";
249
- readonly internalType: "uint256";
250
- }, {
251
- readonly name: "path";
252
- readonly type: "tuple";
253
- readonly internalType: "struct Path";
254
- readonly components: readonly [{
255
- readonly name: "pairBinSteps";
256
- readonly type: "uint256[]";
257
- readonly internalType: "uint256[]";
258
- }, {
259
- readonly name: "versions";
260
- readonly type: "uint8[]";
261
- readonly internalType: "enum Version[]";
262
- }, {
263
- readonly name: "tokenPath";
264
- readonly type: "address[]";
265
- readonly internalType: "contract IERC20[]";
266
- }];
267
- }, {
268
- readonly name: "_to";
269
- readonly type: "address";
270
- readonly internalType: "address";
271
- }, {
272
- readonly name: "deadline";
273
- readonly type: "uint256";
274
- readonly internalType: "uint256";
275
- }];
276
- readonly outputs: readonly [{
277
- readonly name: "useSafePrices";
278
- readonly type: "bool";
279
- readonly internalType: "bool";
280
- }];
281
- readonly stateMutability: "nonpayable";
282
- }, {
283
- readonly type: "function";
284
- readonly name: "targetContract";
285
- readonly inputs: readonly [];
286
- readonly outputs: readonly [{
287
- readonly name: "";
288
- readonly type: "address";
289
- readonly internalType: "address";
290
- }];
291
- readonly stateMutability: "view";
292
- }, {
293
- readonly type: "function";
294
- readonly name: "version";
295
- readonly inputs: readonly [];
296
- readonly outputs: readonly [{
297
- readonly name: "";
298
- readonly type: "uint256";
299
- readonly internalType: "uint256";
300
- }];
301
- readonly stateMutability: "view";
302
- }, {
303
- readonly type: "event";
304
- readonly name: "SetPoolStatus";
305
- readonly inputs: readonly [{
306
- readonly name: "token0";
307
- readonly type: "address";
308
- readonly indexed: true;
309
- readonly internalType: "address";
310
- }, {
311
- readonly name: "token1";
312
- readonly type: "address";
313
- readonly indexed: true;
314
- readonly internalType: "address";
315
- }, {
316
- readonly name: "binStep";
317
- readonly type: "uint256";
318
- readonly indexed: false;
319
- readonly internalType: "uint256";
320
- }, {
321
- readonly name: "poolVersion";
322
- readonly type: "uint8";
323
- readonly indexed: false;
324
- readonly internalType: "enum Version";
325
- }, {
326
- readonly name: "allowed";
327
- readonly type: "bool";
328
- readonly indexed: false;
329
- readonly internalType: "bool";
330
- }];
331
- readonly anonymous: false;
332
- }, {
333
- readonly type: "error";
334
- readonly name: "InvalidPathException";
335
- readonly inputs: readonly [];
336
- }];
337
- type abi = typeof abi;
338
- export declare class TraderJoeRouterAdapterContract extends AbstractAdapterContract<abi> {
339
- constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
340
- }
341
- export {};