@gearbox-protocol/sdk 8.23.5 → 8.24.1

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 (121) hide show
  1. package/dist/cjs/sdk/market/pricefeeds/updates/PythUpdater.js +1 -1
  2. package/dist/cjs/sdk/market/pricefeeds/updates/RedstoneUpdater.js +1 -1
  3. package/dist/esm/sdk/market/pricefeeds/updates/PythUpdater.js +1 -1
  4. package/dist/esm/sdk/market/pricefeeds/updates/RedstoneUpdater.js +1 -1
  5. package/package.json +6 -6
  6. package/dist/cjs/plugins/adapters/AbstractAdapter.js +0 -39
  7. package/dist/cjs/plugins/adapters/AdaptersPlugin.js +0 -156
  8. package/dist/cjs/plugins/adapters/BalancerV2VaultAdapterContract.js +0 -38
  9. package/dist/cjs/plugins/adapters/BalancerV3RouterAdapterContract.js +0 -38
  10. package/dist/cjs/plugins/adapters/CamelotV3AdapterContract.js +0 -38
  11. package/dist/cjs/plugins/adapters/ConvexV1BaseRewardPoolAdapterContract.js +0 -38
  12. package/dist/cjs/plugins/adapters/ConvexV1BoosterAdapterContract.js +0 -38
  13. package/dist/cjs/plugins/adapters/Curve2AssetsAdapterContract.js +0 -38
  14. package/dist/cjs/plugins/adapters/Curve3AssetsAdapterContract.js +0 -38
  15. package/dist/cjs/plugins/adapters/Curve4AssetsAdapterContract.js +0 -38
  16. package/dist/cjs/plugins/adapters/CurveV1AdapterDeposit.js +0 -38
  17. package/dist/cjs/plugins/adapters/CurveV1AdapterStETHContract.js +0 -38
  18. package/dist/cjs/plugins/adapters/CurveV1StableNGAdapterContract.js +0 -38
  19. package/dist/cjs/plugins/adapters/DaiUsdsAdapterContract.js +0 -38
  20. package/dist/cjs/plugins/adapters/ERC4626AdapterContract.js +0 -38
  21. package/dist/cjs/plugins/adapters/EqualizerRouterAdapterContract.js +0 -38
  22. package/dist/cjs/plugins/adapters/FluidDexAdapterContract.js +0 -38
  23. package/dist/cjs/plugins/adapters/InfraredVaultAdapterContract.js +0 -38
  24. package/dist/cjs/plugins/adapters/KodiakIslandGatewayAdapterContract.js +0 -38
  25. package/dist/cjs/plugins/adapters/LidoV1AdapterContract.js +0 -37
  26. package/dist/cjs/plugins/adapters/MellowClaimerAdapterContract.js +0 -38
  27. package/dist/cjs/plugins/adapters/MellowDVVAdapterContract.js +0 -38
  28. package/dist/cjs/plugins/adapters/MellowERC4626VaultAdapterContract.js +0 -38
  29. package/dist/cjs/plugins/adapters/MellowVaultAdapterContract.js +0 -38
  30. package/dist/cjs/plugins/adapters/MellowWrapperAdapterContract.js +0 -38
  31. package/dist/cjs/plugins/adapters/PendleRouterAdapterContract.js +0 -38
  32. package/dist/cjs/plugins/adapters/StakingRewardsAdapterContract.js +0 -38
  33. package/dist/cjs/plugins/adapters/TraderJoeRouterAdapterContract.js +0 -38
  34. package/dist/cjs/plugins/adapters/UniswapV2AdapterContract.js +0 -59
  35. package/dist/cjs/plugins/adapters/UniswapV3AdapterContract.js +0 -154
  36. package/dist/cjs/plugins/adapters/UpshiftVaultAdapterContract.js +0 -38
  37. package/dist/cjs/plugins/adapters/VelodromeV2AdapterContract.js +0 -38
  38. package/dist/cjs/plugins/adapters/WstETHV1AdapterContract.js +0 -38
  39. package/dist/cjs/plugins/adapters/YearnV2AdapterContract.js +0 -38
  40. package/dist/cjs/plugins/adapters/abi/adapters.js +0 -5611
  41. package/dist/cjs/plugins/adapters/abi/index.js +0 -22
  42. package/dist/cjs/plugins/adapters/index.js +0 -92
  43. package/dist/cjs/plugins/adapters/package.json +0 -1
  44. package/dist/cjs/plugins/adapters/types.js +0 -16
  45. package/dist/esm/plugins/adapters/AbstractAdapter.js +0 -15
  46. package/dist/esm/plugins/adapters/AdaptersPlugin.js +0 -132
  47. package/dist/esm/plugins/adapters/BalancerV2VaultAdapterContract.js +0 -14
  48. package/dist/esm/plugins/adapters/BalancerV3RouterAdapterContract.js +0 -14
  49. package/dist/esm/plugins/adapters/CamelotV3AdapterContract.js +0 -14
  50. package/dist/esm/plugins/adapters/ConvexV1BaseRewardPoolAdapterContract.js +0 -14
  51. package/dist/esm/plugins/adapters/ConvexV1BoosterAdapterContract.js +0 -14
  52. package/dist/esm/plugins/adapters/Curve2AssetsAdapterContract.js +0 -14
  53. package/dist/esm/plugins/adapters/Curve3AssetsAdapterContract.js +0 -14
  54. package/dist/esm/plugins/adapters/Curve4AssetsAdapterContract.js +0 -14
  55. package/dist/esm/plugins/adapters/CurveV1AdapterDeposit.js +0 -14
  56. package/dist/esm/plugins/adapters/CurveV1AdapterStETHContract.js +0 -14
  57. package/dist/esm/plugins/adapters/CurveV1StableNGAdapterContract.js +0 -14
  58. package/dist/esm/plugins/adapters/DaiUsdsAdapterContract.js +0 -14
  59. package/dist/esm/plugins/adapters/ERC4626AdapterContract.js +0 -14
  60. package/dist/esm/plugins/adapters/EqualizerRouterAdapterContract.js +0 -14
  61. package/dist/esm/plugins/adapters/FluidDexAdapterContract.js +0 -14
  62. package/dist/esm/plugins/adapters/InfraredVaultAdapterContract.js +0 -14
  63. package/dist/esm/plugins/adapters/KodiakIslandGatewayAdapterContract.js +0 -14
  64. package/dist/esm/plugins/adapters/LidoV1AdapterContract.js +0 -13
  65. package/dist/esm/plugins/adapters/MellowClaimerAdapterContract.js +0 -14
  66. package/dist/esm/plugins/adapters/MellowDVVAdapterContract.js +0 -14
  67. package/dist/esm/plugins/adapters/MellowERC4626VaultAdapterContract.js +0 -14
  68. package/dist/esm/plugins/adapters/MellowVaultAdapterContract.js +0 -14
  69. package/dist/esm/plugins/adapters/MellowWrapperAdapterContract.js +0 -14
  70. package/dist/esm/plugins/adapters/PendleRouterAdapterContract.js +0 -14
  71. package/dist/esm/plugins/adapters/StakingRewardsAdapterContract.js +0 -14
  72. package/dist/esm/plugins/adapters/TraderJoeRouterAdapterContract.js +0 -14
  73. package/dist/esm/plugins/adapters/UniswapV2AdapterContract.js +0 -35
  74. package/dist/esm/plugins/adapters/UniswapV3AdapterContract.js +0 -130
  75. package/dist/esm/plugins/adapters/UpshiftVaultAdapterContract.js +0 -14
  76. package/dist/esm/plugins/adapters/VelodromeV2AdapterContract.js +0 -14
  77. package/dist/esm/plugins/adapters/WstETHV1AdapterContract.js +0 -14
  78. package/dist/esm/plugins/adapters/YearnV2AdapterContract.js +0 -14
  79. package/dist/esm/plugins/adapters/abi/adapters.js +0 -5552
  80. package/dist/esm/plugins/adapters/abi/index.js +0 -1
  81. package/dist/esm/plugins/adapters/index.js +0 -36
  82. package/dist/esm/plugins/adapters/package.json +0 -1
  83. package/dist/esm/plugins/adapters/types.js +0 -0
  84. package/dist/types/plugins/adapters/AbstractAdapter.d.ts +0 -13
  85. package/dist/types/plugins/adapters/AdaptersPlugin.d.ts +0 -11
  86. package/dist/types/plugins/adapters/BalancerV2VaultAdapterContract.d.ts +0 -479
  87. package/dist/types/plugins/adapters/BalancerV3RouterAdapterContract.d.ts +0 -196
  88. package/dist/types/plugins/adapters/CamelotV3AdapterContract.d.ts +0 -435
  89. package/dist/types/plugins/adapters/ConvexV1BaseRewardPoolAdapterContract.d.ts +0 -256
  90. package/dist/types/plugins/adapters/ConvexV1BoosterAdapterContract.d.ts +0 -200
  91. package/dist/types/plugins/adapters/Curve2AssetsAdapterContract.d.ts +0 -526
  92. package/dist/types/plugins/adapters/Curve3AssetsAdapterContract.d.ts +0 -526
  93. package/dist/types/plugins/adapters/Curve4AssetsAdapterContract.d.ts +0 -526
  94. package/dist/types/plugins/adapters/CurveV1AdapterDeposit.d.ts +0 -473
  95. package/dist/types/plugins/adapters/CurveV1AdapterStETHContract.d.ts +0 -526
  96. package/dist/types/plugins/adapters/CurveV1StableNGAdapterContract.d.ts +0 -526
  97. package/dist/types/plugins/adapters/DaiUsdsAdapterContract.d.ts +0 -143
  98. package/dist/types/plugins/adapters/ERC4626AdapterContract.d.ts +0 -176
  99. package/dist/types/plugins/adapters/EqualizerRouterAdapterContract.d.ts +0 -219
  100. package/dist/types/plugins/adapters/FluidDexAdapterContract.d.ts +0 -127
  101. package/dist/types/plugins/adapters/InfraredVaultAdapterContract.d.ts +0 -195
  102. package/dist/types/plugins/adapters/KodiakIslandGatewayAdapterContract.d.ts +0 -390
  103. package/dist/types/plugins/adapters/LidoV1AdapterContract.d.ts +0 -8
  104. package/dist/types/plugins/adapters/MellowClaimerAdapterContract.d.ts +0 -255
  105. package/dist/types/plugins/adapters/MellowDVVAdapterContract.d.ts +0 -229
  106. package/dist/types/plugins/adapters/MellowERC4626VaultAdapterContract.d.ts +0 -176
  107. package/dist/types/plugins/adapters/MellowVaultAdapterContract.d.ts +0 -200
  108. package/dist/types/plugins/adapters/MellowWrapperAdapterContract.d.ts +0 -159
  109. package/dist/types/plugins/adapters/PendleRouterAdapterContract.d.ts +0 -815
  110. package/dist/types/plugins/adapters/StakingRewardsAdapterContract.d.ts +0 -173
  111. package/dist/types/plugins/adapters/TraderJoeRouterAdapterContract.d.ts +0 -341
  112. package/dist/types/plugins/adapters/UniswapV2AdapterContract.d.ts +0 -211
  113. package/dist/types/plugins/adapters/UniswapV3AdapterContract.d.ts +0 -378
  114. package/dist/types/plugins/adapters/UpshiftVaultAdapterContract.d.ts +0 -265
  115. package/dist/types/plugins/adapters/VelodromeV2AdapterContract.d.ts +0 -239
  116. package/dist/types/plugins/adapters/WstETHV1AdapterContract.d.ts +0 -124
  117. package/dist/types/plugins/adapters/YearnV2AdapterContract.d.ts +0 -182
  118. package/dist/types/plugins/adapters/abi/adapters.d.ts +0 -8946
  119. package/dist/types/plugins/adapters/abi/index.d.ts +0 -1
  120. package/dist/types/plugins/adapters/index.d.ts +0 -36
  121. package/dist/types/plugins/adapters/types.d.ts +0 -2
@@ -1 +0,0 @@
1
- export * from "./adapters.js";
@@ -1,36 +0,0 @@
1
- export * from "./AbstractAdapter.js";
2
- export * from "./AdaptersPlugin.js";
3
- export * from "./abi/index.js";
4
- export * from "./BalancerV2VaultAdapterContract.js";
5
- export * from "./BalancerV3RouterAdapterContract.js";
6
- export * from "./CamelotV3AdapterContract.js";
7
- export * from "./ConvexV1BaseRewardPoolAdapterContract.js";
8
- export * from "./ConvexV1BoosterAdapterContract.js";
9
- export * from "./Curve2AssetsAdapterContract.js";
10
- export * from "./Curve3AssetsAdapterContract.js";
11
- export * from "./Curve4AssetsAdapterContract.js";
12
- export * from "./CurveV1AdapterDeposit.js";
13
- export * from "./CurveV1AdapterStETHContract.js";
14
- export * from "./CurveV1StableNGAdapterContract.js";
15
- export * from "./DaiUsdsAdapterContract.js";
16
- export * from "./EqualizerRouterAdapterContract.js";
17
- export * from "./ERC4626AdapterContract.js";
18
- export * from "./FluidDexAdapterContract.js";
19
- export * from "./InfraredVaultAdapterContract.js";
20
- export * from "./KodiakIslandGatewayAdapterContract.js";
21
- export * from "./LidoV1AdapterContract.js";
22
- export * from "./MellowClaimerAdapterContract.js";
23
- export * from "./MellowDVVAdapterContract.js";
24
- export * from "./MellowERC4626VaultAdapterContract.js";
25
- export * from "./MellowVaultAdapterContract.js";
26
- export * from "./MellowWrapperAdapterContract.js";
27
- export * from "./PendleRouterAdapterContract.js";
28
- export * from "./StakingRewardsAdapterContract.js";
29
- export * from "./TraderJoeRouterAdapterContract.js";
30
- export * from "./types.js";
31
- export * from "./UniswapV2AdapterContract.js";
32
- export * from "./UniswapV3AdapterContract.js";
33
- export * from "./UpshiftVaultAdapterContract.js";
34
- export * from "./VelodromeV2AdapterContract.js";
35
- export * from "./WstETHV1AdapterContract.js";
36
- export * from "./YearnV2AdapterContract.js";
@@ -1 +0,0 @@
1
- {"type": "module","sideEffects":false}
File without changes
@@ -1,13 +0,0 @@
1
- import type { Abi, Address } from "viem";
2
- import type { AdapterData, GearboxSDK } from "../../sdk/index.js";
3
- import { BaseContract } from "../../sdk/index.js";
4
- import type { AdapterContractType } from "./types.js";
5
- export interface AbstractAdapterContractOptions<abi extends Abi | readonly unknown[]> extends AdapterData {
6
- abi: abi;
7
- name?: string;
8
- }
9
- export declare class AbstractAdapterContract<const abi extends Abi | readonly unknown[]> extends BaseContract<abi> {
10
- readonly targetContract: Address;
11
- constructor(sdk: GearboxSDK, args: AbstractAdapterContractOptions<abi>);
12
- get adapterType(): AdapterContractType;
13
- }
@@ -1,11 +0,0 @@
1
- import type { BaseState, IBaseContract, IGearboxSDKPlugin } from "../../sdk/index.js";
2
- import { BasePlugin } from "../../sdk/index.js";
3
- export declare class AdaptersPlugin extends BasePlugin<{}> implements IGearboxSDKPlugin<{}> {
4
- readonly name = "Adapters";
5
- readonly version = 1;
6
- readonly loaded = true;
7
- createContract(data: BaseState): IBaseContract | undefined;
8
- load(_force?: boolean): Promise<{}>;
9
- stateHuman(_?: boolean): {};
10
- get state(): {};
11
- }
@@ -1,479 +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: "kind";
8
- readonly internalType: "enum SwapKind";
9
- readonly type: "uint8";
10
- }, {
11
- readonly name: "swaps";
12
- readonly internalType: "struct BatchSwapStep[]";
13
- readonly type: "tuple[]";
14
- readonly components: readonly [{
15
- readonly name: "poolId";
16
- readonly internalType: "bytes32";
17
- readonly type: "bytes32";
18
- }, {
19
- readonly name: "assetInIndex";
20
- readonly internalType: "uint256";
21
- readonly type: "uint256";
22
- }, {
23
- readonly name: "assetOutIndex";
24
- readonly internalType: "uint256";
25
- readonly type: "uint256";
26
- }, {
27
- readonly name: "amount";
28
- readonly internalType: "uint256";
29
- readonly type: "uint256";
30
- }, {
31
- readonly name: "userData";
32
- readonly internalType: "bytes";
33
- readonly type: "bytes";
34
- }];
35
- }, {
36
- readonly name: "assets";
37
- readonly internalType: "contract IAsset[]";
38
- readonly type: "address[]";
39
- }, {
40
- readonly name: "";
41
- readonly internalType: "struct FundManagement";
42
- readonly type: "tuple";
43
- readonly components: readonly [{
44
- readonly name: "sender";
45
- readonly internalType: "address";
46
- readonly type: "address";
47
- }, {
48
- readonly name: "fromInternalBalance";
49
- readonly internalType: "bool";
50
- readonly type: "bool";
51
- }, {
52
- readonly name: "recipient";
53
- readonly internalType: "address payable";
54
- readonly type: "address";
55
- }, {
56
- readonly name: "toInternalBalance";
57
- readonly internalType: "bool";
58
- readonly type: "bool";
59
- }];
60
- }, {
61
- readonly name: "limits";
62
- readonly internalType: "int256[]";
63
- readonly type: "int256[]";
64
- }, {
65
- readonly name: "deadline";
66
- readonly internalType: "uint256";
67
- readonly type: "uint256";
68
- }];
69
- readonly name: "batchSwap";
70
- readonly outputs: readonly [{
71
- readonly name: "useSafePrices";
72
- readonly internalType: "bool";
73
- readonly type: "bool";
74
- }];
75
- readonly stateMutability: "nonpayable";
76
- }, {
77
- readonly type: "function";
78
- readonly inputs: readonly [];
79
- readonly name: "contractType";
80
- readonly outputs: readonly [{
81
- readonly name: "";
82
- readonly internalType: "bytes32";
83
- readonly type: "bytes32";
84
- }];
85
- readonly stateMutability: "view";
86
- }, {
87
- readonly type: "function";
88
- readonly inputs: readonly [];
89
- readonly name: "creditManager";
90
- readonly outputs: readonly [{
91
- readonly name: "";
92
- readonly internalType: "address";
93
- readonly type: "address";
94
- }];
95
- readonly stateMutability: "view";
96
- }, {
97
- readonly type: "function";
98
- readonly inputs: readonly [{
99
- readonly name: "poolId";
100
- readonly internalType: "bytes32";
101
- readonly type: "bytes32";
102
- }, {
103
- readonly name: "";
104
- readonly internalType: "address";
105
- readonly type: "address";
106
- }, {
107
- readonly name: "";
108
- readonly internalType: "address payable";
109
- readonly type: "address";
110
- }, {
111
- readonly name: "request";
112
- readonly internalType: "struct ExitPoolRequest";
113
- readonly type: "tuple";
114
- readonly components: readonly [{
115
- readonly name: "assets";
116
- readonly internalType: "contract IAsset[]";
117
- readonly type: "address[]";
118
- }, {
119
- readonly name: "minAmountsOut";
120
- readonly internalType: "uint256[]";
121
- readonly type: "uint256[]";
122
- }, {
123
- readonly name: "userData";
124
- readonly internalType: "bytes";
125
- readonly type: "bytes";
126
- }, {
127
- readonly name: "toInternalBalance";
128
- readonly internalType: "bool";
129
- readonly type: "bool";
130
- }];
131
- }];
132
- readonly name: "exitPool";
133
- readonly outputs: readonly [{
134
- readonly name: "useSafePrices";
135
- readonly internalType: "bool";
136
- readonly type: "bool";
137
- }];
138
- readonly stateMutability: "nonpayable";
139
- }, {
140
- readonly type: "function";
141
- readonly inputs: readonly [{
142
- readonly name: "poolId";
143
- readonly internalType: "bytes32";
144
- readonly type: "bytes32";
145
- }, {
146
- readonly name: "assetOut";
147
- readonly internalType: "contract IAsset";
148
- readonly type: "address";
149
- }, {
150
- readonly name: "amountIn";
151
- readonly internalType: "uint256";
152
- readonly type: "uint256";
153
- }, {
154
- readonly name: "minAmountOut";
155
- readonly internalType: "uint256";
156
- readonly type: "uint256";
157
- }];
158
- readonly name: "exitPoolSingleAsset";
159
- readonly outputs: readonly [{
160
- readonly name: "useSafePrices";
161
- readonly internalType: "bool";
162
- readonly type: "bool";
163
- }];
164
- readonly stateMutability: "nonpayable";
165
- }, {
166
- readonly type: "function";
167
- readonly inputs: readonly [{
168
- readonly name: "poolId";
169
- readonly internalType: "bytes32";
170
- readonly type: "bytes32";
171
- }, {
172
- readonly name: "assetOut";
173
- readonly internalType: "contract IAsset";
174
- readonly type: "address";
175
- }, {
176
- readonly name: "leftoverAmount";
177
- readonly internalType: "uint256";
178
- readonly type: "uint256";
179
- }, {
180
- readonly name: "minRateRAY";
181
- readonly internalType: "uint256";
182
- readonly type: "uint256";
183
- }];
184
- readonly name: "exitPoolSingleAssetDiff";
185
- readonly outputs: readonly [{
186
- readonly name: "useSafePrices";
187
- readonly internalType: "bool";
188
- readonly type: "bool";
189
- }];
190
- readonly stateMutability: "nonpayable";
191
- }, {
192
- readonly type: "function";
193
- readonly inputs: readonly [{
194
- readonly name: "poolId";
195
- readonly internalType: "bytes32";
196
- readonly type: "bytes32";
197
- }, {
198
- readonly name: "";
199
- readonly internalType: "address";
200
- readonly type: "address";
201
- }, {
202
- readonly name: "";
203
- readonly internalType: "address";
204
- readonly type: "address";
205
- }, {
206
- readonly name: "request";
207
- readonly internalType: "struct JoinPoolRequest";
208
- readonly type: "tuple";
209
- readonly components: readonly [{
210
- readonly name: "assets";
211
- readonly internalType: "contract IAsset[]";
212
- readonly type: "address[]";
213
- }, {
214
- readonly name: "maxAmountsIn";
215
- readonly internalType: "uint256[]";
216
- readonly type: "uint256[]";
217
- }, {
218
- readonly name: "userData";
219
- readonly internalType: "bytes";
220
- readonly type: "bytes";
221
- }, {
222
- readonly name: "fromInternalBalance";
223
- readonly internalType: "bool";
224
- readonly type: "bool";
225
- }];
226
- }];
227
- readonly name: "joinPool";
228
- readonly outputs: readonly [{
229
- readonly name: "useSafePrices";
230
- readonly internalType: "bool";
231
- readonly type: "bool";
232
- }];
233
- readonly stateMutability: "nonpayable";
234
- }, {
235
- readonly type: "function";
236
- readonly inputs: readonly [{
237
- readonly name: "poolId";
238
- readonly internalType: "bytes32";
239
- readonly type: "bytes32";
240
- }, {
241
- readonly name: "assetIn";
242
- readonly internalType: "contract IAsset";
243
- readonly type: "address";
244
- }, {
245
- readonly name: "amountIn";
246
- readonly internalType: "uint256";
247
- readonly type: "uint256";
248
- }, {
249
- readonly name: "minAmountOut";
250
- readonly internalType: "uint256";
251
- readonly type: "uint256";
252
- }];
253
- readonly name: "joinPoolSingleAsset";
254
- readonly outputs: readonly [{
255
- readonly name: "useSafePrices";
256
- readonly internalType: "bool";
257
- readonly type: "bool";
258
- }];
259
- readonly stateMutability: "nonpayable";
260
- }, {
261
- readonly type: "function";
262
- readonly inputs: readonly [{
263
- readonly name: "poolId";
264
- readonly internalType: "bytes32";
265
- readonly type: "bytes32";
266
- }, {
267
- readonly name: "assetIn";
268
- readonly internalType: "contract IAsset";
269
- readonly type: "address";
270
- }, {
271
- readonly name: "leftoverAmount";
272
- readonly internalType: "uint256";
273
- readonly type: "uint256";
274
- }, {
275
- readonly name: "minRateRAY";
276
- readonly internalType: "uint256";
277
- readonly type: "uint256";
278
- }];
279
- readonly name: "joinPoolSingleAssetDiff";
280
- readonly outputs: readonly [{
281
- readonly name: "useSafePrices";
282
- readonly internalType: "bool";
283
- readonly type: "bool";
284
- }];
285
- readonly stateMutability: "nonpayable";
286
- }, {
287
- readonly type: "function";
288
- readonly inputs: readonly [{
289
- readonly name: "poolId";
290
- readonly internalType: "bytes32";
291
- readonly type: "bytes32";
292
- }];
293
- readonly name: "poolStatus";
294
- readonly outputs: readonly [{
295
- readonly name: "";
296
- readonly internalType: "enum PoolStatus";
297
- readonly type: "uint8";
298
- }];
299
- readonly stateMutability: "view";
300
- }, {
301
- readonly type: "function";
302
- readonly inputs: readonly [];
303
- readonly name: "serialize";
304
- readonly outputs: readonly [{
305
- readonly name: "serializedData";
306
- readonly internalType: "bytes";
307
- readonly type: "bytes";
308
- }];
309
- readonly stateMutability: "view";
310
- }, {
311
- readonly type: "function";
312
- readonly inputs: readonly [{
313
- readonly name: "poolId";
314
- readonly internalType: "bytes32";
315
- readonly type: "bytes32";
316
- }, {
317
- readonly name: "newStatus";
318
- readonly internalType: "enum PoolStatus";
319
- readonly type: "uint8";
320
- }];
321
- readonly name: "setPoolStatus";
322
- readonly outputs: readonly [];
323
- readonly stateMutability: "nonpayable";
324
- }, {
325
- readonly type: "function";
326
- readonly inputs: readonly [{
327
- readonly name: "singleSwap";
328
- readonly internalType: "struct SingleSwap";
329
- readonly type: "tuple";
330
- readonly components: readonly [{
331
- readonly name: "poolId";
332
- readonly internalType: "bytes32";
333
- readonly type: "bytes32";
334
- }, {
335
- readonly name: "kind";
336
- readonly internalType: "enum SwapKind";
337
- readonly type: "uint8";
338
- }, {
339
- readonly name: "assetIn";
340
- readonly internalType: "contract IAsset";
341
- readonly type: "address";
342
- }, {
343
- readonly name: "assetOut";
344
- readonly internalType: "contract IAsset";
345
- readonly type: "address";
346
- }, {
347
- readonly name: "amount";
348
- readonly internalType: "uint256";
349
- readonly type: "uint256";
350
- }, {
351
- readonly name: "userData";
352
- readonly internalType: "bytes";
353
- readonly type: "bytes";
354
- }];
355
- }, {
356
- readonly name: "";
357
- readonly internalType: "struct FundManagement";
358
- readonly type: "tuple";
359
- readonly components: readonly [{
360
- readonly name: "sender";
361
- readonly internalType: "address";
362
- readonly type: "address";
363
- }, {
364
- readonly name: "fromInternalBalance";
365
- readonly internalType: "bool";
366
- readonly type: "bool";
367
- }, {
368
- readonly name: "recipient";
369
- readonly internalType: "address payable";
370
- readonly type: "address";
371
- }, {
372
- readonly name: "toInternalBalance";
373
- readonly internalType: "bool";
374
- readonly type: "bool";
375
- }];
376
- }, {
377
- readonly name: "limit";
378
- readonly internalType: "uint256";
379
- readonly type: "uint256";
380
- }, {
381
- readonly name: "deadline";
382
- readonly internalType: "uint256";
383
- readonly type: "uint256";
384
- }];
385
- readonly name: "swap";
386
- readonly outputs: readonly [{
387
- readonly name: "useSafePrices";
388
- readonly internalType: "bool";
389
- readonly type: "bool";
390
- }];
391
- readonly stateMutability: "nonpayable";
392
- }, {
393
- readonly type: "function";
394
- readonly inputs: readonly [{
395
- readonly name: "singleSwapDiff";
396
- readonly internalType: "struct SingleSwapDiff";
397
- readonly type: "tuple";
398
- readonly components: readonly [{
399
- readonly name: "poolId";
400
- readonly internalType: "bytes32";
401
- readonly type: "bytes32";
402
- }, {
403
- readonly name: "leftoverAmount";
404
- readonly internalType: "uint256";
405
- readonly type: "uint256";
406
- }, {
407
- readonly name: "assetIn";
408
- readonly internalType: "contract IAsset";
409
- readonly type: "address";
410
- }, {
411
- readonly name: "assetOut";
412
- readonly internalType: "contract IAsset";
413
- readonly type: "address";
414
- }, {
415
- readonly name: "userData";
416
- readonly internalType: "bytes";
417
- readonly type: "bytes";
418
- }];
419
- }, {
420
- readonly name: "limitRateRAY";
421
- readonly internalType: "uint256";
422
- readonly type: "uint256";
423
- }, {
424
- readonly name: "deadline";
425
- readonly internalType: "uint256";
426
- readonly type: "uint256";
427
- }];
428
- readonly name: "swapDiff";
429
- readonly outputs: readonly [{
430
- readonly name: "useSafePrices";
431
- readonly internalType: "bool";
432
- readonly type: "bool";
433
- }];
434
- readonly stateMutability: "nonpayable";
435
- }, {
436
- readonly type: "function";
437
- readonly inputs: readonly [];
438
- readonly name: "targetContract";
439
- readonly outputs: readonly [{
440
- readonly name: "";
441
- readonly internalType: "address";
442
- readonly type: "address";
443
- }];
444
- readonly stateMutability: "view";
445
- }, {
446
- readonly type: "function";
447
- readonly inputs: readonly [];
448
- readonly name: "version";
449
- readonly outputs: readonly [{
450
- readonly name: "";
451
- readonly internalType: "uint256";
452
- readonly type: "uint256";
453
- }];
454
- readonly stateMutability: "view";
455
- }, {
456
- readonly type: "event";
457
- readonly anonymous: false;
458
- readonly inputs: readonly [{
459
- readonly name: "poolId";
460
- readonly internalType: "bytes32";
461
- readonly type: "bytes32";
462
- readonly indexed: true;
463
- }, {
464
- readonly name: "newStatus";
465
- readonly internalType: "enum PoolStatus";
466
- readonly type: "uint8";
467
- readonly indexed: false;
468
- }];
469
- readonly name: "SetPoolStatus";
470
- }, {
471
- readonly type: "error";
472
- readonly inputs: readonly [];
473
- readonly name: "PoolNotSupportedException";
474
- }];
475
- type abi = typeof abi;
476
- export declare class BalancerV2VaultAdapterContract extends AbstractAdapterContract<abi> {
477
- constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
478
- }
479
- export {};