@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,196 +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: "getAllowedPools";
28
- readonly outputs: readonly [{
29
- readonly name: "pools";
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: "pool";
38
- readonly internalType: "address";
39
- readonly type: "address";
40
- }];
41
- readonly name: "isPoolAllowed";
42
- readonly outputs: readonly [{
43
- readonly name: "";
44
- readonly internalType: "bool";
45
- readonly type: "bool";
46
- }];
47
- readonly stateMutability: "view";
48
- }, {
49
- readonly type: "function";
50
- readonly inputs: readonly [];
51
- readonly name: "serialize";
52
- readonly outputs: readonly [{
53
- readonly name: "serializedData";
54
- readonly internalType: "bytes";
55
- readonly type: "bytes";
56
- }];
57
- readonly stateMutability: "view";
58
- }, {
59
- readonly type: "function";
60
- readonly inputs: readonly [{
61
- readonly name: "pools";
62
- readonly internalType: "address[]";
63
- readonly type: "address[]";
64
- }, {
65
- readonly name: "statuses";
66
- readonly internalType: "bool[]";
67
- readonly type: "bool[]";
68
- }];
69
- readonly name: "setPoolStatusBatch";
70
- readonly outputs: readonly [];
71
- readonly stateMutability: "nonpayable";
72
- }, {
73
- readonly type: "function";
74
- readonly inputs: readonly [{
75
- readonly name: "pool";
76
- readonly internalType: "address";
77
- readonly type: "address";
78
- }, {
79
- readonly name: "tokenIn";
80
- readonly internalType: "contract IERC20";
81
- readonly type: "address";
82
- }, {
83
- readonly name: "tokenOut";
84
- readonly internalType: "contract IERC20";
85
- readonly type: "address";
86
- }, {
87
- readonly name: "leftoverAmount";
88
- readonly internalType: "uint256";
89
- readonly type: "uint256";
90
- }, {
91
- readonly name: "rateMinRAY";
92
- readonly internalType: "uint256";
93
- readonly type: "uint256";
94
- }, {
95
- readonly name: "deadline";
96
- readonly internalType: "uint256";
97
- readonly type: "uint256";
98
- }];
99
- readonly name: "swapSingleTokenDiffIn";
100
- readonly outputs: readonly [{
101
- readonly name: "";
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: "pool";
110
- readonly internalType: "address";
111
- readonly type: "address";
112
- }, {
113
- readonly name: "tokenIn";
114
- readonly internalType: "contract IERC20";
115
- readonly type: "address";
116
- }, {
117
- readonly name: "tokenOut";
118
- readonly internalType: "contract IERC20";
119
- readonly type: "address";
120
- }, {
121
- readonly name: "exactAmountIn";
122
- readonly internalType: "uint256";
123
- readonly type: "uint256";
124
- }, {
125
- readonly name: "minAmountOut";
126
- readonly internalType: "uint256";
127
- readonly type: "uint256";
128
- }, {
129
- readonly name: "deadline";
130
- readonly internalType: "uint256";
131
- readonly type: "uint256";
132
- }, {
133
- readonly name: "wethIsEth";
134
- readonly internalType: "bool";
135
- readonly type: "bool";
136
- }, {
137
- readonly name: "userData";
138
- readonly internalType: "bytes";
139
- readonly type: "bytes";
140
- }];
141
- readonly name: "swapSingleTokenExactIn";
142
- readonly outputs: readonly [{
143
- readonly name: "";
144
- readonly internalType: "bool";
145
- readonly type: "bool";
146
- }];
147
- readonly stateMutability: "nonpayable";
148
- }, {
149
- readonly type: "function";
150
- readonly inputs: readonly [];
151
- readonly name: "targetContract";
152
- readonly outputs: readonly [{
153
- readonly name: "";
154
- readonly internalType: "address";
155
- readonly type: "address";
156
- }];
157
- readonly stateMutability: "view";
158
- }, {
159
- readonly type: "function";
160
- readonly inputs: readonly [];
161
- readonly name: "version";
162
- readonly outputs: readonly [{
163
- readonly name: "";
164
- readonly internalType: "uint256";
165
- readonly type: "uint256";
166
- }];
167
- readonly stateMutability: "view";
168
- }, {
169
- readonly type: "event";
170
- readonly anonymous: false;
171
- readonly inputs: readonly [{
172
- readonly name: "pool";
173
- readonly internalType: "address";
174
- readonly type: "address";
175
- readonly indexed: true;
176
- }, {
177
- readonly name: "allowed";
178
- readonly internalType: "bool";
179
- readonly type: "bool";
180
- readonly indexed: false;
181
- }];
182
- readonly name: "SetPoolStatus";
183
- }, {
184
- readonly type: "error";
185
- readonly inputs: readonly [];
186
- readonly name: "InvalidLengthException";
187
- }, {
188
- readonly type: "error";
189
- readonly inputs: readonly [];
190
- readonly name: "InvalidPoolException";
191
- }];
192
- type abi = typeof abi;
193
- export declare class BalancerV3RouterAdapterContract extends AbstractAdapterContract<abi> {
194
- constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
195
- }
196
- export {};
@@ -1,435 +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: "params";
28
- readonly internalType: "struct ICamelotV3AdapterTypes.ExactDiffInputParams";
29
- readonly type: "tuple";
30
- readonly components: readonly [{
31
- readonly name: "path";
32
- readonly internalType: "bytes";
33
- readonly type: "bytes";
34
- }, {
35
- readonly name: "deadline";
36
- readonly internalType: "uint256";
37
- readonly type: "uint256";
38
- }, {
39
- readonly name: "leftoverAmount";
40
- readonly internalType: "uint256";
41
- readonly type: "uint256";
42
- }, {
43
- readonly name: "rateMinRAY";
44
- readonly internalType: "uint256";
45
- readonly type: "uint256";
46
- }];
47
- }];
48
- readonly name: "exactDiffInput";
49
- readonly outputs: readonly [{
50
- readonly name: "useSafePrices";
51
- readonly internalType: "bool";
52
- readonly type: "bool";
53
- }];
54
- readonly stateMutability: "nonpayable";
55
- }, {
56
- readonly type: "function";
57
- readonly inputs: readonly [{
58
- readonly name: "params";
59
- readonly internalType: "struct ICamelotV3AdapterTypes.ExactDiffInputSingleParams";
60
- readonly type: "tuple";
61
- readonly components: readonly [{
62
- readonly name: "tokenIn";
63
- readonly internalType: "address";
64
- readonly type: "address";
65
- }, {
66
- readonly name: "tokenOut";
67
- readonly internalType: "address";
68
- readonly type: "address";
69
- }, {
70
- readonly name: "deadline";
71
- readonly internalType: "uint256";
72
- readonly type: "uint256";
73
- }, {
74
- readonly name: "leftoverAmount";
75
- readonly internalType: "uint256";
76
- readonly type: "uint256";
77
- }, {
78
- readonly name: "rateMinRAY";
79
- readonly internalType: "uint256";
80
- readonly type: "uint256";
81
- }, {
82
- readonly name: "limitSqrtPrice";
83
- readonly internalType: "uint160";
84
- readonly type: "uint160";
85
- }];
86
- }];
87
- readonly name: "exactDiffInputSingle";
88
- readonly outputs: readonly [{
89
- readonly name: "useSafePrices";
90
- readonly internalType: "bool";
91
- readonly type: "bool";
92
- }];
93
- readonly stateMutability: "nonpayable";
94
- }, {
95
- readonly type: "function";
96
- readonly inputs: readonly [{
97
- readonly name: "params";
98
- readonly internalType: "struct ICamelotV3AdapterTypes.ExactDiffInputSingleParams";
99
- readonly type: "tuple";
100
- readonly components: readonly [{
101
- readonly name: "tokenIn";
102
- readonly internalType: "address";
103
- readonly type: "address";
104
- }, {
105
- readonly name: "tokenOut";
106
- readonly internalType: "address";
107
- readonly type: "address";
108
- }, {
109
- readonly name: "deadline";
110
- readonly internalType: "uint256";
111
- readonly type: "uint256";
112
- }, {
113
- readonly name: "leftoverAmount";
114
- readonly internalType: "uint256";
115
- readonly type: "uint256";
116
- }, {
117
- readonly name: "rateMinRAY";
118
- readonly internalType: "uint256";
119
- readonly type: "uint256";
120
- }, {
121
- readonly name: "limitSqrtPrice";
122
- readonly internalType: "uint160";
123
- readonly type: "uint160";
124
- }];
125
- }];
126
- readonly name: "exactDiffInputSingleSupportingFeeOnTransferTokens";
127
- readonly outputs: readonly [{
128
- readonly name: "useSafePrices";
129
- readonly internalType: "bool";
130
- readonly type: "bool";
131
- }];
132
- readonly stateMutability: "nonpayable";
133
- }, {
134
- readonly type: "function";
135
- readonly inputs: readonly [{
136
- readonly name: "params";
137
- readonly internalType: "struct ICamelotV3Router.ExactInputParams";
138
- readonly type: "tuple";
139
- readonly components: readonly [{
140
- readonly name: "path";
141
- readonly internalType: "bytes";
142
- readonly type: "bytes";
143
- }, {
144
- readonly name: "recipient";
145
- readonly internalType: "address";
146
- readonly type: "address";
147
- }, {
148
- readonly name: "deadline";
149
- readonly internalType: "uint256";
150
- readonly type: "uint256";
151
- }, {
152
- readonly name: "amountIn";
153
- readonly internalType: "uint256";
154
- readonly type: "uint256";
155
- }, {
156
- readonly name: "amountOutMinimum";
157
- readonly internalType: "uint256";
158
- readonly type: "uint256";
159
- }];
160
- }];
161
- readonly name: "exactInput";
162
- readonly outputs: readonly [{
163
- readonly name: "useSafePrices";
164
- readonly internalType: "bool";
165
- readonly type: "bool";
166
- }];
167
- readonly stateMutability: "nonpayable";
168
- }, {
169
- readonly type: "function";
170
- readonly inputs: readonly [{
171
- readonly name: "params";
172
- readonly internalType: "struct ICamelotV3Router.ExactInputSingleParams";
173
- readonly type: "tuple";
174
- readonly components: readonly [{
175
- readonly name: "tokenIn";
176
- readonly internalType: "address";
177
- readonly type: "address";
178
- }, {
179
- readonly name: "tokenOut";
180
- readonly internalType: "address";
181
- readonly type: "address";
182
- }, {
183
- readonly name: "recipient";
184
- readonly internalType: "address";
185
- readonly type: "address";
186
- }, {
187
- readonly name: "deadline";
188
- readonly internalType: "uint256";
189
- readonly type: "uint256";
190
- }, {
191
- readonly name: "amountIn";
192
- readonly internalType: "uint256";
193
- readonly type: "uint256";
194
- }, {
195
- readonly name: "amountOutMinimum";
196
- readonly internalType: "uint256";
197
- readonly type: "uint256";
198
- }, {
199
- readonly name: "limitSqrtPrice";
200
- readonly internalType: "uint160";
201
- readonly type: "uint160";
202
- }];
203
- }];
204
- readonly name: "exactInputSingle";
205
- readonly outputs: readonly [{
206
- readonly name: "useSafePrices";
207
- readonly internalType: "bool";
208
- readonly type: "bool";
209
- }];
210
- readonly stateMutability: "nonpayable";
211
- }, {
212
- readonly type: "function";
213
- readonly inputs: readonly [{
214
- readonly name: "params";
215
- readonly internalType: "struct ICamelotV3Router.ExactInputSingleParams";
216
- readonly type: "tuple";
217
- readonly components: readonly [{
218
- readonly name: "tokenIn";
219
- readonly internalType: "address";
220
- readonly type: "address";
221
- }, {
222
- readonly name: "tokenOut";
223
- readonly internalType: "address";
224
- readonly type: "address";
225
- }, {
226
- readonly name: "recipient";
227
- readonly internalType: "address";
228
- readonly type: "address";
229
- }, {
230
- readonly name: "deadline";
231
- readonly internalType: "uint256";
232
- readonly type: "uint256";
233
- }, {
234
- readonly name: "amountIn";
235
- readonly internalType: "uint256";
236
- readonly type: "uint256";
237
- }, {
238
- readonly name: "amountOutMinimum";
239
- readonly internalType: "uint256";
240
- readonly type: "uint256";
241
- }, {
242
- readonly name: "limitSqrtPrice";
243
- readonly internalType: "uint160";
244
- readonly type: "uint160";
245
- }];
246
- }];
247
- readonly name: "exactInputSingleSupportingFeeOnTransferTokens";
248
- readonly outputs: readonly [{
249
- readonly name: "useSafePrices";
250
- readonly internalType: "bool";
251
- readonly type: "bool";
252
- }];
253
- readonly stateMutability: "nonpayable";
254
- }, {
255
- readonly type: "function";
256
- readonly inputs: readonly [{
257
- readonly name: "params";
258
- readonly internalType: "struct ICamelotV3Router.ExactOutputParams";
259
- readonly type: "tuple";
260
- readonly components: readonly [{
261
- readonly name: "path";
262
- readonly internalType: "bytes";
263
- readonly type: "bytes";
264
- }, {
265
- readonly name: "recipient";
266
- readonly internalType: "address";
267
- readonly type: "address";
268
- }, {
269
- readonly name: "deadline";
270
- readonly internalType: "uint256";
271
- readonly type: "uint256";
272
- }, {
273
- readonly name: "amountOut";
274
- readonly internalType: "uint256";
275
- readonly type: "uint256";
276
- }, {
277
- readonly name: "amountInMaximum";
278
- readonly internalType: "uint256";
279
- readonly type: "uint256";
280
- }];
281
- }];
282
- readonly name: "exactOutput";
283
- readonly outputs: readonly [{
284
- readonly name: "useSafePrices";
285
- readonly internalType: "bool";
286
- readonly type: "bool";
287
- }];
288
- readonly stateMutability: "nonpayable";
289
- }, {
290
- readonly type: "function";
291
- readonly inputs: readonly [{
292
- readonly name: "params";
293
- readonly internalType: "struct ICamelotV3Router.ExactOutputSingleParams";
294
- readonly type: "tuple";
295
- readonly components: readonly [{
296
- readonly name: "tokenIn";
297
- readonly internalType: "address";
298
- readonly type: "address";
299
- }, {
300
- readonly name: "tokenOut";
301
- readonly internalType: "address";
302
- readonly type: "address";
303
- }, {
304
- readonly name: "fee";
305
- readonly internalType: "uint24";
306
- readonly type: "uint24";
307
- }, {
308
- readonly name: "recipient";
309
- readonly internalType: "address";
310
- readonly type: "address";
311
- }, {
312
- readonly name: "deadline";
313
- readonly internalType: "uint256";
314
- readonly type: "uint256";
315
- }, {
316
- readonly name: "amountOut";
317
- readonly internalType: "uint256";
318
- readonly type: "uint256";
319
- }, {
320
- readonly name: "amountInMaximum";
321
- readonly internalType: "uint256";
322
- readonly type: "uint256";
323
- }, {
324
- readonly name: "limitSqrtPrice";
325
- readonly internalType: "uint160";
326
- readonly type: "uint160";
327
- }];
328
- }];
329
- readonly name: "exactOutputSingle";
330
- readonly outputs: readonly [{
331
- readonly name: "useSafePrices";
332
- readonly internalType: "bool";
333
- readonly type: "bool";
334
- }];
335
- readonly stateMutability: "nonpayable";
336
- }, {
337
- readonly type: "function";
338
- readonly inputs: readonly [{
339
- readonly name: "token0";
340
- readonly internalType: "address";
341
- readonly type: "address";
342
- }, {
343
- readonly name: "token1";
344
- readonly internalType: "address";
345
- readonly type: "address";
346
- }];
347
- readonly name: "isPoolAllowed";
348
- readonly outputs: readonly [{
349
- readonly name: "";
350
- readonly internalType: "bool";
351
- readonly type: "bool";
352
- }];
353
- readonly stateMutability: "view";
354
- }, {
355
- readonly type: "function";
356
- readonly inputs: readonly [];
357
- readonly name: "serialize";
358
- readonly outputs: readonly [{
359
- readonly name: "serializedData";
360
- readonly internalType: "bytes";
361
- readonly type: "bytes";
362
- }];
363
- readonly stateMutability: "view";
364
- }, {
365
- readonly type: "function";
366
- readonly inputs: readonly [{
367
- readonly name: "pools";
368
- readonly internalType: "struct CamelotV3PoolStatus[]";
369
- readonly type: "tuple[]";
370
- readonly components: readonly [{
371
- readonly name: "token0";
372
- readonly internalType: "address";
373
- readonly type: "address";
374
- }, {
375
- readonly name: "token1";
376
- readonly internalType: "address";
377
- readonly type: "address";
378
- }, {
379
- readonly name: "allowed";
380
- readonly internalType: "bool";
381
- readonly type: "bool";
382
- }];
383
- }];
384
- readonly name: "setPoolStatusBatch";
385
- readonly outputs: readonly [];
386
- readonly stateMutability: "nonpayable";
387
- }, {
388
- readonly type: "function";
389
- readonly inputs: readonly [];
390
- readonly name: "targetContract";
391
- readonly outputs: readonly [{
392
- readonly name: "";
393
- readonly internalType: "address";
394
- readonly type: "address";
395
- }];
396
- readonly stateMutability: "view";
397
- }, {
398
- readonly type: "function";
399
- readonly inputs: readonly [];
400
- readonly name: "version";
401
- readonly outputs: readonly [{
402
- readonly name: "";
403
- readonly internalType: "uint256";
404
- readonly type: "uint256";
405
- }];
406
- readonly stateMutability: "view";
407
- }, {
408
- readonly type: "event";
409
- readonly anonymous: false;
410
- readonly inputs: readonly [{
411
- readonly name: "token0";
412
- readonly internalType: "address";
413
- readonly type: "address";
414
- readonly indexed: true;
415
- }, {
416
- readonly name: "token1";
417
- readonly internalType: "address";
418
- readonly type: "address";
419
- readonly indexed: true;
420
- }, {
421
- readonly name: "allowed";
422
- readonly internalType: "bool";
423
- readonly type: "bool";
424
- readonly indexed: false;
425
- }];
426
- readonly name: "SetPoolStatus";
427
- }, {
428
- readonly type: "error";
429
- readonly inputs: readonly [];
430
- readonly name: "InvalidPathException";
431
- }];
432
- export declare class CamelotV3AdapterContract extends AbstractAdapterContract<typeof abi> {
433
- constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi>, "abi">);
434
- }
435
- export {};