@crypticdot/defituna-client 3.5.0 → 3.5.2

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/index.d.mts CHANGED
@@ -743,131 +743,131 @@ declare function getVaultSize(): number;
743
743
  */
744
744
 
745
745
  /** TypeCastOverflow: Type cast overflow */
746
- declare const TUNA_ERROR__TYPE_CAST_OVERFLOW = 12500;
746
+ declare const TUNA_ERROR__TYPE_CAST_OVERFLOW = 6500;
747
747
  /** MathOverflow: Math overflow */
748
- declare const TUNA_ERROR__MATH_OVERFLOW = 12501;
748
+ declare const TUNA_ERROR__MATH_OVERFLOW = 6501;
749
749
  /** MathUnderflow: Math underflow */
750
- declare const TUNA_ERROR__MATH_UNDERFLOW = 12502;
750
+ declare const TUNA_ERROR__MATH_UNDERFLOW = 6502;
751
751
  /** VaultNotInitialized: Lending vault is not initialized */
752
- declare const TUNA_ERROR__VAULT_NOT_INITIALIZED = 12559;
752
+ declare const TUNA_ERROR__VAULT_NOT_INITIALIZED = 6559;
753
753
  /** WithdrawRequestExceedsUserBalance: Withdraw request the exceeds user balance */
754
- declare const TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE = 12560;
754
+ declare const TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE = 6560;
755
755
  /** ZeroPriceRange: Zero price range: the lower price is equal to upper price) */
756
- declare const TUNA_ERROR__ZERO_PRICE_RANGE = 12561;
756
+ declare const TUNA_ERROR__ZERO_PRICE_RANGE = 6561;
757
757
  /** AmountSlippageExceeded: Amount slippage exceeded */
758
- declare const TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED = 12600;
758
+ declare const TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED = 6600;
759
759
  /** BadDebt: Bad debt is not allowed for the executed instruction */
760
- declare const TUNA_ERROR__BAD_DEBT = 12601;
760
+ declare const TUNA_ERROR__BAD_DEBT = 6601;
761
761
  /** InvalidRemainingAccountsLength: Invalid number of remaining accounts */
762
- declare const TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH = 12602;
762
+ declare const TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH = 6602;
763
763
  /** InvalidInstructionArguments: Invalid instruction arguments */
764
- declare const TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS = 12603;
764
+ declare const TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS = 6603;
765
765
  /** InvalidMarketMaker: Invalid market maker */
766
- declare const TUNA_ERROR__INVALID_MARKET_MAKER = 12604;
766
+ declare const TUNA_ERROR__INVALID_MARKET_MAKER = 6604;
767
767
  /** InvalidAccountDiscriminator: Invalid account discriminator */
768
- declare const TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR = 12605;
768
+ declare const TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR = 6605;
769
769
  /** InvalidAccountOwner: Invalid account owner */
770
- declare const TUNA_ERROR__INVALID_ACCOUNT_OWNER = 12606;
770
+ declare const TUNA_ERROR__INVALID_ACCOUNT_OWNER = 6606;
771
771
  /** InvalidPool: Invalid Fusion or Orca pool */
772
- declare const TUNA_ERROR__INVALID_POOL = 12607;
772
+ declare const TUNA_ERROR__INVALID_POOL = 6607;
773
773
  /** InvalidVault: Vault address is invalid */
774
- declare const TUNA_ERROR__INVALID_VAULT = 12608;
774
+ declare const TUNA_ERROR__INVALID_VAULT = 6608;
775
775
  /** InsufficientLiquidity: Insufficient liquidity */
776
- declare const TUNA_ERROR__INSUFFICIENT_LIQUIDITY = 12609;
776
+ declare const TUNA_ERROR__INSUFFICIENT_LIQUIDITY = 6609;
777
777
  /** InterestRateIsOutOfRange: Interest rate is out of range */
778
- declare const TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE = 12610;
778
+ declare const TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE = 6610;
779
779
  /** LeverageIsOutOfRange: Leverage is out or range */
780
- declare const TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE = 12611;
780
+ declare const TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE = 6611;
781
781
  /** LeftoversExceeded: Leftovers percentage exceeded the maximum allowed value */
782
- declare const TUNA_ERROR__LEFTOVERS_EXCEEDED = 12612;
782
+ declare const TUNA_ERROR__LEFTOVERS_EXCEEDED = 6612;
783
783
  /** LiquidationFeeIsOutOfRange: Liquidation fee is out of range */
784
- declare const TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE = 12613;
784
+ declare const TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE = 6613;
785
785
  /** LiquidationThresholdIsOutOfRange: Liquidation threshold is out of range */
786
- declare const TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE = 12614;
786
+ declare const TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE = 6614;
787
787
  /** MarketDisabled: Market is disabled */
788
- declare const TUNA_ERROR__MARKET_DISABLED = 12615;
788
+ declare const TUNA_ERROR__MARKET_DISABLED = 6615;
789
789
  /** MarketDebtLimitExceeded: Exceed the maximum allowed debt for the market */
790
- declare const TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED = 12616;
790
+ declare const TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED = 6616;
791
791
  /** NoExtraAccountsForTransferHook: Unable to call transfer hook without extra accounts */
792
- declare const TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK = 12617;
792
+ declare const TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK = 6617;
793
793
  /** OracleStalePrice: Oracle price is stale */
794
- declare const TUNA_ERROR__ORACLE_STALE_PRICE = 12618;
794
+ declare const TUNA_ERROR__ORACLE_STALE_PRICE = 6618;
795
795
  /** OraclePriceDeviationThresholdExceeded: Oracle price deviation threshold exceeded */
796
- declare const TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 12619;
796
+ declare const TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 6619;
797
797
  /** OraclePriceDeviationThresholdOutOfRange: Oracle price deviation threshold out of range */
798
- declare const TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE = 12620;
798
+ declare const TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE = 6620;
799
799
  /** PositionIsHealthy: Position is healthy */
800
- declare const TUNA_ERROR__POSITION_IS_HEALTHY = 12622;
800
+ declare const TUNA_ERROR__POSITION_IS_HEALTHY = 6622;
801
801
  /** PositionIsLiquidated: Position is already liquidated */
802
- declare const TUNA_ERROR__POSITION_IS_LIQUIDATED = 12623;
802
+ declare const TUNA_ERROR__POSITION_IS_LIQUIDATED = 6623;
803
803
  /** PositionIsUnhealthy: Position is unhealthy */
804
- declare const TUNA_ERROR__POSITION_IS_UNHEALTHY = 12624;
804
+ declare const TUNA_ERROR__POSITION_IS_UNHEALTHY = 6624;
805
805
  /** PositionNotEmpty: Position is not empty */
806
- declare const TUNA_ERROR__POSITION_NOT_EMPTY = 12625;
806
+ declare const TUNA_ERROR__POSITION_NOT_EMPTY = 6625;
807
807
  /** PositionIsEmpty: Position is empty */
808
- declare const TUNA_ERROR__POSITION_IS_EMPTY = 12626;
808
+ declare const TUNA_ERROR__POSITION_IS_EMPTY = 6626;
809
809
  /** PositionIsAutoRebalanceable: Unable to claim yield for auto re-balanceable positions */
810
- declare const TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE = 12627;
810
+ declare const TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE = 6627;
811
811
  /** PositionSizeLimitExceeded: Position size exceeds the maximum allowed value */
812
- declare const TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED = 12628;
812
+ declare const TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED = 6628;
813
813
  /** ProtocolFeeIsOutOfRange: Protocol fee is out of range */
814
- declare const TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE = 12640;
814
+ declare const TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE = 6640;
815
815
  /** RebalanceConditionsNotMet: Rebalance conditions are not met */
816
- declare const TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET = 12641;
816
+ declare const TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET = 6641;
817
817
  /** RemainingAccountsDuplicatedAccountsType: Same accounts type is provided more than once */
818
- declare const TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE = 12642;
818
+ declare const TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE = 6642;
819
819
  /** RemainingAccountsInvalidSlice: Invalid remaining accounts */
820
- declare const TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE = 12643;
820
+ declare const TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE = 6643;
821
821
  /** RemainingAccountsInvalidSliceLength: Invalid remaining accounts slice length */
822
- declare const TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH = 12644;
822
+ declare const TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH = 6644;
823
823
  /** RemainingAccountsInsufficient: Insufficient remaining accounts */
824
- declare const TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT = 12645;
824
+ declare const TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT = 6645;
825
825
  /** RequiredRemainingAccountNotProvided: Required remaining account is not provided */
826
- declare const TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED = 12646;
826
+ declare const TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED = 6646;
827
827
  /** SolverFailedToFindRoot: Swap equation solver failed to t find the root */
828
- declare const TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT = 12647;
828
+ declare const TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT = 6647;
829
829
  /** SupplyLimitExceeded: Lending vault supply limit exceeded */
830
- declare const TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED = 12648;
830
+ declare const TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED = 6648;
831
831
  /** Suspended: Instruction is suspended */
832
- declare const TUNA_ERROR__SUSPENDED = 12649;
832
+ declare const TUNA_ERROR__SUSPENDED = 6649;
833
833
  /** SwapSlippageExceeded: Maximum allowed swap slippage is exceeded */
834
- declare const TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED = 12650;
834
+ declare const TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED = 6650;
835
835
  /** SwapSlippageIsOutOfRange: Provided swap slippage value is out of range */
836
- declare const TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE = 12651;
836
+ declare const TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE = 6651;
837
837
  /** SwapToPositionRatioEstimationFailed: Swap to position ratio estimation failed */
838
- declare const TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED = 12652;
838
+ declare const TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED = 6652;
839
839
  /** SwapQuoteNotEqualToActualSwapAmount: Swap quote amount is not equal to the actual swap amount */
840
- declare const TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT = 12653;
840
+ declare const TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT = 6653;
841
841
  /** TransferFeeCalculationError: Transfer fee calculation failed */
842
- declare const TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR = 12654;
842
+ declare const TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR = 6654;
843
843
  /** UnableToLoadAccountData: Unable to load the account data */
844
- declare const TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA = 12655;
844
+ declare const TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA = 6655;
845
845
  /** UnableToDeserializeAccountData: Unable to deserialize the account data */
846
- declare const TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA = 12656;
846
+ declare const TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA = 6656;
847
847
  /** UnexpectedValue: Unexpected value */
848
- declare const TUNA_ERROR__UNEXPECTED_VALUE = 12657;
848
+ declare const TUNA_ERROR__UNEXPECTED_VALUE = 6657;
849
849
  /** UnsupportedTokenMint: Token mint has unsupported attributes */
850
- declare const TUNA_ERROR__UNSUPPORTED_TOKEN_MINT = 12658;
850
+ declare const TUNA_ERROR__UNSUPPORTED_TOKEN_MINT = 6658;
851
851
  /** ZeroYield: Collected yield is zero */
852
- declare const TUNA_ERROR__ZERO_YIELD = 12662;
852
+ declare const TUNA_ERROR__ZERO_YIELD = 6662;
853
853
  /** ZeroAmount: Position amount is zero */
854
- declare const TUNA_ERROR__ZERO_AMOUNT = 12663;
854
+ declare const TUNA_ERROR__ZERO_AMOUNT = 6663;
855
855
  /** IncorrectPositionDirection: Incorrect position direction */
856
- declare const TUNA_ERROR__INCORRECT_POSITION_DIRECTION = 12670;
856
+ declare const TUNA_ERROR__INCORRECT_POSITION_DIRECTION = 6670;
857
857
  /** RecipientAccountIsNotSet: Optional recipient account is not set */
858
- declare const TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET = 12671;
858
+ declare const TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET = 6671;
859
859
  /** MAPriceDeviationThresholdExceeded: Moving Average price deviation threshold exceeded */
860
- declare const TUNA_ERROR__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 12672;
860
+ declare const TUNA_ERROR__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 6672;
861
861
  /** InvalidJupiterRoute: Invalid jupiter route data */
862
- declare const TUNA_ERROR__INVALID_JUPITER_ROUTE = 12673;
862
+ declare const TUNA_ERROR__INVALID_JUPITER_ROUTE = 6673;
863
863
  /** InsufficientSwapOutputAmount: Insufficient swap output amount */
864
- declare const TUNA_ERROR__INSUFFICIENT_SWAP_OUTPUT_AMOUNT = 12674;
864
+ declare const TUNA_ERROR__INSUFFICIENT_SWAP_OUTPUT_AMOUNT = 6674;
865
865
  /** IncorrectSwapInputAmount: Incorrect swap input amount */
866
- declare const TUNA_ERROR__INCORRECT_SWAP_INPUT_AMOUNT = 12675;
866
+ declare const TUNA_ERROR__INCORRECT_SWAP_INPUT_AMOUNT = 6675;
867
867
  /** IncorrectSwapOutputAmount: Incorrect swap output amount */
868
- declare const TUNA_ERROR__INCORRECT_SWAP_OUTPUT_AMOUNT = 12676;
868
+ declare const TUNA_ERROR__INCORRECT_SWAP_OUTPUT_AMOUNT = 6676;
869
869
  /** AccountNotInitialized: Account is not initialized */
870
- declare const TUNA_ERROR__ACCOUNT_NOT_INITIALIZED = 12677;
870
+ declare const TUNA_ERROR__ACCOUNT_NOT_INITIALIZED = 6677;
871
871
  type TunaError = typeof TUNA_ERROR__ACCOUNT_NOT_INITIALIZED | typeof TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED | typeof TUNA_ERROR__BAD_DEBT | typeof TUNA_ERROR__INCORRECT_POSITION_DIRECTION | typeof TUNA_ERROR__INCORRECT_SWAP_INPUT_AMOUNT | typeof TUNA_ERROR__INCORRECT_SWAP_OUTPUT_AMOUNT | typeof TUNA_ERROR__INSUFFICIENT_LIQUIDITY | typeof TUNA_ERROR__INSUFFICIENT_SWAP_OUTPUT_AMOUNT | typeof TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR | typeof TUNA_ERROR__INVALID_ACCOUNT_OWNER | typeof TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS | typeof TUNA_ERROR__INVALID_JUPITER_ROUTE | typeof TUNA_ERROR__INVALID_MARKET_MAKER | typeof TUNA_ERROR__INVALID_POOL | typeof TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH | typeof TUNA_ERROR__INVALID_VAULT | typeof TUNA_ERROR__LEFTOVERS_EXCEEDED | typeof TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE | typeof TUNA_ERROR__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED | typeof TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED | typeof TUNA_ERROR__MARKET_DISABLED | typeof TUNA_ERROR__MATH_OVERFLOW | typeof TUNA_ERROR__MATH_UNDERFLOW | typeof TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK | typeof TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED | typeof TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE | typeof TUNA_ERROR__ORACLE_STALE_PRICE | typeof TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE | typeof TUNA_ERROR__POSITION_IS_EMPTY | typeof TUNA_ERROR__POSITION_IS_HEALTHY | typeof TUNA_ERROR__POSITION_IS_LIQUIDATED | typeof TUNA_ERROR__POSITION_IS_UNHEALTHY | typeof TUNA_ERROR__POSITION_NOT_EMPTY | typeof TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED | typeof TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET | typeof TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET | typeof TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE | typeof TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT | typeof TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE | typeof TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH | typeof TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED | typeof TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT | typeof TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED | typeof TUNA_ERROR__SUSPENDED | typeof TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT | typeof TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED | typeof TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED | typeof TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR | typeof TUNA_ERROR__TYPE_CAST_OVERFLOW | typeof TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA | typeof TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA | typeof TUNA_ERROR__UNEXPECTED_VALUE | typeof TUNA_ERROR__UNSUPPORTED_TOKEN_MINT | typeof TUNA_ERROR__VAULT_NOT_INITIALIZED | typeof TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE | typeof TUNA_ERROR__ZERO_AMOUNT | typeof TUNA_ERROR__ZERO_PRICE_RANGE | typeof TUNA_ERROR__ZERO_YIELD;
872
872
  declare function getTunaErrorMessage(code: TunaError): string;
873
873
  declare function isTunaError<TProgramErrorCode extends TunaError>(error: unknown, transactionMessage: {
package/dist/index.d.ts CHANGED
@@ -743,131 +743,131 @@ declare function getVaultSize(): number;
743
743
  */
744
744
 
745
745
  /** TypeCastOverflow: Type cast overflow */
746
- declare const TUNA_ERROR__TYPE_CAST_OVERFLOW = 12500;
746
+ declare const TUNA_ERROR__TYPE_CAST_OVERFLOW = 6500;
747
747
  /** MathOverflow: Math overflow */
748
- declare const TUNA_ERROR__MATH_OVERFLOW = 12501;
748
+ declare const TUNA_ERROR__MATH_OVERFLOW = 6501;
749
749
  /** MathUnderflow: Math underflow */
750
- declare const TUNA_ERROR__MATH_UNDERFLOW = 12502;
750
+ declare const TUNA_ERROR__MATH_UNDERFLOW = 6502;
751
751
  /** VaultNotInitialized: Lending vault is not initialized */
752
- declare const TUNA_ERROR__VAULT_NOT_INITIALIZED = 12559;
752
+ declare const TUNA_ERROR__VAULT_NOT_INITIALIZED = 6559;
753
753
  /** WithdrawRequestExceedsUserBalance: Withdraw request the exceeds user balance */
754
- declare const TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE = 12560;
754
+ declare const TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE = 6560;
755
755
  /** ZeroPriceRange: Zero price range: the lower price is equal to upper price) */
756
- declare const TUNA_ERROR__ZERO_PRICE_RANGE = 12561;
756
+ declare const TUNA_ERROR__ZERO_PRICE_RANGE = 6561;
757
757
  /** AmountSlippageExceeded: Amount slippage exceeded */
758
- declare const TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED = 12600;
758
+ declare const TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED = 6600;
759
759
  /** BadDebt: Bad debt is not allowed for the executed instruction */
760
- declare const TUNA_ERROR__BAD_DEBT = 12601;
760
+ declare const TUNA_ERROR__BAD_DEBT = 6601;
761
761
  /** InvalidRemainingAccountsLength: Invalid number of remaining accounts */
762
- declare const TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH = 12602;
762
+ declare const TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH = 6602;
763
763
  /** InvalidInstructionArguments: Invalid instruction arguments */
764
- declare const TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS = 12603;
764
+ declare const TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS = 6603;
765
765
  /** InvalidMarketMaker: Invalid market maker */
766
- declare const TUNA_ERROR__INVALID_MARKET_MAKER = 12604;
766
+ declare const TUNA_ERROR__INVALID_MARKET_MAKER = 6604;
767
767
  /** InvalidAccountDiscriminator: Invalid account discriminator */
768
- declare const TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR = 12605;
768
+ declare const TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR = 6605;
769
769
  /** InvalidAccountOwner: Invalid account owner */
770
- declare const TUNA_ERROR__INVALID_ACCOUNT_OWNER = 12606;
770
+ declare const TUNA_ERROR__INVALID_ACCOUNT_OWNER = 6606;
771
771
  /** InvalidPool: Invalid Fusion or Orca pool */
772
- declare const TUNA_ERROR__INVALID_POOL = 12607;
772
+ declare const TUNA_ERROR__INVALID_POOL = 6607;
773
773
  /** InvalidVault: Vault address is invalid */
774
- declare const TUNA_ERROR__INVALID_VAULT = 12608;
774
+ declare const TUNA_ERROR__INVALID_VAULT = 6608;
775
775
  /** InsufficientLiquidity: Insufficient liquidity */
776
- declare const TUNA_ERROR__INSUFFICIENT_LIQUIDITY = 12609;
776
+ declare const TUNA_ERROR__INSUFFICIENT_LIQUIDITY = 6609;
777
777
  /** InterestRateIsOutOfRange: Interest rate is out of range */
778
- declare const TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE = 12610;
778
+ declare const TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE = 6610;
779
779
  /** LeverageIsOutOfRange: Leverage is out or range */
780
- declare const TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE = 12611;
780
+ declare const TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE = 6611;
781
781
  /** LeftoversExceeded: Leftovers percentage exceeded the maximum allowed value */
782
- declare const TUNA_ERROR__LEFTOVERS_EXCEEDED = 12612;
782
+ declare const TUNA_ERROR__LEFTOVERS_EXCEEDED = 6612;
783
783
  /** LiquidationFeeIsOutOfRange: Liquidation fee is out of range */
784
- declare const TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE = 12613;
784
+ declare const TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE = 6613;
785
785
  /** LiquidationThresholdIsOutOfRange: Liquidation threshold is out of range */
786
- declare const TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE = 12614;
786
+ declare const TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE = 6614;
787
787
  /** MarketDisabled: Market is disabled */
788
- declare const TUNA_ERROR__MARKET_DISABLED = 12615;
788
+ declare const TUNA_ERROR__MARKET_DISABLED = 6615;
789
789
  /** MarketDebtLimitExceeded: Exceed the maximum allowed debt for the market */
790
- declare const TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED = 12616;
790
+ declare const TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED = 6616;
791
791
  /** NoExtraAccountsForTransferHook: Unable to call transfer hook without extra accounts */
792
- declare const TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK = 12617;
792
+ declare const TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK = 6617;
793
793
  /** OracleStalePrice: Oracle price is stale */
794
- declare const TUNA_ERROR__ORACLE_STALE_PRICE = 12618;
794
+ declare const TUNA_ERROR__ORACLE_STALE_PRICE = 6618;
795
795
  /** OraclePriceDeviationThresholdExceeded: Oracle price deviation threshold exceeded */
796
- declare const TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 12619;
796
+ declare const TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 6619;
797
797
  /** OraclePriceDeviationThresholdOutOfRange: Oracle price deviation threshold out of range */
798
- declare const TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE = 12620;
798
+ declare const TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE = 6620;
799
799
  /** PositionIsHealthy: Position is healthy */
800
- declare const TUNA_ERROR__POSITION_IS_HEALTHY = 12622;
800
+ declare const TUNA_ERROR__POSITION_IS_HEALTHY = 6622;
801
801
  /** PositionIsLiquidated: Position is already liquidated */
802
- declare const TUNA_ERROR__POSITION_IS_LIQUIDATED = 12623;
802
+ declare const TUNA_ERROR__POSITION_IS_LIQUIDATED = 6623;
803
803
  /** PositionIsUnhealthy: Position is unhealthy */
804
- declare const TUNA_ERROR__POSITION_IS_UNHEALTHY = 12624;
804
+ declare const TUNA_ERROR__POSITION_IS_UNHEALTHY = 6624;
805
805
  /** PositionNotEmpty: Position is not empty */
806
- declare const TUNA_ERROR__POSITION_NOT_EMPTY = 12625;
806
+ declare const TUNA_ERROR__POSITION_NOT_EMPTY = 6625;
807
807
  /** PositionIsEmpty: Position is empty */
808
- declare const TUNA_ERROR__POSITION_IS_EMPTY = 12626;
808
+ declare const TUNA_ERROR__POSITION_IS_EMPTY = 6626;
809
809
  /** PositionIsAutoRebalanceable: Unable to claim yield for auto re-balanceable positions */
810
- declare const TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE = 12627;
810
+ declare const TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE = 6627;
811
811
  /** PositionSizeLimitExceeded: Position size exceeds the maximum allowed value */
812
- declare const TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED = 12628;
812
+ declare const TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED = 6628;
813
813
  /** ProtocolFeeIsOutOfRange: Protocol fee is out of range */
814
- declare const TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE = 12640;
814
+ declare const TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE = 6640;
815
815
  /** RebalanceConditionsNotMet: Rebalance conditions are not met */
816
- declare const TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET = 12641;
816
+ declare const TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET = 6641;
817
817
  /** RemainingAccountsDuplicatedAccountsType: Same accounts type is provided more than once */
818
- declare const TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE = 12642;
818
+ declare const TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE = 6642;
819
819
  /** RemainingAccountsInvalidSlice: Invalid remaining accounts */
820
- declare const TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE = 12643;
820
+ declare const TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE = 6643;
821
821
  /** RemainingAccountsInvalidSliceLength: Invalid remaining accounts slice length */
822
- declare const TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH = 12644;
822
+ declare const TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH = 6644;
823
823
  /** RemainingAccountsInsufficient: Insufficient remaining accounts */
824
- declare const TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT = 12645;
824
+ declare const TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT = 6645;
825
825
  /** RequiredRemainingAccountNotProvided: Required remaining account is not provided */
826
- declare const TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED = 12646;
826
+ declare const TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED = 6646;
827
827
  /** SolverFailedToFindRoot: Swap equation solver failed to t find the root */
828
- declare const TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT = 12647;
828
+ declare const TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT = 6647;
829
829
  /** SupplyLimitExceeded: Lending vault supply limit exceeded */
830
- declare const TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED = 12648;
830
+ declare const TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED = 6648;
831
831
  /** Suspended: Instruction is suspended */
832
- declare const TUNA_ERROR__SUSPENDED = 12649;
832
+ declare const TUNA_ERROR__SUSPENDED = 6649;
833
833
  /** SwapSlippageExceeded: Maximum allowed swap slippage is exceeded */
834
- declare const TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED = 12650;
834
+ declare const TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED = 6650;
835
835
  /** SwapSlippageIsOutOfRange: Provided swap slippage value is out of range */
836
- declare const TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE = 12651;
836
+ declare const TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE = 6651;
837
837
  /** SwapToPositionRatioEstimationFailed: Swap to position ratio estimation failed */
838
- declare const TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED = 12652;
838
+ declare const TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED = 6652;
839
839
  /** SwapQuoteNotEqualToActualSwapAmount: Swap quote amount is not equal to the actual swap amount */
840
- declare const TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT = 12653;
840
+ declare const TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT = 6653;
841
841
  /** TransferFeeCalculationError: Transfer fee calculation failed */
842
- declare const TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR = 12654;
842
+ declare const TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR = 6654;
843
843
  /** UnableToLoadAccountData: Unable to load the account data */
844
- declare const TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA = 12655;
844
+ declare const TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA = 6655;
845
845
  /** UnableToDeserializeAccountData: Unable to deserialize the account data */
846
- declare const TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA = 12656;
846
+ declare const TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA = 6656;
847
847
  /** UnexpectedValue: Unexpected value */
848
- declare const TUNA_ERROR__UNEXPECTED_VALUE = 12657;
848
+ declare const TUNA_ERROR__UNEXPECTED_VALUE = 6657;
849
849
  /** UnsupportedTokenMint: Token mint has unsupported attributes */
850
- declare const TUNA_ERROR__UNSUPPORTED_TOKEN_MINT = 12658;
850
+ declare const TUNA_ERROR__UNSUPPORTED_TOKEN_MINT = 6658;
851
851
  /** ZeroYield: Collected yield is zero */
852
- declare const TUNA_ERROR__ZERO_YIELD = 12662;
852
+ declare const TUNA_ERROR__ZERO_YIELD = 6662;
853
853
  /** ZeroAmount: Position amount is zero */
854
- declare const TUNA_ERROR__ZERO_AMOUNT = 12663;
854
+ declare const TUNA_ERROR__ZERO_AMOUNT = 6663;
855
855
  /** IncorrectPositionDirection: Incorrect position direction */
856
- declare const TUNA_ERROR__INCORRECT_POSITION_DIRECTION = 12670;
856
+ declare const TUNA_ERROR__INCORRECT_POSITION_DIRECTION = 6670;
857
857
  /** RecipientAccountIsNotSet: Optional recipient account is not set */
858
- declare const TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET = 12671;
858
+ declare const TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET = 6671;
859
859
  /** MAPriceDeviationThresholdExceeded: Moving Average price deviation threshold exceeded */
860
- declare const TUNA_ERROR__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 12672;
860
+ declare const TUNA_ERROR__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 6672;
861
861
  /** InvalidJupiterRoute: Invalid jupiter route data */
862
- declare const TUNA_ERROR__INVALID_JUPITER_ROUTE = 12673;
862
+ declare const TUNA_ERROR__INVALID_JUPITER_ROUTE = 6673;
863
863
  /** InsufficientSwapOutputAmount: Insufficient swap output amount */
864
- declare const TUNA_ERROR__INSUFFICIENT_SWAP_OUTPUT_AMOUNT = 12674;
864
+ declare const TUNA_ERROR__INSUFFICIENT_SWAP_OUTPUT_AMOUNT = 6674;
865
865
  /** IncorrectSwapInputAmount: Incorrect swap input amount */
866
- declare const TUNA_ERROR__INCORRECT_SWAP_INPUT_AMOUNT = 12675;
866
+ declare const TUNA_ERROR__INCORRECT_SWAP_INPUT_AMOUNT = 6675;
867
867
  /** IncorrectSwapOutputAmount: Incorrect swap output amount */
868
- declare const TUNA_ERROR__INCORRECT_SWAP_OUTPUT_AMOUNT = 12676;
868
+ declare const TUNA_ERROR__INCORRECT_SWAP_OUTPUT_AMOUNT = 6676;
869
869
  /** AccountNotInitialized: Account is not initialized */
870
- declare const TUNA_ERROR__ACCOUNT_NOT_INITIALIZED = 12677;
870
+ declare const TUNA_ERROR__ACCOUNT_NOT_INITIALIZED = 6677;
871
871
  type TunaError = typeof TUNA_ERROR__ACCOUNT_NOT_INITIALIZED | typeof TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED | typeof TUNA_ERROR__BAD_DEBT | typeof TUNA_ERROR__INCORRECT_POSITION_DIRECTION | typeof TUNA_ERROR__INCORRECT_SWAP_INPUT_AMOUNT | typeof TUNA_ERROR__INCORRECT_SWAP_OUTPUT_AMOUNT | typeof TUNA_ERROR__INSUFFICIENT_LIQUIDITY | typeof TUNA_ERROR__INSUFFICIENT_SWAP_OUTPUT_AMOUNT | typeof TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR | typeof TUNA_ERROR__INVALID_ACCOUNT_OWNER | typeof TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS | typeof TUNA_ERROR__INVALID_JUPITER_ROUTE | typeof TUNA_ERROR__INVALID_MARKET_MAKER | typeof TUNA_ERROR__INVALID_POOL | typeof TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH | typeof TUNA_ERROR__INVALID_VAULT | typeof TUNA_ERROR__LEFTOVERS_EXCEEDED | typeof TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE | typeof TUNA_ERROR__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED | typeof TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED | typeof TUNA_ERROR__MARKET_DISABLED | typeof TUNA_ERROR__MATH_OVERFLOW | typeof TUNA_ERROR__MATH_UNDERFLOW | typeof TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK | typeof TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED | typeof TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE | typeof TUNA_ERROR__ORACLE_STALE_PRICE | typeof TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE | typeof TUNA_ERROR__POSITION_IS_EMPTY | typeof TUNA_ERROR__POSITION_IS_HEALTHY | typeof TUNA_ERROR__POSITION_IS_LIQUIDATED | typeof TUNA_ERROR__POSITION_IS_UNHEALTHY | typeof TUNA_ERROR__POSITION_NOT_EMPTY | typeof TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED | typeof TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET | typeof TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET | typeof TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE | typeof TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT | typeof TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE | typeof TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH | typeof TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED | typeof TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT | typeof TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED | typeof TUNA_ERROR__SUSPENDED | typeof TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT | typeof TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED | typeof TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED | typeof TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR | typeof TUNA_ERROR__TYPE_CAST_OVERFLOW | typeof TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA | typeof TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA | typeof TUNA_ERROR__UNEXPECTED_VALUE | typeof TUNA_ERROR__UNSUPPORTED_TOKEN_MINT | typeof TUNA_ERROR__VAULT_NOT_INITIALIZED | typeof TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE | typeof TUNA_ERROR__ZERO_AMOUNT | typeof TUNA_ERROR__ZERO_PRICE_RANGE | typeof TUNA_ERROR__ZERO_YIELD;
872
872
  declare function getTunaErrorMessage(code: TunaError): string;
873
873
  declare function isTunaError<TProgramErrorCode extends TunaError>(error: unknown, transactionMessage: {
package/dist/index.js CHANGED
@@ -2084,69 +2084,69 @@ function identifyTunaInstruction(instruction) {
2084
2084
  }
2085
2085
 
2086
2086
  // src/generated/errors/tuna.ts
2087
- var TUNA_ERROR__TYPE_CAST_OVERFLOW = 12500;
2088
- var TUNA_ERROR__MATH_OVERFLOW = 12501;
2089
- var TUNA_ERROR__MATH_UNDERFLOW = 12502;
2090
- var TUNA_ERROR__VAULT_NOT_INITIALIZED = 12559;
2091
- var TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE = 12560;
2092
- var TUNA_ERROR__ZERO_PRICE_RANGE = 12561;
2093
- var TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED = 12600;
2094
- var TUNA_ERROR__BAD_DEBT = 12601;
2095
- var TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH = 12602;
2096
- var TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS = 12603;
2097
- var TUNA_ERROR__INVALID_MARKET_MAKER = 12604;
2098
- var TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR = 12605;
2099
- var TUNA_ERROR__INVALID_ACCOUNT_OWNER = 12606;
2100
- var TUNA_ERROR__INVALID_POOL = 12607;
2101
- var TUNA_ERROR__INVALID_VAULT = 12608;
2102
- var TUNA_ERROR__INSUFFICIENT_LIQUIDITY = 12609;
2103
- var TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE = 12610;
2104
- var TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE = 12611;
2105
- var TUNA_ERROR__LEFTOVERS_EXCEEDED = 12612;
2106
- var TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE = 12613;
2107
- var TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE = 12614;
2108
- var TUNA_ERROR__MARKET_DISABLED = 12615;
2109
- var TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED = 12616;
2110
- var TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK = 12617;
2111
- var TUNA_ERROR__ORACLE_STALE_PRICE = 12618;
2112
- var TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 12619;
2113
- var TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE = 12620;
2114
- var TUNA_ERROR__POSITION_IS_HEALTHY = 12622;
2115
- var TUNA_ERROR__POSITION_IS_LIQUIDATED = 12623;
2116
- var TUNA_ERROR__POSITION_IS_UNHEALTHY = 12624;
2117
- var TUNA_ERROR__POSITION_NOT_EMPTY = 12625;
2118
- var TUNA_ERROR__POSITION_IS_EMPTY = 12626;
2119
- var TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE = 12627;
2120
- var TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED = 12628;
2121
- var TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE = 12640;
2122
- var TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET = 12641;
2123
- var TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE = 12642;
2124
- var TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE = 12643;
2125
- var TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH = 12644;
2126
- var TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT = 12645;
2127
- var TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED = 12646;
2128
- var TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT = 12647;
2129
- var TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED = 12648;
2130
- var TUNA_ERROR__SUSPENDED = 12649;
2131
- var TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED = 12650;
2132
- var TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE = 12651;
2133
- var TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED = 12652;
2134
- var TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT = 12653;
2135
- var TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR = 12654;
2136
- var TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA = 12655;
2137
- var TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA = 12656;
2138
- var TUNA_ERROR__UNEXPECTED_VALUE = 12657;
2139
- var TUNA_ERROR__UNSUPPORTED_TOKEN_MINT = 12658;
2140
- var TUNA_ERROR__ZERO_YIELD = 12662;
2141
- var TUNA_ERROR__ZERO_AMOUNT = 12663;
2142
- var TUNA_ERROR__INCORRECT_POSITION_DIRECTION = 12670;
2143
- var TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET = 12671;
2144
- var TUNA_ERROR__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 12672;
2145
- var TUNA_ERROR__INVALID_JUPITER_ROUTE = 12673;
2146
- var TUNA_ERROR__INSUFFICIENT_SWAP_OUTPUT_AMOUNT = 12674;
2147
- var TUNA_ERROR__INCORRECT_SWAP_INPUT_AMOUNT = 12675;
2148
- var TUNA_ERROR__INCORRECT_SWAP_OUTPUT_AMOUNT = 12676;
2149
- var TUNA_ERROR__ACCOUNT_NOT_INITIALIZED = 12677;
2087
+ var TUNA_ERROR__TYPE_CAST_OVERFLOW = 6500;
2088
+ var TUNA_ERROR__MATH_OVERFLOW = 6501;
2089
+ var TUNA_ERROR__MATH_UNDERFLOW = 6502;
2090
+ var TUNA_ERROR__VAULT_NOT_INITIALIZED = 6559;
2091
+ var TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE = 6560;
2092
+ var TUNA_ERROR__ZERO_PRICE_RANGE = 6561;
2093
+ var TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED = 6600;
2094
+ var TUNA_ERROR__BAD_DEBT = 6601;
2095
+ var TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH = 6602;
2096
+ var TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS = 6603;
2097
+ var TUNA_ERROR__INVALID_MARKET_MAKER = 6604;
2098
+ var TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR = 6605;
2099
+ var TUNA_ERROR__INVALID_ACCOUNT_OWNER = 6606;
2100
+ var TUNA_ERROR__INVALID_POOL = 6607;
2101
+ var TUNA_ERROR__INVALID_VAULT = 6608;
2102
+ var TUNA_ERROR__INSUFFICIENT_LIQUIDITY = 6609;
2103
+ var TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE = 6610;
2104
+ var TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE = 6611;
2105
+ var TUNA_ERROR__LEFTOVERS_EXCEEDED = 6612;
2106
+ var TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE = 6613;
2107
+ var TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE = 6614;
2108
+ var TUNA_ERROR__MARKET_DISABLED = 6615;
2109
+ var TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED = 6616;
2110
+ var TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK = 6617;
2111
+ var TUNA_ERROR__ORACLE_STALE_PRICE = 6618;
2112
+ var TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 6619;
2113
+ var TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE = 6620;
2114
+ var TUNA_ERROR__POSITION_IS_HEALTHY = 6622;
2115
+ var TUNA_ERROR__POSITION_IS_LIQUIDATED = 6623;
2116
+ var TUNA_ERROR__POSITION_IS_UNHEALTHY = 6624;
2117
+ var TUNA_ERROR__POSITION_NOT_EMPTY = 6625;
2118
+ var TUNA_ERROR__POSITION_IS_EMPTY = 6626;
2119
+ var TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE = 6627;
2120
+ var TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED = 6628;
2121
+ var TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE = 6640;
2122
+ var TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET = 6641;
2123
+ var TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE = 6642;
2124
+ var TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE = 6643;
2125
+ var TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH = 6644;
2126
+ var TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT = 6645;
2127
+ var TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED = 6646;
2128
+ var TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT = 6647;
2129
+ var TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED = 6648;
2130
+ var TUNA_ERROR__SUSPENDED = 6649;
2131
+ var TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED = 6650;
2132
+ var TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE = 6651;
2133
+ var TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED = 6652;
2134
+ var TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT = 6653;
2135
+ var TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR = 6654;
2136
+ var TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA = 6655;
2137
+ var TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA = 6656;
2138
+ var TUNA_ERROR__UNEXPECTED_VALUE = 6657;
2139
+ var TUNA_ERROR__UNSUPPORTED_TOKEN_MINT = 6658;
2140
+ var TUNA_ERROR__ZERO_YIELD = 6662;
2141
+ var TUNA_ERROR__ZERO_AMOUNT = 6663;
2142
+ var TUNA_ERROR__INCORRECT_POSITION_DIRECTION = 6670;
2143
+ var TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET = 6671;
2144
+ var TUNA_ERROR__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 6672;
2145
+ var TUNA_ERROR__INVALID_JUPITER_ROUTE = 6673;
2146
+ var TUNA_ERROR__INSUFFICIENT_SWAP_OUTPUT_AMOUNT = 6674;
2147
+ var TUNA_ERROR__INCORRECT_SWAP_INPUT_AMOUNT = 6675;
2148
+ var TUNA_ERROR__INCORRECT_SWAP_OUTPUT_AMOUNT = 6676;
2149
+ var TUNA_ERROR__ACCOUNT_NOT_INITIALIZED = 6677;
2150
2150
  var tunaErrorMessages;
2151
2151
  if (process.env.NODE_ENV !== "production") {
2152
2152
  tunaErrorMessages = {
package/dist/index.mjs CHANGED
@@ -1544,69 +1544,69 @@ function identifyTunaInstruction(instruction) {
1544
1544
  }
1545
1545
 
1546
1546
  // src/generated/errors/tuna.ts
1547
- var TUNA_ERROR__TYPE_CAST_OVERFLOW = 12500;
1548
- var TUNA_ERROR__MATH_OVERFLOW = 12501;
1549
- var TUNA_ERROR__MATH_UNDERFLOW = 12502;
1550
- var TUNA_ERROR__VAULT_NOT_INITIALIZED = 12559;
1551
- var TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE = 12560;
1552
- var TUNA_ERROR__ZERO_PRICE_RANGE = 12561;
1553
- var TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED = 12600;
1554
- var TUNA_ERROR__BAD_DEBT = 12601;
1555
- var TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH = 12602;
1556
- var TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS = 12603;
1557
- var TUNA_ERROR__INVALID_MARKET_MAKER = 12604;
1558
- var TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR = 12605;
1559
- var TUNA_ERROR__INVALID_ACCOUNT_OWNER = 12606;
1560
- var TUNA_ERROR__INVALID_POOL = 12607;
1561
- var TUNA_ERROR__INVALID_VAULT = 12608;
1562
- var TUNA_ERROR__INSUFFICIENT_LIQUIDITY = 12609;
1563
- var TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE = 12610;
1564
- var TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE = 12611;
1565
- var TUNA_ERROR__LEFTOVERS_EXCEEDED = 12612;
1566
- var TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE = 12613;
1567
- var TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE = 12614;
1568
- var TUNA_ERROR__MARKET_DISABLED = 12615;
1569
- var TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED = 12616;
1570
- var TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK = 12617;
1571
- var TUNA_ERROR__ORACLE_STALE_PRICE = 12618;
1572
- var TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 12619;
1573
- var TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE = 12620;
1574
- var TUNA_ERROR__POSITION_IS_HEALTHY = 12622;
1575
- var TUNA_ERROR__POSITION_IS_LIQUIDATED = 12623;
1576
- var TUNA_ERROR__POSITION_IS_UNHEALTHY = 12624;
1577
- var TUNA_ERROR__POSITION_NOT_EMPTY = 12625;
1578
- var TUNA_ERROR__POSITION_IS_EMPTY = 12626;
1579
- var TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE = 12627;
1580
- var TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED = 12628;
1581
- var TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE = 12640;
1582
- var TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET = 12641;
1583
- var TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE = 12642;
1584
- var TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE = 12643;
1585
- var TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH = 12644;
1586
- var TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT = 12645;
1587
- var TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED = 12646;
1588
- var TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT = 12647;
1589
- var TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED = 12648;
1590
- var TUNA_ERROR__SUSPENDED = 12649;
1591
- var TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED = 12650;
1592
- var TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE = 12651;
1593
- var TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED = 12652;
1594
- var TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT = 12653;
1595
- var TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR = 12654;
1596
- var TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA = 12655;
1597
- var TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA = 12656;
1598
- var TUNA_ERROR__UNEXPECTED_VALUE = 12657;
1599
- var TUNA_ERROR__UNSUPPORTED_TOKEN_MINT = 12658;
1600
- var TUNA_ERROR__ZERO_YIELD = 12662;
1601
- var TUNA_ERROR__ZERO_AMOUNT = 12663;
1602
- var TUNA_ERROR__INCORRECT_POSITION_DIRECTION = 12670;
1603
- var TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET = 12671;
1604
- var TUNA_ERROR__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 12672;
1605
- var TUNA_ERROR__INVALID_JUPITER_ROUTE = 12673;
1606
- var TUNA_ERROR__INSUFFICIENT_SWAP_OUTPUT_AMOUNT = 12674;
1607
- var TUNA_ERROR__INCORRECT_SWAP_INPUT_AMOUNT = 12675;
1608
- var TUNA_ERROR__INCORRECT_SWAP_OUTPUT_AMOUNT = 12676;
1609
- var TUNA_ERROR__ACCOUNT_NOT_INITIALIZED = 12677;
1547
+ var TUNA_ERROR__TYPE_CAST_OVERFLOW = 6500;
1548
+ var TUNA_ERROR__MATH_OVERFLOW = 6501;
1549
+ var TUNA_ERROR__MATH_UNDERFLOW = 6502;
1550
+ var TUNA_ERROR__VAULT_NOT_INITIALIZED = 6559;
1551
+ var TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE = 6560;
1552
+ var TUNA_ERROR__ZERO_PRICE_RANGE = 6561;
1553
+ var TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED = 6600;
1554
+ var TUNA_ERROR__BAD_DEBT = 6601;
1555
+ var TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH = 6602;
1556
+ var TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS = 6603;
1557
+ var TUNA_ERROR__INVALID_MARKET_MAKER = 6604;
1558
+ var TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR = 6605;
1559
+ var TUNA_ERROR__INVALID_ACCOUNT_OWNER = 6606;
1560
+ var TUNA_ERROR__INVALID_POOL = 6607;
1561
+ var TUNA_ERROR__INVALID_VAULT = 6608;
1562
+ var TUNA_ERROR__INSUFFICIENT_LIQUIDITY = 6609;
1563
+ var TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE = 6610;
1564
+ var TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE = 6611;
1565
+ var TUNA_ERROR__LEFTOVERS_EXCEEDED = 6612;
1566
+ var TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE = 6613;
1567
+ var TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE = 6614;
1568
+ var TUNA_ERROR__MARKET_DISABLED = 6615;
1569
+ var TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED = 6616;
1570
+ var TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK = 6617;
1571
+ var TUNA_ERROR__ORACLE_STALE_PRICE = 6618;
1572
+ var TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 6619;
1573
+ var TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE = 6620;
1574
+ var TUNA_ERROR__POSITION_IS_HEALTHY = 6622;
1575
+ var TUNA_ERROR__POSITION_IS_LIQUIDATED = 6623;
1576
+ var TUNA_ERROR__POSITION_IS_UNHEALTHY = 6624;
1577
+ var TUNA_ERROR__POSITION_NOT_EMPTY = 6625;
1578
+ var TUNA_ERROR__POSITION_IS_EMPTY = 6626;
1579
+ var TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE = 6627;
1580
+ var TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED = 6628;
1581
+ var TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE = 6640;
1582
+ var TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET = 6641;
1583
+ var TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE = 6642;
1584
+ var TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE = 6643;
1585
+ var TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH = 6644;
1586
+ var TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT = 6645;
1587
+ var TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED = 6646;
1588
+ var TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT = 6647;
1589
+ var TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED = 6648;
1590
+ var TUNA_ERROR__SUSPENDED = 6649;
1591
+ var TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED = 6650;
1592
+ var TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE = 6651;
1593
+ var TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED = 6652;
1594
+ var TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT = 6653;
1595
+ var TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR = 6654;
1596
+ var TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA = 6655;
1597
+ var TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA = 6656;
1598
+ var TUNA_ERROR__UNEXPECTED_VALUE = 6657;
1599
+ var TUNA_ERROR__UNSUPPORTED_TOKEN_MINT = 6658;
1600
+ var TUNA_ERROR__ZERO_YIELD = 6662;
1601
+ var TUNA_ERROR__ZERO_AMOUNT = 6663;
1602
+ var TUNA_ERROR__INCORRECT_POSITION_DIRECTION = 6670;
1603
+ var TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET = 6671;
1604
+ var TUNA_ERROR__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 6672;
1605
+ var TUNA_ERROR__INVALID_JUPITER_ROUTE = 6673;
1606
+ var TUNA_ERROR__INSUFFICIENT_SWAP_OUTPUT_AMOUNT = 6674;
1607
+ var TUNA_ERROR__INCORRECT_SWAP_INPUT_AMOUNT = 6675;
1608
+ var TUNA_ERROR__INCORRECT_SWAP_OUTPUT_AMOUNT = 6676;
1609
+ var TUNA_ERROR__ACCOUNT_NOT_INITIALIZED = 6677;
1610
1610
  var tunaErrorMessages;
1611
1611
  if (process.env.NODE_ENV !== "production") {
1612
1612
  tunaErrorMessages = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@crypticdot/defituna-client",
3
3
  "description": "Typescript client to interact with DefiTuna's on-chain program.",
4
- "version": "3.5.0",
4
+ "version": "3.5.2",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "main": "./dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "@solana-program/token-2022": "^0.4.2",
31
31
  "@solana-program/memo": "^0.7.0",
32
32
  "@solana-program/address-lookup-table": "^0.7.0",
33
- "@crypticdot/defituna-core": "3.5.0"
33
+ "@crypticdot/defituna-core": "3.5.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@crypticdot/jupiter-solana-client": "^1.0.0",
@@ -53,7 +53,7 @@
53
53
  "rimraf": "^6.0.1",
54
54
  "vitest": "^3.1.1",
55
55
  "solana-bankrun": "^0.4.0",
56
- "@crypticdot/defituna-program": "3.5.0"
56
+ "@crypticdot/defituna-program": "3.5.1"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "node ./codama.mjs && tsup src/index.ts --format cjs,esm --dts",