@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,269 @@
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: "asset";
9
+ readonly outputs: readonly [{
10
+ readonly name: "";
11
+ readonly internalType: "address";
12
+ readonly type: "address";
13
+ }];
14
+ readonly stateMutability: "view";
15
+ }, {
16
+ readonly type: "function";
17
+ readonly inputs: readonly [{
18
+ readonly name: "amount";
19
+ readonly internalType: "uint256";
20
+ readonly type: "uint256";
21
+ }];
22
+ readonly name: "claim";
23
+ readonly outputs: readonly [{
24
+ readonly name: "";
25
+ readonly internalType: "bool";
26
+ readonly type: "bool";
27
+ }];
28
+ readonly stateMutability: "nonpayable";
29
+ }, {
30
+ readonly type: "function";
31
+ readonly inputs: readonly [];
32
+ readonly name: "contractType";
33
+ readonly outputs: readonly [{
34
+ readonly name: "";
35
+ readonly internalType: "bytes32";
36
+ readonly type: "bytes32";
37
+ }];
38
+ readonly stateMutability: "view";
39
+ }, {
40
+ readonly type: "function";
41
+ readonly inputs: readonly [];
42
+ readonly name: "creditManager";
43
+ readonly outputs: readonly [{
44
+ readonly name: "";
45
+ readonly internalType: "address";
46
+ readonly type: "address";
47
+ }];
48
+ readonly stateMutability: "view";
49
+ }, {
50
+ readonly type: "function";
51
+ readonly inputs: readonly [{
52
+ readonly name: "assets";
53
+ readonly internalType: "uint256";
54
+ readonly type: "uint256";
55
+ }, {
56
+ readonly name: "";
57
+ readonly internalType: "address";
58
+ readonly type: "address";
59
+ }];
60
+ readonly name: "deposit";
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: "leftoverAmount";
71
+ readonly internalType: "uint256";
72
+ readonly type: "uint256";
73
+ }];
74
+ readonly name: "depositDiff";
75
+ readonly outputs: readonly [{
76
+ readonly name: "useSafePrices";
77
+ readonly internalType: "bool";
78
+ readonly type: "bool";
79
+ }];
80
+ readonly stateMutability: "nonpayable";
81
+ }, {
82
+ readonly type: "function";
83
+ readonly inputs: readonly [{
84
+ readonly name: "token";
85
+ readonly internalType: "address";
86
+ readonly type: "address";
87
+ }, {
88
+ readonly name: "amount";
89
+ readonly internalType: "uint256";
90
+ readonly type: "uint256";
91
+ }];
92
+ readonly name: "depositPhantomToken";
93
+ readonly outputs: readonly [{
94
+ readonly name: "";
95
+ readonly internalType: "bool";
96
+ readonly type: "bool";
97
+ }];
98
+ readonly stateMutability: "nonpayable";
99
+ }, {
100
+ readonly type: "function";
101
+ readonly inputs: readonly [{
102
+ readonly name: "shares";
103
+ readonly internalType: "uint256";
104
+ readonly type: "uint256";
105
+ }, {
106
+ readonly name: "";
107
+ readonly internalType: "address";
108
+ readonly type: "address";
109
+ }];
110
+ readonly name: "mint";
111
+ readonly outputs: readonly [{
112
+ readonly name: "useSafePrices";
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: "shares";
121
+ readonly internalType: "uint256";
122
+ readonly type: "uint256";
123
+ }, {
124
+ readonly name: "";
125
+ readonly internalType: "address";
126
+ readonly type: "address";
127
+ }, {
128
+ readonly name: "";
129
+ readonly internalType: "address";
130
+ readonly type: "address";
131
+ }];
132
+ readonly name: "redeem";
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: "leftoverAmount";
143
+ readonly internalType: "uint256";
144
+ readonly type: "uint256";
145
+ }];
146
+ readonly name: "redeemDiff";
147
+ readonly outputs: readonly [{
148
+ readonly name: "useSafePrices";
149
+ readonly internalType: "bool";
150
+ readonly type: "bool";
151
+ }];
152
+ readonly stateMutability: "nonpayable";
153
+ }, {
154
+ readonly type: "function";
155
+ readonly inputs: readonly [{
156
+ readonly name: "shares";
157
+ readonly internalType: "uint256";
158
+ readonly type: "uint256";
159
+ }];
160
+ readonly name: "requestRedeem";
161
+ readonly outputs: readonly [{
162
+ readonly name: "";
163
+ readonly internalType: "bool";
164
+ readonly type: "bool";
165
+ }];
166
+ readonly stateMutability: "nonpayable";
167
+ }, {
168
+ readonly type: "function";
169
+ readonly inputs: readonly [];
170
+ readonly name: "serialize";
171
+ readonly outputs: readonly [{
172
+ readonly name: "serializedData";
173
+ readonly internalType: "bytes";
174
+ readonly type: "bytes";
175
+ }];
176
+ readonly stateMutability: "view";
177
+ }, {
178
+ readonly type: "function";
179
+ readonly inputs: readonly [];
180
+ readonly name: "stakedPhantomToken";
181
+ readonly outputs: readonly [{
182
+ readonly name: "";
183
+ readonly internalType: "address";
184
+ readonly type: "address";
185
+ }];
186
+ readonly stateMutability: "view";
187
+ }, {
188
+ readonly type: "function";
189
+ readonly inputs: readonly [];
190
+ readonly name: "targetContract";
191
+ readonly outputs: readonly [{
192
+ readonly name: "";
193
+ readonly internalType: "address";
194
+ readonly type: "address";
195
+ }];
196
+ readonly stateMutability: "view";
197
+ }, {
198
+ readonly type: "function";
199
+ readonly inputs: readonly [];
200
+ readonly name: "vault";
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: "version";
211
+ readonly outputs: readonly [{
212
+ readonly name: "";
213
+ readonly internalType: "uint256";
214
+ readonly type: "uint256";
215
+ }];
216
+ readonly stateMutability: "view";
217
+ }, {
218
+ readonly type: "function";
219
+ readonly inputs: readonly [{
220
+ readonly name: "assets";
221
+ readonly internalType: "uint256";
222
+ readonly type: "uint256";
223
+ }, {
224
+ readonly name: "";
225
+ readonly internalType: "address";
226
+ readonly type: "address";
227
+ }, {
228
+ readonly name: "";
229
+ readonly internalType: "address";
230
+ readonly type: "address";
231
+ }];
232
+ readonly name: "withdraw";
233
+ readonly outputs: readonly [{
234
+ readonly name: "useSafePrices";
235
+ readonly internalType: "bool";
236
+ readonly type: "bool";
237
+ }];
238
+ readonly stateMutability: "nonpayable";
239
+ }, {
240
+ readonly type: "function";
241
+ readonly inputs: readonly [{
242
+ readonly name: "token";
243
+ readonly internalType: "address";
244
+ readonly type: "address";
245
+ }, {
246
+ readonly name: "amount";
247
+ readonly internalType: "uint256";
248
+ readonly type: "uint256";
249
+ }];
250
+ readonly name: "withdrawPhantomToken";
251
+ readonly outputs: readonly [{
252
+ readonly name: "useSafePrices";
253
+ readonly internalType: "bool";
254
+ readonly type: "bool";
255
+ }];
256
+ readonly stateMutability: "nonpayable";
257
+ }, {
258
+ readonly type: "error";
259
+ readonly inputs: readonly [];
260
+ readonly name: "IncorrectStakedPhantomTokenException";
261
+ }];
262
+ type abi = typeof abi;
263
+ export declare class UpshiftVaultAdapterContract extends AbstractAdapterContract<abi> {
264
+ readonly vault: Address;
265
+ readonly asset: Address;
266
+ readonly stakedPhantomToken: Address;
267
+ constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
268
+ }
269
+ export {};
@@ -0,0 +1,247 @@
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: "token0";
29
+ readonly internalType: "address";
30
+ readonly type: "address";
31
+ }, {
32
+ readonly name: "token1";
33
+ readonly internalType: "address";
34
+ readonly type: "address";
35
+ }, {
36
+ readonly name: "stable";
37
+ readonly internalType: "bool";
38
+ readonly type: "bool";
39
+ }, {
40
+ readonly name: "factory";
41
+ readonly internalType: "address";
42
+ readonly type: "address";
43
+ }];
44
+ readonly name: "isPoolAllowed";
45
+ readonly outputs: readonly [{
46
+ readonly name: "";
47
+ readonly internalType: "bool";
48
+ readonly type: "bool";
49
+ }];
50
+ readonly stateMutability: "view";
51
+ }, {
52
+ readonly type: "function";
53
+ readonly inputs: readonly [];
54
+ readonly name: "serialize";
55
+ readonly outputs: readonly [{
56
+ readonly name: "serializedData";
57
+ readonly internalType: "bytes";
58
+ readonly type: "bytes";
59
+ }];
60
+ readonly stateMutability: "view";
61
+ }, {
62
+ readonly type: "function";
63
+ readonly inputs: readonly [{
64
+ readonly name: "pools";
65
+ readonly internalType: "struct VelodromeV2PoolStatus[]";
66
+ readonly type: "tuple[]";
67
+ readonly components: readonly [{
68
+ readonly name: "token0";
69
+ readonly internalType: "address";
70
+ readonly type: "address";
71
+ }, {
72
+ readonly name: "token1";
73
+ readonly internalType: "address";
74
+ readonly type: "address";
75
+ }, {
76
+ readonly name: "stable";
77
+ readonly internalType: "bool";
78
+ readonly type: "bool";
79
+ }, {
80
+ readonly name: "factory";
81
+ readonly internalType: "address";
82
+ readonly type: "address";
83
+ }, {
84
+ readonly name: "allowed";
85
+ readonly internalType: "bool";
86
+ readonly type: "bool";
87
+ }];
88
+ }];
89
+ readonly name: "setPoolStatusBatch";
90
+ readonly outputs: readonly [];
91
+ readonly stateMutability: "nonpayable";
92
+ }, {
93
+ readonly type: "function";
94
+ readonly inputs: readonly [{
95
+ readonly name: "leftoverAmount";
96
+ readonly internalType: "uint256";
97
+ readonly type: "uint256";
98
+ }, {
99
+ readonly name: "rateMinRAY";
100
+ readonly internalType: "uint256";
101
+ readonly type: "uint256";
102
+ }, {
103
+ readonly name: "routes";
104
+ readonly internalType: "struct Route[]";
105
+ readonly type: "tuple[]";
106
+ readonly components: readonly [{
107
+ readonly name: "from";
108
+ readonly internalType: "address";
109
+ readonly type: "address";
110
+ }, {
111
+ readonly name: "to";
112
+ readonly internalType: "address";
113
+ readonly type: "address";
114
+ }, {
115
+ readonly name: "stable";
116
+ readonly internalType: "bool";
117
+ readonly type: "bool";
118
+ }, {
119
+ readonly name: "factory";
120
+ readonly internalType: "address";
121
+ readonly type: "address";
122
+ }];
123
+ }, {
124
+ readonly name: "deadline";
125
+ readonly internalType: "uint256";
126
+ readonly type: "uint256";
127
+ }];
128
+ readonly name: "swapDiffTokensForTokens";
129
+ readonly outputs: readonly [{
130
+ readonly name: "useSafePrices";
131
+ readonly internalType: "bool";
132
+ readonly type: "bool";
133
+ }];
134
+ readonly stateMutability: "nonpayable";
135
+ }, {
136
+ readonly type: "function";
137
+ readonly inputs: readonly [{
138
+ readonly name: "amountIn";
139
+ readonly internalType: "uint256";
140
+ readonly type: "uint256";
141
+ }, {
142
+ readonly name: "amountOutMin";
143
+ readonly internalType: "uint256";
144
+ readonly type: "uint256";
145
+ }, {
146
+ readonly name: "routes";
147
+ readonly internalType: "struct Route[]";
148
+ readonly type: "tuple[]";
149
+ readonly components: readonly [{
150
+ readonly name: "from";
151
+ readonly internalType: "address";
152
+ readonly type: "address";
153
+ }, {
154
+ readonly name: "to";
155
+ readonly internalType: "address";
156
+ readonly type: "address";
157
+ }, {
158
+ readonly name: "stable";
159
+ readonly internalType: "bool";
160
+ readonly type: "bool";
161
+ }, {
162
+ readonly name: "factory";
163
+ readonly internalType: "address";
164
+ readonly type: "address";
165
+ }];
166
+ }, {
167
+ readonly name: "";
168
+ readonly internalType: "address";
169
+ readonly type: "address";
170
+ }, {
171
+ readonly name: "deadline";
172
+ readonly internalType: "uint256";
173
+ readonly type: "uint256";
174
+ }];
175
+ readonly name: "swapExactTokensForTokens";
176
+ readonly outputs: readonly [{
177
+ readonly name: "useSafePrices";
178
+ readonly internalType: "bool";
179
+ readonly type: "bool";
180
+ }];
181
+ readonly stateMutability: "nonpayable";
182
+ }, {
183
+ readonly type: "function";
184
+ readonly inputs: readonly [];
185
+ readonly name: "targetContract";
186
+ readonly outputs: readonly [{
187
+ readonly name: "";
188
+ readonly internalType: "address";
189
+ readonly type: "address";
190
+ }];
191
+ readonly stateMutability: "view";
192
+ }, {
193
+ readonly type: "function";
194
+ readonly inputs: readonly [];
195
+ readonly name: "version";
196
+ readonly outputs: readonly [{
197
+ readonly name: "";
198
+ readonly internalType: "uint256";
199
+ readonly type: "uint256";
200
+ }];
201
+ readonly stateMutability: "view";
202
+ }, {
203
+ readonly type: "event";
204
+ readonly anonymous: false;
205
+ readonly inputs: readonly [{
206
+ readonly name: "token0";
207
+ readonly internalType: "address";
208
+ readonly type: "address";
209
+ readonly indexed: true;
210
+ }, {
211
+ readonly name: "token1";
212
+ readonly internalType: "address";
213
+ readonly type: "address";
214
+ readonly indexed: true;
215
+ }, {
216
+ readonly name: "stable";
217
+ readonly internalType: "bool";
218
+ readonly type: "bool";
219
+ readonly indexed: false;
220
+ }, {
221
+ readonly name: "factory";
222
+ readonly internalType: "address";
223
+ readonly type: "address";
224
+ readonly indexed: false;
225
+ }, {
226
+ readonly name: "allowed";
227
+ readonly internalType: "bool";
228
+ readonly type: "bool";
229
+ readonly indexed: false;
230
+ }];
231
+ readonly name: "SetPoolStatus";
232
+ }, {
233
+ readonly type: "error";
234
+ readonly inputs: readonly [];
235
+ readonly name: "InvalidPathException";
236
+ }];
237
+ type abi = typeof abi;
238
+ export declare class VelodromeV2RouterAdapterContract extends AbstractAdapterContract<abi> {
239
+ readonly supportedPools: {
240
+ token0: Address;
241
+ token1: Address;
242
+ stable: boolean;
243
+ factory: Address;
244
+ }[];
245
+ constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
246
+ }
247
+ export {};
@@ -0,0 +1,127 @@
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: "targetContract";
49
+ readonly outputs: readonly [{
50
+ readonly name: "";
51
+ readonly internalType: "address";
52
+ readonly type: "address";
53
+ }];
54
+ readonly stateMutability: "view";
55
+ }, {
56
+ readonly type: "function";
57
+ readonly inputs: readonly [{
58
+ readonly name: "amount";
59
+ readonly internalType: "uint256";
60
+ readonly type: "uint256";
61
+ }];
62
+ readonly name: "unwrap";
63
+ readonly outputs: readonly [{
64
+ readonly name: "useSafePrices";
65
+ readonly internalType: "bool";
66
+ readonly type: "bool";
67
+ }];
68
+ readonly stateMutability: "nonpayable";
69
+ }, {
70
+ readonly type: "function";
71
+ readonly inputs: readonly [{
72
+ readonly name: "leftoverAmount";
73
+ readonly internalType: "uint256";
74
+ readonly type: "uint256";
75
+ }];
76
+ readonly name: "unwrapDiff";
77
+ readonly outputs: readonly [{
78
+ readonly name: "useSafePrices";
79
+ readonly internalType: "bool";
80
+ readonly type: "bool";
81
+ }];
82
+ readonly stateMutability: "nonpayable";
83
+ }, {
84
+ readonly type: "function";
85
+ readonly inputs: readonly [];
86
+ readonly name: "version";
87
+ readonly outputs: readonly [{
88
+ readonly name: "";
89
+ readonly internalType: "uint256";
90
+ readonly type: "uint256";
91
+ }];
92
+ readonly stateMutability: "view";
93
+ }, {
94
+ readonly type: "function";
95
+ readonly inputs: readonly [{
96
+ readonly name: "amount";
97
+ readonly internalType: "uint256";
98
+ readonly type: "uint256";
99
+ }];
100
+ readonly name: "wrap";
101
+ readonly outputs: readonly [{
102
+ readonly name: "useSafePrices";
103
+ readonly internalType: "bool";
104
+ readonly type: "bool";
105
+ }];
106
+ readonly stateMutability: "nonpayable";
107
+ }, {
108
+ readonly type: "function";
109
+ readonly inputs: readonly [{
110
+ readonly name: "leftoverAmount";
111
+ readonly internalType: "uint256";
112
+ readonly type: "uint256";
113
+ }];
114
+ readonly name: "wrapDiff";
115
+ readonly outputs: readonly [{
116
+ readonly name: "useSafePrices";
117
+ readonly internalType: "bool";
118
+ readonly type: "bool";
119
+ }];
120
+ readonly stateMutability: "nonpayable";
121
+ }];
122
+ type abi = typeof abi;
123
+ export declare class WstETHV1AdapterContract extends AbstractAdapterContract<abi> {
124
+ readonly stETH: Address;
125
+ constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
126
+ }
127
+ export {};