@gearbox-protocol/sdk 9.11.0 → 9.12.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 (137) hide show
  1. package/dist/cjs/plugins/adapters/AdaptersPlugin.js +127 -0
  2. package/dist/cjs/plugins/adapters/abi/actionAbi.js +95 -0
  3. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +154 -0
  4. package/dist/cjs/plugins/adapters/abi/conctructorAbiPatterns.js +99 -0
  5. package/dist/cjs/plugins/adapters/abi/index.js +26 -0
  6. package/dist/cjs/plugins/adapters/abi/utils.js +86 -0
  7. package/dist/cjs/plugins/adapters/contracts/AbstractAdapter.js +39 -0
  8. package/dist/cjs/plugins/adapters/contracts/BalancerV2VaultAdapterContract.js +51 -0
  9. package/dist/cjs/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +46 -0
  10. package/dist/cjs/plugins/adapters/contracts/CamelotV3AdapterContract.js +56 -0
  11. package/dist/cjs/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +60 -0
  12. package/dist/cjs/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +60 -0
  13. package/dist/cjs/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +66 -0
  14. package/dist/cjs/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +66 -0
  15. package/dist/cjs/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +66 -0
  16. package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterDeposit.js +69 -0
  17. package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +61 -0
  18. package/dist/cjs/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +69 -0
  19. package/dist/cjs/plugins/adapters/contracts/DaiUsdsAdapterContract.js +49 -0
  20. package/dist/cjs/plugins/adapters/contracts/ERC4626AdapterContract.js +63 -0
  21. package/dist/cjs/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +49 -0
  22. package/dist/cjs/plugins/adapters/contracts/EqualizerRouterAdapterContract.js +58 -0
  23. package/dist/cjs/plugins/adapters/contracts/FluidDexAdapterContract.js +49 -0
  24. package/dist/cjs/plugins/adapters/contracts/InfraredVaultAdapterContract.js +49 -0
  25. package/dist/cjs/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.js +56 -0
  26. package/dist/cjs/plugins/adapters/contracts/LidoV1AdapterContract.js +52 -0
  27. package/dist/cjs/plugins/adapters/contracts/MellowClaimerAdapterContract.js +46 -0
  28. package/dist/cjs/plugins/adapters/contracts/MellowDVVAdapterContract.js +49 -0
  29. package/dist/cjs/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +78 -0
  30. package/dist/cjs/plugins/adapters/contracts/MellowVaultAdapterContract.js +46 -0
  31. package/dist/cjs/plugins/adapters/contracts/MellowWrapperAdapterContract.js +46 -0
  32. package/dist/cjs/plugins/adapters/contracts/PendleRouterAdapterContract.js +60 -0
  33. package/dist/cjs/plugins/adapters/contracts/StakingRewardsAdapterContract.js +73 -0
  34. package/dist/cjs/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +60 -0
  35. package/dist/cjs/plugins/adapters/contracts/UniswapV2AdapterContract.js +77 -0
  36. package/dist/cjs/plugins/adapters/contracts/UniswapV3AdapterContract.js +177 -0
  37. package/dist/cjs/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +52 -0
  38. package/dist/cjs/plugins/adapters/contracts/VelodromeV2AdapterContract.js +60 -0
  39. package/dist/cjs/plugins/adapters/contracts/WstETHV1AdapterContract.js +46 -0
  40. package/dist/cjs/plugins/adapters/contracts/YearnV2AdapterContract.js +46 -0
  41. package/dist/cjs/plugins/adapters/contracts/index.js +90 -0
  42. package/dist/cjs/plugins/adapters/contracts/types.js +60 -0
  43. package/dist/cjs/plugins/adapters/index.js +28 -0
  44. package/dist/cjs/plugins/adapters/package.json +1 -0
  45. package/dist/cjs/plugins/adapters/types.js +63 -0
  46. package/dist/cjs/sdk/sdk-legacy/gearboxRewards/extraAPY.js +1 -1
  47. package/dist/esm/plugins/adapters/AdaptersPlugin.js +137 -0
  48. package/dist/esm/plugins/adapters/abi/actionAbi.js +69 -0
  49. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +141 -0
  50. package/dist/esm/plugins/adapters/abi/conctructorAbiPatterns.js +66 -0
  51. package/dist/esm/plugins/adapters/abi/index.js +3 -0
  52. package/dist/esm/plugins/adapters/abi/utils.js +64 -0
  53. package/dist/esm/plugins/adapters/contracts/AbstractAdapter.js +15 -0
  54. package/dist/esm/plugins/adapters/contracts/BalancerV2VaultAdapterContract.js +27 -0
  55. package/dist/esm/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +22 -0
  56. package/dist/esm/plugins/adapters/contracts/CamelotV3AdapterContract.js +32 -0
  57. package/dist/esm/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +36 -0
  58. package/dist/esm/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +36 -0
  59. package/dist/esm/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +42 -0
  60. package/dist/esm/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +42 -0
  61. package/dist/esm/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +42 -0
  62. package/dist/esm/plugins/adapters/contracts/CurveV1AdapterDeposit.js +45 -0
  63. package/dist/esm/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +37 -0
  64. package/dist/esm/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +45 -0
  65. package/dist/esm/plugins/adapters/contracts/DaiUsdsAdapterContract.js +25 -0
  66. package/dist/esm/plugins/adapters/contracts/ERC4626AdapterContract.js +39 -0
  67. package/dist/esm/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +25 -0
  68. package/dist/esm/plugins/adapters/contracts/EqualizerRouterAdapterContract.js +34 -0
  69. package/dist/esm/plugins/adapters/contracts/FluidDexAdapterContract.js +25 -0
  70. package/dist/esm/plugins/adapters/contracts/InfraredVaultAdapterContract.js +25 -0
  71. package/dist/esm/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.js +32 -0
  72. package/dist/esm/plugins/adapters/contracts/LidoV1AdapterContract.js +28 -0
  73. package/dist/esm/plugins/adapters/contracts/MellowClaimerAdapterContract.js +22 -0
  74. package/dist/esm/plugins/adapters/contracts/MellowDVVAdapterContract.js +25 -0
  75. package/dist/esm/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +54 -0
  76. package/dist/esm/plugins/adapters/contracts/MellowVaultAdapterContract.js +22 -0
  77. package/dist/esm/plugins/adapters/contracts/MellowWrapperAdapterContract.js +22 -0
  78. package/dist/esm/plugins/adapters/contracts/PendleRouterAdapterContract.js +36 -0
  79. package/dist/esm/plugins/adapters/contracts/StakingRewardsAdapterContract.js +49 -0
  80. package/dist/esm/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +36 -0
  81. package/dist/esm/plugins/adapters/contracts/UniswapV2AdapterContract.js +55 -0
  82. package/dist/esm/plugins/adapters/contracts/UniswapV3AdapterContract.js +155 -0
  83. package/dist/esm/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +28 -0
  84. package/dist/esm/plugins/adapters/contracts/VelodromeV2AdapterContract.js +36 -0
  85. package/dist/esm/plugins/adapters/contracts/WstETHV1AdapterContract.js +22 -0
  86. package/dist/esm/plugins/adapters/contracts/YearnV2AdapterContract.js +22 -0
  87. package/dist/esm/plugins/adapters/contracts/index.js +35 -0
  88. package/dist/esm/plugins/adapters/contracts/types.js +33 -0
  89. package/dist/esm/plugins/adapters/index.js +4 -0
  90. package/dist/esm/plugins/adapters/package.json +1 -0
  91. package/dist/esm/plugins/adapters/types.js +39 -0
  92. package/dist/esm/sdk/sdk-legacy/gearboxRewards/extraAPY.js +1 -1
  93. package/dist/types/plugins/adapters/AdaptersPlugin.d.ts +11 -0
  94. package/dist/types/plugins/adapters/abi/actionAbi.d.ts +21 -0
  95. package/dist/types/plugins/adapters/abi/conctructorAbi.d.ts +7 -0
  96. package/dist/types/plugins/adapters/abi/conctructorAbiPatterns.d.ts +112 -0
  97. package/dist/types/plugins/adapters/abi/index.d.ts +3 -0
  98. package/dist/types/plugins/adapters/abi/utils.d.ts +30 -0
  99. package/dist/types/plugins/adapters/contracts/AbstractAdapter.d.ts +13 -0
  100. package/dist/types/plugins/adapters/contracts/BalancerV2VaultAdapterContract.d.ts +482 -0
  101. package/dist/types/plugins/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +198 -0
  102. package/dist/types/plugins/adapters/contracts/CamelotV3AdapterContract.d.ts +441 -0
  103. package/dist/types/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.d.ts +284 -0
  104. package/dist/types/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.d.ts +208 -0
  105. package/dist/types/plugins/adapters/contracts/Curve2AssetsAdapterContract.d.ts +534 -0
  106. package/dist/types/plugins/adapters/contracts/Curve3AssetsAdapterContract.d.ts +534 -0
  107. package/dist/types/plugins/adapters/contracts/Curve4AssetsAdapterContract.d.ts +534 -0
  108. package/dist/types/plugins/adapters/contracts/CurveV1AdapterDeposit.d.ts +481 -0
  109. package/dist/types/plugins/adapters/contracts/CurveV1AdapterStETHContract.d.ts +534 -0
  110. package/dist/types/plugins/adapters/contracts/CurveV1StableNGAdapterContract.d.ts +535 -0
  111. package/dist/types/plugins/adapters/contracts/DaiUsdsAdapterContract.d.ts +146 -0
  112. package/dist/types/plugins/adapters/contracts/ERC4626AdapterContract.d.ts +190 -0
  113. package/dist/types/plugins/adapters/contracts/ERC4626ReferralAdapterContract.d.ts +242 -0
  114. package/dist/types/plugins/adapters/contracts/EqualizerRouterAdapterContract.d.ts +225 -0
  115. package/dist/types/plugins/adapters/contracts/FluidDexAdapterContract.d.ts +130 -0
  116. package/dist/types/plugins/adapters/contracts/InfraredVaultAdapterContract.d.ts +198 -0
  117. package/dist/types/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.d.ts +396 -0
  118. package/dist/types/plugins/adapters/contracts/LidoV1AdapterContract.d.ts +121 -0
  119. package/dist/types/plugins/adapters/contracts/MellowClaimerAdapterContract.d.ts +257 -0
  120. package/dist/types/plugins/adapters/contracts/MellowDVVAdapterContract.d.ts +232 -0
  121. package/dist/types/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.d.ts +195 -0
  122. package/dist/types/plugins/adapters/contracts/MellowVaultAdapterContract.d.ts +203 -0
  123. package/dist/types/plugins/adapters/contracts/MellowWrapperAdapterContract.d.ts +161 -0
  124. package/dist/types/plugins/adapters/contracts/PendleRouterAdapterContract.d.ts +823 -0
  125. package/dist/types/plugins/adapters/contracts/StakingRewardsAdapterContract.d.ts +210 -0
  126. package/dist/types/plugins/adapters/contracts/TraderJoeRouterAdapterContract.d.ts +349 -0
  127. package/dist/types/plugins/adapters/contracts/UniswapV2AdapterContract.d.ts +216 -0
  128. package/dist/types/plugins/adapters/contracts/UniswapV3AdapterContract.d.ts +384 -0
  129. package/dist/types/plugins/adapters/contracts/UpshiftVaultAdapterContract.d.ts +269 -0
  130. package/dist/types/plugins/adapters/contracts/VelodromeV2AdapterContract.d.ts +247 -0
  131. package/dist/types/plugins/adapters/contracts/WstETHV1AdapterContract.d.ts +127 -0
  132. package/dist/types/plugins/adapters/contracts/YearnV2AdapterContract.d.ts +185 -0
  133. package/dist/types/plugins/adapters/contracts/index.d.ts +35 -0
  134. package/dist/types/plugins/adapters/contracts/types.d.ts +23 -0
  135. package/dist/types/plugins/adapters/index.d.ts +4 -0
  136. package/dist/types/plugins/adapters/types.d.ts +39 -0
  137. package/package.json +2 -1
@@ -0,0 +1,534 @@
1
+ import { type Address } from "viem";
2
+ import type { GearboxSDK } from "../../../sdk/index.js";
3
+ import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
4
+ import { AbstractAdapterContract } from "./AbstractAdapter.js";
5
+ declare const abi: readonly [{
6
+ readonly type: "function";
7
+ readonly inputs: readonly [{
8
+ readonly name: "leftoverAmount";
9
+ readonly internalType: "uint256";
10
+ readonly type: "uint256";
11
+ }, {
12
+ readonly name: "i";
13
+ readonly internalType: "uint256";
14
+ readonly type: "uint256";
15
+ }, {
16
+ readonly name: "rateMinRAY";
17
+ readonly internalType: "uint256";
18
+ readonly type: "uint256";
19
+ }];
20
+ readonly name: "add_diff_liquidity_one_coin";
21
+ readonly outputs: readonly [{
22
+ readonly name: "useSafePrices";
23
+ readonly internalType: "bool";
24
+ readonly type: "bool";
25
+ }];
26
+ readonly stateMutability: "nonpayable";
27
+ }, {
28
+ readonly type: "function";
29
+ readonly inputs: readonly [{
30
+ readonly name: "amounts";
31
+ readonly internalType: "uint256[3]";
32
+ readonly type: "uint256[3]";
33
+ }, {
34
+ readonly name: "";
35
+ readonly internalType: "uint256";
36
+ readonly type: "uint256";
37
+ }];
38
+ readonly name: "add_liquidity";
39
+ readonly outputs: readonly [{
40
+ readonly name: "useSafePrices";
41
+ readonly internalType: "bool";
42
+ readonly type: "bool";
43
+ }];
44
+ readonly stateMutability: "nonpayable";
45
+ }, {
46
+ readonly type: "function";
47
+ readonly inputs: readonly [{
48
+ readonly name: "amount";
49
+ readonly internalType: "uint256";
50
+ readonly type: "uint256";
51
+ }, {
52
+ readonly name: "i";
53
+ readonly internalType: "uint256";
54
+ readonly type: "uint256";
55
+ }, {
56
+ readonly name: "minAmount";
57
+ readonly internalType: "uint256";
58
+ readonly type: "uint256";
59
+ }];
60
+ readonly name: "add_liquidity_one_coin";
61
+ readonly outputs: readonly [{
62
+ readonly name: "useSafePrices";
63
+ readonly internalType: "bool";
64
+ readonly type: "bool";
65
+ }];
66
+ readonly stateMutability: "nonpayable";
67
+ }, {
68
+ readonly type: "function";
69
+ readonly inputs: readonly [{
70
+ readonly name: "amount";
71
+ readonly internalType: "uint256";
72
+ readonly type: "uint256";
73
+ }, {
74
+ readonly name: "i";
75
+ readonly internalType: "uint256";
76
+ readonly type: "uint256";
77
+ }];
78
+ readonly name: "calc_add_one_coin";
79
+ readonly outputs: readonly [{
80
+ readonly name: "";
81
+ readonly internalType: "uint256";
82
+ readonly type: "uint256";
83
+ }];
84
+ readonly stateMutability: "view";
85
+ }, {
86
+ readonly type: "function";
87
+ readonly inputs: readonly [];
88
+ readonly name: "contractType";
89
+ readonly outputs: readonly [{
90
+ readonly name: "";
91
+ readonly internalType: "bytes32";
92
+ readonly type: "bytes32";
93
+ }];
94
+ readonly stateMutability: "view";
95
+ }, {
96
+ readonly type: "function";
97
+ readonly inputs: readonly [];
98
+ readonly name: "creditManager";
99
+ readonly outputs: readonly [{
100
+ readonly name: "";
101
+ readonly internalType: "address";
102
+ readonly type: "address";
103
+ }];
104
+ readonly stateMutability: "view";
105
+ }, {
106
+ readonly type: "function";
107
+ readonly inputs: readonly [{
108
+ readonly name: "i";
109
+ readonly internalType: "int128";
110
+ readonly type: "int128";
111
+ }, {
112
+ readonly name: "j";
113
+ readonly internalType: "int128";
114
+ readonly type: "int128";
115
+ }, {
116
+ readonly name: "dx";
117
+ readonly internalType: "uint256";
118
+ readonly type: "uint256";
119
+ }, {
120
+ readonly name: "min_dy";
121
+ readonly internalType: "uint256";
122
+ readonly type: "uint256";
123
+ }];
124
+ readonly name: "exchange";
125
+ readonly outputs: readonly [{
126
+ readonly name: "useSafePrices";
127
+ readonly internalType: "bool";
128
+ readonly type: "bool";
129
+ }];
130
+ readonly stateMutability: "nonpayable";
131
+ }, {
132
+ readonly type: "function";
133
+ readonly inputs: readonly [{
134
+ readonly name: "i";
135
+ readonly internalType: "uint256";
136
+ readonly type: "uint256";
137
+ }, {
138
+ readonly name: "j";
139
+ readonly internalType: "uint256";
140
+ readonly type: "uint256";
141
+ }, {
142
+ readonly name: "dx";
143
+ readonly internalType: "uint256";
144
+ readonly type: "uint256";
145
+ }, {
146
+ readonly name: "min_dy";
147
+ readonly internalType: "uint256";
148
+ readonly type: "uint256";
149
+ }];
150
+ readonly name: "exchange";
151
+ readonly outputs: readonly [{
152
+ readonly name: "useSafePrices";
153
+ readonly internalType: "bool";
154
+ readonly type: "bool";
155
+ }];
156
+ readonly stateMutability: "nonpayable";
157
+ }, {
158
+ readonly type: "function";
159
+ readonly inputs: readonly [{
160
+ readonly name: "i";
161
+ readonly internalType: "uint256";
162
+ readonly type: "uint256";
163
+ }, {
164
+ readonly name: "j";
165
+ readonly internalType: "uint256";
166
+ readonly type: "uint256";
167
+ }, {
168
+ readonly name: "leftoverAmount";
169
+ readonly internalType: "uint256";
170
+ readonly type: "uint256";
171
+ }, {
172
+ readonly name: "rateMinRAY";
173
+ readonly internalType: "uint256";
174
+ readonly type: "uint256";
175
+ }];
176
+ readonly name: "exchange_diff";
177
+ readonly outputs: readonly [{
178
+ readonly name: "useSafePrices";
179
+ readonly internalType: "bool";
180
+ readonly type: "bool";
181
+ }];
182
+ readonly stateMutability: "nonpayable";
183
+ }, {
184
+ readonly type: "function";
185
+ readonly inputs: readonly [{
186
+ readonly name: "i";
187
+ readonly internalType: "uint256";
188
+ readonly type: "uint256";
189
+ }, {
190
+ readonly name: "j";
191
+ readonly internalType: "uint256";
192
+ readonly type: "uint256";
193
+ }, {
194
+ readonly name: "leftoverAmount";
195
+ readonly internalType: "uint256";
196
+ readonly type: "uint256";
197
+ }, {
198
+ readonly name: "rateMinRAY";
199
+ readonly internalType: "uint256";
200
+ readonly type: "uint256";
201
+ }];
202
+ readonly name: "exchange_diff_underlying";
203
+ readonly outputs: readonly [{
204
+ readonly name: "useSafePrices";
205
+ readonly internalType: "bool";
206
+ readonly type: "bool";
207
+ }];
208
+ readonly stateMutability: "nonpayable";
209
+ }, {
210
+ readonly type: "function";
211
+ readonly inputs: readonly [{
212
+ readonly name: "i";
213
+ readonly internalType: "uint256";
214
+ readonly type: "uint256";
215
+ }, {
216
+ readonly name: "j";
217
+ readonly internalType: "uint256";
218
+ readonly type: "uint256";
219
+ }, {
220
+ readonly name: "dx";
221
+ readonly internalType: "uint256";
222
+ readonly type: "uint256";
223
+ }, {
224
+ readonly name: "min_dy";
225
+ readonly internalType: "uint256";
226
+ readonly type: "uint256";
227
+ }];
228
+ readonly name: "exchange_underlying";
229
+ readonly outputs: readonly [{
230
+ readonly name: "useSafePrices";
231
+ readonly internalType: "bool";
232
+ readonly type: "bool";
233
+ }];
234
+ readonly stateMutability: "nonpayable";
235
+ }, {
236
+ readonly type: "function";
237
+ readonly inputs: readonly [{
238
+ readonly name: "i";
239
+ readonly internalType: "int128";
240
+ readonly type: "int128";
241
+ }, {
242
+ readonly name: "j";
243
+ readonly internalType: "int128";
244
+ readonly type: "int128";
245
+ }, {
246
+ readonly name: "dx";
247
+ readonly internalType: "uint256";
248
+ readonly type: "uint256";
249
+ }, {
250
+ readonly name: "min_dy";
251
+ readonly internalType: "uint256";
252
+ readonly type: "uint256";
253
+ }];
254
+ readonly name: "exchange_underlying";
255
+ readonly outputs: readonly [{
256
+ readonly name: "useSafePrices";
257
+ readonly internalType: "bool";
258
+ readonly type: "bool";
259
+ }];
260
+ readonly stateMutability: "nonpayable";
261
+ }, {
262
+ readonly type: "function";
263
+ readonly inputs: readonly [];
264
+ readonly name: "lp_token";
265
+ readonly outputs: readonly [{
266
+ readonly name: "";
267
+ readonly internalType: "address";
268
+ readonly type: "address";
269
+ }];
270
+ readonly stateMutability: "view";
271
+ }, {
272
+ readonly type: "function";
273
+ readonly inputs: readonly [];
274
+ readonly name: "metapoolBase";
275
+ readonly outputs: readonly [{
276
+ readonly name: "";
277
+ readonly internalType: "address";
278
+ readonly type: "address";
279
+ }];
280
+ readonly stateMutability: "view";
281
+ }, {
282
+ readonly type: "function";
283
+ readonly inputs: readonly [];
284
+ readonly name: "nCoins";
285
+ readonly outputs: readonly [{
286
+ readonly name: "";
287
+ readonly internalType: "uint256";
288
+ readonly type: "uint256";
289
+ }];
290
+ readonly stateMutability: "view";
291
+ }, {
292
+ readonly type: "function";
293
+ readonly inputs: readonly [{
294
+ readonly name: "leftoverAmount";
295
+ readonly internalType: "uint256";
296
+ readonly type: "uint256";
297
+ }, {
298
+ readonly name: "i";
299
+ readonly internalType: "uint256";
300
+ readonly type: "uint256";
301
+ }, {
302
+ readonly name: "rateMinRAY";
303
+ readonly internalType: "uint256";
304
+ readonly type: "uint256";
305
+ }];
306
+ readonly name: "remove_diff_liquidity_one_coin";
307
+ readonly outputs: readonly [{
308
+ readonly name: "useSafePrices";
309
+ readonly internalType: "bool";
310
+ readonly type: "bool";
311
+ }];
312
+ readonly stateMutability: "nonpayable";
313
+ }, {
314
+ readonly type: "function";
315
+ readonly inputs: readonly [{
316
+ readonly name: "";
317
+ readonly internalType: "uint256";
318
+ readonly type: "uint256";
319
+ }, {
320
+ readonly name: "";
321
+ readonly internalType: "uint256[3]";
322
+ readonly type: "uint256[3]";
323
+ }];
324
+ readonly name: "remove_liquidity";
325
+ readonly outputs: readonly [{
326
+ readonly name: "useSafePrices";
327
+ readonly internalType: "bool";
328
+ readonly type: "bool";
329
+ }];
330
+ readonly stateMutability: "nonpayable";
331
+ }, {
332
+ readonly type: "function";
333
+ readonly inputs: readonly [{
334
+ readonly name: "amounts";
335
+ readonly internalType: "uint256[3]";
336
+ readonly type: "uint256[3]";
337
+ }, {
338
+ readonly name: "";
339
+ readonly internalType: "uint256";
340
+ readonly type: "uint256";
341
+ }];
342
+ readonly name: "remove_liquidity_imbalance";
343
+ readonly outputs: readonly [{
344
+ readonly name: "useSafePrices";
345
+ readonly internalType: "bool";
346
+ readonly type: "bool";
347
+ }];
348
+ readonly stateMutability: "nonpayable";
349
+ }, {
350
+ readonly type: "function";
351
+ readonly inputs: readonly [{
352
+ readonly name: "amount";
353
+ readonly internalType: "uint256";
354
+ readonly type: "uint256";
355
+ }, {
356
+ readonly name: "i";
357
+ readonly internalType: "int128";
358
+ readonly type: "int128";
359
+ }, {
360
+ readonly name: "minAmount";
361
+ readonly internalType: "uint256";
362
+ readonly type: "uint256";
363
+ }];
364
+ readonly name: "remove_liquidity_one_coin";
365
+ readonly outputs: readonly [{
366
+ readonly name: "useSafePrices";
367
+ readonly internalType: "bool";
368
+ readonly type: "bool";
369
+ }];
370
+ readonly stateMutability: "nonpayable";
371
+ }, {
372
+ readonly type: "function";
373
+ readonly inputs: readonly [{
374
+ readonly name: "amount";
375
+ readonly internalType: "uint256";
376
+ readonly type: "uint256";
377
+ }, {
378
+ readonly name: "i";
379
+ readonly internalType: "uint256";
380
+ readonly type: "uint256";
381
+ }, {
382
+ readonly name: "minAmount";
383
+ readonly internalType: "uint256";
384
+ readonly type: "uint256";
385
+ }];
386
+ readonly name: "remove_liquidity_one_coin";
387
+ readonly outputs: readonly [{
388
+ readonly name: "useSafePrices";
389
+ readonly internalType: "bool";
390
+ readonly type: "bool";
391
+ }];
392
+ readonly stateMutability: "nonpayable";
393
+ }, {
394
+ readonly type: "function";
395
+ readonly inputs: readonly [];
396
+ readonly name: "serialize";
397
+ readonly outputs: readonly [{
398
+ readonly name: "serializedData";
399
+ readonly internalType: "bytes";
400
+ readonly type: "bytes";
401
+ }];
402
+ readonly stateMutability: "view";
403
+ }, {
404
+ readonly type: "function";
405
+ readonly inputs: readonly [];
406
+ readonly name: "targetContract";
407
+ readonly outputs: readonly [{
408
+ readonly name: "";
409
+ readonly internalType: "address";
410
+ readonly type: "address";
411
+ }];
412
+ readonly stateMutability: "view";
413
+ }, {
414
+ readonly type: "function";
415
+ readonly inputs: readonly [];
416
+ readonly name: "token";
417
+ readonly outputs: readonly [{
418
+ readonly name: "";
419
+ readonly internalType: "address";
420
+ readonly type: "address";
421
+ }];
422
+ readonly stateMutability: "view";
423
+ }, {
424
+ readonly type: "function";
425
+ readonly inputs: readonly [];
426
+ readonly name: "token0";
427
+ readonly outputs: readonly [{
428
+ readonly name: "";
429
+ readonly internalType: "address";
430
+ readonly type: "address";
431
+ }];
432
+ readonly stateMutability: "view";
433
+ }, {
434
+ readonly type: "function";
435
+ readonly inputs: readonly [];
436
+ readonly name: "token1";
437
+ readonly outputs: readonly [{
438
+ readonly name: "";
439
+ readonly internalType: "address";
440
+ readonly type: "address";
441
+ }];
442
+ readonly stateMutability: "view";
443
+ }, {
444
+ readonly type: "function";
445
+ readonly inputs: readonly [];
446
+ readonly name: "token2";
447
+ readonly outputs: readonly [{
448
+ readonly name: "";
449
+ readonly internalType: "address";
450
+ readonly type: "address";
451
+ }];
452
+ readonly stateMutability: "view";
453
+ }, {
454
+ readonly type: "function";
455
+ readonly inputs: readonly [];
456
+ readonly name: "token3";
457
+ readonly outputs: readonly [{
458
+ readonly name: "";
459
+ readonly internalType: "address";
460
+ readonly type: "address";
461
+ }];
462
+ readonly stateMutability: "view";
463
+ }, {
464
+ readonly type: "function";
465
+ readonly inputs: readonly [];
466
+ readonly name: "underlying0";
467
+ readonly outputs: readonly [{
468
+ readonly name: "";
469
+ readonly internalType: "address";
470
+ readonly type: "address";
471
+ }];
472
+ readonly stateMutability: "view";
473
+ }, {
474
+ readonly type: "function";
475
+ readonly inputs: readonly [];
476
+ readonly name: "underlying1";
477
+ readonly outputs: readonly [{
478
+ readonly name: "";
479
+ readonly internalType: "address";
480
+ readonly type: "address";
481
+ }];
482
+ readonly stateMutability: "view";
483
+ }, {
484
+ readonly type: "function";
485
+ readonly inputs: readonly [];
486
+ readonly name: "underlying2";
487
+ readonly outputs: readonly [{
488
+ readonly name: "";
489
+ readonly internalType: "address";
490
+ readonly type: "address";
491
+ }];
492
+ readonly stateMutability: "view";
493
+ }, {
494
+ readonly type: "function";
495
+ readonly inputs: readonly [];
496
+ readonly name: "underlying3";
497
+ readonly outputs: readonly [{
498
+ readonly name: "";
499
+ readonly internalType: "address";
500
+ readonly type: "address";
501
+ }];
502
+ readonly stateMutability: "view";
503
+ }, {
504
+ readonly type: "function";
505
+ readonly inputs: readonly [];
506
+ readonly name: "use256";
507
+ readonly outputs: readonly [{
508
+ readonly name: "";
509
+ readonly internalType: "bool";
510
+ readonly type: "bool";
511
+ }];
512
+ readonly stateMutability: "view";
513
+ }, {
514
+ readonly type: "function";
515
+ readonly inputs: readonly [];
516
+ readonly name: "version";
517
+ readonly outputs: readonly [{
518
+ readonly name: "";
519
+ readonly internalType: "uint256";
520
+ readonly type: "uint256";
521
+ }];
522
+ readonly stateMutability: "view";
523
+ }];
524
+ type abi = typeof abi;
525
+ export declare class Curve3AssetsAdapterContract extends AbstractAdapterContract<abi> {
526
+ readonly token: Address;
527
+ readonly lpToken: Address;
528
+ readonly metapoolBase: Address;
529
+ readonly use256: boolean;
530
+ readonly tokens: [Address, Address, Address];
531
+ readonly underlyings: [Address, Address, Address, Address];
532
+ constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
533
+ }
534
+ export {};