@kamino-finance/metavault-sdk 2.0.0 → 2.1.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 (71) hide show
  1. package/README.md +17 -1
  2. package/dist/@codegen/metavault/accounts/MetavaultState.d.ts +24 -3
  3. package/dist/@codegen/metavault/accounts/MetavaultState.d.ts.map +1 -1
  4. package/dist/@codegen/metavault/accounts/MetavaultState.js +19 -6
  5. package/dist/@codegen/metavault/accounts/MetavaultState.js.map +1 -1
  6. package/dist/@codegen/metavault/errors/custom.d.ts +112 -120
  7. package/dist/@codegen/metavault/errors/custom.d.ts.map +1 -1
  8. package/dist/@codegen/metavault/errors/custom.js +224 -238
  9. package/dist/@codegen/metavault/errors/custom.js.map +1 -1
  10. package/dist/@codegen/metavault/types/VaultConfigField.d.ts +13 -0
  11. package/dist/@codegen/metavault/types/VaultConfigField.d.ts.map +1 -1
  12. package/dist/@codegen/metavault/types/VaultConfigField.js +25 -1
  13. package/dist/@codegen/metavault/types/VaultConfigField.js.map +1 -1
  14. package/dist/@codegen/metavault/types/index.d.ts +2 -2
  15. package/dist/@codegen/metavault/types/index.d.ts.map +1 -1
  16. package/dist/server/index.d.ts +1 -1
  17. package/dist/server/index.d.ts.map +1 -1
  18. package/dist/server/index.js +2 -1
  19. package/dist/server/index.js.map +1 -1
  20. package/dist/server/vaultConfig.d.ts +33 -13
  21. package/dist/server/vaultConfig.d.ts.map +1 -1
  22. package/dist/server/vaultConfig.js +68 -8
  23. package/dist/server/vaultConfig.js.map +1 -1
  24. package/dist/utils/configParsing.d.ts +1 -1
  25. package/dist/utils/configParsing.d.ts.map +1 -1
  26. package/dist/utils/configParsing.js +4 -0
  27. package/dist/utils/configParsing.js.map +1 -1
  28. package/dist/utils/index.d.ts +2 -0
  29. package/dist/utils/index.d.ts.map +1 -1
  30. package/dist/utils/index.js +2 -0
  31. package/dist/utils/index.js.map +1 -1
  32. package/dist/utils/metavaultAccount.d.ts +22 -0
  33. package/dist/utils/metavaultAccount.d.ts.map +1 -0
  34. package/dist/utils/metavaultAccount.js +34 -0
  35. package/dist/utils/metavaultAccount.js.map +1 -0
  36. package/dist/utils/sdkErrorCodes.d.ts +7 -0
  37. package/dist/utils/sdkErrorCodes.d.ts.map +1 -0
  38. package/dist/utils/sdkErrorCodes.js +37 -0
  39. package/dist/utils/sdkErrorCodes.js.map +1 -0
  40. package/dist/utils/sdkErrors.d.ts +19 -1
  41. package/dist/utils/sdkErrors.d.ts.map +1 -1
  42. package/dist/utils/sdkErrors.js +46 -27
  43. package/dist/utils/sdkErrors.js.map +1 -1
  44. package/dist/utils/send.d.ts +3 -0
  45. package/dist/utils/send.d.ts.map +1 -1
  46. package/dist/utils/send.js +10 -1
  47. package/dist/utils/send.js.map +1 -1
  48. package/dist/utils/simulation.d.ts +11 -0
  49. package/dist/utils/simulation.d.ts.map +1 -1
  50. package/dist/utils/simulation.js +9 -1
  51. package/dist/utils/simulation.js.map +1 -1
  52. package/dist/utils/summaries.d.ts +2 -0
  53. package/dist/utils/summaries.d.ts.map +1 -1
  54. package/dist/utils/summaries.js +1 -0
  55. package/dist/utils/summaries.js.map +1 -1
  56. package/package.json +1 -1
  57. package/src/@codegen/metavault/accounts/MetavaultState.ts +35 -8
  58. package/src/@codegen/metavault/errors/custom.ts +222 -239
  59. package/src/@codegen/metavault/types/VaultConfigField.ts +30 -0
  60. package/src/@codegen/metavault/types/index.ts +2 -0
  61. package/src/idl/metavault.json +70 -62
  62. package/src/server/index.ts +1 -1
  63. package/src/server/vaultConfig.ts +78 -61
  64. package/src/utils/configParsing.ts +4 -0
  65. package/src/utils/index.ts +2 -0
  66. package/src/utils/metavaultAccount.ts +45 -0
  67. package/src/utils/sdkErrorCodes.ts +35 -0
  68. package/src/utils/sdkErrors.ts +65 -16
  69. package/src/utils/send.ts +12 -1
  70. package/src/utils/simulation.ts +10 -1
  71. package/src/utils/summaries.ts +3 -0
@@ -1,4 +1,4 @@
1
- export type CustomError = DepositAmountsZero | SharesIssuedAmountDoesNotMatch | WithdrawAmountBelowMinimum | VaultTokenAlreadyExists | TokenNotEnabledInVault | AdminAuthorityIncorrect | BaseVaultAuthorityIncorrect | SharesMintIncorrect | InitialAccountingIncorrect | BPSValueTooBig | DepositAmountBelowMinimum | VaultTokensSpaceExhausted | TokensDepositedAmountDoesNotMatch | UserReceivedAmountDoesNotMatch | SharesBurnedAmountDoesNotMatch | WithdrawResultsInZeroShares | CannotWithdrawZeroShares | ManagementFeeGreaterThanMaxAllowed | VaultAUMZero | VaultSharesZero | MinWithdrawAmountTooBig | DepositAmountGreaterThanRequestedAmount | WithdrawAmountLessThanWithdrawalFee | DepositAmountLessThanDepositFee | CannotWithdrawZeroLamports | NoUpgradeAuthority | BPSFeeGreaterThanMaxAllowed | LamportsFeeGreaterThanMaxAllowed | InvalidScopePriceAccount | InvalidScopePrice | InvalidOracleConfig | InvalidTwapConfig | VaultBalanceDoesNotMatch | InvalidWeightsSum | TokenArrayLengthMismatch | RebalanceInProgress | CannotUpdateWeightsDuringRebalance | InvalidRebalanceDuration | VaultAlreadyRebalanced | RebalanceNotInProgress | InvalidSwapPair | RequestedOutExceedsExcess | WithdrawAumExceedTotal | WithdrawSharesExceedIssued | SlippageExceeded | MinDepositAmountTooBig | PerformanceFeeGreaterThanMaxAllowed | CannotGiveUpZeroFees | TimestampConversionFailed | InvalidDutchAuctionBounds | SharesSupplyInconsistent | SwapQuoteRoundsToZero | ObligationsSpaceExhausted | ObligationSlotNotFound | ObligationAlreadyExists | ObligationAccountMissing | ObligationStale | ReserveStale | RebalanceSwapAmountBelowMinimum | SingleSidedFlowDisabled | UnexpectedReferrerFee | ObligationDepositsZero | MaximumWithdrawValueZero | BalanceAfterObligationCpiMismatch | ReserveScopeMismatch | DepositAumCapExceeded | RollingDepositCapExceeded | RollingWithdrawCapExceeded | RollingCapIntervalTooLong | VaultEmergencyMode | VaultDepositsBlocked | VaultWithdrawsBlocked | InvalidFlagValue | CpiDisabled | SwapAuthorityIncorrect | RebalanceSwapExceedsMaxLoss | SharesAccountFrozen | SharesGatingProgramInvalid | TokenAclProgramIncorrect | MintConfigIncorrect | SharesNotPermissioned | AllocationAuthorityIncorrect | VaultDepositsNotBlocked | ObligationLtvCeilingExceeded | RebalanceCooldownTooLong | RebalanceCooldownNotElapsed | ObligationOperationDuringRebalance | ReservePriceMismatch | KrfqAuthorityMissing | KrfqAuthorityIncorrect | KrfqSwapAuthorityNotSet | KrfqFillMarkerMissing | KrfqFillMarkerIncorrect | TokenWeightZeroed | RebalanceLossCeilingExceeded | SharesAccountOwnerMutable | DepositOrderCreationDisabled | DepositOrderFillDisabled | DepositOrderSettleDisabled | InvalidOrderId | InvalidOrderAuctionDuration | OrderBelowMinValue | OrderAuctionStillRunning | OrderTokensNotCovered | TokenVaultBalanceBelowLocked | OrderAccountMismatch | RemainingAccountKeyMismatch | UnexpectedRemainingAccounts | PayoutNotToAssociatedAccount | WithdrawOrderCreationDisabled | WithdrawOrderFillDisabled | InconsistentOrderAccounts | ReserveAccountMismatch | LendingMarketMismatch | FarmAccountMismatch | ObligationAddressMismatch | VaultTokenIsSharesMint | ConfigValueTooShort | MaxPriceAgeOutOfRange | ObligationLiquidatable | ReserveEmergencyMode;
1
+ export type CustomError = DepositAmountsZero | SharesIssuedAmountDoesNotMatch | WithdrawAmountBelowMinimum | VaultTokenAlreadyExists | TokenNotEnabledInVault | AdminAuthorityIncorrect | BaseVaultAuthorityIncorrect | SharesMintIncorrect | InitialAccountingIncorrect | BPSValueTooBig | DepositAmountBelowMinimum | VaultTokensSpaceExhausted | TokensDepositedAmountDoesNotMatch | UserReceivedAmountDoesNotMatch | SharesBurnedAmountDoesNotMatch | WithdrawResultsInZeroShares | CannotWithdrawZeroShares | ManagementFeeGreaterThanMaxAllowed | VaultAUMZero | VaultSharesZero | MinWithdrawAmountTooBig | DepositAmountGreaterThanRequestedAmount | WithdrawAmountLessThanWithdrawalFee | DepositAmountLessThanDepositFee | CannotWithdrawZeroLamports | NoUpgradeAuthority | BPSFeeGreaterThanMaxAllowed | LamportsFeeGreaterThanMaxAllowed | InvalidScopePriceAccount | InvalidScopePrice | InvalidOracleConfig | InvalidTwapConfig | VaultBalanceDoesNotMatch | InvalidWeightsSum | TokenArrayLengthMismatch | RebalanceInProgress | CannotUpdateWeightsDuringRebalance | InvalidRebalanceDuration | VaultAlreadyRebalanced | RebalanceNotInProgress | InvalidSwapPair | RequestedOutExceedsExcess | WithdrawAumExceedTotal | WithdrawSharesExceedIssued | SlippageExceeded | MinDepositAmountTooBig | PerformanceFeeGreaterThanMaxAllowed | CannotGiveUpZeroFees | TimestampConversionFailed | InvalidDutchAuctionBounds | SharesSupplyInconsistent | SwapQuoteRoundsToZero | ObligationsSpaceExhausted | ObligationSlotNotFound | ObligationAlreadyExists | ObligationAccountMissing | ObligationStale | ReserveStale | RebalanceSwapAmountBelowMinimum | SingleSidedFlowDisabled | UnexpectedReferrerFee | ObligationDepositsZero | MaximumWithdrawValueZero | BalanceAfterObligationCpiMismatch | DepositAumCapExceeded | RollingDepositCapExceeded | RollingWithdrawCapExceeded | RollingCapIntervalTooLong | VaultEmergencyMode | VaultDepositsBlocked | VaultWithdrawsBlocked | InvalidFlagValue | CpiDisabled | SwapAuthorityIncorrect | RebalanceSwapExceedsMaxLoss | SharesAccountFrozen | SharesGatingProgramInvalid | TokenAclProgramIncorrect | MintConfigIncorrect | SharesNotPermissioned | AllocationAuthorityIncorrect | VaultDepositsNotBlocked | ObligationLtvCeilingExceeded | RebalanceCooldownTooLong | RebalanceCooldownNotElapsed | ObligationOperationDuringRebalance | ReservePriceMismatch | KrfqAuthorityMissing | KrfqAuthorityIncorrect | KrfqSwapAuthorityNotSet | KrfqFillMarkerMissing | KrfqFillMarkerIncorrect | TokenWeightZeroed | RebalanceLossCeilingExceeded | SharesAccountOwnerMutable | DepositOrderCreationDisabled | DepositOrderFillDisabled | DepositOrderSettleDisabled | InvalidOrderId | InvalidOrderAuctionDuration | OrderBelowMinValue | OrderAuctionStillRunning | OrderTokensNotCovered | TokenVaultBalanceBelowLocked | OrderAccountMismatch | RemainingAccountKeyMismatch | UnexpectedRemainingAccounts | PayoutNotToAssociatedAccount | WithdrawOrderCreationDisabled | WithdrawOrderFillDisabled | InconsistentOrderAccounts | ReserveAccountMismatch | LendingMarketMismatch | FarmAccountMismatch | ObligationAddressMismatch | VaultTokenIsSharesMint | ConfigValueTooShort | MaxPriceAgeOutOfRange | ObligationLiquidatable | ReserveEmergencyMode;
2
2
  export declare class DepositAmountsZero extends Error {
3
3
  readonly logs?: string[] | undefined;
4
4
  static readonly code = 7000;
@@ -511,458 +511,450 @@ export declare class BalanceAfterObligationCpiMismatch extends Error {
511
511
  readonly msg = "Observed token delta does not match the predicted obligation CPI effect";
512
512
  constructor(logs?: string[] | undefined);
513
513
  }
514
- export declare class ReserveScopeMismatch extends Error {
514
+ export declare class DepositAumCapExceeded extends Error {
515
515
  readonly logs?: string[] | undefined;
516
516
  static readonly code = 7064;
517
517
  readonly code = 7064;
518
- readonly name = "ReserveScopeMismatch";
519
- readonly msg = "Reserve scope_configuration must match the matching vault token's scope_configuration";
520
- constructor(logs?: string[] | undefined);
521
- }
522
- export declare class DepositAumCapExceeded extends Error {
523
- readonly logs?: string[] | undefined;
524
- static readonly code = 7065;
525
- readonly code = 7065;
526
518
  readonly name = "DepositAumCapExceeded";
527
519
  readonly msg = "Deposit would push vault AUM above the configured cap";
528
520
  constructor(logs?: string[] | undefined);
529
521
  }
530
522
  export declare class RollingDepositCapExceeded extends Error {
531
523
  readonly logs?: string[] | undefined;
532
- static readonly code = 7066;
533
- readonly code = 7066;
524
+ static readonly code = 7065;
525
+ readonly code = 7065;
534
526
  readonly name = "RollingDepositCapExceeded";
535
527
  readonly msg = "Deposit exceeds the rolling deposit cap for this interval";
536
528
  constructor(logs?: string[] | undefined);
537
529
  }
538
530
  export declare class RollingWithdrawCapExceeded extends Error {
539
531
  readonly logs?: string[] | undefined;
540
- static readonly code = 7067;
541
- readonly code = 7067;
532
+ static readonly code = 7066;
533
+ readonly code = 7066;
542
534
  readonly name = "RollingWithdrawCapExceeded";
543
535
  readonly msg = "Withdraw exceeds the rolling withdraw cap for this interval";
544
536
  constructor(logs?: string[] | undefined);
545
537
  }
546
538
  export declare class RollingCapIntervalTooLong extends Error {
547
539
  readonly logs?: string[] | undefined;
548
- static readonly code = 7068;
549
- readonly code = 7068;
540
+ static readonly code = 7067;
541
+ readonly code = 7067;
550
542
  readonly name = "RollingCapIntervalTooLong";
551
543
  readonly msg = "Rolling-cap interval exceeds the maximum allowed length";
552
544
  constructor(logs?: string[] | undefined);
553
545
  }
554
546
  export declare class VaultEmergencyMode extends Error {
555
547
  readonly logs?: string[] | undefined;
556
- static readonly code = 7069;
557
- readonly code = 7069;
548
+ static readonly code = 7068;
549
+ readonly code = 7068;
558
550
  readonly name = "VaultEmergencyMode";
559
551
  readonly msg = "Vault is in emergency mode";
560
552
  constructor(logs?: string[] | undefined);
561
553
  }
562
554
  export declare class VaultDepositsBlocked extends Error {
563
555
  readonly logs?: string[] | undefined;
564
- static readonly code = 7070;
565
- readonly code = 7070;
556
+ static readonly code = 7069;
557
+ readonly code = 7069;
566
558
  readonly name = "VaultDepositsBlocked";
567
559
  readonly msg = "Vault deposits are blocked";
568
560
  constructor(logs?: string[] | undefined);
569
561
  }
570
562
  export declare class VaultWithdrawsBlocked extends Error {
571
563
  readonly logs?: string[] | undefined;
572
- static readonly code = 7071;
573
- readonly code = 7071;
564
+ static readonly code = 7070;
565
+ readonly code = 7070;
574
566
  readonly name = "VaultWithdrawsBlocked";
575
567
  readonly msg = "Vault withdrawals are blocked";
576
568
  constructor(logs?: string[] | undefined);
577
569
  }
578
570
  export declare class InvalidFlagValue extends Error {
579
571
  readonly logs?: string[] | undefined;
580
- static readonly code = 7072;
581
- readonly code = 7072;
572
+ static readonly code = 7071;
573
+ readonly code = 7071;
582
574
  readonly name = "InvalidFlagValue";
583
575
  readonly msg = "Flag value must be 0 or 1";
584
576
  constructor(logs?: string[] | undefined);
585
577
  }
586
578
  export declare class CpiDisabled extends Error {
587
579
  readonly logs?: string[] | undefined;
588
- static readonly code = 7073;
589
- readonly code = 7073;
580
+ static readonly code = 7072;
581
+ readonly code = 7072;
590
582
  readonly name = "CpiDisabled";
591
583
  readonly msg = "CPI disabled for this instruction";
592
584
  constructor(logs?: string[] | undefined);
593
585
  }
594
586
  export declare class SwapAuthorityIncorrect extends Error {
595
587
  readonly logs?: string[] | undefined;
596
- static readonly code = 7074;
597
- readonly code = 7074;
588
+ static readonly code = 7073;
589
+ readonly code = 7073;
598
590
  readonly name = "SwapAuthorityIncorrect";
599
591
  readonly msg = "Swap authority incorrect";
600
592
  constructor(logs?: string[] | undefined);
601
593
  }
602
594
  export declare class RebalanceSwapExceedsMaxLoss extends Error {
603
595
  readonly logs?: string[] | undefined;
604
- static readonly code = 7075;
605
- readonly code = 7075;
596
+ static readonly code = 7074;
597
+ readonly code = 7074;
606
598
  readonly name = "RebalanceSwapExceedsMaxLoss";
607
599
  readonly msg = "Rebalance swap costs the basket more than its max allowed loss";
608
600
  constructor(logs?: string[] | undefined);
609
601
  }
610
602
  export declare class SharesAccountFrozen extends Error {
611
603
  readonly logs?: string[] | undefined;
612
- static readonly code = 7076;
613
- readonly code = 7076;
604
+ static readonly code = 7075;
605
+ readonly code = 7075;
614
606
  readonly name = "SharesAccountFrozen";
615
607
  readonly msg = "User shares account is frozen; it must be thawed through the vault's gate before use";
616
608
  constructor(logs?: string[] | undefined);
617
609
  }
618
610
  export declare class SharesGatingProgramInvalid extends Error {
619
611
  readonly logs?: string[] | undefined;
620
- static readonly code = 7077;
621
- readonly code = 7077;
612
+ static readonly code = 7076;
613
+ readonly code = 7076;
622
614
  readonly name = "SharesGatingProgramInvalid";
623
615
  readonly msg = "Shares gating program is invalid or its accounts are missing";
624
616
  constructor(logs?: string[] | undefined);
625
617
  }
626
618
  export declare class TokenAclProgramIncorrect extends Error {
627
619
  readonly logs?: string[] | undefined;
628
- static readonly code = 7078;
629
- readonly code = 7078;
620
+ static readonly code = 7077;
621
+ readonly code = 7077;
630
622
  readonly name = "TokenAclProgramIncorrect";
631
623
  readonly msg = "Token ACL program account does not match the expected program id";
632
624
  constructor(logs?: string[] | undefined);
633
625
  }
634
626
  export declare class MintConfigIncorrect extends Error {
635
627
  readonly logs?: string[] | undefined;
636
- static readonly code = 7079;
637
- readonly code = 7079;
628
+ static readonly code = 7078;
629
+ readonly code = 7078;
638
630
  readonly name = "MintConfigIncorrect";
639
631
  readonly msg = "Token ACL mint config account is incorrect or its setup invariants do not hold";
640
632
  constructor(logs?: string[] | undefined);
641
633
  }
642
634
  export declare class SharesNotPermissioned extends Error {
643
635
  readonly logs?: string[] | undefined;
644
- static readonly code = 7080;
645
- readonly code = 7080;
636
+ static readonly code = 7079;
637
+ readonly code = 7079;
646
638
  readonly name = "SharesNotPermissioned";
647
639
  readonly msg = "Vault shares are not permissioned";
648
640
  constructor(logs?: string[] | undefined);
649
641
  }
650
642
  export declare class AllocationAuthorityIncorrect extends Error {
651
643
  readonly logs?: string[] | undefined;
652
- static readonly code = 7081;
653
- readonly code = 7081;
644
+ static readonly code = 7080;
645
+ readonly code = 7080;
654
646
  readonly name = "AllocationAuthorityIncorrect";
655
647
  readonly msg = "Allocation authority incorrect";
656
648
  constructor(logs?: string[] | undefined);
657
649
  }
658
650
  export declare class VaultDepositsNotBlocked extends Error {
659
651
  readonly logs?: string[] | undefined;
660
- static readonly code = 7082;
661
- readonly code = 7082;
652
+ static readonly code = 7081;
653
+ readonly code = 7081;
662
654
  readonly name = "VaultDepositsNotBlocked";
663
655
  readonly msg = "Vault deposits must be blocked before giving up pending fees";
664
656
  constructor(logs?: string[] | undefined);
665
657
  }
666
658
  export declare class ObligationLtvCeilingExceeded extends Error {
667
659
  readonly logs?: string[] | undefined;
668
- static readonly code = 7083;
669
- readonly code = 7083;
660
+ static readonly code = 7082;
661
+ readonly code = 7082;
670
662
  readonly name = "ObligationLtvCeilingExceeded";
671
663
  readonly msg = "Obligation LTV ceiling exceeded";
672
664
  constructor(logs?: string[] | undefined);
673
665
  }
674
666
  export declare class RebalanceCooldownTooLong extends Error {
675
667
  readonly logs?: string[] | undefined;
676
- static readonly code = 7084;
677
- readonly code = 7084;
668
+ static readonly code = 7083;
669
+ readonly code = 7083;
678
670
  readonly name = "RebalanceCooldownTooLong";
679
671
  readonly msg = "Rebalance cooldown exceeds the maximum allowed";
680
672
  constructor(logs?: string[] | undefined);
681
673
  }
682
674
  export declare class RebalanceCooldownNotElapsed extends Error {
683
675
  readonly logs?: string[] | undefined;
684
- static readonly code = 7085;
685
- readonly code = 7085;
676
+ static readonly code = 7084;
677
+ readonly code = 7084;
686
678
  readonly name = "RebalanceCooldownNotElapsed";
687
679
  readonly msg = "Rebalance cooldown has not elapsed since the last rebalance start";
688
680
  constructor(logs?: string[] | undefined);
689
681
  }
690
682
  export declare class ObligationOperationDuringRebalance extends Error {
691
683
  readonly logs?: string[] | undefined;
692
- static readonly code = 7086;
693
- readonly code = 7086;
684
+ static readonly code = 7085;
685
+ readonly code = 7085;
694
686
  readonly name = "ObligationOperationDuringRebalance";
695
687
  readonly msg = "Obligation inventory cannot change while a rebalance is in progress";
696
688
  constructor(logs?: string[] | undefined);
697
689
  }
698
690
  export declare class ReservePriceMismatch extends Error {
699
691
  readonly logs?: string[] | undefined;
700
- static readonly code = 7087;
701
- readonly code = 7087;
692
+ static readonly code = 7086;
693
+ readonly code = 7086;
702
694
  readonly name = "ReservePriceMismatch";
703
695
  readonly msg = "Reserve cached price diverges from the vault's scope price beyond the configured tolerance";
704
696
  constructor(logs?: string[] | undefined);
705
697
  }
706
698
  export declare class KrfqAuthorityMissing extends Error {
707
699
  readonly logs?: string[] | undefined;
708
- static readonly code = 7088;
709
- readonly code = 7088;
700
+ static readonly code = 7087;
701
+ readonly code = 7087;
710
702
  readonly name = "KrfqAuthorityMissing";
711
703
  readonly msg = "Vault requires krfq-gated fills but the krfq authority signer was not provided";
712
704
  constructor(logs?: string[] | undefined);
713
705
  }
714
706
  export declare class KrfqAuthorityIncorrect extends Error {
715
707
  readonly logs?: string[] | undefined;
716
- static readonly code = 7089;
717
- readonly code = 7089;
708
+ static readonly code = 7088;
709
+ readonly code = 7088;
718
710
  readonly name = "KrfqAuthorityIncorrect";
719
711
  readonly msg = "krfq authority signer does not match the global config's krfq swap authority";
720
712
  constructor(logs?: string[] | undefined);
721
713
  }
722
714
  export declare class KrfqSwapAuthorityNotSet extends Error {
723
715
  readonly logs?: string[] | undefined;
724
- static readonly code = 7090;
725
- readonly code = 7090;
716
+ static readonly code = 7089;
717
+ readonly code = 7089;
726
718
  readonly name = "KrfqSwapAuthorityNotSet";
727
719
  readonly msg = "krfq swap authority is not set in the global config";
728
720
  constructor(logs?: string[] | undefined);
729
721
  }
730
722
  export declare class KrfqFillMarkerMissing extends Error {
731
723
  readonly logs?: string[] | undefined;
732
- static readonly code = 7091;
733
- readonly code = 7091;
724
+ static readonly code = 7090;
725
+ readonly code = 7090;
734
726
  readonly name = "KrfqFillMarkerMissing";
735
727
  readonly msg = "krfq-co-signed fill did not provide the krfq fill marker account";
736
728
  constructor(logs?: string[] | undefined);
737
729
  }
738
730
  export declare class KrfqFillMarkerIncorrect extends Error {
739
731
  readonly logs?: string[] | undefined;
740
- static readonly code = 7092;
741
- readonly code = 7092;
732
+ static readonly code = 7091;
733
+ readonly code = 7091;
742
734
  readonly name = "KrfqFillMarkerIncorrect";
743
735
  readonly msg = "krfq fill marker does not derive from this fill's vault and mint pair";
744
736
  constructor(logs?: string[] | undefined);
745
737
  }
746
738
  export declare class TokenWeightZeroed extends Error {
747
739
  readonly logs?: string[] | undefined;
748
- static readonly code = 7093;
749
- readonly code = 7093;
740
+ static readonly code = 7092;
741
+ readonly code = 7092;
750
742
  readonly name = "TokenWeightZeroed";
751
743
  readonly msg = "Vault weights other tokens but not this one, so it takes no deposit orders of it";
752
744
  constructor(logs?: string[] | undefined);
753
745
  }
754
746
  export declare class RebalanceLossCeilingExceeded extends Error {
755
747
  readonly logs?: string[] | undefined;
756
- static readonly code = 7094;
757
- readonly code = 7094;
748
+ static readonly code = 7093;
749
+ readonly code = 7093;
758
750
  readonly name = "RebalanceLossCeilingExceeded";
759
751
  readonly msg = "Rebalance fills exceed the basket's loss ceiling for this rebalance";
760
752
  constructor(logs?: string[] | undefined);
761
753
  }
762
754
  export declare class SharesAccountOwnerMutable extends Error {
763
755
  readonly logs?: string[] | undefined;
764
- static readonly code = 7095;
765
- readonly code = 7095;
756
+ static readonly code = 7094;
757
+ readonly code = 7094;
766
758
  readonly name = "SharesAccountOwnerMutable";
767
759
  readonly msg = "Shares account must carry the Token-2022 ImmutableOwner extension on a permissioned vault";
768
760
  constructor(logs?: string[] | undefined);
769
761
  }
770
762
  export declare class DepositOrderCreationDisabled extends Error {
771
763
  readonly logs?: string[] | undefined;
772
- static readonly code = 7096;
773
- readonly code = 7096;
764
+ static readonly code = 7095;
765
+ readonly code = 7095;
774
766
  readonly name = "DepositOrderCreationDisabled";
775
767
  readonly msg = "Opening deposit orders is not enabled on this vault";
776
768
  constructor(logs?: string[] | undefined);
777
769
  }
778
770
  export declare class DepositOrderFillDisabled extends Error {
779
771
  readonly logs?: string[] | undefined;
780
- static readonly code = 7097;
781
- readonly code = 7097;
772
+ static readonly code = 7096;
773
+ readonly code = 7096;
782
774
  readonly name = "DepositOrderFillDisabled";
783
775
  readonly msg = "Filling deposit orders is not enabled on this vault";
784
776
  constructor(logs?: string[] | undefined);
785
777
  }
786
778
  export declare class DepositOrderSettleDisabled extends Error {
787
779
  readonly logs?: string[] | undefined;
788
- static readonly code = 7098;
789
- readonly code = 7098;
780
+ static readonly code = 7097;
781
+ readonly code = 7097;
790
782
  readonly name = "DepositOrderSettleDisabled";
791
783
  readonly msg = "Settling deposit orders is not enabled on this vault";
792
784
  constructor(logs?: string[] | undefined);
793
785
  }
794
786
  export declare class InvalidOrderId extends Error {
795
787
  readonly logs?: string[] | undefined;
796
- static readonly code = 7099;
797
- readonly code = 7099;
788
+ static readonly code = 7098;
789
+ readonly code = 7098;
798
790
  readonly name = "InvalidOrderId";
799
791
  readonly msg = "Order id must be below the per-owner maximum";
800
792
  constructor(logs?: string[] | undefined);
801
793
  }
802
794
  export declare class InvalidOrderAuctionDuration extends Error {
803
795
  readonly logs?: string[] | undefined;
804
- static readonly code = 7100;
805
- readonly code = 7100;
796
+ static readonly code = 7099;
797
+ readonly code = 7099;
806
798
  readonly name = "InvalidOrderAuctionDuration";
807
799
  readonly msg = "Order auction duration is out of range";
808
800
  constructor(logs?: string[] | undefined);
809
801
  }
810
802
  export declare class OrderBelowMinValue extends Error {
811
803
  readonly logs?: string[] | undefined;
812
- static readonly code = 7101;
813
- readonly code = 7101;
804
+ static readonly code = 7100;
805
+ readonly code = 7100;
814
806
  readonly name = "OrderBelowMinValue";
815
807
  readonly msg = "Order basket is worth less than the vault's minimum";
816
808
  constructor(logs?: string[] | undefined);
817
809
  }
818
810
  export declare class OrderAuctionStillRunning extends Error {
819
811
  readonly logs?: string[] | undefined;
820
- static readonly code = 7102;
821
- readonly code = 7102;
812
+ static readonly code = 7101;
813
+ readonly code = 7101;
822
814
  readonly name = "OrderAuctionStillRunning";
823
815
  readonly msg = "The order's auction is still running";
824
816
  constructor(logs?: string[] | undefined);
825
817
  }
826
818
  export declare class OrderTokensNotCovered extends Error {
827
819
  readonly logs?: string[] | undefined;
828
- static readonly code = 7103;
829
- readonly code = 7103;
820
+ static readonly code = 7102;
821
+ readonly code = 7102;
830
822
  readonly name = "OrderTokensNotCovered";
831
823
  readonly msg = "Every token the order moves must be covered by the accounts passed";
832
824
  constructor(logs?: string[] | undefined);
833
825
  }
834
826
  export declare class TokenVaultBalanceBelowLocked extends Error {
835
827
  readonly logs?: string[] | undefined;
836
- static readonly code = 7104;
837
- readonly code = 7104;
828
+ static readonly code = 7103;
829
+ readonly code = 7103;
838
830
  readonly name = "TokenVaultBalanceBelowLocked";
839
831
  readonly msg = "Token vault balance is below the vault's available plus locked amounts";
840
832
  constructor(logs?: string[] | undefined);
841
833
  }
842
834
  export declare class OrderAccountMismatch extends Error {
843
835
  readonly logs?: string[] | undefined;
844
- static readonly code = 7105;
845
- readonly code = 7105;
836
+ static readonly code = 7104;
837
+ readonly code = 7104;
846
838
  readonly name = "OrderAccountMismatch";
847
839
  readonly msg = "Account does not match the order";
848
840
  constructor(logs?: string[] | undefined);
849
841
  }
850
842
  export declare class RemainingAccountKeyMismatch extends Error {
851
843
  readonly logs?: string[] | undefined;
852
- static readonly code = 7106;
853
- readonly code = 7106;
844
+ static readonly code = 7105;
845
+ readonly code = 7105;
854
846
  readonly name = "RemainingAccountKeyMismatch";
855
847
  readonly msg = "Remaining account is not the one expected at its position";
856
848
  constructor(logs?: string[] | undefined);
857
849
  }
858
850
  export declare class UnexpectedRemainingAccounts extends Error {
859
851
  readonly logs?: string[] | undefined;
860
- static readonly code = 7107;
861
- readonly code = 7107;
852
+ static readonly code = 7106;
853
+ readonly code = 7106;
862
854
  readonly name = "UnexpectedRemainingAccounts";
863
855
  readonly msg = "More remaining accounts were passed than the instruction reads";
864
856
  constructor(logs?: string[] | undefined);
865
857
  }
866
858
  export declare class PayoutNotToAssociatedAccount extends Error {
867
859
  readonly logs?: string[] | undefined;
868
- static readonly code = 7108;
869
- readonly code = 7108;
860
+ static readonly code = 7107;
861
+ readonly code = 7107;
870
862
  readonly name = "PayoutNotToAssociatedAccount";
871
863
  readonly msg = "A settle by someone else than the owner pays out to the owner's associated accounts only";
872
864
  constructor(logs?: string[] | undefined);
873
865
  }
874
866
  export declare class WithdrawOrderCreationDisabled extends Error {
875
867
  readonly logs?: string[] | undefined;
876
- static readonly code = 7109;
877
- readonly code = 7109;
868
+ static readonly code = 7108;
869
+ readonly code = 7108;
878
870
  readonly name = "WithdrawOrderCreationDisabled";
879
871
  readonly msg = "Opening withdraw orders is not enabled on this vault";
880
872
  constructor(logs?: string[] | undefined);
881
873
  }
882
874
  export declare class WithdrawOrderFillDisabled extends Error {
883
875
  readonly logs?: string[] | undefined;
884
- static readonly code = 7110;
885
- readonly code = 7110;
876
+ static readonly code = 7109;
877
+ readonly code = 7109;
886
878
  readonly name = "WithdrawOrderFillDisabled";
887
879
  readonly msg = "Filling withdraw orders is not enabled on this vault";
888
880
  constructor(logs?: string[] | undefined);
889
881
  }
890
882
  export declare class InconsistentOrderAccounts extends Error {
891
883
  readonly logs?: string[] | undefined;
892
- static readonly code = 7111;
893
- readonly code = 7111;
884
+ static readonly code = 7110;
885
+ readonly code = 7110;
894
886
  readonly name = "InconsistentOrderAccounts";
895
887
  readonly msg = "The order accounts passed are inconsistent: a fill names at most one order";
896
888
  constructor(logs?: string[] | undefined);
897
889
  }
898
890
  export declare class ReserveAccountMismatch extends Error {
899
891
  readonly logs?: string[] | undefined;
900
- static readonly code = 7112;
901
- readonly code = 7112;
892
+ static readonly code = 7111;
893
+ readonly code = 7111;
902
894
  readonly name = "ReserveAccountMismatch";
903
895
  readonly msg = "Account does not match the reserve";
904
896
  constructor(logs?: string[] | undefined);
905
897
  }
906
898
  export declare class LendingMarketMismatch extends Error {
907
899
  readonly logs?: string[] | undefined;
908
- static readonly code = 7113;
909
- readonly code = 7113;
900
+ static readonly code = 7112;
901
+ readonly code = 7112;
910
902
  readonly name = "LendingMarketMismatch";
911
903
  readonly msg = "Lending market does not match the obligation or the reserve";
912
904
  constructor(logs?: string[] | undefined);
913
905
  }
914
906
  export declare class FarmAccountMismatch extends Error {
915
907
  readonly logs?: string[] | undefined;
916
- static readonly code = 7114;
917
- readonly code = 7114;
908
+ static readonly code = 7113;
909
+ readonly code = 7113;
918
910
  readonly name = "FarmAccountMismatch";
919
911
  readonly msg = "Farm account does not match the reserve's farm or the obligation's user state in it";
920
912
  constructor(logs?: string[] | undefined);
921
913
  }
922
914
  export declare class ObligationAddressMismatch extends Error {
923
915
  readonly logs?: string[] | undefined;
924
- static readonly code = 7115;
925
- readonly code = 7115;
916
+ static readonly code = 7114;
917
+ readonly code = 7114;
926
918
  readonly name = "ObligationAddressMismatch";
927
919
  readonly msg = "Obligation is not the vault's klend obligation for this lending market and slot";
928
920
  constructor(logs?: string[] | undefined);
929
921
  }
930
922
  export declare class VaultTokenIsSharesMint extends Error {
931
923
  readonly logs?: string[] | undefined;
932
- static readonly code = 7116;
933
- readonly code = 7116;
924
+ static readonly code = 7115;
925
+ readonly code = 7115;
934
926
  readonly name = "VaultTokenIsSharesMint";
935
927
  readonly msg = "The vault's own shares mint cannot be one of its tokens";
936
928
  constructor(logs?: string[] | undefined);
937
929
  }
938
930
  export declare class ConfigValueTooShort extends Error {
939
931
  readonly logs?: string[] | undefined;
940
- static readonly code = 7117;
941
- readonly code = 7117;
932
+ static readonly code = 7116;
933
+ readonly code = 7116;
942
934
  readonly name = "ConfigValueTooShort";
943
935
  readonly msg = "Config value is too short for its field";
944
936
  constructor(logs?: string[] | undefined);
945
937
  }
946
938
  export declare class MaxPriceAgeOutOfRange extends Error {
947
939
  readonly logs?: string[] | undefined;
948
- static readonly code = 7118;
949
- readonly code = 7118;
940
+ static readonly code = 7117;
941
+ readonly code = 7117;
950
942
  readonly name = "MaxPriceAgeOutOfRange";
951
943
  readonly msg = "Max price age must be between 1 second and 1 day";
952
944
  constructor(logs?: string[] | undefined);
953
945
  }
954
946
  export declare class ObligationLiquidatable extends Error {
955
947
  readonly logs?: string[] | undefined;
956
- static readonly code = 7119;
957
- readonly code = 7119;
948
+ static readonly code = 7118;
949
+ readonly code = 7118;
958
950
  readonly name = "ObligationLiquidatable";
959
951
  readonly msg = "A vault obligation is liquidatable: shares trade again once it is healthy";
960
952
  constructor(logs?: string[] | undefined);
961
953
  }
962
954
  export declare class ReserveEmergencyMode extends Error {
963
955
  readonly logs?: string[] | undefined;
964
- static readonly code = 7120;
965
- readonly code = 7120;
956
+ static readonly code = 7119;
957
+ readonly code = 7119;
966
958
  readonly name = "ReserveEmergencyMode";
967
959
  readonly msg = "Reserve is in klend's emergency mode; flows that value its obligation legs wait";
968
960
  constructor(logs?: string[] | undefined);