@gearbox-protocol/sdk 14.12.0-next.37 → 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.
Files changed (47) hide show
  1. package/dist/cjs/abi/IWithdrawalCompressorV313.js +78 -0
  2. package/dist/cjs/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +85 -1
  3. package/dist/cjs/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +85 -1
  4. package/dist/cjs/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +85 -1
  5. package/dist/cjs/abi/compressors/withdrawalCompressor.js +197 -1
  6. package/dist/cjs/abi/helpers/redemptionLogger.js +160 -0
  7. package/dist/cjs/abi/router/midasWorker.js +4 -4
  8. package/dist/cjs/dev/AccountOpener.js +2 -2
  9. package/dist/cjs/plugins/adapters/abi/actionAbi.js +13 -5
  10. package/dist/cjs/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js +23 -8
  11. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +2 -1
  12. package/dist/cjs/plugins/adapters/abi/securitize/iMidasGatewayAdapter.js +354 -0
  13. package/dist/cjs/plugins/adapters/abi/securitize/index.js +2 -0
  14. package/dist/cjs/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.js +1 -1
  15. package/dist/cjs/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +90 -5
  16. package/dist/esm/abi/IWithdrawalCompressorV313.js +78 -0
  17. package/dist/esm/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +85 -1
  18. package/dist/esm/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +85 -1
  19. package/dist/esm/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +85 -1
  20. package/dist/esm/abi/compressors/withdrawalCompressor.js +197 -1
  21. package/dist/esm/abi/helpers/redemptionLogger.js +136 -0
  22. package/dist/esm/abi/router/midasWorker.js +4 -4
  23. package/dist/esm/dev/AccountOpener.js +2 -2
  24. package/dist/esm/plugins/adapters/abi/actionAbi.js +13 -5
  25. package/dist/esm/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js +23 -8
  26. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +2 -1
  27. package/dist/esm/plugins/adapters/abi/securitize/iMidasGatewayAdapter.js +330 -0
  28. package/dist/esm/plugins/adapters/abi/securitize/index.js +1 -0
  29. package/dist/esm/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.js +1 -1
  30. package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +90 -5
  31. package/dist/types/abi/IWithdrawalCompressorV313.d.ts +103 -0
  32. package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts +121 -0
  33. package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +121 -0
  34. package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +121 -0
  35. package/dist/types/abi/compressors/withdrawalCompressor.d.ts +274 -0
  36. package/dist/types/abi/helpers/redemptionLogger.d.ts +167 -0
  37. package/dist/types/abi/router/midasWorker.d.ts +4 -4
  38. package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +274 -0
  39. package/dist/types/plugins/adapters/abi/actionAbi.d.ts +1 -1
  40. package/dist/types/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.d.ts +37 -7
  41. package/dist/types/plugins/adapters/abi/securitize/iMidasGatewayAdapter.d.ts +555 -0
  42. package/dist/types/plugins/adapters/abi/securitize/index.d.ts +1 -0
  43. package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +37 -7
  44. package/dist/types/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.d.ts +1 -1
  45. package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.d.ts +104 -1
  46. package/dist/types/sdk/accounts/withdrawal-compressor/types.d.ts +3 -2
  47. package/package.json +1 -1
@@ -214,6 +214,109 @@ declare const abi: readonly [{
214
214
  }];
215
215
  }];
216
216
  readonly stateMutability: "view";
217
+ }, {
218
+ readonly type: "function";
219
+ readonly name: "getExternalAccountCurrentWithdrawals";
220
+ readonly inputs: readonly [{
221
+ readonly name: "withdrawalTokens";
222
+ readonly type: "address[]";
223
+ readonly internalType: "address[]";
224
+ }, {
225
+ readonly name: "account";
226
+ readonly type: "address";
227
+ readonly internalType: "address";
228
+ }];
229
+ readonly outputs: readonly [{
230
+ readonly name: "";
231
+ readonly type: "tuple[]";
232
+ readonly internalType: "struct ClaimableWithdrawal[]";
233
+ readonly components: readonly [{
234
+ readonly name: "token";
235
+ readonly type: "address";
236
+ readonly internalType: "address";
237
+ }, {
238
+ readonly name: "withdrawalPhantomToken";
239
+ readonly type: "address";
240
+ readonly internalType: "address";
241
+ }, {
242
+ readonly name: "withdrawalTokenSpent";
243
+ readonly type: "uint256";
244
+ readonly internalType: "uint256";
245
+ }, {
246
+ readonly name: "outputs";
247
+ readonly type: "tuple[]";
248
+ readonly internalType: "struct WithdrawalOutput[]";
249
+ readonly components: readonly [{
250
+ readonly name: "token";
251
+ readonly type: "address";
252
+ readonly internalType: "address";
253
+ }, {
254
+ readonly name: "isDelayed";
255
+ readonly type: "bool";
256
+ readonly internalType: "bool";
257
+ }, {
258
+ readonly name: "amount";
259
+ readonly type: "uint256";
260
+ readonly internalType: "uint256";
261
+ }];
262
+ }, {
263
+ readonly name: "claimCalls";
264
+ readonly type: "tuple[]";
265
+ readonly internalType: "struct MultiCall[]";
266
+ readonly components: readonly [{
267
+ readonly name: "target";
268
+ readonly type: "address";
269
+ readonly internalType: "address";
270
+ }, {
271
+ readonly name: "callData";
272
+ readonly type: "bytes";
273
+ readonly internalType: "bytes";
274
+ }];
275
+ }, {
276
+ readonly name: "extraData";
277
+ readonly type: "bytes";
278
+ readonly internalType: "bytes";
279
+ }];
280
+ }, {
281
+ readonly name: "";
282
+ readonly type: "tuple[]";
283
+ readonly internalType: "struct PendingWithdrawal[]";
284
+ readonly components: readonly [{
285
+ readonly name: "token";
286
+ readonly type: "address";
287
+ readonly internalType: "address";
288
+ }, {
289
+ readonly name: "withdrawalPhantomToken";
290
+ readonly type: "address";
291
+ readonly internalType: "address";
292
+ }, {
293
+ readonly name: "expectedOutputs";
294
+ readonly type: "tuple[]";
295
+ readonly internalType: "struct WithdrawalOutput[]";
296
+ readonly components: readonly [{
297
+ readonly name: "token";
298
+ readonly type: "address";
299
+ readonly internalType: "address";
300
+ }, {
301
+ readonly name: "isDelayed";
302
+ readonly type: "bool";
303
+ readonly internalType: "bool";
304
+ }, {
305
+ readonly name: "amount";
306
+ readonly type: "uint256";
307
+ readonly internalType: "uint256";
308
+ }];
309
+ }, {
310
+ readonly name: "claimableAt";
311
+ readonly type: "uint256";
312
+ readonly internalType: "uint256";
313
+ }, {
314
+ readonly name: "extraData";
315
+ readonly type: "bytes";
316
+ readonly internalType: "bytes";
317
+ }];
318
+ }];
319
+ readonly stateMutability: "view";
217
320
  }, {
218
321
  readonly type: "function";
219
322
  readonly name: "getWithdrawalStatus";
@@ -507,7 +610,7 @@ export declare class WithdrawalCompressorV313Contract extends AbstractWithdrawal
507
610
  /**
508
611
  * {@inheritDoc IWithdrawalCompressorContract.getExternalAccountCurrentWithdrawals}
509
612
  **/
510
- getExternalAccountCurrentWithdrawals(withdrawalToken: Address, account: Address): Promise<CurrentWithdrawals>;
613
+ getExternalAccountCurrentWithdrawals(account: Address, ...withdrawalTokens: Address[]): Promise<CurrentWithdrawals>;
511
614
  /**
512
615
  * {@inheritDoc IWithdrawalCompressorContract.getWithdrawalStatus}
513
616
  **/
@@ -361,12 +361,13 @@ export interface IWithdrawalCompressorContract extends IBaseContract {
361
361
  getCurrentWithdrawals(creditAccount: Address): Promise<CurrentWithdrawals>;
362
362
  /**
363
363
  * Returns claimable and pending delayed withdrawals of an external address
364
- * (non-credit-account, e.g. liquidator EOA) in the given withdrawal phantom token.
364
+ * (non-credit-account, e.g. liquidator EOA) in the given withdrawal phantom
365
+ * tokens. With no tokens given, returns empty lists.
365
366
  * Only supported on v313+ compressors; on older versions throws if
366
367
  * `sdk.strictContractTypes` is `true`, otherwise logs a warning and
367
368
  * returns empty lists.
368
369
  **/
369
- getExternalAccountCurrentWithdrawals(withdrawalToken: Address, account: Address): Promise<CurrentWithdrawals>;
370
+ getExternalAccountCurrentWithdrawals(account: Address, ...withdrawalTokens: Address[]): Promise<CurrentWithdrawals>;
370
371
  /**
371
372
  * Returns statuses of the given redeemer contracts.
372
373
  * Only supported on v313+ compressors; on older versions throws if
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "14.12.0-next.37",
3
+ "version": "14.12.0-next.39",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "repository": {