@ember-finance/sdk 2.3.1 → 2.5.0-pre.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 (58) hide show
  1. package/dist/src/abis/AtomicLiquidity.json +4050 -0
  2. package/dist/src/abis/ERC20Token.json +2 -2
  3. package/dist/src/abis/EmberETHVault.json +279 -5
  4. package/dist/src/abis/EmberProtocolConfig.json +137 -2
  5. package/dist/src/abis/EmberVault.json +2 -2
  6. package/dist/src/abis/EmberVaultMintBurnOFTAdapter.json +43 -2
  7. package/dist/src/api/v2/apis/vaults-api.d.ts +16 -4
  8. package/dist/src/api/v2/apis/vaults-api.js +21 -7
  9. package/dist/src/api/v2/models/chain-vault-details.d.ts +7 -0
  10. package/dist/src/api/v2/models/evm-atomic-liquidity-lib.d.ts +48 -0
  11. package/dist/src/api/v2/models/evm-atomic-liquidity-lib.js +14 -0
  12. package/dist/src/api/v2/models/evm-atomic-vault.d.ts +102 -0
  13. package/dist/src/api/v2/models/evm-atomic-vault.js +14 -0
  14. package/dist/src/api/v2/models/evm-contracts.d.ts +16 -0
  15. package/dist/src/api/v2/models/fee-multiplier-tier.d.ts +30 -0
  16. package/dist/src/api/v2/models/fee-multiplier-tier.js +14 -0
  17. package/dist/src/api/v2/models/index.d.ts +4 -0
  18. package/dist/src/api/v2/models/index.js +4 -0
  19. package/dist/src/api/v2/models/instant-withdraw-config.d.ts +67 -0
  20. package/dist/src/api/v2/models/instant-withdraw-config.js +14 -0
  21. package/dist/src/api/v2/models/vault-detail.d.ts +11 -0
  22. package/dist/src/api/v2/models/vault-detail.js +4 -0
  23. package/dist/src/atomic/instant-withdraw.d.ts +125 -0
  24. package/dist/src/atomic/instant-withdraw.js +122 -0
  25. package/dist/src/evm-vaults/on-chain-calls/atomic-liquidity.d.ts +98 -0
  26. package/dist/src/evm-vaults/on-chain-calls/atomic-liquidity.js +209 -0
  27. package/dist/src/evm-vaults/on-chain-calls/index.d.ts +1 -0
  28. package/dist/src/evm-vaults/on-chain-calls/index.js +1 -0
  29. package/dist/src/evm-vaults/on-chain-calls/operator.d.ts +10 -0
  30. package/dist/src/evm-vaults/on-chain-calls/operator.js +28 -0
  31. package/dist/src/evm-vaults/on-chain-calls/tx-builder.d.ts +103 -0
  32. package/dist/src/evm-vaults/on-chain-calls/tx-builder.js +273 -0
  33. package/dist/src/evm-vaults/on-chain-calls/user.d.ts +50 -0
  34. package/dist/src/evm-vaults/on-chain-calls/user.js +75 -0
  35. package/dist/src/evm-vaults/on-chain-calls/vault-admin.d.ts +48 -0
  36. package/dist/src/evm-vaults/on-chain-calls/vault-admin.js +112 -0
  37. package/dist/src/evm-vaults/on-chain-calls/vault-reader.d.ts +6 -0
  38. package/dist/src/evm-vaults/on-chain-calls/vault-reader.js +9 -0
  39. package/dist/src/evm-vaults/utils/deployment-parser.d.ts +8 -0
  40. package/dist/src/evm-vaults/utils/deployment-parser.js +11 -0
  41. package/dist/src/sui-vaults/interfaces/index.d.ts +15 -0
  42. package/dist/src/sui-vaults/on-chain-calls/admin.d.ts +35 -0
  43. package/dist/src/sui-vaults/on-chain-calls/admin.js +56 -0
  44. package/dist/src/sui-vaults/on-chain-calls/atomic-liquidity.d.ts +62 -0
  45. package/dist/src/sui-vaults/on-chain-calls/atomic-liquidity.js +174 -0
  46. package/dist/src/sui-vaults/on-chain-calls/index.d.ts +1 -0
  47. package/dist/src/sui-vaults/on-chain-calls/index.js +1 -0
  48. package/dist/src/sui-vaults/on-chain-calls/operator.d.ts +127 -0
  49. package/dist/src/sui-vaults/on-chain-calls/operator.js +210 -0
  50. package/dist/src/sui-vaults/on-chain-calls/tx-builder.d.ts +482 -0
  51. package/dist/src/sui-vaults/on-chain-calls/tx-builder.js +1430 -0
  52. package/dist/src/sui-vaults/on-chain-calls/user.d.ts +105 -0
  53. package/dist/src/sui-vaults/on-chain-calls/user.js +190 -0
  54. package/dist/src/sui-vaults/on-chain-calls/vault-admin.d.ts +228 -1
  55. package/dist/src/sui-vaults/on-chain-calls/vault-admin.js +391 -0
  56. package/dist/src/sui-vaults/utils/deployment-parser.d.ts +12 -0
  57. package/dist/src/sui-vaults/utils/deployment-parser.js +24 -0
  58. package/package.json +3 -2
@@ -315,4 +315,486 @@ export declare class TxBuilder {
315
315
  * @returns TransactionBlock
316
316
  */
317
317
  cancelPendingWithdrawalRequest(vaultId: string, sequenceNumber: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
318
+ /**
319
+ * Creates a new atomic liquidity vault
320
+ * @param collateralCoinType Type of the collateral coin (T)
321
+ * @param name Name of the vault
322
+ * @param admin Admin of the vault
323
+ * @param operator Operator of the vault
324
+ * @param rateManager Rate manager of the vault
325
+ * @param maxRateChangePerUpdate Max rate change per update
326
+ * @param feePercentage Fee percentage
327
+ * @param minWithdrawalShares Min withdrawal shares
328
+ * @param rateUpdateInterval Rate update interval
329
+ * @param maxTVL Max TVL
330
+ * @param subAccounts Sub accounts
331
+ * @param options Optional tx building params
332
+ * @returns TransactionBlock
333
+ */
334
+ createAtomicVault(collateralCoinType: string, name: string, admin: string, operator: string, rateManager: string, maxRateChangePerUpdate: NumStr, feePercentage: NumStr, minWithdrawalShares: NumStr, rateUpdateInterval: NumStr, maxTVL: NumStr, subAccounts: string[], options?: ITxBuilderOptionalParams): TransactionBlock;
335
+ /**
336
+ * Changes the admin of an atomic vault (protocol admin)
337
+ * @param vaultId Id of the atomic vault
338
+ * @param newAdmin New admin address
339
+ * @param options Optional tx building params
340
+ * @returns TransactionBlock
341
+ */
342
+ atomicChangeVaultAdmin(vaultId: string, newAdmin: string, options?: ITxBuilderOptionalParams): TransactionBlock;
343
+ /**
344
+ * Updates the name of an atomic vault
345
+ * @param vaultId Id of the atomic vault
346
+ * @param name New vault name
347
+ * @param options Optional tx building params
348
+ * @returns TransactionBlock
349
+ */
350
+ atomicUpdateVaultName(vaultId: string, name: string, options?: ITxBuilderOptionalParams): TransactionBlock;
351
+ /**
352
+ * Updates the max TVL of an atomic vault
353
+ * @param vaultId Id of the atomic vault
354
+ * @param maxTVL Max TVL
355
+ * @param options Optional tx building params
356
+ * @returns TransactionBlock
357
+ */
358
+ atomicUpdateVaultMaxTvl(vaultId: string, maxTVL: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
359
+ /**
360
+ * Updates the max rate change per update of an atomic vault
361
+ * @param vaultId Id of the atomic vault
362
+ * @param maxRateChangePerUpdate Max rate change per update
363
+ * @param options Optional tx building params
364
+ * @returns TransactionBlock
365
+ */
366
+ atomicUpdateVaultMaxRateChangePerUpdate(vaultId: string, maxRateChangePerUpdate: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
367
+ /**
368
+ * Changes the rate update interval of an atomic vault
369
+ * @param vaultId Id of the atomic vault
370
+ * @param interval Rate update interval in ms
371
+ * @param options Optional tx building params
372
+ * @returns TransactionBlock
373
+ */
374
+ atomicChangeVaultRateUpdateInterval(vaultId: string, interval: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
375
+ /**
376
+ * Changes the operator of an atomic vault
377
+ * @param vaultId Id of the atomic vault
378
+ * @param newOperator New operator address
379
+ * @param options Optional tx building params
380
+ * @returns TransactionBlock
381
+ */
382
+ atomicChangeVaultOperator(vaultId: string, newOperator: string, options?: ITxBuilderOptionalParams): TransactionBlock;
383
+ /**
384
+ * Updates the rate manager of an atomic vault
385
+ * @param vaultId Id of the atomic vault
386
+ * @param newRateManager New rate manager address
387
+ * @param options Optional tx building params
388
+ * @returns TransactionBlock
389
+ */
390
+ atomicUpdateVaultRateManager(vaultId: string, newRateManager: string, options?: ITxBuilderOptionalParams): TransactionBlock;
391
+ /**
392
+ * Updates the fee percentage of an atomic vault
393
+ * @param vaultId Id of the atomic vault
394
+ * @param feePercentage Fee percentage
395
+ * @param options Optional tx building params
396
+ * @returns TransactionBlock
397
+ */
398
+ atomicUpdateVaultFeePercentage(vaultId: string, feePercentage: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
399
+ /**
400
+ * Sets the min withdrawal shares of an atomic vault
401
+ * @param vaultId Id of the atomic vault
402
+ * @param minWithdrawalShares Min withdrawal shares
403
+ * @param options Optional tx building params
404
+ * @returns TransactionBlock
405
+ */
406
+ atomicSetMinWithdrawalShares(vaultId: string, minWithdrawalShares: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
407
+ /**
408
+ * Sets / unsets a sub account on an atomic vault
409
+ * @param vaultId Id of the atomic vault
410
+ * @param account Sub account address
411
+ * @param status Status of the sub account
412
+ * @param options Optional tx building params
413
+ * @returns TransactionBlock
414
+ */
415
+ atomicSetSubAccount(vaultId: string, account: string, status: boolean, options?: ITxBuilderOptionalParams): TransactionBlock;
416
+ /**
417
+ * Sets the pause status of an operation on an atomic vault
418
+ * @param vaultId Id of the atomic vault
419
+ * @param operation Operation identifier bytes (vector<u8>)
420
+ * @param paused Paused status
421
+ * @param options Optional tx building params
422
+ * @returns TransactionBlock
423
+ */
424
+ atomicSetPauseStatus(vaultId: string, operation: number[], paused: boolean, options?: ITxBuilderOptionalParams): TransactionBlock;
425
+ /**
426
+ * Sets the max instant withdraw shares of an atomic vault
427
+ * @param vaultId Id of the atomic vault
428
+ * @param newMax New max instant withdraw shares
429
+ * @param options Optional tx building params
430
+ * @returns TransactionBlock
431
+ */
432
+ atomicSetMaxInstantWithdrawShares(vaultId: string, newMax: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
433
+ /**
434
+ * Sets the instant withdraw fee percentage of an atomic vault
435
+ * @param vaultId Id of the atomic vault
436
+ * @param newFeePercentage New instant withdraw fee percentage
437
+ * @param options Optional tx building params
438
+ * @returns TransactionBlock
439
+ */
440
+ atomicSetInstantWithdrawFeePercentage(vaultId: string, newFeePercentage: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
441
+ /**
442
+ * Whitelists (or updates) an ember share source vault for an atomic vault
443
+ * @param vaultId Id of the atomic vault
444
+ * @param shareVaultId Id of the source ember share vault
445
+ * @param whitelisted Whitelist status
446
+ * @param feePercentage Fee percentage
447
+ * @param maxCapacityPercentage Max capacity percentage
448
+ * @param holdbackPercentage Holdback percentage
449
+ * @param maxUtilizationPercentage Max utilization percentage
450
+ * @param options Optional tx building params
451
+ * @returns TransactionBlock
452
+ */
453
+ atomicSetEmberShareWhitelist(vaultId: string, shareVaultId: string, whitelisted: boolean, feePercentage: NumStr, maxCapacityPercentage: NumStr, holdbackPercentage: NumStr, maxUtilizationPercentage: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
454
+ /**
455
+ * Sets the max utilization percentage of an ember share source vault
456
+ * @param vaultId Id of the atomic vault
457
+ * @param shareVaultId Id of the source ember share vault
458
+ * @param maxUtilizationPercentage Max utilization percentage
459
+ * @param options Optional tx building params
460
+ * @returns TransactionBlock
461
+ */
462
+ atomicSetEmberShareMaxUtilization(vaultId: string, shareVaultId: string, maxUtilizationPercentage: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
463
+ /**
464
+ * Sets a fee multiplier tier for an ember share source vault
465
+ * @param vaultId Id of the atomic vault
466
+ * @param shareVaultId Id of the source ember share vault
467
+ * @param threshold Tier threshold
468
+ * @param multiplier Tier multiplier
469
+ * @param options Optional tx building params
470
+ * @returns TransactionBlock
471
+ */
472
+ atomicSetEmberShareFeeMultiplierTier(vaultId: string, shareVaultId: string, threshold: NumStr, multiplier: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
473
+ /**
474
+ * Removes a fee multiplier tier for an ember share source vault
475
+ * @param vaultId Id of the atomic vault
476
+ * @param shareVaultId Id of the source ember share vault
477
+ * @param threshold Tier threshold to remove
478
+ * @param options Optional tx building params
479
+ * @returns TransactionBlock
480
+ */
481
+ atomicRemoveEmberShareFeeMultiplierTier(vaultId: string, shareVaultId: string, threshold: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
482
+ /**
483
+ * Sets a swap waiver for an account on an atomic vault
484
+ * @param vaultId Id of the atomic vault
485
+ * @param account Account address
486
+ * @param feeWaived Whether the swap fee is waived
487
+ * @param holdbackWaived Whether the holdback is waived
488
+ * @param options Optional tx building params
489
+ * @returns TransactionBlock
490
+ */
491
+ atomicSetSwapWaiver(vaultId: string, account: string, feeWaived: boolean, holdbackWaived: boolean, options?: ITxBuilderOptionalParams): TransactionBlock;
492
+ /**
493
+ * Sets the permanent withdrawal fee percentage of an atomic vault
494
+ * @param vaultId Id of the atomic vault
495
+ * @param permanentFeePercentage Permanent fee percentage
496
+ * @param options Optional tx building params
497
+ * @returns TransactionBlock
498
+ */
499
+ atomicSetPermanentFeePercentage(vaultId: string, permanentFeePercentage: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
500
+ /**
501
+ * Sets the time based withdrawal fee percentage of an atomic vault
502
+ * @param vaultId Id of the atomic vault
503
+ * @param timeBasedFeePercentage Time based fee percentage
504
+ * @param options Optional tx building params
505
+ * @returns TransactionBlock
506
+ */
507
+ atomicSetTimeBasedFeePercentage(vaultId: string, timeBasedFeePercentage: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
508
+ /**
509
+ * Sets the time based withdrawal fee threshold of an atomic vault
510
+ * @param vaultId Id of the atomic vault
511
+ * @param timeBasedFeeThreshold Time based fee threshold
512
+ * @param options Optional tx building params
513
+ * @returns TransactionBlock
514
+ */
515
+ atomicSetTimeBasedFeeThreshold(vaultId: string, timeBasedFeeThreshold: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
516
+ /**
517
+ * Sets / unsets a user on the fee exemption list of an atomic vault
518
+ * @param vaultId Id of the atomic vault
519
+ * @param user User address
520
+ * @param status Status of the user in the fee exemption list
521
+ * @param options Optional tx building params
522
+ * @returns TransactionBlock
523
+ */
524
+ atomicSetFeeExemptionList(vaultId: string, user: string, status: boolean, options?: ITxBuilderOptionalParams): TransactionBlock;
525
+ /**
526
+ * Switches an atomic vault from the Suilend strategy to STRATEGY_NONE,
527
+ * draining cTokens back into the vault balance.
528
+ * @param vaultId Id of the atomic vault
529
+ * @param poolCoinType Suilend pool coin type (P)
530
+ * @param lendingMarketId Object id of the Suilend LendingMarket<P>
531
+ * @param options Optional tx building params
532
+ * @returns TransactionBlock
533
+ */
534
+ atomicSetStrategyNoneFromSuilend(vaultId: string, poolCoinType: string, lendingMarketId: string, options?: ITxBuilderOptionalParams): TransactionBlock;
535
+ /**
536
+ * Switches an atomic vault from the AlphaLend strategy to STRATEGY_NONE,
537
+ * draining the full position collateral back into the vault balance.
538
+ * @param vaultId Id of the atomic vault
539
+ * @param lendingProtocolId Object id of the AlphaLend LendingProtocol
540
+ * @param options Optional tx building params
541
+ * @returns TransactionBlock
542
+ */
543
+ atomicSetStrategyNoneFromAlphalend(vaultId: string, lendingProtocolId: string, options?: ITxBuilderOptionalParams): TransactionBlock;
544
+ /**
545
+ * Sets the Suilend strategy for an atomic vault
546
+ * @param vaultId Id of the atomic vault
547
+ * @param reserveArrayIndex Suilend reserve array index
548
+ * @param options Optional tx building params
549
+ * @returns TransactionBlock
550
+ */
551
+ atomicSetStrategySuilend(vaultId: string, reserveArrayIndex: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
552
+ /**
553
+ * Sets the AlphaLend strategy for an atomic vault
554
+ * @param vaultId Id of the atomic vault
555
+ * @param lendingProtocolId Object id of the AlphaLend LendingProtocol
556
+ * @param marketId AlphaLend market id
557
+ * @param options Optional tx building params
558
+ * @returns TransactionBlock
559
+ */
560
+ atomicSetStrategyAlphalend(vaultId: string, lendingProtocolId: string, marketId: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
561
+ /**
562
+ * Sets / unsets a blacklisted account on an atomic vault
563
+ * @param vaultId Id of the atomic vault
564
+ * @param account Account address
565
+ * @param status Blacklist status
566
+ * @param options Optional tx building params
567
+ * @returns TransactionBlock
568
+ */
569
+ atomicSetBlacklistedAccount(vaultId: string, account: string, status: boolean, options?: ITxBuilderOptionalParams): TransactionBlock;
570
+ /**
571
+ * Sets / unsets a user on the deposit user list of an atomic vault
572
+ * @param vaultId Id of the atomic vault
573
+ * @param user User address
574
+ * @param status Status of the user in the deposit list
575
+ * @param options Optional tx building params
576
+ * @returns TransactionBlock
577
+ */
578
+ atomicSetDepositUserList(vaultId: string, user: string, status: boolean, options?: ITxBuilderOptionalParams): TransactionBlock;
579
+ /**
580
+ * Supplies collateral from an atomic vault to one of its sub accounts
581
+ * @param vaultId Id of the atomic vault
582
+ * @param subAccount Sub account address
583
+ * @param amount Amount to supply
584
+ * @param options Optional tx building params
585
+ * @returns TransactionBlock
586
+ */
587
+ atomicSupplyToSubAccount(vaultId: string, subAccount: string, amount: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
588
+ /**
589
+ * Deposits collateral back into an atomic vault from a sub account
590
+ * @param vaultId Id of the atomic vault
591
+ * @param tokenId Object id of the Receiving<Coin<T>> payment to claim
592
+ * @param subAccount Sub account address
593
+ * @param options Optional tx building params
594
+ * @returns TransactionBlock
595
+ */
596
+ atomicDepositFromSubAccount(vaultId: string, tokenId: string, subAccount: string, options?: ITxBuilderOptionalParams): TransactionBlock;
597
+ /**
598
+ * Collects the platform fee of an atomic vault
599
+ * @param vaultId Id of the atomic vault
600
+ * @param loss Reported loss amount
601
+ * @param options Optional tx building params
602
+ * @returns TransactionBlock
603
+ */
604
+ atomicCollectPlatformFee(vaultId: string, loss: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
605
+ /**
606
+ * Processes pending withdrawal requests of an atomic vault
607
+ * @param vaultId Id of the atomic vault
608
+ * @param maxRequests Max number of requests to process
609
+ * @param options Optional tx building params
610
+ * @returns TransactionBlock
611
+ */
612
+ atomicProcessWithdrawalRequests(vaultId: string, maxRequests: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
613
+ /**
614
+ * Processes pending withdrawal requests of an atomic vault up to a timestamp
615
+ * @param vaultId Id of the atomic vault
616
+ * @param timestamp Timestamp to process up to
617
+ * @param options Optional tx building params
618
+ * @returns TransactionBlock
619
+ */
620
+ atomicProcessWithdrawalRequestsUpToTimestamp(vaultId: string, timestamp: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
621
+ /**
622
+ * Supplies collateral from an atomic vault into the Suilend strategy
623
+ * @param vaultId Id of the atomic vault
624
+ * @param poolCoinType Suilend pool coin type (P)
625
+ * @param lendingMarketId Object id of the Suilend LendingMarket<P>
626
+ * @param amount Amount to supply
627
+ * @param options Optional tx building params
628
+ * @returns TransactionBlock
629
+ */
630
+ atomicSupplyToSuilendStrategy(vaultId: string, poolCoinType: string, lendingMarketId: string, amount: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
631
+ /**
632
+ * Supplies collateral from an atomic vault into the AlphaLend strategy
633
+ * @param vaultId Id of the atomic vault
634
+ * @param lendingProtocolId Object id of the AlphaLend LendingProtocol
635
+ * @param amount Amount to supply
636
+ * @param options Optional tx building params
637
+ * @returns TransactionBlock
638
+ */
639
+ atomicSupplyToAlphalendStrategy(vaultId: string, lendingProtocolId: string, amount: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
640
+ /**
641
+ * Withdraws collateral from the Suilend strategy back into an atomic vault
642
+ * @param vaultId Id of the atomic vault
643
+ * @param poolCoinType Suilend pool coin type (P)
644
+ * @param lendingMarketId Object id of the Suilend LendingMarket<P>
645
+ * @param amount Amount to withdraw
646
+ * @param options Optional tx building params
647
+ * @returns TransactionBlock
648
+ */
649
+ atomicWithdrawFromSuilendStrategy(vaultId: string, poolCoinType: string, lendingMarketId: string, amount: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
650
+ /**
651
+ * Withdraws collateral from the AlphaLend strategy back into an atomic vault
652
+ * @param vaultId Id of the atomic vault
653
+ * @param lendingProtocolId Object id of the AlphaLend LendingProtocol
654
+ * @param amount Amount to withdraw
655
+ * @param options Optional tx building params
656
+ * @returns TransactionBlock
657
+ */
658
+ atomicWithdrawFromAlphalendStrategy(vaultId: string, lendingProtocolId: string, amount: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
659
+ /**
660
+ * Releases users' holdback for an ember share source vault
661
+ * @param vaultId Id of the atomic vault
662
+ * @param shareVaultId Id of the source ember share vault
663
+ * @param unwindingPercentage Unwinding percentage
664
+ * @param maxEntries Max entries to process
665
+ * @param options Optional tx building params
666
+ * @returns TransactionBlock
667
+ */
668
+ atomicReleaseUsersHoldback(vaultId: string, shareVaultId: string, unwindingPercentage: NumStr, maxEntries: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
669
+ /**
670
+ * Redeems collected ember shares from an atomic vault against a source vault
671
+ * @param vaultId Id of the atomic vault
672
+ * @param sourceReceiptType Receipt coin type of the source vault (R)
673
+ * @param sourceVaultId Object id of the source Vault<T, R>
674
+ * @param amount Amount of shares to redeem
675
+ * @param options Optional tx building params
676
+ * @returns TransactionBlock
677
+ */
678
+ atomicRedeemCollectedEmberShares(vaultId: string, sourceReceiptType: string, sourceVaultId: string, amount: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
679
+ /**
680
+ * Claims received collateral (a Receiving<Coin<T>>) for an atomic vault
681
+ * @param vaultId Id of the atomic vault
682
+ * @param tokenId Object id of the Receiving<Coin<T>> payment to claim
683
+ * @param options Optional tx building params
684
+ * @returns TransactionBlock
685
+ */
686
+ atomicClaimReceivedCollateral(vaultId: string, tokenId: string, options?: ITxBuilderOptionalParams): TransactionBlock;
687
+ /**
688
+ * Claims returned ember shares (a Receiving<Coin<R>>) for an atomic vault
689
+ * @param vaultId Id of the atomic vault
690
+ * @param sourceReceiptType Receipt coin type of the source vault (R)
691
+ * @param sourceVaultId Id of the source vault the shares belong to
692
+ * @param tokenId Object id of the Receiving<Coin<R>> payment to claim
693
+ * @param options Optional tx building params
694
+ * @returns TransactionBlock
695
+ */
696
+ atomicClaimReturnedEmberShares(vaultId: string, sourceReceiptType: string, sourceVaultId: string, tokenId: string, options?: ITxBuilderOptionalParams): TransactionBlock;
697
+ /**
698
+ * Updates the rate of an atomic vault (rate manager)
699
+ * @param vaultId Id of the atomic vault
700
+ * @param newRate New rate
701
+ * @param options Optional tx building params
702
+ * @returns TransactionBlock
703
+ */
704
+ atomicUpdateVaultRate(vaultId: string, newRate: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
705
+ /**
706
+ * Deposits collateral into an atomic vault, minting shares
707
+ * @param vaultId Id of the atomic vault
708
+ * @param coinId Object id of the Coin<T> to deposit
709
+ * @param minShares Minimum number of shares to mint
710
+ * @param receiver Optional receiver address (defaults on-chain to the sender)
711
+ * @param options Optional tx building params
712
+ * @returns TransactionBlock
713
+ */
714
+ atomicDeposit(vaultId: string, coinId: string, minShares: NumStr, receiver: string | null | undefined, options?: ITxBuilderOptionalParams): TransactionBlock;
715
+ /**
716
+ * Redeems shares from an atomic vault (queued withdrawal)
717
+ * @param vaultId Id of the atomic vault
718
+ * @param shares Number of shares to redeem
719
+ * @param receiver Optional receiver address (defaults on-chain to the sender)
720
+ * @param options Optional tx building params
721
+ * @returns TransactionBlock
722
+ */
723
+ atomicRedeemShares(vaultId: string, shares: NumStr, receiver: string | null | undefined, options?: ITxBuilderOptionalParams): TransactionBlock;
724
+ /**
725
+ * Cancels a pending withdrawal request on an atomic vault
726
+ * @param vaultId Id of the atomic vault
727
+ * @param sequenceNumber Sequence number of the request
728
+ * @param options Optional tx building params
729
+ * @returns TransactionBlock
730
+ */
731
+ atomicCancelPendingWithdrawalRequest(vaultId: string, sequenceNumber: NumStr, options?: ITxBuilderOptionalParams): TransactionBlock;
732
+ /**
733
+ * Performs an instant withdraw from an atomic vault (no strategy)
734
+ * @param vaultId Id of the atomic vault
735
+ * @param shares Number of shares to withdraw
736
+ * @param receiver Optional receiver address (defaults on-chain to the sender)
737
+ * @param options Optional tx building params
738
+ * @returns TransactionBlock
739
+ */
740
+ atomicInstantWithdraw(vaultId: string, shares: NumStr, receiver: string | null | undefined, options?: ITxBuilderOptionalParams): TransactionBlock;
741
+ /**
742
+ * Performs an instant withdraw from an atomic vault routed through Suilend
743
+ * @param vaultId Id of the atomic vault
744
+ * @param poolCoinType Suilend pool coin type (P)
745
+ * @param lendingMarketId Object id of the Suilend LendingMarket<P>
746
+ * @param shares Number of shares to withdraw
747
+ * @param receiver Optional receiver address (defaults on-chain to the sender)
748
+ * @param options Optional tx building params
749
+ * @returns TransactionBlock
750
+ */
751
+ atomicInstantWithdrawWithSuilend(vaultId: string, poolCoinType: string, lendingMarketId: string, shares: NumStr, receiver: string | null | undefined, options?: ITxBuilderOptionalParams): TransactionBlock;
752
+ /**
753
+ * Performs an instant withdraw from an atomic vault routed through AlphaLend
754
+ * @param vaultId Id of the atomic vault
755
+ * @param lendingProtocolId Object id of the AlphaLend LendingProtocol
756
+ * @param shares Number of shares to withdraw
757
+ * @param receiver Optional receiver address (defaults on-chain to the sender)
758
+ * @param options Optional tx building params
759
+ * @returns TransactionBlock
760
+ */
761
+ atomicInstantWithdrawWithAlphalend(vaultId: string, lendingProtocolId: string, shares: NumStr, receiver: string | null | undefined, options?: ITxBuilderOptionalParams): TransactionBlock;
762
+ /**
763
+ * Swaps ember shares (Coin<R>) into an atomic vault, minting atomic shares
764
+ * @param vaultId Id of the atomic vault
765
+ * @param sourceReceiptType Receipt coin type of the source vault (R)
766
+ * @param sourceVaultId Object id of the source Vault<T, R>
767
+ * @param shareCoinId Object id of the Coin<R> to swap
768
+ * @param receiver Optional receiver address (defaults on-chain to the sender)
769
+ * @param options Optional tx building params
770
+ * @returns TransactionBlock
771
+ */
772
+ atomicSwapEmberShares(vaultId: string, sourceReceiptType: string, sourceVaultId: string, shareCoinId: string, receiver: string | null | undefined, options?: ITxBuilderOptionalParams): TransactionBlock;
773
+ /**
774
+ * Swaps ember shares (Coin<R>) into an atomic vault, routing collateral
775
+ * through the Suilend strategy
776
+ * @param vaultId Id of the atomic vault
777
+ * @param sourceReceiptType Receipt coin type of the source vault (R)
778
+ * @param poolCoinType Suilend pool coin type (P)
779
+ * @param sourceVaultId Object id of the source Vault<T, R>
780
+ * @param lendingMarketId Object id of the Suilend LendingMarket<P>
781
+ * @param shareCoinId Object id of the Coin<R> to swap
782
+ * @param receiver Optional receiver address (defaults on-chain to the sender)
783
+ * @param options Optional tx building params
784
+ * @returns TransactionBlock
785
+ */
786
+ atomicSwapEmberSharesWithSuilend(vaultId: string, sourceReceiptType: string, poolCoinType: string, sourceVaultId: string, lendingMarketId: string, shareCoinId: string, receiver: string | null | undefined, options?: ITxBuilderOptionalParams): TransactionBlock;
787
+ /**
788
+ * Swaps ember shares (Coin<R>) into an atomic vault, routing collateral
789
+ * through the AlphaLend strategy
790
+ * @param vaultId Id of the atomic vault
791
+ * @param sourceReceiptType Receipt coin type of the source vault (R)
792
+ * @param sourceVaultId Object id of the source Vault<T, R>
793
+ * @param lendingProtocolId Object id of the AlphaLend LendingProtocol
794
+ * @param shareCoinId Object id of the Coin<R> to swap
795
+ * @param receiver Optional receiver address (defaults on-chain to the sender)
796
+ * @param options Optional tx building params
797
+ * @returns TransactionBlock
798
+ */
799
+ atomicSwapEmberSharesWithAlphalend(vaultId: string, sourceReceiptType: string, sourceVaultId: string, lendingProtocolId: string, shareCoinId: string, receiver: string | null | undefined, options?: ITxBuilderOptionalParams): TransactionBlock;
318
800
  }