@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,396 @@
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
+ import type { KodiakIslandStatus } from "./types.js";
6
+ declare const abi: readonly [{
7
+ readonly type: "function";
8
+ readonly inputs: readonly [{
9
+ readonly name: "island";
10
+ readonly internalType: "address";
11
+ readonly type: "address";
12
+ }, {
13
+ readonly name: "amount0";
14
+ readonly internalType: "uint256";
15
+ readonly type: "uint256";
16
+ }, {
17
+ readonly name: "amount1";
18
+ readonly internalType: "uint256";
19
+ readonly type: "uint256";
20
+ }, {
21
+ readonly name: "minLPAmount";
22
+ readonly internalType: "uint256";
23
+ readonly type: "uint256";
24
+ }, {
25
+ readonly name: "receiver";
26
+ readonly internalType: "address";
27
+ readonly type: "address";
28
+ }];
29
+ readonly name: "addLiquidityImbalanced";
30
+ readonly outputs: readonly [{
31
+ readonly name: "";
32
+ readonly internalType: "bool";
33
+ readonly type: "bool";
34
+ }];
35
+ readonly stateMutability: "nonpayable";
36
+ }, {
37
+ readonly type: "function";
38
+ readonly inputs: readonly [{
39
+ readonly name: "island";
40
+ readonly internalType: "address";
41
+ readonly type: "address";
42
+ }, {
43
+ readonly name: "amount0";
44
+ readonly internalType: "uint256";
45
+ readonly type: "uint256";
46
+ }, {
47
+ readonly name: "amount1";
48
+ readonly internalType: "uint256";
49
+ readonly type: "uint256";
50
+ }, {
51
+ readonly name: "minLPAmount";
52
+ readonly internalType: "uint256";
53
+ readonly type: "uint256";
54
+ }, {
55
+ readonly name: "receiver";
56
+ readonly internalType: "address";
57
+ readonly type: "address";
58
+ }, {
59
+ readonly name: "ratios";
60
+ readonly internalType: "struct Ratios";
61
+ readonly type: "tuple";
62
+ readonly components: readonly [{
63
+ readonly name: "priceRatio";
64
+ readonly internalType: "uint256";
65
+ readonly type: "uint256";
66
+ }, {
67
+ readonly name: "balance0";
68
+ readonly internalType: "uint256";
69
+ readonly type: "uint256";
70
+ }, {
71
+ readonly name: "balance1";
72
+ readonly internalType: "uint256";
73
+ readonly type: "uint256";
74
+ }, {
75
+ readonly name: "swapAll";
76
+ readonly internalType: "bool";
77
+ readonly type: "bool";
78
+ }, {
79
+ readonly name: "is0to1";
80
+ readonly internalType: "bool";
81
+ readonly type: "bool";
82
+ }];
83
+ }];
84
+ readonly name: "addLiquidityImbalancedAssisted";
85
+ readonly outputs: readonly [{
86
+ readonly name: "";
87
+ readonly internalType: "bool";
88
+ readonly type: "bool";
89
+ }];
90
+ readonly stateMutability: "nonpayable";
91
+ }, {
92
+ readonly type: "function";
93
+ readonly inputs: readonly [{
94
+ readonly name: "island";
95
+ readonly internalType: "address";
96
+ readonly type: "address";
97
+ }, {
98
+ readonly name: "leftoverAmount0";
99
+ readonly internalType: "uint256";
100
+ readonly type: "uint256";
101
+ }, {
102
+ readonly name: "leftoverAmount1";
103
+ readonly internalType: "uint256";
104
+ readonly type: "uint256";
105
+ }, {
106
+ readonly name: "minRatesRAY";
107
+ readonly internalType: "uint256[2]";
108
+ readonly type: "uint256[2]";
109
+ }];
110
+ readonly name: "addLiquidityImbalancedDiff";
111
+ readonly outputs: readonly [{
112
+ readonly name: "";
113
+ readonly internalType: "bool";
114
+ readonly type: "bool";
115
+ }];
116
+ readonly stateMutability: "nonpayable";
117
+ }, {
118
+ readonly type: "function";
119
+ readonly inputs: readonly [{
120
+ readonly name: "island";
121
+ readonly internalType: "address";
122
+ readonly type: "address";
123
+ }, {
124
+ readonly name: "leftoverAmount0";
125
+ readonly internalType: "uint256";
126
+ readonly type: "uint256";
127
+ }, {
128
+ readonly name: "leftoverAmount1";
129
+ readonly internalType: "uint256";
130
+ readonly type: "uint256";
131
+ }, {
132
+ readonly name: "minRatesRAY";
133
+ readonly internalType: "uint256[2]";
134
+ readonly type: "uint256[2]";
135
+ }, {
136
+ readonly name: "ratios";
137
+ readonly internalType: "struct Ratios";
138
+ readonly type: "tuple";
139
+ readonly components: readonly [{
140
+ readonly name: "priceRatio";
141
+ readonly internalType: "uint256";
142
+ readonly type: "uint256";
143
+ }, {
144
+ readonly name: "balance0";
145
+ readonly internalType: "uint256";
146
+ readonly type: "uint256";
147
+ }, {
148
+ readonly name: "balance1";
149
+ readonly internalType: "uint256";
150
+ readonly type: "uint256";
151
+ }, {
152
+ readonly name: "swapAll";
153
+ readonly internalType: "bool";
154
+ readonly type: "bool";
155
+ }, {
156
+ readonly name: "is0to1";
157
+ readonly internalType: "bool";
158
+ readonly type: "bool";
159
+ }];
160
+ }];
161
+ readonly name: "addLiquidityImbalancedDiffAssisted";
162
+ readonly outputs: readonly [{
163
+ readonly name: "";
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: "allowedIslands";
172
+ readonly outputs: readonly [{
173
+ readonly name: "";
174
+ readonly internalType: "struct KodiakIslandStatus[]";
175
+ readonly type: "tuple[]";
176
+ readonly components: readonly [{
177
+ readonly name: "island";
178
+ readonly internalType: "address";
179
+ readonly type: "address";
180
+ }, {
181
+ readonly name: "status";
182
+ readonly internalType: "enum IslandStatus";
183
+ readonly type: "uint8";
184
+ }];
185
+ }];
186
+ readonly stateMutability: "view";
187
+ }, {
188
+ readonly type: "function";
189
+ readonly inputs: readonly [];
190
+ readonly name: "contractType";
191
+ readonly outputs: readonly [{
192
+ readonly name: "";
193
+ readonly internalType: "bytes32";
194
+ readonly type: "bytes32";
195
+ }];
196
+ readonly stateMutability: "view";
197
+ }, {
198
+ readonly type: "function";
199
+ readonly inputs: readonly [];
200
+ readonly name: "creditManager";
201
+ readonly outputs: readonly [{
202
+ readonly name: "";
203
+ readonly internalType: "address";
204
+ readonly type: "address";
205
+ }];
206
+ readonly stateMutability: "view";
207
+ }, {
208
+ readonly type: "function";
209
+ readonly inputs: readonly [{
210
+ readonly name: "island";
211
+ readonly internalType: "address";
212
+ readonly type: "address";
213
+ }, {
214
+ readonly name: "lpAmount";
215
+ readonly internalType: "uint256";
216
+ readonly type: "uint256";
217
+ }, {
218
+ readonly name: "tokenOut";
219
+ readonly internalType: "address";
220
+ readonly type: "address";
221
+ }, {
222
+ readonly name: "minAmountOut";
223
+ readonly internalType: "uint256";
224
+ readonly type: "uint256";
225
+ }, {
226
+ readonly name: "receiver";
227
+ readonly internalType: "address";
228
+ readonly type: "address";
229
+ }];
230
+ readonly name: "removeLiquiditySingle";
231
+ readonly outputs: readonly [{
232
+ readonly name: "";
233
+ readonly internalType: "bool";
234
+ readonly type: "bool";
235
+ }];
236
+ readonly stateMutability: "nonpayable";
237
+ }, {
238
+ readonly type: "function";
239
+ readonly inputs: readonly [{
240
+ readonly name: "island";
241
+ readonly internalType: "address";
242
+ readonly type: "address";
243
+ }, {
244
+ readonly name: "leftoverAmount";
245
+ readonly internalType: "uint256";
246
+ readonly type: "uint256";
247
+ }, {
248
+ readonly name: "tokenOut";
249
+ readonly internalType: "address";
250
+ readonly type: "address";
251
+ }, {
252
+ readonly name: "minRateRAY";
253
+ readonly internalType: "uint256";
254
+ readonly type: "uint256";
255
+ }];
256
+ readonly name: "removeLiquiditySingleDiff";
257
+ readonly outputs: readonly [{
258
+ readonly name: "";
259
+ readonly internalType: "bool";
260
+ readonly type: "bool";
261
+ }];
262
+ readonly stateMutability: "nonpayable";
263
+ }, {
264
+ readonly type: "function";
265
+ readonly inputs: readonly [];
266
+ readonly name: "serialize";
267
+ readonly outputs: readonly [{
268
+ readonly name: "serializedData";
269
+ readonly internalType: "bytes";
270
+ readonly type: "bytes";
271
+ }];
272
+ readonly stateMutability: "view";
273
+ }, {
274
+ readonly type: "function";
275
+ readonly inputs: readonly [{
276
+ readonly name: "islands";
277
+ readonly internalType: "struct KodiakIslandStatus[]";
278
+ readonly type: "tuple[]";
279
+ readonly components: readonly [{
280
+ readonly name: "island";
281
+ readonly internalType: "address";
282
+ readonly type: "address";
283
+ }, {
284
+ readonly name: "status";
285
+ readonly internalType: "enum IslandStatus";
286
+ readonly type: "uint8";
287
+ }];
288
+ }];
289
+ readonly name: "setIslandStatusBatch";
290
+ readonly outputs: readonly [];
291
+ readonly stateMutability: "nonpayable";
292
+ }, {
293
+ readonly type: "function";
294
+ readonly inputs: readonly [{
295
+ readonly name: "island";
296
+ readonly internalType: "address";
297
+ readonly type: "address";
298
+ }, {
299
+ readonly name: "tokenIn";
300
+ readonly internalType: "address";
301
+ readonly type: "address";
302
+ }, {
303
+ readonly name: "amountIn";
304
+ readonly internalType: "uint256";
305
+ readonly type: "uint256";
306
+ }, {
307
+ readonly name: "amountOutMin";
308
+ readonly internalType: "uint256";
309
+ readonly type: "uint256";
310
+ }];
311
+ readonly name: "swap";
312
+ readonly outputs: readonly [{
313
+ readonly name: "";
314
+ readonly internalType: "bool";
315
+ readonly type: "bool";
316
+ }];
317
+ readonly stateMutability: "nonpayable";
318
+ }, {
319
+ readonly type: "function";
320
+ readonly inputs: readonly [{
321
+ readonly name: "island";
322
+ readonly internalType: "address";
323
+ readonly type: "address";
324
+ }, {
325
+ readonly name: "tokenIn";
326
+ readonly internalType: "address";
327
+ readonly type: "address";
328
+ }, {
329
+ readonly name: "leftoverAmount";
330
+ readonly internalType: "uint256";
331
+ readonly type: "uint256";
332
+ }, {
333
+ readonly name: "minRateRAY";
334
+ readonly internalType: "uint256";
335
+ readonly type: "uint256";
336
+ }];
337
+ readonly name: "swapDiff";
338
+ readonly outputs: readonly [{
339
+ readonly name: "";
340
+ readonly internalType: "bool";
341
+ readonly type: "bool";
342
+ }];
343
+ readonly stateMutability: "nonpayable";
344
+ }, {
345
+ readonly type: "function";
346
+ readonly inputs: readonly [];
347
+ readonly name: "targetContract";
348
+ readonly outputs: readonly [{
349
+ readonly name: "";
350
+ readonly internalType: "address";
351
+ readonly type: "address";
352
+ }];
353
+ readonly stateMutability: "view";
354
+ }, {
355
+ readonly type: "function";
356
+ readonly inputs: readonly [];
357
+ readonly name: "version";
358
+ readonly outputs: readonly [{
359
+ readonly name: "";
360
+ readonly internalType: "uint256";
361
+ readonly type: "uint256";
362
+ }];
363
+ readonly stateMutability: "view";
364
+ }, {
365
+ readonly type: "event";
366
+ readonly anonymous: false;
367
+ readonly inputs: readonly [{
368
+ readonly name: "island";
369
+ readonly internalType: "address";
370
+ readonly type: "address";
371
+ readonly indexed: true;
372
+ }, {
373
+ readonly name: "status";
374
+ readonly internalType: "enum IslandStatus";
375
+ readonly type: "uint8";
376
+ readonly indexed: false;
377
+ }];
378
+ readonly name: "SetIslandStatus";
379
+ }, {
380
+ readonly type: "error";
381
+ readonly inputs: readonly [{
382
+ readonly name: "island";
383
+ readonly internalType: "address";
384
+ readonly type: "address";
385
+ }];
386
+ readonly name: "IslandNotAllowedException";
387
+ }];
388
+ type abi = typeof abi;
389
+ export declare class KodiakIslandGatewayAdapterContract extends AbstractAdapterContract<abi> {
390
+ readonly allowedIslands: {
391
+ island: Address;
392
+ status: KodiakIslandStatus;
393
+ }[];
394
+ constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
395
+ }
396
+ export {};
@@ -0,0 +1,121 @@
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: "contractType";
9
+ readonly outputs: readonly [{
10
+ readonly name: "";
11
+ readonly internalType: "bytes32";
12
+ readonly type: "bytes32";
13
+ }];
14
+ readonly stateMutability: "view";
15
+ }, {
16
+ readonly type: "function";
17
+ readonly inputs: readonly [];
18
+ readonly name: "creditManager";
19
+ readonly outputs: readonly [{
20
+ readonly name: "";
21
+ readonly internalType: "address";
22
+ readonly type: "address";
23
+ }];
24
+ readonly stateMutability: "view";
25
+ }, {
26
+ readonly type: "function";
27
+ readonly inputs: readonly [];
28
+ readonly name: "serialize";
29
+ readonly outputs: readonly [{
30
+ readonly name: "serializedData";
31
+ readonly internalType: "bytes";
32
+ readonly type: "bytes";
33
+ }];
34
+ readonly stateMutability: "view";
35
+ }, {
36
+ readonly type: "function";
37
+ readonly inputs: readonly [];
38
+ readonly name: "stETH";
39
+ readonly outputs: readonly [{
40
+ readonly name: "";
41
+ readonly internalType: "address";
42
+ readonly type: "address";
43
+ }];
44
+ readonly stateMutability: "view";
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: "submit";
53
+ readonly outputs: readonly [{
54
+ readonly name: "useSafePrices";
55
+ readonly internalType: "bool";
56
+ readonly type: "bool";
57
+ }];
58
+ readonly stateMutability: "nonpayable";
59
+ }, {
60
+ readonly type: "function";
61
+ readonly inputs: readonly [{
62
+ readonly name: "leftoverAmount";
63
+ readonly internalType: "uint256";
64
+ readonly type: "uint256";
65
+ }];
66
+ readonly name: "submitDiff";
67
+ readonly outputs: readonly [{
68
+ readonly name: "useSafePrices";
69
+ readonly internalType: "bool";
70
+ readonly type: "bool";
71
+ }];
72
+ readonly stateMutability: "nonpayable";
73
+ }, {
74
+ readonly type: "function";
75
+ readonly inputs: readonly [];
76
+ readonly name: "targetContract";
77
+ readonly outputs: readonly [{
78
+ readonly name: "";
79
+ readonly internalType: "address";
80
+ readonly type: "address";
81
+ }];
82
+ readonly stateMutability: "view";
83
+ }, {
84
+ readonly type: "function";
85
+ readonly inputs: readonly [];
86
+ readonly name: "treasury";
87
+ readonly outputs: readonly [{
88
+ readonly name: "";
89
+ readonly internalType: "address";
90
+ readonly type: "address";
91
+ }];
92
+ readonly stateMutability: "view";
93
+ }, {
94
+ readonly type: "function";
95
+ readonly inputs: readonly [];
96
+ readonly name: "version";
97
+ readonly outputs: readonly [{
98
+ readonly name: "";
99
+ readonly internalType: "uint256";
100
+ readonly type: "uint256";
101
+ }];
102
+ readonly stateMutability: "view";
103
+ }, {
104
+ readonly type: "function";
105
+ readonly inputs: readonly [];
106
+ readonly name: "weth";
107
+ readonly outputs: readonly [{
108
+ readonly name: "";
109
+ readonly internalType: "address";
110
+ readonly type: "address";
111
+ }];
112
+ readonly stateMutability: "view";
113
+ }];
114
+ type abi = typeof abi;
115
+ export declare class LidoV1AdapterContract extends AbstractAdapterContract<abi> {
116
+ readonly stETH: Address;
117
+ readonly weth: Address;
118
+ readonly treasury: Address;
119
+ constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
120
+ }
121
+ export {};