@gearbox-protocol/sdk 11.2.1 → 11.3.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 (39) hide show
  1. package/dist/cjs/abi/router/infinifiWorker.js +541 -0
  2. package/dist/cjs/abi/router/uniswapV4Worker.js +574 -0
  3. package/dist/cjs/plugins/adapters/AdaptersPlugin.js +9 -0
  4. package/dist/cjs/plugins/adapters/abi/actionAbi.js +9 -0
  5. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +17 -8
  6. package/dist/cjs/plugins/adapters/abi/conctructorAbiPatterns.js +4 -4
  7. package/dist/cjs/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +2 -1
  8. package/dist/cjs/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +58 -0
  9. package/dist/cjs/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +49 -0
  10. package/dist/cjs/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +2 -1
  11. package/dist/cjs/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +2 -1
  12. package/dist/cjs/plugins/adapters/contracts/UniswapV4AdapterContract.js +62 -0
  13. package/dist/cjs/plugins/adapters/types.js +3 -0
  14. package/dist/esm/abi/router/infinifiWorker.js +517 -0
  15. package/dist/esm/abi/router/uniswapV4Worker.js +550 -0
  16. package/dist/esm/plugins/adapters/AdaptersPlugin.js +9 -0
  17. package/dist/esm/plugins/adapters/abi/actionAbi.js +9 -0
  18. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +18 -9
  19. package/dist/esm/plugins/adapters/abi/conctructorAbiPatterns.js +3 -3
  20. package/dist/esm/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +2 -1
  21. package/dist/esm/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +34 -0
  22. package/dist/esm/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +25 -0
  23. package/dist/esm/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +2 -1
  24. package/dist/esm/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +2 -1
  25. package/dist/esm/plugins/adapters/contracts/UniswapV4AdapterContract.js +38 -0
  26. package/dist/esm/plugins/adapters/types.js +3 -0
  27. package/dist/types/abi/router/infinifiWorker.d.ts +726 -0
  28. package/dist/types/abi/router/uniswapV4Worker.d.ts +774 -0
  29. package/dist/types/plugins/adapters/abi/conctructorAbiPatterns.d.ts +2 -2
  30. package/dist/types/plugins/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +139 -13
  31. package/dist/types/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.d.ts +117 -1
  32. package/dist/types/plugins/adapters/contracts/InfinifiGatewayAdapterContract.d.ts +351 -0
  33. package/dist/types/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.d.ts +208 -0
  34. package/dist/types/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.d.ts +180 -1
  35. package/dist/types/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +276 -1
  36. package/dist/types/plugins/adapters/contracts/PendleRouterAdapterContract.d.ts +559 -0
  37. package/dist/types/plugins/adapters/contracts/UniswapV4AdapterContract.d.ts +320 -0
  38. package/dist/types/plugins/adapters/types.d.ts +4 -1
  39. package/package.json +2 -2
@@ -0,0 +1,208 @@
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: "token";
29
+ readonly internalType: "address";
30
+ readonly type: "address";
31
+ }, {
32
+ readonly name: "amount";
33
+ readonly internalType: "uint256";
34
+ readonly type: "uint256";
35
+ }];
36
+ readonly name: "depositPhantomToken";
37
+ readonly outputs: readonly [{
38
+ readonly name: "";
39
+ readonly internalType: "bool";
40
+ readonly type: "bool";
41
+ }];
42
+ readonly stateMutability: "nonpayable";
43
+ }, {
44
+ readonly type: "function";
45
+ readonly inputs: readonly [];
46
+ readonly name: "getAllowedLockedTokens";
47
+ readonly outputs: readonly [{
48
+ readonly name: "";
49
+ readonly internalType: "address[]";
50
+ readonly type: "address[]";
51
+ }];
52
+ readonly stateMutability: "view";
53
+ }, {
54
+ readonly type: "function";
55
+ readonly inputs: readonly [{
56
+ readonly name: "lockedToken";
57
+ readonly internalType: "address";
58
+ readonly type: "address";
59
+ }];
60
+ readonly name: "lockedTokenToUnwindingEpoch";
61
+ readonly outputs: readonly [{
62
+ readonly name: "";
63
+ readonly internalType: "uint32";
64
+ readonly type: "uint32";
65
+ }];
66
+ readonly stateMutability: "view";
67
+ }, {
68
+ readonly type: "function";
69
+ readonly inputs: readonly [];
70
+ readonly name: "serialize";
71
+ readonly outputs: readonly [{
72
+ readonly name: "serializedData";
73
+ readonly internalType: "bytes";
74
+ readonly type: "bytes";
75
+ }];
76
+ readonly stateMutability: "view";
77
+ }, {
78
+ readonly type: "function";
79
+ readonly inputs: readonly [{
80
+ readonly name: "lockedTokens";
81
+ readonly internalType: "struct LockedTokenStatus[]";
82
+ readonly type: "tuple[]";
83
+ readonly components: readonly [{
84
+ readonly name: "lockedToken";
85
+ readonly internalType: "address";
86
+ readonly type: "address";
87
+ }, {
88
+ readonly name: "unwindingEpochs";
89
+ readonly internalType: "uint32";
90
+ readonly type: "uint32";
91
+ }, {
92
+ readonly name: "allowed";
93
+ readonly internalType: "bool";
94
+ readonly type: "bool";
95
+ }];
96
+ }];
97
+ readonly name: "setLockedTokenBatchStatus";
98
+ readonly outputs: readonly [];
99
+ readonly stateMutability: "nonpayable";
100
+ }, {
101
+ readonly type: "function";
102
+ readonly inputs: readonly [{
103
+ readonly name: "shares";
104
+ readonly internalType: "uint256";
105
+ readonly type: "uint256";
106
+ }, {
107
+ readonly name: "unwindingEpochs";
108
+ readonly internalType: "uint32";
109
+ readonly type: "uint32";
110
+ }];
111
+ readonly name: "startUnwinding";
112
+ readonly outputs: readonly [{
113
+ readonly name: "";
114
+ readonly internalType: "bool";
115
+ readonly type: "bool";
116
+ }];
117
+ readonly stateMutability: "nonpayable";
118
+ }, {
119
+ readonly type: "function";
120
+ readonly inputs: readonly [];
121
+ readonly name: "targetContract";
122
+ readonly outputs: readonly [{
123
+ readonly name: "";
124
+ readonly internalType: "address";
125
+ readonly type: "address";
126
+ }];
127
+ readonly stateMutability: "view";
128
+ }, {
129
+ readonly type: "function";
130
+ readonly inputs: readonly [];
131
+ readonly name: "version";
132
+ readonly outputs: readonly [{
133
+ readonly name: "";
134
+ readonly internalType: "uint256";
135
+ readonly type: "uint256";
136
+ }];
137
+ readonly stateMutability: "view";
138
+ }, {
139
+ readonly type: "function";
140
+ readonly inputs: readonly [{
141
+ readonly name: "amount";
142
+ readonly internalType: "uint256";
143
+ readonly type: "uint256";
144
+ }];
145
+ readonly name: "withdraw";
146
+ readonly outputs: readonly [{
147
+ readonly name: "";
148
+ readonly internalType: "bool";
149
+ readonly type: "bool";
150
+ }];
151
+ readonly stateMutability: "nonpayable";
152
+ }, {
153
+ readonly type: "function";
154
+ readonly inputs: readonly [{
155
+ readonly name: "token";
156
+ readonly internalType: "address";
157
+ readonly type: "address";
158
+ }, {
159
+ readonly name: "amount";
160
+ readonly internalType: "uint256";
161
+ readonly type: "uint256";
162
+ }];
163
+ readonly name: "withdrawPhantomToken";
164
+ readonly outputs: readonly [{
165
+ readonly name: "useSafePrices";
166
+ readonly internalType: "bool";
167
+ readonly type: "bool";
168
+ }];
169
+ readonly stateMutability: "nonpayable";
170
+ }, {
171
+ readonly type: "event";
172
+ readonly anonymous: false;
173
+ readonly inputs: readonly [{
174
+ readonly name: "lockedToken";
175
+ readonly internalType: "address";
176
+ readonly type: "address";
177
+ readonly indexed: false;
178
+ }, {
179
+ readonly name: "unwindingEpochs";
180
+ readonly internalType: "uint32";
181
+ readonly type: "uint32";
182
+ readonly indexed: false;
183
+ }, {
184
+ readonly name: "allowed";
185
+ readonly internalType: "bool";
186
+ readonly type: "bool";
187
+ readonly indexed: false;
188
+ }];
189
+ readonly name: "SetLockedTokenStatus";
190
+ }, {
191
+ readonly type: "error";
192
+ readonly inputs: readonly [];
193
+ readonly name: "IncorrectStakedPhantomTokenException";
194
+ }, {
195
+ readonly type: "error";
196
+ readonly inputs: readonly [];
197
+ readonly name: "LockedTokenNotAllowedException";
198
+ }, {
199
+ readonly type: "error";
200
+ readonly inputs: readonly [];
201
+ readonly name: "LockedTokenUnwindingEpochsMismatchException";
202
+ }];
203
+ type abi = typeof abi;
204
+ export declare class InfinifiUnwindingGatewayAdapterContract extends AbstractAdapterContract<abi> {
205
+ readonly allowedLockedTokens: Address[];
206
+ constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
207
+ }
208
+ export {};
@@ -2,7 +2,186 @@ import { type Address } from "viem";
2
2
  import type { GearboxSDK } from "../../../sdk/index.js";
3
3
  import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
4
4
  import { AbstractAdapterContract } from "./AbstractAdapter.js";
5
- declare const abi: readonly [];
5
+ declare const abi: readonly [{
6
+ readonly type: "function";
7
+ readonly inputs: readonly [];
8
+ readonly name: "allowedTokens";
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: "contractType";
19
+ readonly outputs: readonly [{
20
+ readonly name: "";
21
+ readonly internalType: "bytes32";
22
+ readonly type: "bytes32";
23
+ }];
24
+ readonly stateMutability: "view";
25
+ }, {
26
+ readonly type: "function";
27
+ readonly inputs: readonly [];
28
+ readonly name: "creditManager";
29
+ readonly outputs: readonly [{
30
+ readonly name: "";
31
+ readonly internalType: "address";
32
+ readonly type: "address";
33
+ }];
34
+ readonly stateMutability: "view";
35
+ }, {
36
+ readonly type: "function";
37
+ readonly inputs: readonly [{
38
+ readonly name: "tokenIn";
39
+ readonly internalType: "address";
40
+ readonly type: "address";
41
+ }, {
42
+ readonly name: "amountToken";
43
+ readonly internalType: "uint256";
44
+ readonly type: "uint256";
45
+ }, {
46
+ readonly name: "minReceiveAmount";
47
+ readonly internalType: "uint256";
48
+ readonly type: "uint256";
49
+ }, {
50
+ readonly name: "";
51
+ readonly internalType: "bytes32";
52
+ readonly type: "bytes32";
53
+ }];
54
+ readonly name: "depositInstant";
55
+ readonly outputs: readonly [{
56
+ readonly name: "";
57
+ readonly internalType: "bool";
58
+ readonly type: "bool";
59
+ }];
60
+ readonly stateMutability: "nonpayable";
61
+ }, {
62
+ readonly type: "function";
63
+ readonly inputs: readonly [{
64
+ readonly name: "tokenIn";
65
+ readonly internalType: "address";
66
+ readonly type: "address";
67
+ }, {
68
+ readonly name: "leftoverAmount";
69
+ readonly internalType: "uint256";
70
+ readonly type: "uint256";
71
+ }, {
72
+ readonly name: "rateMinRAY";
73
+ readonly internalType: "uint256";
74
+ readonly type: "uint256";
75
+ }];
76
+ readonly name: "depositInstantDiff";
77
+ readonly outputs: readonly [{
78
+ readonly name: "";
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: "token";
87
+ readonly internalType: "address";
88
+ readonly type: "address";
89
+ }];
90
+ readonly name: "isTokenAllowed";
91
+ readonly outputs: readonly [{
92
+ readonly name: "";
93
+ readonly internalType: "bool";
94
+ readonly type: "bool";
95
+ }];
96
+ readonly stateMutability: "view";
97
+ }, {
98
+ readonly type: "function";
99
+ readonly inputs: readonly [];
100
+ readonly name: "mToken";
101
+ readonly outputs: readonly [{
102
+ readonly name: "";
103
+ readonly internalType: "address";
104
+ readonly type: "address";
105
+ }];
106
+ readonly stateMutability: "view";
107
+ }, {
108
+ readonly type: "function";
109
+ readonly inputs: readonly [];
110
+ readonly name: "referrerId";
111
+ readonly outputs: readonly [{
112
+ readonly name: "";
113
+ readonly internalType: "bytes32";
114
+ readonly type: "bytes32";
115
+ }];
116
+ readonly stateMutability: "view";
117
+ }, {
118
+ readonly type: "function";
119
+ readonly inputs: readonly [];
120
+ readonly name: "serialize";
121
+ readonly outputs: readonly [{
122
+ readonly name: "serializedData";
123
+ readonly internalType: "bytes";
124
+ readonly type: "bytes";
125
+ }];
126
+ readonly stateMutability: "view";
127
+ }, {
128
+ readonly type: "function";
129
+ readonly inputs: readonly [{
130
+ readonly name: "tokens";
131
+ readonly internalType: "address[]";
132
+ readonly type: "address[]";
133
+ }, {
134
+ readonly name: "allowed";
135
+ readonly internalType: "bool[]";
136
+ readonly type: "bool[]";
137
+ }];
138
+ readonly name: "setTokenAllowedStatusBatch";
139
+ readonly outputs: readonly [];
140
+ readonly stateMutability: "nonpayable";
141
+ }, {
142
+ readonly type: "function";
143
+ readonly inputs: readonly [];
144
+ readonly name: "targetContract";
145
+ readonly outputs: readonly [{
146
+ readonly name: "";
147
+ readonly internalType: "address";
148
+ readonly type: "address";
149
+ }];
150
+ readonly stateMutability: "view";
151
+ }, {
152
+ readonly type: "function";
153
+ readonly inputs: readonly [];
154
+ readonly name: "version";
155
+ readonly outputs: readonly [{
156
+ readonly name: "";
157
+ readonly internalType: "uint256";
158
+ readonly type: "uint256";
159
+ }];
160
+ readonly stateMutability: "view";
161
+ }, {
162
+ readonly type: "event";
163
+ readonly anonymous: false;
164
+ readonly inputs: readonly [{
165
+ readonly name: "token";
166
+ readonly internalType: "address";
167
+ readonly type: "address";
168
+ readonly indexed: true;
169
+ }, {
170
+ readonly name: "allowed";
171
+ readonly internalType: "bool";
172
+ readonly type: "bool";
173
+ readonly indexed: false;
174
+ }];
175
+ readonly name: "SetTokenAllowedStatus";
176
+ }, {
177
+ readonly type: "error";
178
+ readonly inputs: readonly [];
179
+ readonly name: "IncorrectArrayLengthException";
180
+ }, {
181
+ readonly type: "error";
182
+ readonly inputs: readonly [];
183
+ readonly name: "TokenNotAllowedException";
184
+ }];
6
185
  type abi = typeof abi;
7
186
  export declare class MidasIssuanceVaultAdapterContract extends AbstractAdapterContract<abi> {
8
187
  readonly mToken: Address;
@@ -2,7 +2,282 @@ import { type Address } from "viem";
2
2
  import type { GearboxSDK } from "../../../sdk/index.js";
3
3
  import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
4
4
  import { AbstractAdapterContract } from "./AbstractAdapter.js";
5
- declare const abi: readonly [];
5
+ declare const abi: readonly [{
6
+ readonly type: "function";
7
+ readonly inputs: readonly [];
8
+ readonly name: "allowedTokens";
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: "contractType";
19
+ readonly outputs: readonly [{
20
+ readonly name: "";
21
+ readonly internalType: "bytes32";
22
+ readonly type: "bytes32";
23
+ }];
24
+ readonly stateMutability: "view";
25
+ }, {
26
+ readonly type: "function";
27
+ readonly inputs: readonly [];
28
+ readonly name: "creditManager";
29
+ readonly outputs: readonly [{
30
+ readonly name: "";
31
+ readonly internalType: "address";
32
+ readonly type: "address";
33
+ }];
34
+ readonly stateMutability: "view";
35
+ }, {
36
+ readonly type: "function";
37
+ readonly inputs: readonly [{
38
+ readonly name: "token";
39
+ readonly internalType: "address";
40
+ readonly type: "address";
41
+ }, {
42
+ readonly name: "amount";
43
+ readonly internalType: "uint256";
44
+ readonly type: "uint256";
45
+ }];
46
+ readonly name: "depositPhantomToken";
47
+ readonly outputs: readonly [{
48
+ readonly name: "";
49
+ readonly internalType: "bool";
50
+ readonly type: "bool";
51
+ }];
52
+ readonly stateMutability: "nonpayable";
53
+ }, {
54
+ readonly type: "function";
55
+ readonly inputs: readonly [];
56
+ readonly name: "gateway";
57
+ readonly outputs: readonly [{
58
+ readonly name: "";
59
+ readonly internalType: "address";
60
+ readonly type: "address";
61
+ }];
62
+ readonly stateMutability: "view";
63
+ }, {
64
+ readonly type: "function";
65
+ readonly inputs: readonly [{
66
+ readonly name: "token";
67
+ readonly internalType: "address";
68
+ readonly type: "address";
69
+ }];
70
+ readonly name: "isTokenAllowed";
71
+ readonly outputs: readonly [{
72
+ readonly name: "";
73
+ readonly internalType: "bool";
74
+ readonly type: "bool";
75
+ }];
76
+ readonly stateMutability: "view";
77
+ }, {
78
+ readonly type: "function";
79
+ readonly inputs: readonly [];
80
+ readonly name: "mToken";
81
+ readonly outputs: readonly [{
82
+ readonly name: "";
83
+ readonly internalType: "address";
84
+ readonly type: "address";
85
+ }];
86
+ readonly stateMutability: "view";
87
+ }, {
88
+ readonly type: "function";
89
+ readonly inputs: readonly [{
90
+ readonly name: "phantomToken";
91
+ readonly internalType: "address";
92
+ readonly type: "address";
93
+ }];
94
+ readonly name: "phantomTokenToOutputToken";
95
+ readonly outputs: readonly [{
96
+ readonly name: "";
97
+ readonly internalType: "address";
98
+ readonly type: "address";
99
+ }];
100
+ readonly stateMutability: "view";
101
+ }, {
102
+ readonly type: "function";
103
+ readonly inputs: readonly [{
104
+ readonly name: "tokenOut";
105
+ readonly internalType: "address";
106
+ readonly type: "address";
107
+ }, {
108
+ readonly name: "amountMTokenIn";
109
+ readonly internalType: "uint256";
110
+ readonly type: "uint256";
111
+ }, {
112
+ readonly name: "minReceiveAmount";
113
+ readonly internalType: "uint256";
114
+ readonly type: "uint256";
115
+ }];
116
+ readonly name: "redeemInstant";
117
+ readonly outputs: readonly [{
118
+ readonly name: "";
119
+ readonly internalType: "bool";
120
+ readonly type: "bool";
121
+ }];
122
+ readonly stateMutability: "nonpayable";
123
+ }, {
124
+ readonly type: "function";
125
+ readonly inputs: readonly [{
126
+ readonly name: "tokenOut";
127
+ readonly internalType: "address";
128
+ readonly type: "address";
129
+ }, {
130
+ readonly name: "leftoverAmount";
131
+ readonly internalType: "uint256";
132
+ readonly type: "uint256";
133
+ }, {
134
+ readonly name: "rateMinRAY";
135
+ readonly internalType: "uint256";
136
+ readonly type: "uint256";
137
+ }];
138
+ readonly name: "redeemInstantDiff";
139
+ readonly outputs: readonly [{
140
+ readonly name: "";
141
+ readonly internalType: "bool";
142
+ readonly type: "bool";
143
+ }];
144
+ readonly stateMutability: "nonpayable";
145
+ }, {
146
+ readonly type: "function";
147
+ readonly inputs: readonly [{
148
+ readonly name: "tokenOut";
149
+ readonly internalType: "address";
150
+ readonly type: "address";
151
+ }, {
152
+ readonly name: "amountMTokenIn";
153
+ readonly internalType: "uint256";
154
+ readonly type: "uint256";
155
+ }];
156
+ readonly name: "redeemRequest";
157
+ readonly outputs: readonly [{
158
+ readonly name: "";
159
+ readonly internalType: "bool";
160
+ readonly type: "bool";
161
+ }];
162
+ readonly stateMutability: "nonpayable";
163
+ }, {
164
+ readonly type: "function";
165
+ readonly inputs: readonly [];
166
+ readonly name: "serialize";
167
+ readonly outputs: readonly [{
168
+ readonly name: "serializedData";
169
+ readonly internalType: "bytes";
170
+ readonly type: "bytes";
171
+ }];
172
+ readonly stateMutability: "view";
173
+ }, {
174
+ readonly type: "function";
175
+ readonly inputs: readonly [{
176
+ readonly name: "configs";
177
+ readonly internalType: "struct IMidasRedemptionVaultAdapter.MidasAllowedTokenStatus[]";
178
+ readonly type: "tuple[]";
179
+ readonly components: readonly [{
180
+ readonly name: "token";
181
+ readonly internalType: "address";
182
+ readonly type: "address";
183
+ }, {
184
+ readonly name: "phantomToken";
185
+ readonly internalType: "address";
186
+ readonly type: "address";
187
+ }, {
188
+ readonly name: "allowed";
189
+ readonly internalType: "bool";
190
+ readonly type: "bool";
191
+ }];
192
+ }];
193
+ readonly name: "setTokenAllowedStatusBatch";
194
+ readonly outputs: readonly [];
195
+ readonly stateMutability: "nonpayable";
196
+ }, {
197
+ readonly type: "function";
198
+ readonly inputs: readonly [];
199
+ readonly name: "targetContract";
200
+ readonly outputs: readonly [{
201
+ readonly name: "";
202
+ readonly internalType: "address";
203
+ readonly type: "address";
204
+ }];
205
+ readonly stateMutability: "view";
206
+ }, {
207
+ readonly type: "function";
208
+ readonly inputs: readonly [];
209
+ readonly name: "version";
210
+ readonly outputs: readonly [{
211
+ readonly name: "";
212
+ readonly internalType: "uint256";
213
+ readonly type: "uint256";
214
+ }];
215
+ readonly stateMutability: "view";
216
+ }, {
217
+ readonly type: "function";
218
+ readonly inputs: readonly [{
219
+ readonly name: "amount";
220
+ readonly internalType: "uint256";
221
+ readonly type: "uint256";
222
+ }];
223
+ readonly name: "withdraw";
224
+ readonly outputs: readonly [{
225
+ readonly name: "";
226
+ readonly internalType: "bool";
227
+ readonly type: "bool";
228
+ }];
229
+ readonly stateMutability: "nonpayable";
230
+ }, {
231
+ readonly type: "function";
232
+ readonly inputs: readonly [{
233
+ readonly name: "token";
234
+ readonly internalType: "address";
235
+ readonly type: "address";
236
+ }, {
237
+ readonly name: "amount";
238
+ readonly internalType: "uint256";
239
+ readonly type: "uint256";
240
+ }];
241
+ readonly name: "withdrawPhantomToken";
242
+ readonly outputs: readonly [{
243
+ readonly name: "useSafePrices";
244
+ readonly internalType: "bool";
245
+ readonly type: "bool";
246
+ }];
247
+ readonly stateMutability: "nonpayable";
248
+ }, {
249
+ readonly type: "event";
250
+ readonly anonymous: false;
251
+ readonly inputs: readonly [{
252
+ readonly name: "token";
253
+ readonly internalType: "address";
254
+ readonly type: "address";
255
+ readonly indexed: true;
256
+ }, {
257
+ readonly name: "phantomToken";
258
+ readonly internalType: "address";
259
+ readonly type: "address";
260
+ readonly indexed: true;
261
+ }, {
262
+ readonly name: "allowed";
263
+ readonly internalType: "bool";
264
+ readonly type: "bool";
265
+ readonly indexed: false;
266
+ }];
267
+ readonly name: "SetTokenAllowedStatus";
268
+ }, {
269
+ readonly type: "error";
270
+ readonly inputs: readonly [];
271
+ readonly name: "IncorrectStakedPhantomTokenException";
272
+ }, {
273
+ readonly type: "error";
274
+ readonly inputs: readonly [];
275
+ readonly name: "PhantomTokenTokenOutMismatchException";
276
+ }, {
277
+ readonly type: "error";
278
+ readonly inputs: readonly [];
279
+ readonly name: "TokenNotAllowedException";
280
+ }];
6
281
  type abi = typeof abi;
7
282
  export declare class MidasRedemptionVaultAdapterContract extends AbstractAdapterContract<abi> {
8
283
  readonly gateway: Address;