@gearbox-protocol/sdk 14.12.0-next.38 → 14.12.0-next.39
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.
- package/dist/cjs/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +85 -1
- package/dist/cjs/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +85 -1
- package/dist/cjs/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +85 -1
- package/dist/cjs/abi/compressors/withdrawalCompressor.js +197 -1
- package/dist/cjs/abi/helpers/redemptionLogger.js +160 -0
- package/dist/cjs/abi/router/midasWorker.js +4 -4
- package/dist/cjs/dev/AccountOpener.js +2 -2
- package/dist/cjs/plugins/adapters/abi/actionAbi.js +13 -5
- package/dist/cjs/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js +23 -8
- package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +2 -1
- package/dist/cjs/plugins/adapters/abi/securitize/iMidasGatewayAdapter.js +354 -0
- package/dist/cjs/plugins/adapters/abi/securitize/index.js +2 -0
- package/dist/esm/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +85 -1
- package/dist/esm/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +85 -1
- package/dist/esm/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +85 -1
- package/dist/esm/abi/compressors/withdrawalCompressor.js +197 -1
- package/dist/esm/abi/helpers/redemptionLogger.js +136 -0
- package/dist/esm/abi/router/midasWorker.js +4 -4
- package/dist/esm/dev/AccountOpener.js +2 -2
- package/dist/esm/plugins/adapters/abi/actionAbi.js +13 -5
- package/dist/esm/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js +23 -8
- package/dist/esm/plugins/adapters/abi/conctructorAbi.js +2 -1
- package/dist/esm/plugins/adapters/abi/securitize/iMidasGatewayAdapter.js +330 -0
- package/dist/esm/plugins/adapters/abi/securitize/index.js +1 -0
- package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts +121 -0
- package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +121 -0
- package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +121 -0
- package/dist/types/abi/compressors/withdrawalCompressor.d.ts +274 -0
- package/dist/types/abi/helpers/redemptionLogger.d.ts +167 -0
- package/dist/types/abi/router/midasWorker.d.ts +4 -4
- package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +274 -0
- package/dist/types/plugins/adapters/abi/actionAbi.d.ts +1 -1
- package/dist/types/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.d.ts +37 -7
- package/dist/types/plugins/adapters/abi/securitize/iMidasGatewayAdapter.d.ts +555 -0
- package/dist/types/plugins/adapters/abi/securitize/index.d.ts +1 -0
- package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +37 -7
- package/package.json +1 -1
|
@@ -29,6 +29,10 @@ declare const abi: readonly [{
|
|
|
29
29
|
readonly name: "";
|
|
30
30
|
readonly type: "bytes32";
|
|
31
31
|
readonly internalType: "bytes32";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "";
|
|
34
|
+
readonly type: "uint256";
|
|
35
|
+
readonly internalType: "uint256";
|
|
32
36
|
}];
|
|
33
37
|
readonly outputs: readonly [{
|
|
34
38
|
readonly name: "";
|
|
@@ -145,6 +149,212 @@ declare const abi: readonly [{
|
|
|
145
149
|
}];
|
|
146
150
|
}];
|
|
147
151
|
readonly stateMutability: "view";
|
|
152
|
+
}, {
|
|
153
|
+
readonly type: "function";
|
|
154
|
+
readonly name: "getExternalAccountCurrentWithdrawals";
|
|
155
|
+
readonly inputs: readonly [{
|
|
156
|
+
readonly name: "withdrawalTokens";
|
|
157
|
+
readonly type: "address[]";
|
|
158
|
+
readonly internalType: "address[]";
|
|
159
|
+
}, {
|
|
160
|
+
readonly name: "account";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
readonly internalType: "address";
|
|
163
|
+
}];
|
|
164
|
+
readonly outputs: readonly [{
|
|
165
|
+
readonly name: "";
|
|
166
|
+
readonly type: "tuple[]";
|
|
167
|
+
readonly internalType: "struct ClaimableWithdrawal[]";
|
|
168
|
+
readonly components: readonly [{
|
|
169
|
+
readonly name: "token";
|
|
170
|
+
readonly type: "address";
|
|
171
|
+
readonly internalType: "address";
|
|
172
|
+
}, {
|
|
173
|
+
readonly name: "withdrawalPhantomToken";
|
|
174
|
+
readonly type: "address";
|
|
175
|
+
readonly internalType: "address";
|
|
176
|
+
}, {
|
|
177
|
+
readonly name: "withdrawalTokenSpent";
|
|
178
|
+
readonly type: "uint256";
|
|
179
|
+
readonly internalType: "uint256";
|
|
180
|
+
}, {
|
|
181
|
+
readonly name: "outputs";
|
|
182
|
+
readonly type: "tuple[]";
|
|
183
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
184
|
+
readonly components: readonly [{
|
|
185
|
+
readonly name: "token";
|
|
186
|
+
readonly type: "address";
|
|
187
|
+
readonly internalType: "address";
|
|
188
|
+
}, {
|
|
189
|
+
readonly name: "isDelayed";
|
|
190
|
+
readonly type: "bool";
|
|
191
|
+
readonly internalType: "bool";
|
|
192
|
+
}, {
|
|
193
|
+
readonly name: "amount";
|
|
194
|
+
readonly type: "uint256";
|
|
195
|
+
readonly internalType: "uint256";
|
|
196
|
+
}];
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "claimCalls";
|
|
199
|
+
readonly type: "tuple[]";
|
|
200
|
+
readonly internalType: "struct MultiCall[]";
|
|
201
|
+
readonly components: readonly [{
|
|
202
|
+
readonly name: "target";
|
|
203
|
+
readonly type: "address";
|
|
204
|
+
readonly internalType: "address";
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "callData";
|
|
207
|
+
readonly type: "bytes";
|
|
208
|
+
readonly internalType: "bytes";
|
|
209
|
+
}];
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "extraData";
|
|
212
|
+
readonly type: "bytes";
|
|
213
|
+
readonly internalType: "bytes";
|
|
214
|
+
}];
|
|
215
|
+
}, {
|
|
216
|
+
readonly name: "";
|
|
217
|
+
readonly type: "tuple[]";
|
|
218
|
+
readonly internalType: "struct PendingWithdrawal[]";
|
|
219
|
+
readonly components: readonly [{
|
|
220
|
+
readonly name: "token";
|
|
221
|
+
readonly type: "address";
|
|
222
|
+
readonly internalType: "address";
|
|
223
|
+
}, {
|
|
224
|
+
readonly name: "withdrawalPhantomToken";
|
|
225
|
+
readonly type: "address";
|
|
226
|
+
readonly internalType: "address";
|
|
227
|
+
}, {
|
|
228
|
+
readonly name: "expectedOutputs";
|
|
229
|
+
readonly type: "tuple[]";
|
|
230
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
231
|
+
readonly components: readonly [{
|
|
232
|
+
readonly name: "token";
|
|
233
|
+
readonly type: "address";
|
|
234
|
+
readonly internalType: "address";
|
|
235
|
+
}, {
|
|
236
|
+
readonly name: "isDelayed";
|
|
237
|
+
readonly type: "bool";
|
|
238
|
+
readonly internalType: "bool";
|
|
239
|
+
}, {
|
|
240
|
+
readonly name: "amount";
|
|
241
|
+
readonly type: "uint256";
|
|
242
|
+
readonly internalType: "uint256";
|
|
243
|
+
}];
|
|
244
|
+
}, {
|
|
245
|
+
readonly name: "claimableAt";
|
|
246
|
+
readonly type: "uint256";
|
|
247
|
+
readonly internalType: "uint256";
|
|
248
|
+
}, {
|
|
249
|
+
readonly name: "extraData";
|
|
250
|
+
readonly type: "bytes";
|
|
251
|
+
readonly internalType: "bytes";
|
|
252
|
+
}];
|
|
253
|
+
}];
|
|
254
|
+
readonly stateMutability: "view";
|
|
255
|
+
}, {
|
|
256
|
+
readonly type: "function";
|
|
257
|
+
readonly name: "getExternalAccountCurrentWithdrawals";
|
|
258
|
+
readonly inputs: readonly [{
|
|
259
|
+
readonly name: "withdrawalToken";
|
|
260
|
+
readonly type: "address";
|
|
261
|
+
readonly internalType: "address";
|
|
262
|
+
}, {
|
|
263
|
+
readonly name: "account";
|
|
264
|
+
readonly type: "address";
|
|
265
|
+
readonly internalType: "address";
|
|
266
|
+
}];
|
|
267
|
+
readonly outputs: readonly [{
|
|
268
|
+
readonly name: "";
|
|
269
|
+
readonly type: "tuple[]";
|
|
270
|
+
readonly internalType: "struct ClaimableWithdrawal[]";
|
|
271
|
+
readonly components: readonly [{
|
|
272
|
+
readonly name: "token";
|
|
273
|
+
readonly type: "address";
|
|
274
|
+
readonly internalType: "address";
|
|
275
|
+
}, {
|
|
276
|
+
readonly name: "withdrawalPhantomToken";
|
|
277
|
+
readonly type: "address";
|
|
278
|
+
readonly internalType: "address";
|
|
279
|
+
}, {
|
|
280
|
+
readonly name: "withdrawalTokenSpent";
|
|
281
|
+
readonly type: "uint256";
|
|
282
|
+
readonly internalType: "uint256";
|
|
283
|
+
}, {
|
|
284
|
+
readonly name: "outputs";
|
|
285
|
+
readonly type: "tuple[]";
|
|
286
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
287
|
+
readonly components: readonly [{
|
|
288
|
+
readonly name: "token";
|
|
289
|
+
readonly type: "address";
|
|
290
|
+
readonly internalType: "address";
|
|
291
|
+
}, {
|
|
292
|
+
readonly name: "isDelayed";
|
|
293
|
+
readonly type: "bool";
|
|
294
|
+
readonly internalType: "bool";
|
|
295
|
+
}, {
|
|
296
|
+
readonly name: "amount";
|
|
297
|
+
readonly type: "uint256";
|
|
298
|
+
readonly internalType: "uint256";
|
|
299
|
+
}];
|
|
300
|
+
}, {
|
|
301
|
+
readonly name: "claimCalls";
|
|
302
|
+
readonly type: "tuple[]";
|
|
303
|
+
readonly internalType: "struct MultiCall[]";
|
|
304
|
+
readonly components: readonly [{
|
|
305
|
+
readonly name: "target";
|
|
306
|
+
readonly type: "address";
|
|
307
|
+
readonly internalType: "address";
|
|
308
|
+
}, {
|
|
309
|
+
readonly name: "callData";
|
|
310
|
+
readonly type: "bytes";
|
|
311
|
+
readonly internalType: "bytes";
|
|
312
|
+
}];
|
|
313
|
+
}, {
|
|
314
|
+
readonly name: "extraData";
|
|
315
|
+
readonly type: "bytes";
|
|
316
|
+
readonly internalType: "bytes";
|
|
317
|
+
}];
|
|
318
|
+
}, {
|
|
319
|
+
readonly name: "";
|
|
320
|
+
readonly type: "tuple[]";
|
|
321
|
+
readonly internalType: "struct PendingWithdrawal[]";
|
|
322
|
+
readonly components: readonly [{
|
|
323
|
+
readonly name: "token";
|
|
324
|
+
readonly type: "address";
|
|
325
|
+
readonly internalType: "address";
|
|
326
|
+
}, {
|
|
327
|
+
readonly name: "withdrawalPhantomToken";
|
|
328
|
+
readonly type: "address";
|
|
329
|
+
readonly internalType: "address";
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "expectedOutputs";
|
|
332
|
+
readonly type: "tuple[]";
|
|
333
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
334
|
+
readonly components: readonly [{
|
|
335
|
+
readonly name: "token";
|
|
336
|
+
readonly type: "address";
|
|
337
|
+
readonly internalType: "address";
|
|
338
|
+
}, {
|
|
339
|
+
readonly name: "isDelayed";
|
|
340
|
+
readonly type: "bool";
|
|
341
|
+
readonly internalType: "bool";
|
|
342
|
+
}, {
|
|
343
|
+
readonly name: "amount";
|
|
344
|
+
readonly type: "uint256";
|
|
345
|
+
readonly internalType: "uint256";
|
|
346
|
+
}];
|
|
347
|
+
}, {
|
|
348
|
+
readonly name: "claimableAt";
|
|
349
|
+
readonly type: "uint256";
|
|
350
|
+
readonly internalType: "uint256";
|
|
351
|
+
}, {
|
|
352
|
+
readonly name: "extraData";
|
|
353
|
+
readonly type: "bytes";
|
|
354
|
+
readonly internalType: "bytes";
|
|
355
|
+
}];
|
|
356
|
+
}];
|
|
357
|
+
readonly stateMutability: "view";
|
|
148
358
|
}, {
|
|
149
359
|
readonly type: "function";
|
|
150
360
|
readonly name: "getWithdrawableAssets";
|
|
@@ -387,6 +597,34 @@ declare const abi: readonly [{
|
|
|
387
597
|
}];
|
|
388
598
|
}];
|
|
389
599
|
readonly stateMutability: "view";
|
|
600
|
+
}, {
|
|
601
|
+
readonly type: "function";
|
|
602
|
+
readonly name: "getWithdrawalStatus";
|
|
603
|
+
readonly inputs: readonly [{
|
|
604
|
+
readonly name: "redeemers";
|
|
605
|
+
readonly type: "address[]";
|
|
606
|
+
readonly internalType: "address[]";
|
|
607
|
+
}];
|
|
608
|
+
readonly outputs: readonly [{
|
|
609
|
+
readonly name: "";
|
|
610
|
+
readonly type: "uint8[]";
|
|
611
|
+
readonly internalType: "enum WithdrawalStatus[]";
|
|
612
|
+
}];
|
|
613
|
+
readonly stateMutability: "view";
|
|
614
|
+
}, {
|
|
615
|
+
readonly type: "function";
|
|
616
|
+
readonly name: "getWithdrawalStatus";
|
|
617
|
+
readonly inputs: readonly [{
|
|
618
|
+
readonly name: "redeemer";
|
|
619
|
+
readonly type: "address";
|
|
620
|
+
readonly internalType: "address";
|
|
621
|
+
}];
|
|
622
|
+
readonly outputs: readonly [{
|
|
623
|
+
readonly name: "";
|
|
624
|
+
readonly type: "uint8";
|
|
625
|
+
readonly internalType: "enum WithdrawalStatus";
|
|
626
|
+
}];
|
|
627
|
+
readonly stateMutability: "view";
|
|
390
628
|
}, {
|
|
391
629
|
readonly type: "function";
|
|
392
630
|
readonly name: "owner";
|
|
@@ -427,6 +665,24 @@ declare const abi: readonly [{
|
|
|
427
665
|
}];
|
|
428
666
|
readonly outputs: readonly [];
|
|
429
667
|
readonly stateMutability: "nonpayable";
|
|
668
|
+
}, {
|
|
669
|
+
readonly type: "function";
|
|
670
|
+
readonly name: "setWithdrawableVersionToSpecificCompressorVersion";
|
|
671
|
+
readonly inputs: readonly [{
|
|
672
|
+
readonly name: "withdrawableType";
|
|
673
|
+
readonly type: "bytes32";
|
|
674
|
+
readonly internalType: "bytes32";
|
|
675
|
+
}, {
|
|
676
|
+
readonly name: "withdrawableVersion";
|
|
677
|
+
readonly type: "uint256";
|
|
678
|
+
readonly internalType: "uint256";
|
|
679
|
+
}, {
|
|
680
|
+
readonly name: "compressorVersion";
|
|
681
|
+
readonly type: "uint256";
|
|
682
|
+
readonly internalType: "uint256";
|
|
683
|
+
}];
|
|
684
|
+
readonly outputs: readonly [];
|
|
685
|
+
readonly stateMutability: "nonpayable";
|
|
430
686
|
}, {
|
|
431
687
|
readonly type: "function";
|
|
432
688
|
readonly name: "transferOwnership";
|
|
@@ -461,6 +717,24 @@ declare const abi: readonly [{
|
|
|
461
717
|
readonly internalType: "bytes32";
|
|
462
718
|
}];
|
|
463
719
|
readonly stateMutability: "view";
|
|
720
|
+
}, {
|
|
721
|
+
readonly type: "function";
|
|
722
|
+
readonly name: "withdrawableTypeToSpecificCompressorVersion";
|
|
723
|
+
readonly inputs: readonly [{
|
|
724
|
+
readonly name: "";
|
|
725
|
+
readonly type: "bytes32";
|
|
726
|
+
readonly internalType: "bytes32";
|
|
727
|
+
}, {
|
|
728
|
+
readonly name: "";
|
|
729
|
+
readonly type: "uint256";
|
|
730
|
+
readonly internalType: "uint256";
|
|
731
|
+
}];
|
|
732
|
+
readonly outputs: readonly [{
|
|
733
|
+
readonly name: "";
|
|
734
|
+
readonly type: "uint256";
|
|
735
|
+
readonly internalType: "uint256";
|
|
736
|
+
}];
|
|
737
|
+
readonly stateMutability: "view";
|
|
464
738
|
}, {
|
|
465
739
|
readonly type: "event";
|
|
466
740
|
readonly name: "OwnershipTransferred";
|
|
@@ -6,7 +6,7 @@ import { AdapterType, type VersionedAbi } from "../types.js";
|
|
|
6
6
|
* These ABIs correspond to the constructor parameters used in each adapter's getDeployParams method
|
|
7
7
|
* Based on the actual encodeAbiParameters calls in the adapter implementations
|
|
8
8
|
*/
|
|
9
|
-
export declare const adapterActionSignatures: PartialRecord<AdapterType, Record<number, string>>;
|
|
9
|
+
export declare const adapterActionSignatures: PartialRecord<AdapterType, Record<number, string | string[]>>;
|
|
10
10
|
/**
|
|
11
11
|
* Mapping of adapter types to their parsed ABIs
|
|
12
12
|
*/
|
package/dist/types/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.d.ts
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
export declare const iSecuritizeRedemptionGatewayAdapterV311Abi: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "acl";
|
|
4
|
+
readonly inputs: readonly [];
|
|
5
|
+
readonly outputs: readonly [{
|
|
6
|
+
readonly name: "";
|
|
7
|
+
readonly type: "address";
|
|
8
|
+
readonly internalType: "address";
|
|
9
|
+
}];
|
|
10
|
+
readonly stateMutability: "view";
|
|
11
|
+
}, {
|
|
2
12
|
readonly type: "function";
|
|
3
13
|
readonly name: "claim";
|
|
4
14
|
readonly inputs: readonly [{
|
|
@@ -36,11 +46,11 @@ export declare const iSecuritizeRedemptionGatewayAdapterV311Abi: readonly [{
|
|
|
36
46
|
readonly type: "function";
|
|
37
47
|
readonly name: "depositPhantomToken";
|
|
38
48
|
readonly inputs: readonly [{
|
|
39
|
-
readonly name: "
|
|
49
|
+
readonly name: "";
|
|
40
50
|
readonly type: "address";
|
|
41
51
|
readonly internalType: "address";
|
|
42
52
|
}, {
|
|
43
|
-
readonly name: "
|
|
53
|
+
readonly name: "";
|
|
44
54
|
readonly type: "uint256";
|
|
45
55
|
readonly internalType: "uint256";
|
|
46
56
|
}];
|
|
@@ -49,7 +59,7 @@ export declare const iSecuritizeRedemptionGatewayAdapterV311Abi: readonly [{
|
|
|
49
59
|
readonly type: "bool";
|
|
50
60
|
readonly internalType: "bool";
|
|
51
61
|
}];
|
|
52
|
-
readonly stateMutability: "
|
|
62
|
+
readonly stateMutability: "view";
|
|
53
63
|
}, {
|
|
54
64
|
readonly type: "function";
|
|
55
65
|
readonly name: "dsToken";
|
|
@@ -196,20 +206,32 @@ export declare const iSecuritizeRedemptionGatewayAdapterV311Abi: readonly [{
|
|
|
196
206
|
readonly type: "function";
|
|
197
207
|
readonly name: "withdrawPhantomToken";
|
|
198
208
|
readonly inputs: readonly [{
|
|
199
|
-
readonly name: "
|
|
209
|
+
readonly name: "";
|
|
200
210
|
readonly type: "address";
|
|
201
211
|
readonly internalType: "address";
|
|
202
212
|
}, {
|
|
203
|
-
readonly name: "
|
|
213
|
+
readonly name: "";
|
|
204
214
|
readonly type: "uint256";
|
|
205
215
|
readonly internalType: "uint256";
|
|
206
216
|
}];
|
|
207
217
|
readonly outputs: readonly [{
|
|
208
|
-
readonly name: "
|
|
218
|
+
readonly name: "";
|
|
209
219
|
readonly type: "bool";
|
|
210
220
|
readonly internalType: "bool";
|
|
211
221
|
}];
|
|
212
|
-
readonly stateMutability: "
|
|
222
|
+
readonly stateMutability: "view";
|
|
223
|
+
}, {
|
|
224
|
+
readonly type: "error";
|
|
225
|
+
readonly name: "AddressIsNotContractException";
|
|
226
|
+
readonly inputs: readonly [{
|
|
227
|
+
readonly name: "";
|
|
228
|
+
readonly type: "address";
|
|
229
|
+
readonly internalType: "address";
|
|
230
|
+
}];
|
|
231
|
+
}, {
|
|
232
|
+
readonly type: "error";
|
|
233
|
+
readonly name: "CallerNotCreditFacadeException";
|
|
234
|
+
readonly inputs: readonly [];
|
|
213
235
|
}, {
|
|
214
236
|
readonly type: "error";
|
|
215
237
|
readonly name: "IncorrectStakedPhantomTokenException";
|
|
@@ -218,4 +240,12 @@ export declare const iSecuritizeRedemptionGatewayAdapterV311Abi: readonly [{
|
|
|
218
240
|
readonly type: "error";
|
|
219
241
|
readonly name: "InvalidRedemptionGatewayException";
|
|
220
242
|
readonly inputs: readonly [];
|
|
243
|
+
}, {
|
|
244
|
+
readonly type: "error";
|
|
245
|
+
readonly name: "NotImplementedException";
|
|
246
|
+
readonly inputs: readonly [];
|
|
247
|
+
}, {
|
|
248
|
+
readonly type: "error";
|
|
249
|
+
readonly name: "ZeroAddressException";
|
|
250
|
+
readonly inputs: readonly [];
|
|
221
251
|
}];
|