@crypticdot/defituna-client 2.0.12 → 2.0.13
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 +16 -18
- package/dist/index.d.ts +16 -18
- package/dist/index.js +16 -34
- package/dist/index.mjs +15 -27
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -171,7 +171,7 @@ type Market = {
|
|
|
171
171
|
version: number;
|
|
172
172
|
/** Bump seed for the market account */
|
|
173
173
|
bump: ReadonlyUint8Array;
|
|
174
|
-
/** Market maker: Orca, Fusion,
|
|
174
|
+
/** Market maker: Orca, Fusion, etc... */
|
|
175
175
|
marketMaker: MarketMaker;
|
|
176
176
|
/** Liquidity pool address */
|
|
177
177
|
pool: Address;
|
|
@@ -203,6 +203,8 @@ type Market = {
|
|
|
203
203
|
borrowLimitB: bigint;
|
|
204
204
|
/** Maximum allowed swap slippage represented as hundredths of a basis point. If it's set to zero, the default value from the global config is used. */
|
|
205
205
|
maxSwapSlippage: number;
|
|
206
|
+
/** The protocol fee taken from yield when a position is re-balanced. */
|
|
207
|
+
rebalanceProtocolFee: number;
|
|
206
208
|
/** Reserved */
|
|
207
209
|
reserved: ReadonlyUint8Array;
|
|
208
210
|
};
|
|
@@ -211,7 +213,7 @@ type MarketArgs = {
|
|
|
211
213
|
version: number;
|
|
212
214
|
/** Bump seed for the market account */
|
|
213
215
|
bump: ReadonlyUint8Array;
|
|
214
|
-
/** Market maker: Orca, Fusion,
|
|
216
|
+
/** Market maker: Orca, Fusion, etc... */
|
|
215
217
|
marketMaker: MarketMakerArgs;
|
|
216
218
|
/** Liquidity pool address */
|
|
217
219
|
pool: Address;
|
|
@@ -243,6 +245,8 @@ type MarketArgs = {
|
|
|
243
245
|
borrowLimitB: number | bigint;
|
|
244
246
|
/** Maximum allowed swap slippage represented as hundredths of a basis point. If it's set to zero, the default value from the global config is used. */
|
|
245
247
|
maxSwapSlippage: number;
|
|
248
|
+
/** The protocol fee taken from yield when a position is re-balanced. */
|
|
249
|
+
rebalanceProtocolFee: number;
|
|
246
250
|
/** Reserved */
|
|
247
251
|
reserved: ReadonlyUint8Array;
|
|
248
252
|
};
|
|
@@ -699,21 +703,9 @@ declare const TUNA_ERROR__ZERO_PRICE_RANGE = 6053;
|
|
|
699
703
|
declare const TUNA_ERROR__ZERO_TRADABLE_AMOUNT = 6054;
|
|
700
704
|
/** ZeroYield: Collected yield is zero */
|
|
701
705
|
declare const TUNA_ERROR__ZERO_YIELD = 6055;
|
|
702
|
-
/**
|
|
703
|
-
declare const
|
|
704
|
-
|
|
705
|
-
declare const TUNA_ERROR__RAYDIUM_INVALID_TICK_ARRAY = 6057;
|
|
706
|
-
/** RaydiumInvaildTickIndex: RaydiumInvaildTickIndex */
|
|
707
|
-
declare const TUNA_ERROR__RAYDIUM_INVAILD_TICK_INDEX = 6058;
|
|
708
|
-
/** RaydiumMaxTokenOverflow: RaydiumMaxTokenOverflow */
|
|
709
|
-
declare const TUNA_ERROR__RAYDIUM_MAX_TOKEN_OVERFLOW = 6059;
|
|
710
|
-
/** RaydiumNotEnoughTickArrayAccount: RaydiumNotEnoughTickArrayAccount */
|
|
711
|
-
declare const TUNA_ERROR__RAYDIUM_NOT_ENOUGH_TICK_ARRAY_ACCOUNT = 6060;
|
|
712
|
-
/** RaydiumSqrtPriceLimitOverflow: RaydiumSqrtPriceLimitOverflow */
|
|
713
|
-
declare const TUNA_ERROR__RAYDIUM_SQRT_PRICE_LIMIT_OVERFLOW = 6061;
|
|
714
|
-
/** RaydiumZeroAmountSpecified: RaydiumZeroAmountSpecified */
|
|
715
|
-
declare const TUNA_ERROR__RAYDIUM_ZERO_AMOUNT_SPECIFIED = 6062;
|
|
716
|
-
type TunaError = typeof TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED | typeof TUNA_ERROR__BAD_DEBT | typeof TUNA_ERROR__INSUFFICIENT_LIQUIDITY | typeof TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__INVALID_ACCOUNT_OWNER | typeof TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS | typeof TUNA_ERROR__INVALID_MARKET_MAKER | typeof TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH | typeof TUNA_ERROR__INVALID_SQRT_PRICE_LIMIT_DIRECTION | typeof TUNA_ERROR__INVALID_TICK_ARRAY_SEQUENCE | typeof TUNA_ERROR__LEFTOVERS_EXCEEDED | typeof TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIMIT_ORDER_EXECUTION_FEE_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__LIQUIDITY_ZERO | 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__PARTIAL_FILL_ERROR | 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__PROTOCOL_FEE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__RAYDIUM_INVAILD_TICK_INDEX | typeof TUNA_ERROR__RAYDIUM_INVALID_FIRST_TICK_ARRAY_ACCOUNT | typeof TUNA_ERROR__RAYDIUM_INVALID_TICK_ARRAY | typeof TUNA_ERROR__RAYDIUM_MAX_TOKEN_OVERFLOW | typeof TUNA_ERROR__RAYDIUM_NOT_ENOUGH_TICK_ARRAY_ACCOUNT | typeof TUNA_ERROR__RAYDIUM_SQRT_PRICE_LIMIT_OVERFLOW | typeof TUNA_ERROR__RAYDIUM_ZERO_AMOUNT_SPECIFIED | typeof TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET | 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__SQRT_PRICE_OUT_OF_BOUNDS | 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__TICK_INDEX_OF_BOUNDS | 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_PRICE_RANGE | typeof TUNA_ERROR__ZERO_TRADABLE_AMOUNT | typeof TUNA_ERROR__ZERO_YIELD;
|
|
706
|
+
/** PositionIsAutoRebalanceable: Unable to claim yield for auto re-balanceable positions */
|
|
707
|
+
declare const TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE = 6056;
|
|
708
|
+
type TunaError = typeof TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED | typeof TUNA_ERROR__BAD_DEBT | typeof TUNA_ERROR__INSUFFICIENT_LIQUIDITY | typeof TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__INVALID_ACCOUNT_OWNER | typeof TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS | typeof TUNA_ERROR__INVALID_MARKET_MAKER | typeof TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH | typeof TUNA_ERROR__INVALID_SQRT_PRICE_LIMIT_DIRECTION | typeof TUNA_ERROR__INVALID_TICK_ARRAY_SEQUENCE | typeof TUNA_ERROR__LEFTOVERS_EXCEEDED | typeof TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIMIT_ORDER_EXECUTION_FEE_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__LIQUIDITY_ZERO | 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__PARTIAL_FILL_ERROR | typeof TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE | 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__PROTOCOL_FEE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET | 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__SQRT_PRICE_OUT_OF_BOUNDS | 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__TICK_INDEX_OF_BOUNDS | 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_PRICE_RANGE | typeof TUNA_ERROR__ZERO_TRADABLE_AMOUNT | typeof TUNA_ERROR__ZERO_YIELD;
|
|
717
709
|
declare function getTunaErrorMessage(code: TunaError): string;
|
|
718
710
|
declare function isTunaError<TProgramErrorCode extends TunaError>(error: unknown, transactionMessage: {
|
|
719
711
|
instructions: Record<number, {
|
|
@@ -1981,6 +1973,7 @@ type CreateMarketInstructionData = {
|
|
|
1981
1973
|
borrowLimitA: bigint;
|
|
1982
1974
|
borrowLimitB: bigint;
|
|
1983
1975
|
maxSwapSlippage: number;
|
|
1976
|
+
rebalanceProtocolFee: number;
|
|
1984
1977
|
};
|
|
1985
1978
|
type CreateMarketInstructionDataArgs = {
|
|
1986
1979
|
marketMaker: MarketMakerArgs;
|
|
@@ -1996,6 +1989,7 @@ type CreateMarketInstructionDataArgs = {
|
|
|
1996
1989
|
borrowLimitA: number | bigint;
|
|
1997
1990
|
borrowLimitB: number | bigint;
|
|
1998
1991
|
maxSwapSlippage: number;
|
|
1992
|
+
rebalanceProtocolFee: number;
|
|
1999
1993
|
};
|
|
2000
1994
|
declare function getCreateMarketInstructionDataEncoder(): Encoder<CreateMarketInstructionDataArgs>;
|
|
2001
1995
|
declare function getCreateMarketInstructionDataDecoder(): Decoder<CreateMarketInstructionData>;
|
|
@@ -2019,6 +2013,7 @@ type CreateMarketInput<TAccountAuthority extends string = string, TAccountTunaCo
|
|
|
2019
2013
|
borrowLimitA: CreateMarketInstructionDataArgs['borrowLimitA'];
|
|
2020
2014
|
borrowLimitB: CreateMarketInstructionDataArgs['borrowLimitB'];
|
|
2021
2015
|
maxSwapSlippage: CreateMarketInstructionDataArgs['maxSwapSlippage'];
|
|
2016
|
+
rebalanceProtocolFee: CreateMarketInstructionDataArgs['rebalanceProtocolFee'];
|
|
2022
2017
|
};
|
|
2023
2018
|
declare function getCreateMarketInstruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TAccountMarket extends string, TAccountPool extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: CreateMarketInput<TAccountAuthority, TAccountTunaConfig, TAccountMarket, TAccountPool, TAccountSystemProgram>, config?: {
|
|
2024
2019
|
programAddress?: TProgramAddress;
|
|
@@ -4401,6 +4396,7 @@ type UpdateMarketInstructionData = {
|
|
|
4401
4396
|
borrowLimitA: bigint;
|
|
4402
4397
|
borrowLimitB: bigint;
|
|
4403
4398
|
maxSwapSlippage: number;
|
|
4399
|
+
rebalanceProtocolFee: number;
|
|
4404
4400
|
};
|
|
4405
4401
|
type UpdateMarketInstructionDataArgs = {
|
|
4406
4402
|
addressLookupTable: Address;
|
|
@@ -4415,6 +4411,7 @@ type UpdateMarketInstructionDataArgs = {
|
|
|
4415
4411
|
borrowLimitA: number | bigint;
|
|
4416
4412
|
borrowLimitB: number | bigint;
|
|
4417
4413
|
maxSwapSlippage: number;
|
|
4414
|
+
rebalanceProtocolFee: number;
|
|
4418
4415
|
};
|
|
4419
4416
|
declare function getUpdateMarketInstructionDataEncoder(): Encoder<UpdateMarketInstructionDataArgs>;
|
|
4420
4417
|
declare function getUpdateMarketInstructionDataDecoder(): Decoder<UpdateMarketInstructionData>;
|
|
@@ -4435,6 +4432,7 @@ type UpdateMarketInput<TAccountAuthority extends string = string, TAccountTunaCo
|
|
|
4435
4432
|
borrowLimitA: UpdateMarketInstructionDataArgs['borrowLimitA'];
|
|
4436
4433
|
borrowLimitB: UpdateMarketInstructionDataArgs['borrowLimitB'];
|
|
4437
4434
|
maxSwapSlippage: UpdateMarketInstructionDataArgs['maxSwapSlippage'];
|
|
4435
|
+
rebalanceProtocolFee: UpdateMarketInstructionDataArgs['rebalanceProtocolFee'];
|
|
4438
4436
|
};
|
|
4439
4437
|
declare function getUpdateMarketInstruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: UpdateMarketInput<TAccountAuthority, TAccountTunaConfig, TAccountMarket>, config?: {
|
|
4440
4438
|
programAddress?: TProgramAddress;
|
|
@@ -4820,4 +4818,4 @@ declare const TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD_WITH_LEVERAGE: number;
|
|
|
4820
4818
|
declare const TUNA_POSITION_FLAGS_ALLOW_REBALANCING: number;
|
|
4821
4819
|
declare const WP_NFT_UPDATE_AUTH: _solana_kit.Address<"3axbTs2z5GBy6usVbNVoqEgZMng3vZvMnAoX29BFfwhr">;
|
|
4822
4820
|
|
|
4823
|
-
export { ADD_LIQUIDITY_FUSION_DISCRIMINATOR, ADD_LIQUIDITY_ORCA_DISCRIMINATOR, AccountsType, type AccountsTypeArgs, type AddLiquidityFusionInput, type AddLiquidityFusionInstruction, type AddLiquidityFusionInstructionData, type AddLiquidityFusionInstructionDataArgs, type AddLiquidityFusionInstructionsArgs, type AddLiquidityOrcaInput, type AddLiquidityOrcaInstruction, type AddLiquidityOrcaInstructionData, type AddLiquidityOrcaInstructionDataArgs, type AddLiquidityOrcaInstructionsArgs, CLOSE_POSITION_FUSION_DISCRIMINATOR, CLOSE_POSITION_ORCA_DISCRIMINATOR, COLLECT_AND_COMPOUND_FEES_FUSION_DISCRIMINATOR, COLLECT_AND_COMPOUND_FEES_ORCA_DISCRIMINATOR, COLLECT_FEES_FUSION_DISCRIMINATOR, COLLECT_FEES_ORCA_DISCRIMINATOR, COLLECT_REWARD_ORCA_DISCRIMINATOR, COMPUTED_AMOUNT, CREATE_MARKET_DISCRIMINATOR, CREATE_TUNA_CONFIG_DISCRIMINATOR, CREATE_VAULT_DISCRIMINATOR, type ClosePositionFusionInput, type ClosePositionFusionInstruction, type ClosePositionFusionInstructionData, type ClosePositionFusionInstructionDataArgs, type ClosePositionOrcaInput, type ClosePositionOrcaInstruction, type ClosePositionOrcaInstructionData, type ClosePositionOrcaInstructionDataArgs, type ClosePositionWithLiquidityFusionInstructionArgs, type ClosePositionWithLiquidityOrcaInstructionArgs, type CollectAndCompoundFeesFusionInput, type CollectAndCompoundFeesFusionInstruction, type CollectAndCompoundFeesFusionInstructionData, type CollectAndCompoundFeesFusionInstructionDataArgs, type CollectAndCompoundFeesOrcaInput, type CollectAndCompoundFeesOrcaInstruction, type CollectAndCompoundFeesOrcaInstructionData, type CollectAndCompoundFeesOrcaInstructionDataArgs, type CollectFeesFusionInput, type CollectFeesFusionInstruction, type CollectFeesFusionInstructionData, type CollectFeesFusionInstructionDataArgs, type CollectFeesOrcaInput, type CollectFeesOrcaInstruction, type CollectFeesOrcaInstructionData, type CollectFeesOrcaInstructionDataArgs, type CollectRewardOrcaInput, type CollectRewardOrcaInstruction, type CollectRewardOrcaInstructionData, type CollectRewardOrcaInstructionDataArgs, type CreateAddressLookupTableResult, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateTunaConfigInput, type CreateTunaConfigInstruction, type CreateTunaConfigInstructionData, type CreateTunaConfigInstructionDataArgs, type CreateVaultInput, type CreateVaultInstruction, type CreateVaultInstructionData, type CreateVaultInstructionDataArgs, DEFAULT_ADDRESS, DEFAULT_MAX_AMOUNT_SLIPPAGE, DEFAULT_MAX_SWAP_SLIPPAGE, DEPOSIT_DISCRIMINATOR, type DepositInput, type DepositInstruction, type DepositInstructionData, type DepositInstructionDataArgs, FusionUtils, HUNDRED_PERCENT, type IncreaseLiquidityQuoteArgs, type IncreaseLiquidityQuoteResult, LENDING_POSITION_DISCRIMINATOR, LEVERAGE_ONE, LIQUIDATE_POSITION_FUSION_DISCRIMINATOR, LIQUIDATE_POSITION_ORCA_DISCRIMINATOR, type LendingPosition, type LendingPositionArgs, type LiquidatePositionFusionInput, type LiquidatePositionFusionInstruction, type LiquidatePositionFusionInstructionData, type LiquidatePositionFusionInstructionDataArgs, type LiquidatePositionOrcaInput, type LiquidatePositionOrcaInstruction, type LiquidatePositionOrcaInstructionData, type LiquidatePositionOrcaInstructionDataArgs, MARKET_DISCRIMINATOR, MAX_LEVERAGE, MAX_LIMIT_ORDER_EXECUTION_FEE, MAX_LIQUIDATION_FEE, MAX_LIQUIDATION_THRESHOLD, MAX_PROTOCOL_FEE, type Market, type MarketArgs, MarketMaker, type MarketMakerArgs, NATIVE_MINT, NO_STOP_LOSS, NO_TAKE_PROFIT, OPEN_LENDING_POSITION_DISCRIMINATOR, OPEN_POSITION_FUSION_DISCRIMINATOR, OPEN_POSITION_ORCA_DISCRIMINATOR, OPEN_POSITION_WITH_LIQUIDITY_FUSION_DISCRIMINATOR, OPEN_POSITION_WITH_LIQUIDITY_ORCA_DISCRIMINATOR, type OpenLendingPositionInput, type OpenLendingPositionInstruction, type OpenLendingPositionInstructionData, type OpenLendingPositionInstructionDataArgs, type OpenPositionFusionInput, type OpenPositionFusionInstruction, type OpenPositionFusionInstructionData, type OpenPositionFusionInstructionDataArgs, type OpenPositionOrcaInput, type OpenPositionOrcaInstruction, type OpenPositionOrcaInstructionData, type OpenPositionOrcaInstructionDataArgs, type OpenPositionWithLiquidityFusionInput, type OpenPositionWithLiquidityFusionInstruction, type OpenPositionWithLiquidityFusionInstructionData, type OpenPositionWithLiquidityFusionInstructionDataArgs, type OpenPositionWithLiquidityFusionInstructionsArgs, type OpenPositionWithLiquidityOrcaInput, type OpenPositionWithLiquidityOrcaInstruction, type OpenPositionWithLiquidityOrcaInstructionData, type OpenPositionWithLiquidityOrcaInstructionDataArgs, type OpenPositionWithLiquidityOrcaInstructionsArgs, OrcaUtils, type ParsedAddLiquidityFusionInstruction, type ParsedAddLiquidityOrcaInstruction, type ParsedClosePositionFusionInstruction, type ParsedClosePositionOrcaInstruction, type ParsedCollectAndCompoundFeesFusionInstruction, type ParsedCollectAndCompoundFeesOrcaInstruction, type ParsedCollectFeesFusionInstruction, type ParsedCollectFeesOrcaInstruction, type ParsedCollectRewardOrcaInstruction, type ParsedCreateMarketInstruction, type ParsedCreateTunaConfigInstruction, type ParsedCreateVaultInstruction, type ParsedDepositInstruction, type ParsedLiquidatePositionFusionInstruction, type ParsedLiquidatePositionOrcaInstruction, type ParsedOpenLendingPositionInstruction, type ParsedOpenPositionFusionInstruction, type ParsedOpenPositionOrcaInstruction, type ParsedOpenPositionWithLiquidityFusionInstruction, type ParsedOpenPositionWithLiquidityOrcaInstruction, type ParsedRebalancePositionFusionInstruction, type ParsedRebalancePositionOrcaInstruction, type ParsedRemoveLiquidityFusionInstruction, type ParsedRemoveLiquidityOrcaInstruction, type ParsedRepayBadDebtInstruction, type ParsedRepayDebtInstruction, type ParsedSetAdminAuthorityInstruction, type ParsedSetDefaultMaxPercentageOfLeftoversInstruction, type ParsedSetDefaultMaxSwapSlippageInstruction, type ParsedSetDefaultOraclePriceDeviationThresholdInstruction, type ParsedSetFeeRecipientInstruction, type ParsedSetLimitOrdersInstruction, type ParsedSetLiquidatorAuthorityInstruction, type ParsedSetOwnerAuthorityInstruction, type ParsedSetSuspendedStateInstruction, type ParsedSetTunaPositionFlagsInstruction, type ParsedSetTunaPositionRebalanceThresholdInstruction, type ParsedTunaInstruction, type ParsedUpdateMarketInstruction, type ParsedUpdateVaultInstruction, type ParsedWithdrawInstruction, REBALANCE_POSITION_FUSION_DISCRIMINATOR, REBALANCE_POSITION_ORCA_DISCRIMINATOR, REMOVE_LIQUIDITY_FUSION_DISCRIMINATOR, REMOVE_LIQUIDITY_ORCA_DISCRIMINATOR, REPAY_BAD_DEBT_DISCRIMINATOR, REPAY_DEBT_DISCRIMINATOR, type RebalancePositionFusionInput, type RebalancePositionFusionInstruction, type RebalancePositionFusionInstructionData, type RebalancePositionFusionInstructionDataArgs, type RebalancePositionOrcaInput, type RebalancePositionOrcaInstruction, type RebalancePositionOrcaInstructionData, type RebalancePositionOrcaInstructionDataArgs, type RemainingAccountsInfo, type RemainingAccountsInfoArgs, type RemainingAccountsSlice, type RemainingAccountsSliceArgs, type RemoveLiquidityFusionInput, type RemoveLiquidityFusionInstruction, type RemoveLiquidityFusionInstructionData, type RemoveLiquidityFusionInstructionDataArgs, type RemoveLiquidityFusionInstructionsArgs, type RemoveLiquidityOrcaInput, type RemoveLiquidityOrcaInstruction, type RemoveLiquidityOrcaInstructionData, type RemoveLiquidityOrcaInstructionDataArgs, type RemoveLiquidityOrcaInstructionsArgs, type RepayBadDebtInput, type RepayBadDebtInstruction, type RepayBadDebtInstructionData, type RepayBadDebtInstructionDataArgs, type RepayDebtInput, type RepayDebtInstruction, type RepayDebtInstructionData, type RepayDebtInstructionDataArgs, SET_ADMIN_AUTHORITY_DISCRIMINATOR, SET_DEFAULT_MAX_PERCENTAGE_OF_LEFTOVERS_DISCRIMINATOR, SET_DEFAULT_MAX_SWAP_SLIPPAGE_DISCRIMINATOR, SET_DEFAULT_ORACLE_PRICE_DEVIATION_THRESHOLD_DISCRIMINATOR, SET_FEE_RECIPIENT_DISCRIMINATOR, SET_LIMIT_ORDERS_DISCRIMINATOR, SET_LIQUIDATOR_AUTHORITY_DISCRIMINATOR, SET_OWNER_AUTHORITY_DISCRIMINATOR, SET_SUSPENDED_STATE_DISCRIMINATOR, SET_TUNA_POSITION_FLAGS_DISCRIMINATOR, SET_TUNA_POSITION_REBALANCE_THRESHOLD_DISCRIMINATOR, type SetAdminAuthorityInput, type SetAdminAuthorityInstruction, type SetAdminAuthorityInstructionData, type SetAdminAuthorityInstructionDataArgs, type SetDefaultMaxPercentageOfLeftoversInput, type SetDefaultMaxPercentageOfLeftoversInstruction, type SetDefaultMaxPercentageOfLeftoversInstructionData, type SetDefaultMaxPercentageOfLeftoversInstructionDataArgs, type SetDefaultMaxSwapSlippageInput, type SetDefaultMaxSwapSlippageInstruction, type SetDefaultMaxSwapSlippageInstructionData, type SetDefaultMaxSwapSlippageInstructionDataArgs, type SetDefaultOraclePriceDeviationThresholdInput, type SetDefaultOraclePriceDeviationThresholdInstruction, type SetDefaultOraclePriceDeviationThresholdInstructionData, type SetDefaultOraclePriceDeviationThresholdInstructionDataArgs, type SetFeeRecipientInput, type SetFeeRecipientInstruction, type SetFeeRecipientInstructionData, type SetFeeRecipientInstructionDataArgs, type SetLimitOrdersInput, type SetLimitOrdersInstruction, type SetLimitOrdersInstructionData, type SetLimitOrdersInstructionDataArgs, type SetLiquidatorAuthorityInput, type SetLiquidatorAuthorityInstruction, type SetLiquidatorAuthorityInstructionData, type SetLiquidatorAuthorityInstructionDataArgs, type SetOwnerAuthorityInput, type SetOwnerAuthorityInstruction, type SetOwnerAuthorityInstructionData, type SetOwnerAuthorityInstructionDataArgs, type SetSuspendedStateInput, type SetSuspendedStateInstruction, type SetSuspendedStateInstructionData, type SetSuspendedStateInstructionDataArgs, type SetTunaPositionFlagsInput, type SetTunaPositionFlagsInstruction, type SetTunaPositionFlagsInstructionData, type SetTunaPositionFlagsInstructionDataArgs, type SetTunaPositionRebalanceThresholdInput, type SetTunaPositionRebalanceThresholdInstruction, type SetTunaPositionRebalanceThresholdInstructionData, type SetTunaPositionRebalanceThresholdInstructionDataArgs, TUNA_CONFIG_DISCRIMINATOR, TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED, TUNA_ERROR__BAD_DEBT, TUNA_ERROR__INSUFFICIENT_LIQUIDITY, TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE, TUNA_ERROR__INVALID_ACCOUNT_OWNER, TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS, TUNA_ERROR__INVALID_MARKET_MAKER, TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH, TUNA_ERROR__INVALID_SQRT_PRICE_LIMIT_DIRECTION, TUNA_ERROR__INVALID_TICK_ARRAY_SEQUENCE, TUNA_ERROR__LEFTOVERS_EXCEEDED, TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE, TUNA_ERROR__LIMIT_ORDER_EXECUTION_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDITY_ZERO, TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED, TUNA_ERROR__MARKET_DISABLED, TUNA_ERROR__MATH_OVERFLOW, TUNA_ERROR__MATH_UNDERFLOW, TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE, TUNA_ERROR__ORACLE_STALE_PRICE, TUNA_ERROR__PARTIAL_FILL_ERROR, TUNA_ERROR__POSITION_IS_HEALTHY, TUNA_ERROR__POSITION_IS_LIQUIDATED, TUNA_ERROR__POSITION_IS_UNHEALTHY, TUNA_ERROR__POSITION_NOT_EMPTY, TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__RAYDIUM_INVAILD_TICK_INDEX, TUNA_ERROR__RAYDIUM_INVALID_FIRST_TICK_ARRAY_ACCOUNT, TUNA_ERROR__RAYDIUM_INVALID_TICK_ARRAY, TUNA_ERROR__RAYDIUM_MAX_TOKEN_OVERFLOW, TUNA_ERROR__RAYDIUM_NOT_ENOUGH_TICK_ARRAY_ACCOUNT, TUNA_ERROR__RAYDIUM_SQRT_PRICE_LIMIT_OVERFLOW, TUNA_ERROR__RAYDIUM_ZERO_AMOUNT_SPECIFIED, TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET, TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE, TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH, TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED, TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT, TUNA_ERROR__SQRT_PRICE_OUT_OF_BOUNDS, TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED, TUNA_ERROR__SUSPENDED, TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT, TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED, TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE, TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED, TUNA_ERROR__TICK_INDEX_OF_BOUNDS, TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR, TUNA_ERROR__TYPE_CAST_OVERFLOW, TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA, TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA, TUNA_ERROR__UNEXPECTED_VALUE, TUNA_ERROR__UNSUPPORTED_TOKEN_MINT, TUNA_ERROR__VAULT_NOT_INITIALIZED, TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE, TUNA_ERROR__ZERO_PRICE_RANGE, TUNA_ERROR__ZERO_TRADABLE_AMOUNT, TUNA_ERROR__ZERO_YIELD, TUNA_POSITION_DISCRIMINATOR, TUNA_POSITION_FLAGS_ALLOW_REBALANCING, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD_WITH_LEVERAGE, TUNA_POSITION_FLAGS_STOP_LOSS_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_STOP_LOSS_SWAP_TO_TOKEN_B, TUNA_POSITION_FLAGS_TAKE_PROFIT_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_TAKE_PROFIT_SWAP_TO_TOKEN_B, TUNA_PROGRAM_ADDRESS, TunaAccount, type TunaConfig, type TunaConfigArgs, type TunaError, TunaInstruction, type TunaPosition, type TunaPositionArgs, TunaPositionState, type TunaPositionStateArgs, UPDATE_MARKET_DISCRIMINATOR, UPDATE_VAULT_DISCRIMINATOR, type UpdateMarketInput, type UpdateMarketInstruction, type UpdateMarketInstructionData, type UpdateMarketInstructionDataArgs, type UpdateVaultInput, type UpdateVaultInstruction, type UpdateVaultInstructionData, type UpdateVaultInstructionDataArgs, VAULT_DISCRIMINATOR, type Vault, type VaultArgs, WITHDRAW_DISCRIMINATOR, WP_NFT_UPDATE_AUTH, type WithdrawInput, type WithdrawInstruction, type WithdrawInstructionData, type WithdrawInstructionDataArgs, addLiquidityFusionInstruction, addLiquidityFusionInstructions, addLiquidityOrcaInstruction, addLiquidityOrcaInstructions, calculateProtocolFee, closePositionFusionInstruction, closePositionOrcaInstruction, closePositionWithLiquidityFusionInstructions, closePositionWithLiquidityOrcaInstructions, collectAndCompoundFeesFusionInstruction, collectAndCompoundFeesFusionInstructions, collectAndCompoundFeesOrcaInstruction, collectAndCompoundFeesOrcaInstructions, collectFeesFusionInstruction, collectFeesFusionInstructions, collectFeesOrcaInstruction, collectFeesOrcaInstructions, createAddressLookupTableForMarketInstructions, createAddressLookupTableInstructions, createMarketInstruction, createTunaConfigInstruction, createVaultInstructions, decodeLendingPosition, decodeMarket, decodeTunaConfig, decodeTunaPosition, decodeVault, depositInstruction, depositInstructions, fetchAllLendingPosition, fetchAllLendingPositionWithFilter, fetchAllMarket, fetchAllMaybeLendingPosition, fetchAllMaybeMarket, fetchAllMaybeTunaConfig, fetchAllMaybeTunaPosition, fetchAllMaybeVault, fetchAllTunaConfig, fetchAllTunaPosition, fetchAllTunaPositionWithFilter, fetchAllVault, fetchLendingPosition, fetchMarket, fetchMaybeLendingPosition, fetchMaybeMarket, fetchMaybeTunaConfig, fetchMaybeTunaPosition, fetchMaybeVault, fetchTunaConfig, fetchTunaPosition, fetchVault, getAccountsTypeCodec, getAccountsTypeDecoder, getAccountsTypeEncoder, getAddLiquidityFusionDiscriminatorBytes, getAddLiquidityFusionInstruction, getAddLiquidityFusionInstructionDataCodec, getAddLiquidityFusionInstructionDataDecoder, getAddLiquidityFusionInstructionDataEncoder, getAddLiquidityOrcaDiscriminatorBytes, getAddLiquidityOrcaInstruction, getAddLiquidityOrcaInstructionDataCodec, getAddLiquidityOrcaInstructionDataDecoder, getAddLiquidityOrcaInstructionDataEncoder, getClosePositionFusionDiscriminatorBytes, getClosePositionFusionInstruction, getClosePositionFusionInstructionDataCodec, getClosePositionFusionInstructionDataDecoder, getClosePositionFusionInstructionDataEncoder, getClosePositionOrcaDiscriminatorBytes, getClosePositionOrcaInstruction, getClosePositionOrcaInstructionDataCodec, getClosePositionOrcaInstructionDataDecoder, getClosePositionOrcaInstructionDataEncoder, getCollectAndCompoundFeesFusionDiscriminatorBytes, getCollectAndCompoundFeesFusionInstruction, getCollectAndCompoundFeesFusionInstructionDataCodec, getCollectAndCompoundFeesFusionInstructionDataDecoder, getCollectAndCompoundFeesFusionInstructionDataEncoder, getCollectAndCompoundFeesOrcaDiscriminatorBytes, getCollectAndCompoundFeesOrcaInstruction, getCollectAndCompoundFeesOrcaInstructionDataCodec, getCollectAndCompoundFeesOrcaInstructionDataDecoder, getCollectAndCompoundFeesOrcaInstructionDataEncoder, getCollectFeesFusionDiscriminatorBytes, getCollectFeesFusionInstruction, getCollectFeesFusionInstructionDataCodec, getCollectFeesFusionInstructionDataDecoder, getCollectFeesFusionInstructionDataEncoder, getCollectFeesOrcaDiscriminatorBytes, getCollectFeesOrcaInstruction, getCollectFeesOrcaInstructionDataCodec, getCollectFeesOrcaInstructionDataDecoder, getCollectFeesOrcaInstructionDataEncoder, getCollectRewardOrcaDiscriminatorBytes, getCollectRewardOrcaInstruction, getCollectRewardOrcaInstructionDataCodec, getCollectRewardOrcaInstructionDataDecoder, getCollectRewardOrcaInstructionDataEncoder, getCreateAtaInstruction, getCreateAtaInstructions, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreateTunaConfigDiscriminatorBytes, getCreateTunaConfigInstruction, getCreateTunaConfigInstructionDataCodec, getCreateTunaConfigInstructionDataDecoder, getCreateTunaConfigInstructionDataEncoder, getCreateVaultDiscriminatorBytes, getCreateVaultInstruction, getCreateVaultInstructionDataCodec, getCreateVaultInstructionDataDecoder, getCreateVaultInstructionDataEncoder, getDepositDiscriminatorBytes, getDepositInstruction, getDepositInstructionDataCodec, getDepositInstructionDataDecoder, getDepositInstructionDataEncoder, getLendingPositionAddress, getLendingPositionCodec, getLendingPositionDecoder, getLendingPositionDiscriminatorBytes, getLendingPositionEncoder, getLendingPositionSize, getLendingVaultAddress, getLiquidatePositionFusionDiscriminatorBytes, getLiquidatePositionFusionInstruction, getLiquidatePositionFusionInstructionDataCodec, getLiquidatePositionFusionInstructionDataDecoder, getLiquidatePositionFusionInstructionDataEncoder, getLiquidatePositionOrcaDiscriminatorBytes, getLiquidatePositionOrcaInstruction, getLiquidatePositionOrcaInstructionDataCodec, getLiquidatePositionOrcaInstructionDataDecoder, getLiquidatePositionOrcaInstructionDataEncoder, getLiquidityIncreaseQuote, getMarketAddress, getMarketCodec, getMarketDecoder, getMarketDiscriminatorBytes, getMarketEncoder, getMarketMakerCodec, getMarketMakerDecoder, getMarketMakerEncoder, getMarketSize, getOpenLendingPositionDiscriminatorBytes, getOpenLendingPositionInstruction, getOpenLendingPositionInstructionDataCodec, getOpenLendingPositionInstructionDataDecoder, getOpenLendingPositionInstructionDataEncoder, getOpenPositionFusionDiscriminatorBytes, getOpenPositionFusionInstruction, getOpenPositionFusionInstructionDataCodec, getOpenPositionFusionInstructionDataDecoder, getOpenPositionFusionInstructionDataEncoder, getOpenPositionOrcaDiscriminatorBytes, getOpenPositionOrcaInstruction, getOpenPositionOrcaInstructionDataCodec, getOpenPositionOrcaInstructionDataDecoder, getOpenPositionOrcaInstructionDataEncoder, getOpenPositionWithLiquidityFusionDiscriminatorBytes, getOpenPositionWithLiquidityFusionInstruction, getOpenPositionWithLiquidityFusionInstructionDataCodec, getOpenPositionWithLiquidityFusionInstructionDataDecoder, getOpenPositionWithLiquidityFusionInstructionDataEncoder, getOpenPositionWithLiquidityOrcaDiscriminatorBytes, getOpenPositionWithLiquidityOrcaInstruction, getOpenPositionWithLiquidityOrcaInstructionDataCodec, getOpenPositionWithLiquidityOrcaInstructionDataDecoder, getOpenPositionWithLiquidityOrcaInstructionDataEncoder, getRebalancePositionFusionDiscriminatorBytes, getRebalancePositionFusionInstruction, getRebalancePositionFusionInstructionDataCodec, getRebalancePositionFusionInstructionDataDecoder, getRebalancePositionFusionInstructionDataEncoder, getRebalancePositionOrcaDiscriminatorBytes, getRebalancePositionOrcaInstruction, getRebalancePositionOrcaInstructionDataCodec, getRebalancePositionOrcaInstructionDataDecoder, getRebalancePositionOrcaInstructionDataEncoder, getRemainingAccountsInfoCodec, getRemainingAccountsInfoDecoder, getRemainingAccountsInfoEncoder, getRemainingAccountsSliceCodec, getRemainingAccountsSliceDecoder, getRemainingAccountsSliceEncoder, getRemoveLiquidityFusionDiscriminatorBytes, getRemoveLiquidityFusionInstruction, getRemoveLiquidityFusionInstructionDataCodec, getRemoveLiquidityFusionInstructionDataDecoder, getRemoveLiquidityFusionInstructionDataEncoder, getRemoveLiquidityOrcaDiscriminatorBytes, getRemoveLiquidityOrcaInstruction, getRemoveLiquidityOrcaInstructionDataCodec, getRemoveLiquidityOrcaInstructionDataDecoder, getRemoveLiquidityOrcaInstructionDataEncoder, getRepayBadDebtDiscriminatorBytes, getRepayBadDebtInstruction, getRepayBadDebtInstructionDataCodec, getRepayBadDebtInstructionDataDecoder, getRepayBadDebtInstructionDataEncoder, getRepayDebtDiscriminatorBytes, getRepayDebtInstruction, getRepayDebtInstructionDataCodec, getRepayDebtInstructionDataDecoder, getRepayDebtInstructionDataEncoder, getSetAdminAuthorityDiscriminatorBytes, getSetAdminAuthorityInstruction, getSetAdminAuthorityInstructionDataCodec, getSetAdminAuthorityInstructionDataDecoder, getSetAdminAuthorityInstructionDataEncoder, getSetDefaultMaxPercentageOfLeftoversDiscriminatorBytes, getSetDefaultMaxPercentageOfLeftoversInstruction, getSetDefaultMaxPercentageOfLeftoversInstructionDataCodec, getSetDefaultMaxPercentageOfLeftoversInstructionDataDecoder, getSetDefaultMaxPercentageOfLeftoversInstructionDataEncoder, getSetDefaultMaxSwapSlippageDiscriminatorBytes, getSetDefaultMaxSwapSlippageInstruction, getSetDefaultMaxSwapSlippageInstructionDataCodec, getSetDefaultMaxSwapSlippageInstructionDataDecoder, getSetDefaultMaxSwapSlippageInstructionDataEncoder, getSetDefaultOraclePriceDeviationThresholdDiscriminatorBytes, getSetDefaultOraclePriceDeviationThresholdInstruction, getSetDefaultOraclePriceDeviationThresholdInstructionDataCodec, getSetDefaultOraclePriceDeviationThresholdInstructionDataDecoder, getSetDefaultOraclePriceDeviationThresholdInstructionDataEncoder, getSetFeeRecipientDiscriminatorBytes, getSetFeeRecipientInstruction, getSetFeeRecipientInstructionDataCodec, getSetFeeRecipientInstructionDataDecoder, getSetFeeRecipientInstructionDataEncoder, getSetLimitOrdersDiscriminatorBytes, getSetLimitOrdersInstruction, getSetLimitOrdersInstructionDataCodec, getSetLimitOrdersInstructionDataDecoder, getSetLimitOrdersInstructionDataEncoder, getSetLiquidatorAuthorityDiscriminatorBytes, getSetLiquidatorAuthorityInstruction, getSetLiquidatorAuthorityInstructionDataCodec, getSetLiquidatorAuthorityInstructionDataDecoder, getSetLiquidatorAuthorityInstructionDataEncoder, getSetOwnerAuthorityDiscriminatorBytes, getSetOwnerAuthorityInstruction, getSetOwnerAuthorityInstructionDataCodec, getSetOwnerAuthorityInstructionDataDecoder, getSetOwnerAuthorityInstructionDataEncoder, getSetSuspendedStateDiscriminatorBytes, getSetSuspendedStateInstruction, getSetSuspendedStateInstructionDataCodec, getSetSuspendedStateInstructionDataDecoder, getSetSuspendedStateInstructionDataEncoder, getSetTunaPositionFlagsDiscriminatorBytes, getSetTunaPositionFlagsInstruction, getSetTunaPositionFlagsInstructionDataCodec, getSetTunaPositionFlagsInstructionDataDecoder, getSetTunaPositionFlagsInstructionDataEncoder, getSetTunaPositionRebalanceThresholdDiscriminatorBytes, getSetTunaPositionRebalanceThresholdInstruction, getSetTunaPositionRebalanceThresholdInstructionDataCodec, getSetTunaPositionRebalanceThresholdInstructionDataDecoder, getSetTunaPositionRebalanceThresholdInstructionDataEncoder, getTunaConfigAddress, getTunaConfigCodec, getTunaConfigDecoder, getTunaConfigDiscriminatorBytes, getTunaConfigEncoder, getTunaConfigSize, getTunaErrorMessage, getTunaPositionAddress, getTunaPositionCodec, getTunaPositionDecoder, getTunaPositionDiscriminatorBytes, getTunaPositionEncoder, getTunaPositionSize, getTunaPositionStateCodec, getTunaPositionStateDecoder, getTunaPositionStateEncoder, getUpdateMarketDiscriminatorBytes, getUpdateMarketInstruction, getUpdateMarketInstructionDataCodec, getUpdateMarketInstructionDataDecoder, getUpdateMarketInstructionDataEncoder, getUpdateVaultDiscriminatorBytes, getUpdateVaultInstruction, getUpdateVaultInstructionDataCodec, getUpdateVaultInstructionDataDecoder, getUpdateVaultInstructionDataEncoder, getVaultCodec, getVaultDecoder, getVaultDiscriminatorBytes, getVaultEncoder, getVaultSize, getWithdrawDiscriminatorBytes, getWithdrawInstruction, getWithdrawInstructionDataCodec, getWithdrawInstructionDataDecoder, getWithdrawInstructionDataEncoder, identifyTunaAccount, identifyTunaInstruction, isTunaError, lendingPositionAuthorityFilter, lendingPositionMintFilter, liquidatePositionFusionInstruction, liquidatePositionFusionInstructions, liquidatePositionOrcaInstruction, liquidatePositionOrcaInstructions, openLendingPositionAndDepositInstructions, openLendingPositionInstruction, openPositionFusionInstruction, openPositionOrcaInstruction, openPositionWithLiquidityFusionInstruction, openPositionWithLiquidityFusionInstructions, openPositionWithLiquidityOrcaInstruction, openPositionWithLiquidityOrcaInstructions, parseAddLiquidityFusionInstruction, parseAddLiquidityOrcaInstruction, parseClosePositionFusionInstruction, parseClosePositionOrcaInstruction, parseCollectAndCompoundFeesFusionInstruction, parseCollectAndCompoundFeesOrcaInstruction, parseCollectFeesFusionInstruction, parseCollectFeesOrcaInstruction, parseCollectRewardOrcaInstruction, parseCreateMarketInstruction, parseCreateTunaConfigInstruction, parseCreateVaultInstruction, parseDepositInstruction, parseLiquidatePositionFusionInstruction, parseLiquidatePositionOrcaInstruction, parseOpenLendingPositionInstruction, parseOpenPositionFusionInstruction, parseOpenPositionOrcaInstruction, parseOpenPositionWithLiquidityFusionInstruction, parseOpenPositionWithLiquidityOrcaInstruction, parseRebalancePositionFusionInstruction, parseRebalancePositionOrcaInstruction, parseRemoveLiquidityFusionInstruction, parseRemoveLiquidityOrcaInstruction, parseRepayBadDebtInstruction, parseRepayDebtInstruction, parseSetAdminAuthorityInstruction, parseSetDefaultMaxPercentageOfLeftoversInstruction, parseSetDefaultMaxSwapSlippageInstruction, parseSetDefaultOraclePriceDeviationThresholdInstruction, parseSetFeeRecipientInstruction, parseSetLimitOrdersInstruction, parseSetLiquidatorAuthorityInstruction, parseSetOwnerAuthorityInstruction, parseSetSuspendedStateInstruction, parseSetTunaPositionFlagsInstruction, parseSetTunaPositionRebalanceThresholdInstruction, parseUpdateMarketInstruction, parseUpdateVaultInstruction, parseWithdrawInstruction, rebalancePositionFusionInstruction, rebalancePositionFusionInstructions, rebalancePositionOrcaInstruction, rebalancePositionOrcaInstructions, removeLiquidityFusionInstruction, removeLiquidityFusionInstructions, removeLiquidityOrcaInstruction, removeLiquidityOrcaInstructions, repayBadDebtInstruction, repayDebtInstruction, repayDebtInstructions, setLimitOrdersInstruction, tunaPositionAuthorityFilter, tunaPositionMarketMakerFilter, tunaPositionMintAFilter, tunaPositionMintBFilter, tunaPositionMintFilter, tunaPositionPoolFilter, updateMarketInstruction, updateVaultInstruction, withdrawInstruction, withdrawInstructions };
|
|
4821
|
+
export { ADD_LIQUIDITY_FUSION_DISCRIMINATOR, ADD_LIQUIDITY_ORCA_DISCRIMINATOR, AccountsType, type AccountsTypeArgs, type AddLiquidityFusionInput, type AddLiquidityFusionInstruction, type AddLiquidityFusionInstructionData, type AddLiquidityFusionInstructionDataArgs, type AddLiquidityFusionInstructionsArgs, type AddLiquidityOrcaInput, type AddLiquidityOrcaInstruction, type AddLiquidityOrcaInstructionData, type AddLiquidityOrcaInstructionDataArgs, type AddLiquidityOrcaInstructionsArgs, CLOSE_POSITION_FUSION_DISCRIMINATOR, CLOSE_POSITION_ORCA_DISCRIMINATOR, COLLECT_AND_COMPOUND_FEES_FUSION_DISCRIMINATOR, COLLECT_AND_COMPOUND_FEES_ORCA_DISCRIMINATOR, COLLECT_FEES_FUSION_DISCRIMINATOR, COLLECT_FEES_ORCA_DISCRIMINATOR, COLLECT_REWARD_ORCA_DISCRIMINATOR, COMPUTED_AMOUNT, CREATE_MARKET_DISCRIMINATOR, CREATE_TUNA_CONFIG_DISCRIMINATOR, CREATE_VAULT_DISCRIMINATOR, type ClosePositionFusionInput, type ClosePositionFusionInstruction, type ClosePositionFusionInstructionData, type ClosePositionFusionInstructionDataArgs, type ClosePositionOrcaInput, type ClosePositionOrcaInstruction, type ClosePositionOrcaInstructionData, type ClosePositionOrcaInstructionDataArgs, type ClosePositionWithLiquidityFusionInstructionArgs, type ClosePositionWithLiquidityOrcaInstructionArgs, type CollectAndCompoundFeesFusionInput, type CollectAndCompoundFeesFusionInstruction, type CollectAndCompoundFeesFusionInstructionData, type CollectAndCompoundFeesFusionInstructionDataArgs, type CollectAndCompoundFeesOrcaInput, type CollectAndCompoundFeesOrcaInstruction, type CollectAndCompoundFeesOrcaInstructionData, type CollectAndCompoundFeesOrcaInstructionDataArgs, type CollectFeesFusionInput, type CollectFeesFusionInstruction, type CollectFeesFusionInstructionData, type CollectFeesFusionInstructionDataArgs, type CollectFeesOrcaInput, type CollectFeesOrcaInstruction, type CollectFeesOrcaInstructionData, type CollectFeesOrcaInstructionDataArgs, type CollectRewardOrcaInput, type CollectRewardOrcaInstruction, type CollectRewardOrcaInstructionData, type CollectRewardOrcaInstructionDataArgs, type CreateAddressLookupTableResult, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateTunaConfigInput, type CreateTunaConfigInstruction, type CreateTunaConfigInstructionData, type CreateTunaConfigInstructionDataArgs, type CreateVaultInput, type CreateVaultInstruction, type CreateVaultInstructionData, type CreateVaultInstructionDataArgs, DEFAULT_ADDRESS, DEFAULT_MAX_AMOUNT_SLIPPAGE, DEFAULT_MAX_SWAP_SLIPPAGE, DEPOSIT_DISCRIMINATOR, type DepositInput, type DepositInstruction, type DepositInstructionData, type DepositInstructionDataArgs, FusionUtils, HUNDRED_PERCENT, type IncreaseLiquidityQuoteArgs, type IncreaseLiquidityQuoteResult, LENDING_POSITION_DISCRIMINATOR, LEVERAGE_ONE, LIQUIDATE_POSITION_FUSION_DISCRIMINATOR, LIQUIDATE_POSITION_ORCA_DISCRIMINATOR, type LendingPosition, type LendingPositionArgs, type LiquidatePositionFusionInput, type LiquidatePositionFusionInstruction, type LiquidatePositionFusionInstructionData, type LiquidatePositionFusionInstructionDataArgs, type LiquidatePositionOrcaInput, type LiquidatePositionOrcaInstruction, type LiquidatePositionOrcaInstructionData, type LiquidatePositionOrcaInstructionDataArgs, MARKET_DISCRIMINATOR, MAX_LEVERAGE, MAX_LIMIT_ORDER_EXECUTION_FEE, MAX_LIQUIDATION_FEE, MAX_LIQUIDATION_THRESHOLD, MAX_PROTOCOL_FEE, type Market, type MarketArgs, MarketMaker, type MarketMakerArgs, NATIVE_MINT, NO_STOP_LOSS, NO_TAKE_PROFIT, OPEN_LENDING_POSITION_DISCRIMINATOR, OPEN_POSITION_FUSION_DISCRIMINATOR, OPEN_POSITION_ORCA_DISCRIMINATOR, OPEN_POSITION_WITH_LIQUIDITY_FUSION_DISCRIMINATOR, OPEN_POSITION_WITH_LIQUIDITY_ORCA_DISCRIMINATOR, type OpenLendingPositionInput, type OpenLendingPositionInstruction, type OpenLendingPositionInstructionData, type OpenLendingPositionInstructionDataArgs, type OpenPositionFusionInput, type OpenPositionFusionInstruction, type OpenPositionFusionInstructionData, type OpenPositionFusionInstructionDataArgs, type OpenPositionOrcaInput, type OpenPositionOrcaInstruction, type OpenPositionOrcaInstructionData, type OpenPositionOrcaInstructionDataArgs, type OpenPositionWithLiquidityFusionInput, type OpenPositionWithLiquidityFusionInstruction, type OpenPositionWithLiquidityFusionInstructionData, type OpenPositionWithLiquidityFusionInstructionDataArgs, type OpenPositionWithLiquidityFusionInstructionsArgs, type OpenPositionWithLiquidityOrcaInput, type OpenPositionWithLiquidityOrcaInstruction, type OpenPositionWithLiquidityOrcaInstructionData, type OpenPositionWithLiquidityOrcaInstructionDataArgs, type OpenPositionWithLiquidityOrcaInstructionsArgs, OrcaUtils, type ParsedAddLiquidityFusionInstruction, type ParsedAddLiquidityOrcaInstruction, type ParsedClosePositionFusionInstruction, type ParsedClosePositionOrcaInstruction, type ParsedCollectAndCompoundFeesFusionInstruction, type ParsedCollectAndCompoundFeesOrcaInstruction, type ParsedCollectFeesFusionInstruction, type ParsedCollectFeesOrcaInstruction, type ParsedCollectRewardOrcaInstruction, type ParsedCreateMarketInstruction, type ParsedCreateTunaConfigInstruction, type ParsedCreateVaultInstruction, type ParsedDepositInstruction, type ParsedLiquidatePositionFusionInstruction, type ParsedLiquidatePositionOrcaInstruction, type ParsedOpenLendingPositionInstruction, type ParsedOpenPositionFusionInstruction, type ParsedOpenPositionOrcaInstruction, type ParsedOpenPositionWithLiquidityFusionInstruction, type ParsedOpenPositionWithLiquidityOrcaInstruction, type ParsedRebalancePositionFusionInstruction, type ParsedRebalancePositionOrcaInstruction, type ParsedRemoveLiquidityFusionInstruction, type ParsedRemoveLiquidityOrcaInstruction, type ParsedRepayBadDebtInstruction, type ParsedRepayDebtInstruction, type ParsedSetAdminAuthorityInstruction, type ParsedSetDefaultMaxPercentageOfLeftoversInstruction, type ParsedSetDefaultMaxSwapSlippageInstruction, type ParsedSetDefaultOraclePriceDeviationThresholdInstruction, type ParsedSetFeeRecipientInstruction, type ParsedSetLimitOrdersInstruction, type ParsedSetLiquidatorAuthorityInstruction, type ParsedSetOwnerAuthorityInstruction, type ParsedSetSuspendedStateInstruction, type ParsedSetTunaPositionFlagsInstruction, type ParsedSetTunaPositionRebalanceThresholdInstruction, type ParsedTunaInstruction, type ParsedUpdateMarketInstruction, type ParsedUpdateVaultInstruction, type ParsedWithdrawInstruction, REBALANCE_POSITION_FUSION_DISCRIMINATOR, REBALANCE_POSITION_ORCA_DISCRIMINATOR, REMOVE_LIQUIDITY_FUSION_DISCRIMINATOR, REMOVE_LIQUIDITY_ORCA_DISCRIMINATOR, REPAY_BAD_DEBT_DISCRIMINATOR, REPAY_DEBT_DISCRIMINATOR, type RebalancePositionFusionInput, type RebalancePositionFusionInstruction, type RebalancePositionFusionInstructionData, type RebalancePositionFusionInstructionDataArgs, type RebalancePositionOrcaInput, type RebalancePositionOrcaInstruction, type RebalancePositionOrcaInstructionData, type RebalancePositionOrcaInstructionDataArgs, type RemainingAccountsInfo, type RemainingAccountsInfoArgs, type RemainingAccountsSlice, type RemainingAccountsSliceArgs, type RemoveLiquidityFusionInput, type RemoveLiquidityFusionInstruction, type RemoveLiquidityFusionInstructionData, type RemoveLiquidityFusionInstructionDataArgs, type RemoveLiquidityFusionInstructionsArgs, type RemoveLiquidityOrcaInput, type RemoveLiquidityOrcaInstruction, type RemoveLiquidityOrcaInstructionData, type RemoveLiquidityOrcaInstructionDataArgs, type RemoveLiquidityOrcaInstructionsArgs, type RepayBadDebtInput, type RepayBadDebtInstruction, type RepayBadDebtInstructionData, type RepayBadDebtInstructionDataArgs, type RepayDebtInput, type RepayDebtInstruction, type RepayDebtInstructionData, type RepayDebtInstructionDataArgs, SET_ADMIN_AUTHORITY_DISCRIMINATOR, SET_DEFAULT_MAX_PERCENTAGE_OF_LEFTOVERS_DISCRIMINATOR, SET_DEFAULT_MAX_SWAP_SLIPPAGE_DISCRIMINATOR, SET_DEFAULT_ORACLE_PRICE_DEVIATION_THRESHOLD_DISCRIMINATOR, SET_FEE_RECIPIENT_DISCRIMINATOR, SET_LIMIT_ORDERS_DISCRIMINATOR, SET_LIQUIDATOR_AUTHORITY_DISCRIMINATOR, SET_OWNER_AUTHORITY_DISCRIMINATOR, SET_SUSPENDED_STATE_DISCRIMINATOR, SET_TUNA_POSITION_FLAGS_DISCRIMINATOR, SET_TUNA_POSITION_REBALANCE_THRESHOLD_DISCRIMINATOR, type SetAdminAuthorityInput, type SetAdminAuthorityInstruction, type SetAdminAuthorityInstructionData, type SetAdminAuthorityInstructionDataArgs, type SetDefaultMaxPercentageOfLeftoversInput, type SetDefaultMaxPercentageOfLeftoversInstruction, type SetDefaultMaxPercentageOfLeftoversInstructionData, type SetDefaultMaxPercentageOfLeftoversInstructionDataArgs, type SetDefaultMaxSwapSlippageInput, type SetDefaultMaxSwapSlippageInstruction, type SetDefaultMaxSwapSlippageInstructionData, type SetDefaultMaxSwapSlippageInstructionDataArgs, type SetDefaultOraclePriceDeviationThresholdInput, type SetDefaultOraclePriceDeviationThresholdInstruction, type SetDefaultOraclePriceDeviationThresholdInstructionData, type SetDefaultOraclePriceDeviationThresholdInstructionDataArgs, type SetFeeRecipientInput, type SetFeeRecipientInstruction, type SetFeeRecipientInstructionData, type SetFeeRecipientInstructionDataArgs, type SetLimitOrdersInput, type SetLimitOrdersInstruction, type SetLimitOrdersInstructionData, type SetLimitOrdersInstructionDataArgs, type SetLiquidatorAuthorityInput, type SetLiquidatorAuthorityInstruction, type SetLiquidatorAuthorityInstructionData, type SetLiquidatorAuthorityInstructionDataArgs, type SetOwnerAuthorityInput, type SetOwnerAuthorityInstruction, type SetOwnerAuthorityInstructionData, type SetOwnerAuthorityInstructionDataArgs, type SetSuspendedStateInput, type SetSuspendedStateInstruction, type SetSuspendedStateInstructionData, type SetSuspendedStateInstructionDataArgs, type SetTunaPositionFlagsInput, type SetTunaPositionFlagsInstruction, type SetTunaPositionFlagsInstructionData, type SetTunaPositionFlagsInstructionDataArgs, type SetTunaPositionRebalanceThresholdInput, type SetTunaPositionRebalanceThresholdInstruction, type SetTunaPositionRebalanceThresholdInstructionData, type SetTunaPositionRebalanceThresholdInstructionDataArgs, TUNA_CONFIG_DISCRIMINATOR, TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED, TUNA_ERROR__BAD_DEBT, TUNA_ERROR__INSUFFICIENT_LIQUIDITY, TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE, TUNA_ERROR__INVALID_ACCOUNT_OWNER, TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS, TUNA_ERROR__INVALID_MARKET_MAKER, TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH, TUNA_ERROR__INVALID_SQRT_PRICE_LIMIT_DIRECTION, TUNA_ERROR__INVALID_TICK_ARRAY_SEQUENCE, TUNA_ERROR__LEFTOVERS_EXCEEDED, TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE, TUNA_ERROR__LIMIT_ORDER_EXECUTION_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDITY_ZERO, TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED, TUNA_ERROR__MARKET_DISABLED, TUNA_ERROR__MATH_OVERFLOW, TUNA_ERROR__MATH_UNDERFLOW, TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE, TUNA_ERROR__ORACLE_STALE_PRICE, TUNA_ERROR__PARTIAL_FILL_ERROR, TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE, TUNA_ERROR__POSITION_IS_HEALTHY, TUNA_ERROR__POSITION_IS_LIQUIDATED, TUNA_ERROR__POSITION_IS_UNHEALTHY, TUNA_ERROR__POSITION_NOT_EMPTY, TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET, TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE, TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH, TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED, TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT, TUNA_ERROR__SQRT_PRICE_OUT_OF_BOUNDS, TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED, TUNA_ERROR__SUSPENDED, TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT, TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED, TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE, TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED, TUNA_ERROR__TICK_INDEX_OF_BOUNDS, TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR, TUNA_ERROR__TYPE_CAST_OVERFLOW, TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA, TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA, TUNA_ERROR__UNEXPECTED_VALUE, TUNA_ERROR__UNSUPPORTED_TOKEN_MINT, TUNA_ERROR__VAULT_NOT_INITIALIZED, TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE, TUNA_ERROR__ZERO_PRICE_RANGE, TUNA_ERROR__ZERO_TRADABLE_AMOUNT, TUNA_ERROR__ZERO_YIELD, TUNA_POSITION_DISCRIMINATOR, TUNA_POSITION_FLAGS_ALLOW_REBALANCING, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD_WITH_LEVERAGE, TUNA_POSITION_FLAGS_STOP_LOSS_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_STOP_LOSS_SWAP_TO_TOKEN_B, TUNA_POSITION_FLAGS_TAKE_PROFIT_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_TAKE_PROFIT_SWAP_TO_TOKEN_B, TUNA_PROGRAM_ADDRESS, TunaAccount, type TunaConfig, type TunaConfigArgs, type TunaError, TunaInstruction, type TunaPosition, type TunaPositionArgs, TunaPositionState, type TunaPositionStateArgs, UPDATE_MARKET_DISCRIMINATOR, UPDATE_VAULT_DISCRIMINATOR, type UpdateMarketInput, type UpdateMarketInstruction, type UpdateMarketInstructionData, type UpdateMarketInstructionDataArgs, type UpdateVaultInput, type UpdateVaultInstruction, type UpdateVaultInstructionData, type UpdateVaultInstructionDataArgs, VAULT_DISCRIMINATOR, type Vault, type VaultArgs, WITHDRAW_DISCRIMINATOR, WP_NFT_UPDATE_AUTH, type WithdrawInput, type WithdrawInstruction, type WithdrawInstructionData, type WithdrawInstructionDataArgs, addLiquidityFusionInstruction, addLiquidityFusionInstructions, addLiquidityOrcaInstruction, addLiquidityOrcaInstructions, calculateProtocolFee, closePositionFusionInstruction, closePositionOrcaInstruction, closePositionWithLiquidityFusionInstructions, closePositionWithLiquidityOrcaInstructions, collectAndCompoundFeesFusionInstruction, collectAndCompoundFeesFusionInstructions, collectAndCompoundFeesOrcaInstruction, collectAndCompoundFeesOrcaInstructions, collectFeesFusionInstruction, collectFeesFusionInstructions, collectFeesOrcaInstruction, collectFeesOrcaInstructions, createAddressLookupTableForMarketInstructions, createAddressLookupTableInstructions, createMarketInstruction, createTunaConfigInstruction, createVaultInstructions, decodeLendingPosition, decodeMarket, decodeTunaConfig, decodeTunaPosition, decodeVault, depositInstruction, depositInstructions, fetchAllLendingPosition, fetchAllLendingPositionWithFilter, fetchAllMarket, fetchAllMaybeLendingPosition, fetchAllMaybeMarket, fetchAllMaybeTunaConfig, fetchAllMaybeTunaPosition, fetchAllMaybeVault, fetchAllTunaConfig, fetchAllTunaPosition, fetchAllTunaPositionWithFilter, fetchAllVault, fetchLendingPosition, fetchMarket, fetchMaybeLendingPosition, fetchMaybeMarket, fetchMaybeTunaConfig, fetchMaybeTunaPosition, fetchMaybeVault, fetchTunaConfig, fetchTunaPosition, fetchVault, getAccountsTypeCodec, getAccountsTypeDecoder, getAccountsTypeEncoder, getAddLiquidityFusionDiscriminatorBytes, getAddLiquidityFusionInstruction, getAddLiquidityFusionInstructionDataCodec, getAddLiquidityFusionInstructionDataDecoder, getAddLiquidityFusionInstructionDataEncoder, getAddLiquidityOrcaDiscriminatorBytes, getAddLiquidityOrcaInstruction, getAddLiquidityOrcaInstructionDataCodec, getAddLiquidityOrcaInstructionDataDecoder, getAddLiquidityOrcaInstructionDataEncoder, getClosePositionFusionDiscriminatorBytes, getClosePositionFusionInstruction, getClosePositionFusionInstructionDataCodec, getClosePositionFusionInstructionDataDecoder, getClosePositionFusionInstructionDataEncoder, getClosePositionOrcaDiscriminatorBytes, getClosePositionOrcaInstruction, getClosePositionOrcaInstructionDataCodec, getClosePositionOrcaInstructionDataDecoder, getClosePositionOrcaInstructionDataEncoder, getCollectAndCompoundFeesFusionDiscriminatorBytes, getCollectAndCompoundFeesFusionInstruction, getCollectAndCompoundFeesFusionInstructionDataCodec, getCollectAndCompoundFeesFusionInstructionDataDecoder, getCollectAndCompoundFeesFusionInstructionDataEncoder, getCollectAndCompoundFeesOrcaDiscriminatorBytes, getCollectAndCompoundFeesOrcaInstruction, getCollectAndCompoundFeesOrcaInstructionDataCodec, getCollectAndCompoundFeesOrcaInstructionDataDecoder, getCollectAndCompoundFeesOrcaInstructionDataEncoder, getCollectFeesFusionDiscriminatorBytes, getCollectFeesFusionInstruction, getCollectFeesFusionInstructionDataCodec, getCollectFeesFusionInstructionDataDecoder, getCollectFeesFusionInstructionDataEncoder, getCollectFeesOrcaDiscriminatorBytes, getCollectFeesOrcaInstruction, getCollectFeesOrcaInstructionDataCodec, getCollectFeesOrcaInstructionDataDecoder, getCollectFeesOrcaInstructionDataEncoder, getCollectRewardOrcaDiscriminatorBytes, getCollectRewardOrcaInstruction, getCollectRewardOrcaInstructionDataCodec, getCollectRewardOrcaInstructionDataDecoder, getCollectRewardOrcaInstructionDataEncoder, getCreateAtaInstruction, getCreateAtaInstructions, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreateTunaConfigDiscriminatorBytes, getCreateTunaConfigInstruction, getCreateTunaConfigInstructionDataCodec, getCreateTunaConfigInstructionDataDecoder, getCreateTunaConfigInstructionDataEncoder, getCreateVaultDiscriminatorBytes, getCreateVaultInstruction, getCreateVaultInstructionDataCodec, getCreateVaultInstructionDataDecoder, getCreateVaultInstructionDataEncoder, getDepositDiscriminatorBytes, getDepositInstruction, getDepositInstructionDataCodec, getDepositInstructionDataDecoder, getDepositInstructionDataEncoder, getLendingPositionAddress, getLendingPositionCodec, getLendingPositionDecoder, getLendingPositionDiscriminatorBytes, getLendingPositionEncoder, getLendingPositionSize, getLendingVaultAddress, getLiquidatePositionFusionDiscriminatorBytes, getLiquidatePositionFusionInstruction, getLiquidatePositionFusionInstructionDataCodec, getLiquidatePositionFusionInstructionDataDecoder, getLiquidatePositionFusionInstructionDataEncoder, getLiquidatePositionOrcaDiscriminatorBytes, getLiquidatePositionOrcaInstruction, getLiquidatePositionOrcaInstructionDataCodec, getLiquidatePositionOrcaInstructionDataDecoder, getLiquidatePositionOrcaInstructionDataEncoder, getLiquidityIncreaseQuote, getMarketAddress, getMarketCodec, getMarketDecoder, getMarketDiscriminatorBytes, getMarketEncoder, getMarketMakerCodec, getMarketMakerDecoder, getMarketMakerEncoder, getMarketSize, getOpenLendingPositionDiscriminatorBytes, getOpenLendingPositionInstruction, getOpenLendingPositionInstructionDataCodec, getOpenLendingPositionInstructionDataDecoder, getOpenLendingPositionInstructionDataEncoder, getOpenPositionFusionDiscriminatorBytes, getOpenPositionFusionInstruction, getOpenPositionFusionInstructionDataCodec, getOpenPositionFusionInstructionDataDecoder, getOpenPositionFusionInstructionDataEncoder, getOpenPositionOrcaDiscriminatorBytes, getOpenPositionOrcaInstruction, getOpenPositionOrcaInstructionDataCodec, getOpenPositionOrcaInstructionDataDecoder, getOpenPositionOrcaInstructionDataEncoder, getOpenPositionWithLiquidityFusionDiscriminatorBytes, getOpenPositionWithLiquidityFusionInstruction, getOpenPositionWithLiquidityFusionInstructionDataCodec, getOpenPositionWithLiquidityFusionInstructionDataDecoder, getOpenPositionWithLiquidityFusionInstructionDataEncoder, getOpenPositionWithLiquidityOrcaDiscriminatorBytes, getOpenPositionWithLiquidityOrcaInstruction, getOpenPositionWithLiquidityOrcaInstructionDataCodec, getOpenPositionWithLiquidityOrcaInstructionDataDecoder, getOpenPositionWithLiquidityOrcaInstructionDataEncoder, getRebalancePositionFusionDiscriminatorBytes, getRebalancePositionFusionInstruction, getRebalancePositionFusionInstructionDataCodec, getRebalancePositionFusionInstructionDataDecoder, getRebalancePositionFusionInstructionDataEncoder, getRebalancePositionOrcaDiscriminatorBytes, getRebalancePositionOrcaInstruction, getRebalancePositionOrcaInstructionDataCodec, getRebalancePositionOrcaInstructionDataDecoder, getRebalancePositionOrcaInstructionDataEncoder, getRemainingAccountsInfoCodec, getRemainingAccountsInfoDecoder, getRemainingAccountsInfoEncoder, getRemainingAccountsSliceCodec, getRemainingAccountsSliceDecoder, getRemainingAccountsSliceEncoder, getRemoveLiquidityFusionDiscriminatorBytes, getRemoveLiquidityFusionInstruction, getRemoveLiquidityFusionInstructionDataCodec, getRemoveLiquidityFusionInstructionDataDecoder, getRemoveLiquidityFusionInstructionDataEncoder, getRemoveLiquidityOrcaDiscriminatorBytes, getRemoveLiquidityOrcaInstruction, getRemoveLiquidityOrcaInstructionDataCodec, getRemoveLiquidityOrcaInstructionDataDecoder, getRemoveLiquidityOrcaInstructionDataEncoder, getRepayBadDebtDiscriminatorBytes, getRepayBadDebtInstruction, getRepayBadDebtInstructionDataCodec, getRepayBadDebtInstructionDataDecoder, getRepayBadDebtInstructionDataEncoder, getRepayDebtDiscriminatorBytes, getRepayDebtInstruction, getRepayDebtInstructionDataCodec, getRepayDebtInstructionDataDecoder, getRepayDebtInstructionDataEncoder, getSetAdminAuthorityDiscriminatorBytes, getSetAdminAuthorityInstruction, getSetAdminAuthorityInstructionDataCodec, getSetAdminAuthorityInstructionDataDecoder, getSetAdminAuthorityInstructionDataEncoder, getSetDefaultMaxPercentageOfLeftoversDiscriminatorBytes, getSetDefaultMaxPercentageOfLeftoversInstruction, getSetDefaultMaxPercentageOfLeftoversInstructionDataCodec, getSetDefaultMaxPercentageOfLeftoversInstructionDataDecoder, getSetDefaultMaxPercentageOfLeftoversInstructionDataEncoder, getSetDefaultMaxSwapSlippageDiscriminatorBytes, getSetDefaultMaxSwapSlippageInstruction, getSetDefaultMaxSwapSlippageInstructionDataCodec, getSetDefaultMaxSwapSlippageInstructionDataDecoder, getSetDefaultMaxSwapSlippageInstructionDataEncoder, getSetDefaultOraclePriceDeviationThresholdDiscriminatorBytes, getSetDefaultOraclePriceDeviationThresholdInstruction, getSetDefaultOraclePriceDeviationThresholdInstructionDataCodec, getSetDefaultOraclePriceDeviationThresholdInstructionDataDecoder, getSetDefaultOraclePriceDeviationThresholdInstructionDataEncoder, getSetFeeRecipientDiscriminatorBytes, getSetFeeRecipientInstruction, getSetFeeRecipientInstructionDataCodec, getSetFeeRecipientInstructionDataDecoder, getSetFeeRecipientInstructionDataEncoder, getSetLimitOrdersDiscriminatorBytes, getSetLimitOrdersInstruction, getSetLimitOrdersInstructionDataCodec, getSetLimitOrdersInstructionDataDecoder, getSetLimitOrdersInstructionDataEncoder, getSetLiquidatorAuthorityDiscriminatorBytes, getSetLiquidatorAuthorityInstruction, getSetLiquidatorAuthorityInstructionDataCodec, getSetLiquidatorAuthorityInstructionDataDecoder, getSetLiquidatorAuthorityInstructionDataEncoder, getSetOwnerAuthorityDiscriminatorBytes, getSetOwnerAuthorityInstruction, getSetOwnerAuthorityInstructionDataCodec, getSetOwnerAuthorityInstructionDataDecoder, getSetOwnerAuthorityInstructionDataEncoder, getSetSuspendedStateDiscriminatorBytes, getSetSuspendedStateInstruction, getSetSuspendedStateInstructionDataCodec, getSetSuspendedStateInstructionDataDecoder, getSetSuspendedStateInstructionDataEncoder, getSetTunaPositionFlagsDiscriminatorBytes, getSetTunaPositionFlagsInstruction, getSetTunaPositionFlagsInstructionDataCodec, getSetTunaPositionFlagsInstructionDataDecoder, getSetTunaPositionFlagsInstructionDataEncoder, getSetTunaPositionRebalanceThresholdDiscriminatorBytes, getSetTunaPositionRebalanceThresholdInstruction, getSetTunaPositionRebalanceThresholdInstructionDataCodec, getSetTunaPositionRebalanceThresholdInstructionDataDecoder, getSetTunaPositionRebalanceThresholdInstructionDataEncoder, getTunaConfigAddress, getTunaConfigCodec, getTunaConfigDecoder, getTunaConfigDiscriminatorBytes, getTunaConfigEncoder, getTunaConfigSize, getTunaErrorMessage, getTunaPositionAddress, getTunaPositionCodec, getTunaPositionDecoder, getTunaPositionDiscriminatorBytes, getTunaPositionEncoder, getTunaPositionSize, getTunaPositionStateCodec, getTunaPositionStateDecoder, getTunaPositionStateEncoder, getUpdateMarketDiscriminatorBytes, getUpdateMarketInstruction, getUpdateMarketInstructionDataCodec, getUpdateMarketInstructionDataDecoder, getUpdateMarketInstructionDataEncoder, getUpdateVaultDiscriminatorBytes, getUpdateVaultInstruction, getUpdateVaultInstructionDataCodec, getUpdateVaultInstructionDataDecoder, getUpdateVaultInstructionDataEncoder, getVaultCodec, getVaultDecoder, getVaultDiscriminatorBytes, getVaultEncoder, getVaultSize, getWithdrawDiscriminatorBytes, getWithdrawInstruction, getWithdrawInstructionDataCodec, getWithdrawInstructionDataDecoder, getWithdrawInstructionDataEncoder, identifyTunaAccount, identifyTunaInstruction, isTunaError, lendingPositionAuthorityFilter, lendingPositionMintFilter, liquidatePositionFusionInstruction, liquidatePositionFusionInstructions, liquidatePositionOrcaInstruction, liquidatePositionOrcaInstructions, openLendingPositionAndDepositInstructions, openLendingPositionInstruction, openPositionFusionInstruction, openPositionOrcaInstruction, openPositionWithLiquidityFusionInstruction, openPositionWithLiquidityFusionInstructions, openPositionWithLiquidityOrcaInstruction, openPositionWithLiquidityOrcaInstructions, parseAddLiquidityFusionInstruction, parseAddLiquidityOrcaInstruction, parseClosePositionFusionInstruction, parseClosePositionOrcaInstruction, parseCollectAndCompoundFeesFusionInstruction, parseCollectAndCompoundFeesOrcaInstruction, parseCollectFeesFusionInstruction, parseCollectFeesOrcaInstruction, parseCollectRewardOrcaInstruction, parseCreateMarketInstruction, parseCreateTunaConfigInstruction, parseCreateVaultInstruction, parseDepositInstruction, parseLiquidatePositionFusionInstruction, parseLiquidatePositionOrcaInstruction, parseOpenLendingPositionInstruction, parseOpenPositionFusionInstruction, parseOpenPositionOrcaInstruction, parseOpenPositionWithLiquidityFusionInstruction, parseOpenPositionWithLiquidityOrcaInstruction, parseRebalancePositionFusionInstruction, parseRebalancePositionOrcaInstruction, parseRemoveLiquidityFusionInstruction, parseRemoveLiquidityOrcaInstruction, parseRepayBadDebtInstruction, parseRepayDebtInstruction, parseSetAdminAuthorityInstruction, parseSetDefaultMaxPercentageOfLeftoversInstruction, parseSetDefaultMaxSwapSlippageInstruction, parseSetDefaultOraclePriceDeviationThresholdInstruction, parseSetFeeRecipientInstruction, parseSetLimitOrdersInstruction, parseSetLiquidatorAuthorityInstruction, parseSetOwnerAuthorityInstruction, parseSetSuspendedStateInstruction, parseSetTunaPositionFlagsInstruction, parseSetTunaPositionRebalanceThresholdInstruction, parseUpdateMarketInstruction, parseUpdateVaultInstruction, parseWithdrawInstruction, rebalancePositionFusionInstruction, rebalancePositionFusionInstructions, rebalancePositionOrcaInstruction, rebalancePositionOrcaInstructions, removeLiquidityFusionInstruction, removeLiquidityFusionInstructions, removeLiquidityOrcaInstruction, removeLiquidityOrcaInstructions, repayBadDebtInstruction, repayDebtInstruction, repayDebtInstructions, setLimitOrdersInstruction, tunaPositionAuthorityFilter, tunaPositionMarketMakerFilter, tunaPositionMintAFilter, tunaPositionMintBFilter, tunaPositionMintFilter, tunaPositionPoolFilter, updateMarketInstruction, updateVaultInstruction, withdrawInstruction, withdrawInstructions };
|
package/dist/index.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ type Market = {
|
|
|
171
171
|
version: number;
|
|
172
172
|
/** Bump seed for the market account */
|
|
173
173
|
bump: ReadonlyUint8Array;
|
|
174
|
-
/** Market maker: Orca, Fusion,
|
|
174
|
+
/** Market maker: Orca, Fusion, etc... */
|
|
175
175
|
marketMaker: MarketMaker;
|
|
176
176
|
/** Liquidity pool address */
|
|
177
177
|
pool: Address;
|
|
@@ -203,6 +203,8 @@ type Market = {
|
|
|
203
203
|
borrowLimitB: bigint;
|
|
204
204
|
/** Maximum allowed swap slippage represented as hundredths of a basis point. If it's set to zero, the default value from the global config is used. */
|
|
205
205
|
maxSwapSlippage: number;
|
|
206
|
+
/** The protocol fee taken from yield when a position is re-balanced. */
|
|
207
|
+
rebalanceProtocolFee: number;
|
|
206
208
|
/** Reserved */
|
|
207
209
|
reserved: ReadonlyUint8Array;
|
|
208
210
|
};
|
|
@@ -211,7 +213,7 @@ type MarketArgs = {
|
|
|
211
213
|
version: number;
|
|
212
214
|
/** Bump seed for the market account */
|
|
213
215
|
bump: ReadonlyUint8Array;
|
|
214
|
-
/** Market maker: Orca, Fusion,
|
|
216
|
+
/** Market maker: Orca, Fusion, etc... */
|
|
215
217
|
marketMaker: MarketMakerArgs;
|
|
216
218
|
/** Liquidity pool address */
|
|
217
219
|
pool: Address;
|
|
@@ -243,6 +245,8 @@ type MarketArgs = {
|
|
|
243
245
|
borrowLimitB: number | bigint;
|
|
244
246
|
/** Maximum allowed swap slippage represented as hundredths of a basis point. If it's set to zero, the default value from the global config is used. */
|
|
245
247
|
maxSwapSlippage: number;
|
|
248
|
+
/** The protocol fee taken from yield when a position is re-balanced. */
|
|
249
|
+
rebalanceProtocolFee: number;
|
|
246
250
|
/** Reserved */
|
|
247
251
|
reserved: ReadonlyUint8Array;
|
|
248
252
|
};
|
|
@@ -699,21 +703,9 @@ declare const TUNA_ERROR__ZERO_PRICE_RANGE = 6053;
|
|
|
699
703
|
declare const TUNA_ERROR__ZERO_TRADABLE_AMOUNT = 6054;
|
|
700
704
|
/** ZeroYield: Collected yield is zero */
|
|
701
705
|
declare const TUNA_ERROR__ZERO_YIELD = 6055;
|
|
702
|
-
/**
|
|
703
|
-
declare const
|
|
704
|
-
|
|
705
|
-
declare const TUNA_ERROR__RAYDIUM_INVALID_TICK_ARRAY = 6057;
|
|
706
|
-
/** RaydiumInvaildTickIndex: RaydiumInvaildTickIndex */
|
|
707
|
-
declare const TUNA_ERROR__RAYDIUM_INVAILD_TICK_INDEX = 6058;
|
|
708
|
-
/** RaydiumMaxTokenOverflow: RaydiumMaxTokenOverflow */
|
|
709
|
-
declare const TUNA_ERROR__RAYDIUM_MAX_TOKEN_OVERFLOW = 6059;
|
|
710
|
-
/** RaydiumNotEnoughTickArrayAccount: RaydiumNotEnoughTickArrayAccount */
|
|
711
|
-
declare const TUNA_ERROR__RAYDIUM_NOT_ENOUGH_TICK_ARRAY_ACCOUNT = 6060;
|
|
712
|
-
/** RaydiumSqrtPriceLimitOverflow: RaydiumSqrtPriceLimitOverflow */
|
|
713
|
-
declare const TUNA_ERROR__RAYDIUM_SQRT_PRICE_LIMIT_OVERFLOW = 6061;
|
|
714
|
-
/** RaydiumZeroAmountSpecified: RaydiumZeroAmountSpecified */
|
|
715
|
-
declare const TUNA_ERROR__RAYDIUM_ZERO_AMOUNT_SPECIFIED = 6062;
|
|
716
|
-
type TunaError = typeof TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED | typeof TUNA_ERROR__BAD_DEBT | typeof TUNA_ERROR__INSUFFICIENT_LIQUIDITY | typeof TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__INVALID_ACCOUNT_OWNER | typeof TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS | typeof TUNA_ERROR__INVALID_MARKET_MAKER | typeof TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH | typeof TUNA_ERROR__INVALID_SQRT_PRICE_LIMIT_DIRECTION | typeof TUNA_ERROR__INVALID_TICK_ARRAY_SEQUENCE | typeof TUNA_ERROR__LEFTOVERS_EXCEEDED | typeof TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIMIT_ORDER_EXECUTION_FEE_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__LIQUIDITY_ZERO | 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__PARTIAL_FILL_ERROR | 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__PROTOCOL_FEE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__RAYDIUM_INVAILD_TICK_INDEX | typeof TUNA_ERROR__RAYDIUM_INVALID_FIRST_TICK_ARRAY_ACCOUNT | typeof TUNA_ERROR__RAYDIUM_INVALID_TICK_ARRAY | typeof TUNA_ERROR__RAYDIUM_MAX_TOKEN_OVERFLOW | typeof TUNA_ERROR__RAYDIUM_NOT_ENOUGH_TICK_ARRAY_ACCOUNT | typeof TUNA_ERROR__RAYDIUM_SQRT_PRICE_LIMIT_OVERFLOW | typeof TUNA_ERROR__RAYDIUM_ZERO_AMOUNT_SPECIFIED | typeof TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET | 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__SQRT_PRICE_OUT_OF_BOUNDS | 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__TICK_INDEX_OF_BOUNDS | 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_PRICE_RANGE | typeof TUNA_ERROR__ZERO_TRADABLE_AMOUNT | typeof TUNA_ERROR__ZERO_YIELD;
|
|
706
|
+
/** PositionIsAutoRebalanceable: Unable to claim yield for auto re-balanceable positions */
|
|
707
|
+
declare const TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE = 6056;
|
|
708
|
+
type TunaError = typeof TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED | typeof TUNA_ERROR__BAD_DEBT | typeof TUNA_ERROR__INSUFFICIENT_LIQUIDITY | typeof TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__INVALID_ACCOUNT_OWNER | typeof TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS | typeof TUNA_ERROR__INVALID_MARKET_MAKER | typeof TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH | typeof TUNA_ERROR__INVALID_SQRT_PRICE_LIMIT_DIRECTION | typeof TUNA_ERROR__INVALID_TICK_ARRAY_SEQUENCE | typeof TUNA_ERROR__LEFTOVERS_EXCEEDED | typeof TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIMIT_ORDER_EXECUTION_FEE_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__LIQUIDITY_ZERO | 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__PARTIAL_FILL_ERROR | typeof TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE | 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__PROTOCOL_FEE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET | 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__SQRT_PRICE_OUT_OF_BOUNDS | 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__TICK_INDEX_OF_BOUNDS | 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_PRICE_RANGE | typeof TUNA_ERROR__ZERO_TRADABLE_AMOUNT | typeof TUNA_ERROR__ZERO_YIELD;
|
|
717
709
|
declare function getTunaErrorMessage(code: TunaError): string;
|
|
718
710
|
declare function isTunaError<TProgramErrorCode extends TunaError>(error: unknown, transactionMessage: {
|
|
719
711
|
instructions: Record<number, {
|
|
@@ -1981,6 +1973,7 @@ type CreateMarketInstructionData = {
|
|
|
1981
1973
|
borrowLimitA: bigint;
|
|
1982
1974
|
borrowLimitB: bigint;
|
|
1983
1975
|
maxSwapSlippage: number;
|
|
1976
|
+
rebalanceProtocolFee: number;
|
|
1984
1977
|
};
|
|
1985
1978
|
type CreateMarketInstructionDataArgs = {
|
|
1986
1979
|
marketMaker: MarketMakerArgs;
|
|
@@ -1996,6 +1989,7 @@ type CreateMarketInstructionDataArgs = {
|
|
|
1996
1989
|
borrowLimitA: number | bigint;
|
|
1997
1990
|
borrowLimitB: number | bigint;
|
|
1998
1991
|
maxSwapSlippage: number;
|
|
1992
|
+
rebalanceProtocolFee: number;
|
|
1999
1993
|
};
|
|
2000
1994
|
declare function getCreateMarketInstructionDataEncoder(): Encoder<CreateMarketInstructionDataArgs>;
|
|
2001
1995
|
declare function getCreateMarketInstructionDataDecoder(): Decoder<CreateMarketInstructionData>;
|
|
@@ -2019,6 +2013,7 @@ type CreateMarketInput<TAccountAuthority extends string = string, TAccountTunaCo
|
|
|
2019
2013
|
borrowLimitA: CreateMarketInstructionDataArgs['borrowLimitA'];
|
|
2020
2014
|
borrowLimitB: CreateMarketInstructionDataArgs['borrowLimitB'];
|
|
2021
2015
|
maxSwapSlippage: CreateMarketInstructionDataArgs['maxSwapSlippage'];
|
|
2016
|
+
rebalanceProtocolFee: CreateMarketInstructionDataArgs['rebalanceProtocolFee'];
|
|
2022
2017
|
};
|
|
2023
2018
|
declare function getCreateMarketInstruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TAccountMarket extends string, TAccountPool extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: CreateMarketInput<TAccountAuthority, TAccountTunaConfig, TAccountMarket, TAccountPool, TAccountSystemProgram>, config?: {
|
|
2024
2019
|
programAddress?: TProgramAddress;
|
|
@@ -4401,6 +4396,7 @@ type UpdateMarketInstructionData = {
|
|
|
4401
4396
|
borrowLimitA: bigint;
|
|
4402
4397
|
borrowLimitB: bigint;
|
|
4403
4398
|
maxSwapSlippage: number;
|
|
4399
|
+
rebalanceProtocolFee: number;
|
|
4404
4400
|
};
|
|
4405
4401
|
type UpdateMarketInstructionDataArgs = {
|
|
4406
4402
|
addressLookupTable: Address;
|
|
@@ -4415,6 +4411,7 @@ type UpdateMarketInstructionDataArgs = {
|
|
|
4415
4411
|
borrowLimitA: number | bigint;
|
|
4416
4412
|
borrowLimitB: number | bigint;
|
|
4417
4413
|
maxSwapSlippage: number;
|
|
4414
|
+
rebalanceProtocolFee: number;
|
|
4418
4415
|
};
|
|
4419
4416
|
declare function getUpdateMarketInstructionDataEncoder(): Encoder<UpdateMarketInstructionDataArgs>;
|
|
4420
4417
|
declare function getUpdateMarketInstructionDataDecoder(): Decoder<UpdateMarketInstructionData>;
|
|
@@ -4435,6 +4432,7 @@ type UpdateMarketInput<TAccountAuthority extends string = string, TAccountTunaCo
|
|
|
4435
4432
|
borrowLimitA: UpdateMarketInstructionDataArgs['borrowLimitA'];
|
|
4436
4433
|
borrowLimitB: UpdateMarketInstructionDataArgs['borrowLimitB'];
|
|
4437
4434
|
maxSwapSlippage: UpdateMarketInstructionDataArgs['maxSwapSlippage'];
|
|
4435
|
+
rebalanceProtocolFee: UpdateMarketInstructionDataArgs['rebalanceProtocolFee'];
|
|
4438
4436
|
};
|
|
4439
4437
|
declare function getUpdateMarketInstruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: UpdateMarketInput<TAccountAuthority, TAccountTunaConfig, TAccountMarket>, config?: {
|
|
4440
4438
|
programAddress?: TProgramAddress;
|
|
@@ -4820,4 +4818,4 @@ declare const TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD_WITH_LEVERAGE: number;
|
|
|
4820
4818
|
declare const TUNA_POSITION_FLAGS_ALLOW_REBALANCING: number;
|
|
4821
4819
|
declare const WP_NFT_UPDATE_AUTH: _solana_kit.Address<"3axbTs2z5GBy6usVbNVoqEgZMng3vZvMnAoX29BFfwhr">;
|
|
4822
4820
|
|
|
4823
|
-
export { ADD_LIQUIDITY_FUSION_DISCRIMINATOR, ADD_LIQUIDITY_ORCA_DISCRIMINATOR, AccountsType, type AccountsTypeArgs, type AddLiquidityFusionInput, type AddLiquidityFusionInstruction, type AddLiquidityFusionInstructionData, type AddLiquidityFusionInstructionDataArgs, type AddLiquidityFusionInstructionsArgs, type AddLiquidityOrcaInput, type AddLiquidityOrcaInstruction, type AddLiquidityOrcaInstructionData, type AddLiquidityOrcaInstructionDataArgs, type AddLiquidityOrcaInstructionsArgs, CLOSE_POSITION_FUSION_DISCRIMINATOR, CLOSE_POSITION_ORCA_DISCRIMINATOR, COLLECT_AND_COMPOUND_FEES_FUSION_DISCRIMINATOR, COLLECT_AND_COMPOUND_FEES_ORCA_DISCRIMINATOR, COLLECT_FEES_FUSION_DISCRIMINATOR, COLLECT_FEES_ORCA_DISCRIMINATOR, COLLECT_REWARD_ORCA_DISCRIMINATOR, COMPUTED_AMOUNT, CREATE_MARKET_DISCRIMINATOR, CREATE_TUNA_CONFIG_DISCRIMINATOR, CREATE_VAULT_DISCRIMINATOR, type ClosePositionFusionInput, type ClosePositionFusionInstruction, type ClosePositionFusionInstructionData, type ClosePositionFusionInstructionDataArgs, type ClosePositionOrcaInput, type ClosePositionOrcaInstruction, type ClosePositionOrcaInstructionData, type ClosePositionOrcaInstructionDataArgs, type ClosePositionWithLiquidityFusionInstructionArgs, type ClosePositionWithLiquidityOrcaInstructionArgs, type CollectAndCompoundFeesFusionInput, type CollectAndCompoundFeesFusionInstruction, type CollectAndCompoundFeesFusionInstructionData, type CollectAndCompoundFeesFusionInstructionDataArgs, type CollectAndCompoundFeesOrcaInput, type CollectAndCompoundFeesOrcaInstruction, type CollectAndCompoundFeesOrcaInstructionData, type CollectAndCompoundFeesOrcaInstructionDataArgs, type CollectFeesFusionInput, type CollectFeesFusionInstruction, type CollectFeesFusionInstructionData, type CollectFeesFusionInstructionDataArgs, type CollectFeesOrcaInput, type CollectFeesOrcaInstruction, type CollectFeesOrcaInstructionData, type CollectFeesOrcaInstructionDataArgs, type CollectRewardOrcaInput, type CollectRewardOrcaInstruction, type CollectRewardOrcaInstructionData, type CollectRewardOrcaInstructionDataArgs, type CreateAddressLookupTableResult, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateTunaConfigInput, type CreateTunaConfigInstruction, type CreateTunaConfigInstructionData, type CreateTunaConfigInstructionDataArgs, type CreateVaultInput, type CreateVaultInstruction, type CreateVaultInstructionData, type CreateVaultInstructionDataArgs, DEFAULT_ADDRESS, DEFAULT_MAX_AMOUNT_SLIPPAGE, DEFAULT_MAX_SWAP_SLIPPAGE, DEPOSIT_DISCRIMINATOR, type DepositInput, type DepositInstruction, type DepositInstructionData, type DepositInstructionDataArgs, FusionUtils, HUNDRED_PERCENT, type IncreaseLiquidityQuoteArgs, type IncreaseLiquidityQuoteResult, LENDING_POSITION_DISCRIMINATOR, LEVERAGE_ONE, LIQUIDATE_POSITION_FUSION_DISCRIMINATOR, LIQUIDATE_POSITION_ORCA_DISCRIMINATOR, type LendingPosition, type LendingPositionArgs, type LiquidatePositionFusionInput, type LiquidatePositionFusionInstruction, type LiquidatePositionFusionInstructionData, type LiquidatePositionFusionInstructionDataArgs, type LiquidatePositionOrcaInput, type LiquidatePositionOrcaInstruction, type LiquidatePositionOrcaInstructionData, type LiquidatePositionOrcaInstructionDataArgs, MARKET_DISCRIMINATOR, MAX_LEVERAGE, MAX_LIMIT_ORDER_EXECUTION_FEE, MAX_LIQUIDATION_FEE, MAX_LIQUIDATION_THRESHOLD, MAX_PROTOCOL_FEE, type Market, type MarketArgs, MarketMaker, type MarketMakerArgs, NATIVE_MINT, NO_STOP_LOSS, NO_TAKE_PROFIT, OPEN_LENDING_POSITION_DISCRIMINATOR, OPEN_POSITION_FUSION_DISCRIMINATOR, OPEN_POSITION_ORCA_DISCRIMINATOR, OPEN_POSITION_WITH_LIQUIDITY_FUSION_DISCRIMINATOR, OPEN_POSITION_WITH_LIQUIDITY_ORCA_DISCRIMINATOR, type OpenLendingPositionInput, type OpenLendingPositionInstruction, type OpenLendingPositionInstructionData, type OpenLendingPositionInstructionDataArgs, type OpenPositionFusionInput, type OpenPositionFusionInstruction, type OpenPositionFusionInstructionData, type OpenPositionFusionInstructionDataArgs, type OpenPositionOrcaInput, type OpenPositionOrcaInstruction, type OpenPositionOrcaInstructionData, type OpenPositionOrcaInstructionDataArgs, type OpenPositionWithLiquidityFusionInput, type OpenPositionWithLiquidityFusionInstruction, type OpenPositionWithLiquidityFusionInstructionData, type OpenPositionWithLiquidityFusionInstructionDataArgs, type OpenPositionWithLiquidityFusionInstructionsArgs, type OpenPositionWithLiquidityOrcaInput, type OpenPositionWithLiquidityOrcaInstruction, type OpenPositionWithLiquidityOrcaInstructionData, type OpenPositionWithLiquidityOrcaInstructionDataArgs, type OpenPositionWithLiquidityOrcaInstructionsArgs, OrcaUtils, type ParsedAddLiquidityFusionInstruction, type ParsedAddLiquidityOrcaInstruction, type ParsedClosePositionFusionInstruction, type ParsedClosePositionOrcaInstruction, type ParsedCollectAndCompoundFeesFusionInstruction, type ParsedCollectAndCompoundFeesOrcaInstruction, type ParsedCollectFeesFusionInstruction, type ParsedCollectFeesOrcaInstruction, type ParsedCollectRewardOrcaInstruction, type ParsedCreateMarketInstruction, type ParsedCreateTunaConfigInstruction, type ParsedCreateVaultInstruction, type ParsedDepositInstruction, type ParsedLiquidatePositionFusionInstruction, type ParsedLiquidatePositionOrcaInstruction, type ParsedOpenLendingPositionInstruction, type ParsedOpenPositionFusionInstruction, type ParsedOpenPositionOrcaInstruction, type ParsedOpenPositionWithLiquidityFusionInstruction, type ParsedOpenPositionWithLiquidityOrcaInstruction, type ParsedRebalancePositionFusionInstruction, type ParsedRebalancePositionOrcaInstruction, type ParsedRemoveLiquidityFusionInstruction, type ParsedRemoveLiquidityOrcaInstruction, type ParsedRepayBadDebtInstruction, type ParsedRepayDebtInstruction, type ParsedSetAdminAuthorityInstruction, type ParsedSetDefaultMaxPercentageOfLeftoversInstruction, type ParsedSetDefaultMaxSwapSlippageInstruction, type ParsedSetDefaultOraclePriceDeviationThresholdInstruction, type ParsedSetFeeRecipientInstruction, type ParsedSetLimitOrdersInstruction, type ParsedSetLiquidatorAuthorityInstruction, type ParsedSetOwnerAuthorityInstruction, type ParsedSetSuspendedStateInstruction, type ParsedSetTunaPositionFlagsInstruction, type ParsedSetTunaPositionRebalanceThresholdInstruction, type ParsedTunaInstruction, type ParsedUpdateMarketInstruction, type ParsedUpdateVaultInstruction, type ParsedWithdrawInstruction, REBALANCE_POSITION_FUSION_DISCRIMINATOR, REBALANCE_POSITION_ORCA_DISCRIMINATOR, REMOVE_LIQUIDITY_FUSION_DISCRIMINATOR, REMOVE_LIQUIDITY_ORCA_DISCRIMINATOR, REPAY_BAD_DEBT_DISCRIMINATOR, REPAY_DEBT_DISCRIMINATOR, type RebalancePositionFusionInput, type RebalancePositionFusionInstruction, type RebalancePositionFusionInstructionData, type RebalancePositionFusionInstructionDataArgs, type RebalancePositionOrcaInput, type RebalancePositionOrcaInstruction, type RebalancePositionOrcaInstructionData, type RebalancePositionOrcaInstructionDataArgs, type RemainingAccountsInfo, type RemainingAccountsInfoArgs, type RemainingAccountsSlice, type RemainingAccountsSliceArgs, type RemoveLiquidityFusionInput, type RemoveLiquidityFusionInstruction, type RemoveLiquidityFusionInstructionData, type RemoveLiquidityFusionInstructionDataArgs, type RemoveLiquidityFusionInstructionsArgs, type RemoveLiquidityOrcaInput, type RemoveLiquidityOrcaInstruction, type RemoveLiquidityOrcaInstructionData, type RemoveLiquidityOrcaInstructionDataArgs, type RemoveLiquidityOrcaInstructionsArgs, type RepayBadDebtInput, type RepayBadDebtInstruction, type RepayBadDebtInstructionData, type RepayBadDebtInstructionDataArgs, type RepayDebtInput, type RepayDebtInstruction, type RepayDebtInstructionData, type RepayDebtInstructionDataArgs, SET_ADMIN_AUTHORITY_DISCRIMINATOR, SET_DEFAULT_MAX_PERCENTAGE_OF_LEFTOVERS_DISCRIMINATOR, SET_DEFAULT_MAX_SWAP_SLIPPAGE_DISCRIMINATOR, SET_DEFAULT_ORACLE_PRICE_DEVIATION_THRESHOLD_DISCRIMINATOR, SET_FEE_RECIPIENT_DISCRIMINATOR, SET_LIMIT_ORDERS_DISCRIMINATOR, SET_LIQUIDATOR_AUTHORITY_DISCRIMINATOR, SET_OWNER_AUTHORITY_DISCRIMINATOR, SET_SUSPENDED_STATE_DISCRIMINATOR, SET_TUNA_POSITION_FLAGS_DISCRIMINATOR, SET_TUNA_POSITION_REBALANCE_THRESHOLD_DISCRIMINATOR, type SetAdminAuthorityInput, type SetAdminAuthorityInstruction, type SetAdminAuthorityInstructionData, type SetAdminAuthorityInstructionDataArgs, type SetDefaultMaxPercentageOfLeftoversInput, type SetDefaultMaxPercentageOfLeftoversInstruction, type SetDefaultMaxPercentageOfLeftoversInstructionData, type SetDefaultMaxPercentageOfLeftoversInstructionDataArgs, type SetDefaultMaxSwapSlippageInput, type SetDefaultMaxSwapSlippageInstruction, type SetDefaultMaxSwapSlippageInstructionData, type SetDefaultMaxSwapSlippageInstructionDataArgs, type SetDefaultOraclePriceDeviationThresholdInput, type SetDefaultOraclePriceDeviationThresholdInstruction, type SetDefaultOraclePriceDeviationThresholdInstructionData, type SetDefaultOraclePriceDeviationThresholdInstructionDataArgs, type SetFeeRecipientInput, type SetFeeRecipientInstruction, type SetFeeRecipientInstructionData, type SetFeeRecipientInstructionDataArgs, type SetLimitOrdersInput, type SetLimitOrdersInstruction, type SetLimitOrdersInstructionData, type SetLimitOrdersInstructionDataArgs, type SetLiquidatorAuthorityInput, type SetLiquidatorAuthorityInstruction, type SetLiquidatorAuthorityInstructionData, type SetLiquidatorAuthorityInstructionDataArgs, type SetOwnerAuthorityInput, type SetOwnerAuthorityInstruction, type SetOwnerAuthorityInstructionData, type SetOwnerAuthorityInstructionDataArgs, type SetSuspendedStateInput, type SetSuspendedStateInstruction, type SetSuspendedStateInstructionData, type SetSuspendedStateInstructionDataArgs, type SetTunaPositionFlagsInput, type SetTunaPositionFlagsInstruction, type SetTunaPositionFlagsInstructionData, type SetTunaPositionFlagsInstructionDataArgs, type SetTunaPositionRebalanceThresholdInput, type SetTunaPositionRebalanceThresholdInstruction, type SetTunaPositionRebalanceThresholdInstructionData, type SetTunaPositionRebalanceThresholdInstructionDataArgs, TUNA_CONFIG_DISCRIMINATOR, TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED, TUNA_ERROR__BAD_DEBT, TUNA_ERROR__INSUFFICIENT_LIQUIDITY, TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE, TUNA_ERROR__INVALID_ACCOUNT_OWNER, TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS, TUNA_ERROR__INVALID_MARKET_MAKER, TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH, TUNA_ERROR__INVALID_SQRT_PRICE_LIMIT_DIRECTION, TUNA_ERROR__INVALID_TICK_ARRAY_SEQUENCE, TUNA_ERROR__LEFTOVERS_EXCEEDED, TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE, TUNA_ERROR__LIMIT_ORDER_EXECUTION_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDITY_ZERO, TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED, TUNA_ERROR__MARKET_DISABLED, TUNA_ERROR__MATH_OVERFLOW, TUNA_ERROR__MATH_UNDERFLOW, TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE, TUNA_ERROR__ORACLE_STALE_PRICE, TUNA_ERROR__PARTIAL_FILL_ERROR, TUNA_ERROR__POSITION_IS_HEALTHY, TUNA_ERROR__POSITION_IS_LIQUIDATED, TUNA_ERROR__POSITION_IS_UNHEALTHY, TUNA_ERROR__POSITION_NOT_EMPTY, TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__RAYDIUM_INVAILD_TICK_INDEX, TUNA_ERROR__RAYDIUM_INVALID_FIRST_TICK_ARRAY_ACCOUNT, TUNA_ERROR__RAYDIUM_INVALID_TICK_ARRAY, TUNA_ERROR__RAYDIUM_MAX_TOKEN_OVERFLOW, TUNA_ERROR__RAYDIUM_NOT_ENOUGH_TICK_ARRAY_ACCOUNT, TUNA_ERROR__RAYDIUM_SQRT_PRICE_LIMIT_OVERFLOW, TUNA_ERROR__RAYDIUM_ZERO_AMOUNT_SPECIFIED, TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET, TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE, TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH, TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED, TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT, TUNA_ERROR__SQRT_PRICE_OUT_OF_BOUNDS, TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED, TUNA_ERROR__SUSPENDED, TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT, TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED, TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE, TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED, TUNA_ERROR__TICK_INDEX_OF_BOUNDS, TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR, TUNA_ERROR__TYPE_CAST_OVERFLOW, TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA, TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA, TUNA_ERROR__UNEXPECTED_VALUE, TUNA_ERROR__UNSUPPORTED_TOKEN_MINT, TUNA_ERROR__VAULT_NOT_INITIALIZED, TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE, TUNA_ERROR__ZERO_PRICE_RANGE, TUNA_ERROR__ZERO_TRADABLE_AMOUNT, TUNA_ERROR__ZERO_YIELD, TUNA_POSITION_DISCRIMINATOR, TUNA_POSITION_FLAGS_ALLOW_REBALANCING, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD_WITH_LEVERAGE, TUNA_POSITION_FLAGS_STOP_LOSS_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_STOP_LOSS_SWAP_TO_TOKEN_B, TUNA_POSITION_FLAGS_TAKE_PROFIT_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_TAKE_PROFIT_SWAP_TO_TOKEN_B, TUNA_PROGRAM_ADDRESS, TunaAccount, type TunaConfig, type TunaConfigArgs, type TunaError, TunaInstruction, type TunaPosition, type TunaPositionArgs, TunaPositionState, type TunaPositionStateArgs, UPDATE_MARKET_DISCRIMINATOR, UPDATE_VAULT_DISCRIMINATOR, type UpdateMarketInput, type UpdateMarketInstruction, type UpdateMarketInstructionData, type UpdateMarketInstructionDataArgs, type UpdateVaultInput, type UpdateVaultInstruction, type UpdateVaultInstructionData, type UpdateVaultInstructionDataArgs, VAULT_DISCRIMINATOR, type Vault, type VaultArgs, WITHDRAW_DISCRIMINATOR, WP_NFT_UPDATE_AUTH, type WithdrawInput, type WithdrawInstruction, type WithdrawInstructionData, type WithdrawInstructionDataArgs, addLiquidityFusionInstruction, addLiquidityFusionInstructions, addLiquidityOrcaInstruction, addLiquidityOrcaInstructions, calculateProtocolFee, closePositionFusionInstruction, closePositionOrcaInstruction, closePositionWithLiquidityFusionInstructions, closePositionWithLiquidityOrcaInstructions, collectAndCompoundFeesFusionInstruction, collectAndCompoundFeesFusionInstructions, collectAndCompoundFeesOrcaInstruction, collectAndCompoundFeesOrcaInstructions, collectFeesFusionInstruction, collectFeesFusionInstructions, collectFeesOrcaInstruction, collectFeesOrcaInstructions, createAddressLookupTableForMarketInstructions, createAddressLookupTableInstructions, createMarketInstruction, createTunaConfigInstruction, createVaultInstructions, decodeLendingPosition, decodeMarket, decodeTunaConfig, decodeTunaPosition, decodeVault, depositInstruction, depositInstructions, fetchAllLendingPosition, fetchAllLendingPositionWithFilter, fetchAllMarket, fetchAllMaybeLendingPosition, fetchAllMaybeMarket, fetchAllMaybeTunaConfig, fetchAllMaybeTunaPosition, fetchAllMaybeVault, fetchAllTunaConfig, fetchAllTunaPosition, fetchAllTunaPositionWithFilter, fetchAllVault, fetchLendingPosition, fetchMarket, fetchMaybeLendingPosition, fetchMaybeMarket, fetchMaybeTunaConfig, fetchMaybeTunaPosition, fetchMaybeVault, fetchTunaConfig, fetchTunaPosition, fetchVault, getAccountsTypeCodec, getAccountsTypeDecoder, getAccountsTypeEncoder, getAddLiquidityFusionDiscriminatorBytes, getAddLiquidityFusionInstruction, getAddLiquidityFusionInstructionDataCodec, getAddLiquidityFusionInstructionDataDecoder, getAddLiquidityFusionInstructionDataEncoder, getAddLiquidityOrcaDiscriminatorBytes, getAddLiquidityOrcaInstruction, getAddLiquidityOrcaInstructionDataCodec, getAddLiquidityOrcaInstructionDataDecoder, getAddLiquidityOrcaInstructionDataEncoder, getClosePositionFusionDiscriminatorBytes, getClosePositionFusionInstruction, getClosePositionFusionInstructionDataCodec, getClosePositionFusionInstructionDataDecoder, getClosePositionFusionInstructionDataEncoder, getClosePositionOrcaDiscriminatorBytes, getClosePositionOrcaInstruction, getClosePositionOrcaInstructionDataCodec, getClosePositionOrcaInstructionDataDecoder, getClosePositionOrcaInstructionDataEncoder, getCollectAndCompoundFeesFusionDiscriminatorBytes, getCollectAndCompoundFeesFusionInstruction, getCollectAndCompoundFeesFusionInstructionDataCodec, getCollectAndCompoundFeesFusionInstructionDataDecoder, getCollectAndCompoundFeesFusionInstructionDataEncoder, getCollectAndCompoundFeesOrcaDiscriminatorBytes, getCollectAndCompoundFeesOrcaInstruction, getCollectAndCompoundFeesOrcaInstructionDataCodec, getCollectAndCompoundFeesOrcaInstructionDataDecoder, getCollectAndCompoundFeesOrcaInstructionDataEncoder, getCollectFeesFusionDiscriminatorBytes, getCollectFeesFusionInstruction, getCollectFeesFusionInstructionDataCodec, getCollectFeesFusionInstructionDataDecoder, getCollectFeesFusionInstructionDataEncoder, getCollectFeesOrcaDiscriminatorBytes, getCollectFeesOrcaInstruction, getCollectFeesOrcaInstructionDataCodec, getCollectFeesOrcaInstructionDataDecoder, getCollectFeesOrcaInstructionDataEncoder, getCollectRewardOrcaDiscriminatorBytes, getCollectRewardOrcaInstruction, getCollectRewardOrcaInstructionDataCodec, getCollectRewardOrcaInstructionDataDecoder, getCollectRewardOrcaInstructionDataEncoder, getCreateAtaInstruction, getCreateAtaInstructions, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreateTunaConfigDiscriminatorBytes, getCreateTunaConfigInstruction, getCreateTunaConfigInstructionDataCodec, getCreateTunaConfigInstructionDataDecoder, getCreateTunaConfigInstructionDataEncoder, getCreateVaultDiscriminatorBytes, getCreateVaultInstruction, getCreateVaultInstructionDataCodec, getCreateVaultInstructionDataDecoder, getCreateVaultInstructionDataEncoder, getDepositDiscriminatorBytes, getDepositInstruction, getDepositInstructionDataCodec, getDepositInstructionDataDecoder, getDepositInstructionDataEncoder, getLendingPositionAddress, getLendingPositionCodec, getLendingPositionDecoder, getLendingPositionDiscriminatorBytes, getLendingPositionEncoder, getLendingPositionSize, getLendingVaultAddress, getLiquidatePositionFusionDiscriminatorBytes, getLiquidatePositionFusionInstruction, getLiquidatePositionFusionInstructionDataCodec, getLiquidatePositionFusionInstructionDataDecoder, getLiquidatePositionFusionInstructionDataEncoder, getLiquidatePositionOrcaDiscriminatorBytes, getLiquidatePositionOrcaInstruction, getLiquidatePositionOrcaInstructionDataCodec, getLiquidatePositionOrcaInstructionDataDecoder, getLiquidatePositionOrcaInstructionDataEncoder, getLiquidityIncreaseQuote, getMarketAddress, getMarketCodec, getMarketDecoder, getMarketDiscriminatorBytes, getMarketEncoder, getMarketMakerCodec, getMarketMakerDecoder, getMarketMakerEncoder, getMarketSize, getOpenLendingPositionDiscriminatorBytes, getOpenLendingPositionInstruction, getOpenLendingPositionInstructionDataCodec, getOpenLendingPositionInstructionDataDecoder, getOpenLendingPositionInstructionDataEncoder, getOpenPositionFusionDiscriminatorBytes, getOpenPositionFusionInstruction, getOpenPositionFusionInstructionDataCodec, getOpenPositionFusionInstructionDataDecoder, getOpenPositionFusionInstructionDataEncoder, getOpenPositionOrcaDiscriminatorBytes, getOpenPositionOrcaInstruction, getOpenPositionOrcaInstructionDataCodec, getOpenPositionOrcaInstructionDataDecoder, getOpenPositionOrcaInstructionDataEncoder, getOpenPositionWithLiquidityFusionDiscriminatorBytes, getOpenPositionWithLiquidityFusionInstruction, getOpenPositionWithLiquidityFusionInstructionDataCodec, getOpenPositionWithLiquidityFusionInstructionDataDecoder, getOpenPositionWithLiquidityFusionInstructionDataEncoder, getOpenPositionWithLiquidityOrcaDiscriminatorBytes, getOpenPositionWithLiquidityOrcaInstruction, getOpenPositionWithLiquidityOrcaInstructionDataCodec, getOpenPositionWithLiquidityOrcaInstructionDataDecoder, getOpenPositionWithLiquidityOrcaInstructionDataEncoder, getRebalancePositionFusionDiscriminatorBytes, getRebalancePositionFusionInstruction, getRebalancePositionFusionInstructionDataCodec, getRebalancePositionFusionInstructionDataDecoder, getRebalancePositionFusionInstructionDataEncoder, getRebalancePositionOrcaDiscriminatorBytes, getRebalancePositionOrcaInstruction, getRebalancePositionOrcaInstructionDataCodec, getRebalancePositionOrcaInstructionDataDecoder, getRebalancePositionOrcaInstructionDataEncoder, getRemainingAccountsInfoCodec, getRemainingAccountsInfoDecoder, getRemainingAccountsInfoEncoder, getRemainingAccountsSliceCodec, getRemainingAccountsSliceDecoder, getRemainingAccountsSliceEncoder, getRemoveLiquidityFusionDiscriminatorBytes, getRemoveLiquidityFusionInstruction, getRemoveLiquidityFusionInstructionDataCodec, getRemoveLiquidityFusionInstructionDataDecoder, getRemoveLiquidityFusionInstructionDataEncoder, getRemoveLiquidityOrcaDiscriminatorBytes, getRemoveLiquidityOrcaInstruction, getRemoveLiquidityOrcaInstructionDataCodec, getRemoveLiquidityOrcaInstructionDataDecoder, getRemoveLiquidityOrcaInstructionDataEncoder, getRepayBadDebtDiscriminatorBytes, getRepayBadDebtInstruction, getRepayBadDebtInstructionDataCodec, getRepayBadDebtInstructionDataDecoder, getRepayBadDebtInstructionDataEncoder, getRepayDebtDiscriminatorBytes, getRepayDebtInstruction, getRepayDebtInstructionDataCodec, getRepayDebtInstructionDataDecoder, getRepayDebtInstructionDataEncoder, getSetAdminAuthorityDiscriminatorBytes, getSetAdminAuthorityInstruction, getSetAdminAuthorityInstructionDataCodec, getSetAdminAuthorityInstructionDataDecoder, getSetAdminAuthorityInstructionDataEncoder, getSetDefaultMaxPercentageOfLeftoversDiscriminatorBytes, getSetDefaultMaxPercentageOfLeftoversInstruction, getSetDefaultMaxPercentageOfLeftoversInstructionDataCodec, getSetDefaultMaxPercentageOfLeftoversInstructionDataDecoder, getSetDefaultMaxPercentageOfLeftoversInstructionDataEncoder, getSetDefaultMaxSwapSlippageDiscriminatorBytes, getSetDefaultMaxSwapSlippageInstruction, getSetDefaultMaxSwapSlippageInstructionDataCodec, getSetDefaultMaxSwapSlippageInstructionDataDecoder, getSetDefaultMaxSwapSlippageInstructionDataEncoder, getSetDefaultOraclePriceDeviationThresholdDiscriminatorBytes, getSetDefaultOraclePriceDeviationThresholdInstruction, getSetDefaultOraclePriceDeviationThresholdInstructionDataCodec, getSetDefaultOraclePriceDeviationThresholdInstructionDataDecoder, getSetDefaultOraclePriceDeviationThresholdInstructionDataEncoder, getSetFeeRecipientDiscriminatorBytes, getSetFeeRecipientInstruction, getSetFeeRecipientInstructionDataCodec, getSetFeeRecipientInstructionDataDecoder, getSetFeeRecipientInstructionDataEncoder, getSetLimitOrdersDiscriminatorBytes, getSetLimitOrdersInstruction, getSetLimitOrdersInstructionDataCodec, getSetLimitOrdersInstructionDataDecoder, getSetLimitOrdersInstructionDataEncoder, getSetLiquidatorAuthorityDiscriminatorBytes, getSetLiquidatorAuthorityInstruction, getSetLiquidatorAuthorityInstructionDataCodec, getSetLiquidatorAuthorityInstructionDataDecoder, getSetLiquidatorAuthorityInstructionDataEncoder, getSetOwnerAuthorityDiscriminatorBytes, getSetOwnerAuthorityInstruction, getSetOwnerAuthorityInstructionDataCodec, getSetOwnerAuthorityInstructionDataDecoder, getSetOwnerAuthorityInstructionDataEncoder, getSetSuspendedStateDiscriminatorBytes, getSetSuspendedStateInstruction, getSetSuspendedStateInstructionDataCodec, getSetSuspendedStateInstructionDataDecoder, getSetSuspendedStateInstructionDataEncoder, getSetTunaPositionFlagsDiscriminatorBytes, getSetTunaPositionFlagsInstruction, getSetTunaPositionFlagsInstructionDataCodec, getSetTunaPositionFlagsInstructionDataDecoder, getSetTunaPositionFlagsInstructionDataEncoder, getSetTunaPositionRebalanceThresholdDiscriminatorBytes, getSetTunaPositionRebalanceThresholdInstruction, getSetTunaPositionRebalanceThresholdInstructionDataCodec, getSetTunaPositionRebalanceThresholdInstructionDataDecoder, getSetTunaPositionRebalanceThresholdInstructionDataEncoder, getTunaConfigAddress, getTunaConfigCodec, getTunaConfigDecoder, getTunaConfigDiscriminatorBytes, getTunaConfigEncoder, getTunaConfigSize, getTunaErrorMessage, getTunaPositionAddress, getTunaPositionCodec, getTunaPositionDecoder, getTunaPositionDiscriminatorBytes, getTunaPositionEncoder, getTunaPositionSize, getTunaPositionStateCodec, getTunaPositionStateDecoder, getTunaPositionStateEncoder, getUpdateMarketDiscriminatorBytes, getUpdateMarketInstruction, getUpdateMarketInstructionDataCodec, getUpdateMarketInstructionDataDecoder, getUpdateMarketInstructionDataEncoder, getUpdateVaultDiscriminatorBytes, getUpdateVaultInstruction, getUpdateVaultInstructionDataCodec, getUpdateVaultInstructionDataDecoder, getUpdateVaultInstructionDataEncoder, getVaultCodec, getVaultDecoder, getVaultDiscriminatorBytes, getVaultEncoder, getVaultSize, getWithdrawDiscriminatorBytes, getWithdrawInstruction, getWithdrawInstructionDataCodec, getWithdrawInstructionDataDecoder, getWithdrawInstructionDataEncoder, identifyTunaAccount, identifyTunaInstruction, isTunaError, lendingPositionAuthorityFilter, lendingPositionMintFilter, liquidatePositionFusionInstruction, liquidatePositionFusionInstructions, liquidatePositionOrcaInstruction, liquidatePositionOrcaInstructions, openLendingPositionAndDepositInstructions, openLendingPositionInstruction, openPositionFusionInstruction, openPositionOrcaInstruction, openPositionWithLiquidityFusionInstruction, openPositionWithLiquidityFusionInstructions, openPositionWithLiquidityOrcaInstruction, openPositionWithLiquidityOrcaInstructions, parseAddLiquidityFusionInstruction, parseAddLiquidityOrcaInstruction, parseClosePositionFusionInstruction, parseClosePositionOrcaInstruction, parseCollectAndCompoundFeesFusionInstruction, parseCollectAndCompoundFeesOrcaInstruction, parseCollectFeesFusionInstruction, parseCollectFeesOrcaInstruction, parseCollectRewardOrcaInstruction, parseCreateMarketInstruction, parseCreateTunaConfigInstruction, parseCreateVaultInstruction, parseDepositInstruction, parseLiquidatePositionFusionInstruction, parseLiquidatePositionOrcaInstruction, parseOpenLendingPositionInstruction, parseOpenPositionFusionInstruction, parseOpenPositionOrcaInstruction, parseOpenPositionWithLiquidityFusionInstruction, parseOpenPositionWithLiquidityOrcaInstruction, parseRebalancePositionFusionInstruction, parseRebalancePositionOrcaInstruction, parseRemoveLiquidityFusionInstruction, parseRemoveLiquidityOrcaInstruction, parseRepayBadDebtInstruction, parseRepayDebtInstruction, parseSetAdminAuthorityInstruction, parseSetDefaultMaxPercentageOfLeftoversInstruction, parseSetDefaultMaxSwapSlippageInstruction, parseSetDefaultOraclePriceDeviationThresholdInstruction, parseSetFeeRecipientInstruction, parseSetLimitOrdersInstruction, parseSetLiquidatorAuthorityInstruction, parseSetOwnerAuthorityInstruction, parseSetSuspendedStateInstruction, parseSetTunaPositionFlagsInstruction, parseSetTunaPositionRebalanceThresholdInstruction, parseUpdateMarketInstruction, parseUpdateVaultInstruction, parseWithdrawInstruction, rebalancePositionFusionInstruction, rebalancePositionFusionInstructions, rebalancePositionOrcaInstruction, rebalancePositionOrcaInstructions, removeLiquidityFusionInstruction, removeLiquidityFusionInstructions, removeLiquidityOrcaInstruction, removeLiquidityOrcaInstructions, repayBadDebtInstruction, repayDebtInstruction, repayDebtInstructions, setLimitOrdersInstruction, tunaPositionAuthorityFilter, tunaPositionMarketMakerFilter, tunaPositionMintAFilter, tunaPositionMintBFilter, tunaPositionMintFilter, tunaPositionPoolFilter, updateMarketInstruction, updateVaultInstruction, withdrawInstruction, withdrawInstructions };
|
|
4821
|
+
export { ADD_LIQUIDITY_FUSION_DISCRIMINATOR, ADD_LIQUIDITY_ORCA_DISCRIMINATOR, AccountsType, type AccountsTypeArgs, type AddLiquidityFusionInput, type AddLiquidityFusionInstruction, type AddLiquidityFusionInstructionData, type AddLiquidityFusionInstructionDataArgs, type AddLiquidityFusionInstructionsArgs, type AddLiquidityOrcaInput, type AddLiquidityOrcaInstruction, type AddLiquidityOrcaInstructionData, type AddLiquidityOrcaInstructionDataArgs, type AddLiquidityOrcaInstructionsArgs, CLOSE_POSITION_FUSION_DISCRIMINATOR, CLOSE_POSITION_ORCA_DISCRIMINATOR, COLLECT_AND_COMPOUND_FEES_FUSION_DISCRIMINATOR, COLLECT_AND_COMPOUND_FEES_ORCA_DISCRIMINATOR, COLLECT_FEES_FUSION_DISCRIMINATOR, COLLECT_FEES_ORCA_DISCRIMINATOR, COLLECT_REWARD_ORCA_DISCRIMINATOR, COMPUTED_AMOUNT, CREATE_MARKET_DISCRIMINATOR, CREATE_TUNA_CONFIG_DISCRIMINATOR, CREATE_VAULT_DISCRIMINATOR, type ClosePositionFusionInput, type ClosePositionFusionInstruction, type ClosePositionFusionInstructionData, type ClosePositionFusionInstructionDataArgs, type ClosePositionOrcaInput, type ClosePositionOrcaInstruction, type ClosePositionOrcaInstructionData, type ClosePositionOrcaInstructionDataArgs, type ClosePositionWithLiquidityFusionInstructionArgs, type ClosePositionWithLiquidityOrcaInstructionArgs, type CollectAndCompoundFeesFusionInput, type CollectAndCompoundFeesFusionInstruction, type CollectAndCompoundFeesFusionInstructionData, type CollectAndCompoundFeesFusionInstructionDataArgs, type CollectAndCompoundFeesOrcaInput, type CollectAndCompoundFeesOrcaInstruction, type CollectAndCompoundFeesOrcaInstructionData, type CollectAndCompoundFeesOrcaInstructionDataArgs, type CollectFeesFusionInput, type CollectFeesFusionInstruction, type CollectFeesFusionInstructionData, type CollectFeesFusionInstructionDataArgs, type CollectFeesOrcaInput, type CollectFeesOrcaInstruction, type CollectFeesOrcaInstructionData, type CollectFeesOrcaInstructionDataArgs, type CollectRewardOrcaInput, type CollectRewardOrcaInstruction, type CollectRewardOrcaInstructionData, type CollectRewardOrcaInstructionDataArgs, type CreateAddressLookupTableResult, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateTunaConfigInput, type CreateTunaConfigInstruction, type CreateTunaConfigInstructionData, type CreateTunaConfigInstructionDataArgs, type CreateVaultInput, type CreateVaultInstruction, type CreateVaultInstructionData, type CreateVaultInstructionDataArgs, DEFAULT_ADDRESS, DEFAULT_MAX_AMOUNT_SLIPPAGE, DEFAULT_MAX_SWAP_SLIPPAGE, DEPOSIT_DISCRIMINATOR, type DepositInput, type DepositInstruction, type DepositInstructionData, type DepositInstructionDataArgs, FusionUtils, HUNDRED_PERCENT, type IncreaseLiquidityQuoteArgs, type IncreaseLiquidityQuoteResult, LENDING_POSITION_DISCRIMINATOR, LEVERAGE_ONE, LIQUIDATE_POSITION_FUSION_DISCRIMINATOR, LIQUIDATE_POSITION_ORCA_DISCRIMINATOR, type LendingPosition, type LendingPositionArgs, type LiquidatePositionFusionInput, type LiquidatePositionFusionInstruction, type LiquidatePositionFusionInstructionData, type LiquidatePositionFusionInstructionDataArgs, type LiquidatePositionOrcaInput, type LiquidatePositionOrcaInstruction, type LiquidatePositionOrcaInstructionData, type LiquidatePositionOrcaInstructionDataArgs, MARKET_DISCRIMINATOR, MAX_LEVERAGE, MAX_LIMIT_ORDER_EXECUTION_FEE, MAX_LIQUIDATION_FEE, MAX_LIQUIDATION_THRESHOLD, MAX_PROTOCOL_FEE, type Market, type MarketArgs, MarketMaker, type MarketMakerArgs, NATIVE_MINT, NO_STOP_LOSS, NO_TAKE_PROFIT, OPEN_LENDING_POSITION_DISCRIMINATOR, OPEN_POSITION_FUSION_DISCRIMINATOR, OPEN_POSITION_ORCA_DISCRIMINATOR, OPEN_POSITION_WITH_LIQUIDITY_FUSION_DISCRIMINATOR, OPEN_POSITION_WITH_LIQUIDITY_ORCA_DISCRIMINATOR, type OpenLendingPositionInput, type OpenLendingPositionInstruction, type OpenLendingPositionInstructionData, type OpenLendingPositionInstructionDataArgs, type OpenPositionFusionInput, type OpenPositionFusionInstruction, type OpenPositionFusionInstructionData, type OpenPositionFusionInstructionDataArgs, type OpenPositionOrcaInput, type OpenPositionOrcaInstruction, type OpenPositionOrcaInstructionData, type OpenPositionOrcaInstructionDataArgs, type OpenPositionWithLiquidityFusionInput, type OpenPositionWithLiquidityFusionInstruction, type OpenPositionWithLiquidityFusionInstructionData, type OpenPositionWithLiquidityFusionInstructionDataArgs, type OpenPositionWithLiquidityFusionInstructionsArgs, type OpenPositionWithLiquidityOrcaInput, type OpenPositionWithLiquidityOrcaInstruction, type OpenPositionWithLiquidityOrcaInstructionData, type OpenPositionWithLiquidityOrcaInstructionDataArgs, type OpenPositionWithLiquidityOrcaInstructionsArgs, OrcaUtils, type ParsedAddLiquidityFusionInstruction, type ParsedAddLiquidityOrcaInstruction, type ParsedClosePositionFusionInstruction, type ParsedClosePositionOrcaInstruction, type ParsedCollectAndCompoundFeesFusionInstruction, type ParsedCollectAndCompoundFeesOrcaInstruction, type ParsedCollectFeesFusionInstruction, type ParsedCollectFeesOrcaInstruction, type ParsedCollectRewardOrcaInstruction, type ParsedCreateMarketInstruction, type ParsedCreateTunaConfigInstruction, type ParsedCreateVaultInstruction, type ParsedDepositInstruction, type ParsedLiquidatePositionFusionInstruction, type ParsedLiquidatePositionOrcaInstruction, type ParsedOpenLendingPositionInstruction, type ParsedOpenPositionFusionInstruction, type ParsedOpenPositionOrcaInstruction, type ParsedOpenPositionWithLiquidityFusionInstruction, type ParsedOpenPositionWithLiquidityOrcaInstruction, type ParsedRebalancePositionFusionInstruction, type ParsedRebalancePositionOrcaInstruction, type ParsedRemoveLiquidityFusionInstruction, type ParsedRemoveLiquidityOrcaInstruction, type ParsedRepayBadDebtInstruction, type ParsedRepayDebtInstruction, type ParsedSetAdminAuthorityInstruction, type ParsedSetDefaultMaxPercentageOfLeftoversInstruction, type ParsedSetDefaultMaxSwapSlippageInstruction, type ParsedSetDefaultOraclePriceDeviationThresholdInstruction, type ParsedSetFeeRecipientInstruction, type ParsedSetLimitOrdersInstruction, type ParsedSetLiquidatorAuthorityInstruction, type ParsedSetOwnerAuthorityInstruction, type ParsedSetSuspendedStateInstruction, type ParsedSetTunaPositionFlagsInstruction, type ParsedSetTunaPositionRebalanceThresholdInstruction, type ParsedTunaInstruction, type ParsedUpdateMarketInstruction, type ParsedUpdateVaultInstruction, type ParsedWithdrawInstruction, REBALANCE_POSITION_FUSION_DISCRIMINATOR, REBALANCE_POSITION_ORCA_DISCRIMINATOR, REMOVE_LIQUIDITY_FUSION_DISCRIMINATOR, REMOVE_LIQUIDITY_ORCA_DISCRIMINATOR, REPAY_BAD_DEBT_DISCRIMINATOR, REPAY_DEBT_DISCRIMINATOR, type RebalancePositionFusionInput, type RebalancePositionFusionInstruction, type RebalancePositionFusionInstructionData, type RebalancePositionFusionInstructionDataArgs, type RebalancePositionOrcaInput, type RebalancePositionOrcaInstruction, type RebalancePositionOrcaInstructionData, type RebalancePositionOrcaInstructionDataArgs, type RemainingAccountsInfo, type RemainingAccountsInfoArgs, type RemainingAccountsSlice, type RemainingAccountsSliceArgs, type RemoveLiquidityFusionInput, type RemoveLiquidityFusionInstruction, type RemoveLiquidityFusionInstructionData, type RemoveLiquidityFusionInstructionDataArgs, type RemoveLiquidityFusionInstructionsArgs, type RemoveLiquidityOrcaInput, type RemoveLiquidityOrcaInstruction, type RemoveLiquidityOrcaInstructionData, type RemoveLiquidityOrcaInstructionDataArgs, type RemoveLiquidityOrcaInstructionsArgs, type RepayBadDebtInput, type RepayBadDebtInstruction, type RepayBadDebtInstructionData, type RepayBadDebtInstructionDataArgs, type RepayDebtInput, type RepayDebtInstruction, type RepayDebtInstructionData, type RepayDebtInstructionDataArgs, SET_ADMIN_AUTHORITY_DISCRIMINATOR, SET_DEFAULT_MAX_PERCENTAGE_OF_LEFTOVERS_DISCRIMINATOR, SET_DEFAULT_MAX_SWAP_SLIPPAGE_DISCRIMINATOR, SET_DEFAULT_ORACLE_PRICE_DEVIATION_THRESHOLD_DISCRIMINATOR, SET_FEE_RECIPIENT_DISCRIMINATOR, SET_LIMIT_ORDERS_DISCRIMINATOR, SET_LIQUIDATOR_AUTHORITY_DISCRIMINATOR, SET_OWNER_AUTHORITY_DISCRIMINATOR, SET_SUSPENDED_STATE_DISCRIMINATOR, SET_TUNA_POSITION_FLAGS_DISCRIMINATOR, SET_TUNA_POSITION_REBALANCE_THRESHOLD_DISCRIMINATOR, type SetAdminAuthorityInput, type SetAdminAuthorityInstruction, type SetAdminAuthorityInstructionData, type SetAdminAuthorityInstructionDataArgs, type SetDefaultMaxPercentageOfLeftoversInput, type SetDefaultMaxPercentageOfLeftoversInstruction, type SetDefaultMaxPercentageOfLeftoversInstructionData, type SetDefaultMaxPercentageOfLeftoversInstructionDataArgs, type SetDefaultMaxSwapSlippageInput, type SetDefaultMaxSwapSlippageInstruction, type SetDefaultMaxSwapSlippageInstructionData, type SetDefaultMaxSwapSlippageInstructionDataArgs, type SetDefaultOraclePriceDeviationThresholdInput, type SetDefaultOraclePriceDeviationThresholdInstruction, type SetDefaultOraclePriceDeviationThresholdInstructionData, type SetDefaultOraclePriceDeviationThresholdInstructionDataArgs, type SetFeeRecipientInput, type SetFeeRecipientInstruction, type SetFeeRecipientInstructionData, type SetFeeRecipientInstructionDataArgs, type SetLimitOrdersInput, type SetLimitOrdersInstruction, type SetLimitOrdersInstructionData, type SetLimitOrdersInstructionDataArgs, type SetLiquidatorAuthorityInput, type SetLiquidatorAuthorityInstruction, type SetLiquidatorAuthorityInstructionData, type SetLiquidatorAuthorityInstructionDataArgs, type SetOwnerAuthorityInput, type SetOwnerAuthorityInstruction, type SetOwnerAuthorityInstructionData, type SetOwnerAuthorityInstructionDataArgs, type SetSuspendedStateInput, type SetSuspendedStateInstruction, type SetSuspendedStateInstructionData, type SetSuspendedStateInstructionDataArgs, type SetTunaPositionFlagsInput, type SetTunaPositionFlagsInstruction, type SetTunaPositionFlagsInstructionData, type SetTunaPositionFlagsInstructionDataArgs, type SetTunaPositionRebalanceThresholdInput, type SetTunaPositionRebalanceThresholdInstruction, type SetTunaPositionRebalanceThresholdInstructionData, type SetTunaPositionRebalanceThresholdInstructionDataArgs, TUNA_CONFIG_DISCRIMINATOR, TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED, TUNA_ERROR__BAD_DEBT, TUNA_ERROR__INSUFFICIENT_LIQUIDITY, TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE, TUNA_ERROR__INVALID_ACCOUNT_OWNER, TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS, TUNA_ERROR__INVALID_MARKET_MAKER, TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH, TUNA_ERROR__INVALID_SQRT_PRICE_LIMIT_DIRECTION, TUNA_ERROR__INVALID_TICK_ARRAY_SEQUENCE, TUNA_ERROR__LEFTOVERS_EXCEEDED, TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE, TUNA_ERROR__LIMIT_ORDER_EXECUTION_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDITY_ZERO, TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED, TUNA_ERROR__MARKET_DISABLED, TUNA_ERROR__MATH_OVERFLOW, TUNA_ERROR__MATH_UNDERFLOW, TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE, TUNA_ERROR__ORACLE_STALE_PRICE, TUNA_ERROR__PARTIAL_FILL_ERROR, TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE, TUNA_ERROR__POSITION_IS_HEALTHY, TUNA_ERROR__POSITION_IS_LIQUIDATED, TUNA_ERROR__POSITION_IS_UNHEALTHY, TUNA_ERROR__POSITION_NOT_EMPTY, TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET, TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE, TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH, TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED, TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT, TUNA_ERROR__SQRT_PRICE_OUT_OF_BOUNDS, TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED, TUNA_ERROR__SUSPENDED, TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT, TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED, TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE, TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED, TUNA_ERROR__TICK_INDEX_OF_BOUNDS, TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR, TUNA_ERROR__TYPE_CAST_OVERFLOW, TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA, TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA, TUNA_ERROR__UNEXPECTED_VALUE, TUNA_ERROR__UNSUPPORTED_TOKEN_MINT, TUNA_ERROR__VAULT_NOT_INITIALIZED, TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE, TUNA_ERROR__ZERO_PRICE_RANGE, TUNA_ERROR__ZERO_TRADABLE_AMOUNT, TUNA_ERROR__ZERO_YIELD, TUNA_POSITION_DISCRIMINATOR, TUNA_POSITION_FLAGS_ALLOW_REBALANCING, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD_WITH_LEVERAGE, TUNA_POSITION_FLAGS_STOP_LOSS_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_STOP_LOSS_SWAP_TO_TOKEN_B, TUNA_POSITION_FLAGS_TAKE_PROFIT_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_TAKE_PROFIT_SWAP_TO_TOKEN_B, TUNA_PROGRAM_ADDRESS, TunaAccount, type TunaConfig, type TunaConfigArgs, type TunaError, TunaInstruction, type TunaPosition, type TunaPositionArgs, TunaPositionState, type TunaPositionStateArgs, UPDATE_MARKET_DISCRIMINATOR, UPDATE_VAULT_DISCRIMINATOR, type UpdateMarketInput, type UpdateMarketInstruction, type UpdateMarketInstructionData, type UpdateMarketInstructionDataArgs, type UpdateVaultInput, type UpdateVaultInstruction, type UpdateVaultInstructionData, type UpdateVaultInstructionDataArgs, VAULT_DISCRIMINATOR, type Vault, type VaultArgs, WITHDRAW_DISCRIMINATOR, WP_NFT_UPDATE_AUTH, type WithdrawInput, type WithdrawInstruction, type WithdrawInstructionData, type WithdrawInstructionDataArgs, addLiquidityFusionInstruction, addLiquidityFusionInstructions, addLiquidityOrcaInstruction, addLiquidityOrcaInstructions, calculateProtocolFee, closePositionFusionInstruction, closePositionOrcaInstruction, closePositionWithLiquidityFusionInstructions, closePositionWithLiquidityOrcaInstructions, collectAndCompoundFeesFusionInstruction, collectAndCompoundFeesFusionInstructions, collectAndCompoundFeesOrcaInstruction, collectAndCompoundFeesOrcaInstructions, collectFeesFusionInstruction, collectFeesFusionInstructions, collectFeesOrcaInstruction, collectFeesOrcaInstructions, createAddressLookupTableForMarketInstructions, createAddressLookupTableInstructions, createMarketInstruction, createTunaConfigInstruction, createVaultInstructions, decodeLendingPosition, decodeMarket, decodeTunaConfig, decodeTunaPosition, decodeVault, depositInstruction, depositInstructions, fetchAllLendingPosition, fetchAllLendingPositionWithFilter, fetchAllMarket, fetchAllMaybeLendingPosition, fetchAllMaybeMarket, fetchAllMaybeTunaConfig, fetchAllMaybeTunaPosition, fetchAllMaybeVault, fetchAllTunaConfig, fetchAllTunaPosition, fetchAllTunaPositionWithFilter, fetchAllVault, fetchLendingPosition, fetchMarket, fetchMaybeLendingPosition, fetchMaybeMarket, fetchMaybeTunaConfig, fetchMaybeTunaPosition, fetchMaybeVault, fetchTunaConfig, fetchTunaPosition, fetchVault, getAccountsTypeCodec, getAccountsTypeDecoder, getAccountsTypeEncoder, getAddLiquidityFusionDiscriminatorBytes, getAddLiquidityFusionInstruction, getAddLiquidityFusionInstructionDataCodec, getAddLiquidityFusionInstructionDataDecoder, getAddLiquidityFusionInstructionDataEncoder, getAddLiquidityOrcaDiscriminatorBytes, getAddLiquidityOrcaInstruction, getAddLiquidityOrcaInstructionDataCodec, getAddLiquidityOrcaInstructionDataDecoder, getAddLiquidityOrcaInstructionDataEncoder, getClosePositionFusionDiscriminatorBytes, getClosePositionFusionInstruction, getClosePositionFusionInstructionDataCodec, getClosePositionFusionInstructionDataDecoder, getClosePositionFusionInstructionDataEncoder, getClosePositionOrcaDiscriminatorBytes, getClosePositionOrcaInstruction, getClosePositionOrcaInstructionDataCodec, getClosePositionOrcaInstructionDataDecoder, getClosePositionOrcaInstructionDataEncoder, getCollectAndCompoundFeesFusionDiscriminatorBytes, getCollectAndCompoundFeesFusionInstruction, getCollectAndCompoundFeesFusionInstructionDataCodec, getCollectAndCompoundFeesFusionInstructionDataDecoder, getCollectAndCompoundFeesFusionInstructionDataEncoder, getCollectAndCompoundFeesOrcaDiscriminatorBytes, getCollectAndCompoundFeesOrcaInstruction, getCollectAndCompoundFeesOrcaInstructionDataCodec, getCollectAndCompoundFeesOrcaInstructionDataDecoder, getCollectAndCompoundFeesOrcaInstructionDataEncoder, getCollectFeesFusionDiscriminatorBytes, getCollectFeesFusionInstruction, getCollectFeesFusionInstructionDataCodec, getCollectFeesFusionInstructionDataDecoder, getCollectFeesFusionInstructionDataEncoder, getCollectFeesOrcaDiscriminatorBytes, getCollectFeesOrcaInstruction, getCollectFeesOrcaInstructionDataCodec, getCollectFeesOrcaInstructionDataDecoder, getCollectFeesOrcaInstructionDataEncoder, getCollectRewardOrcaDiscriminatorBytes, getCollectRewardOrcaInstruction, getCollectRewardOrcaInstructionDataCodec, getCollectRewardOrcaInstructionDataDecoder, getCollectRewardOrcaInstructionDataEncoder, getCreateAtaInstruction, getCreateAtaInstructions, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreateTunaConfigDiscriminatorBytes, getCreateTunaConfigInstruction, getCreateTunaConfigInstructionDataCodec, getCreateTunaConfigInstructionDataDecoder, getCreateTunaConfigInstructionDataEncoder, getCreateVaultDiscriminatorBytes, getCreateVaultInstruction, getCreateVaultInstructionDataCodec, getCreateVaultInstructionDataDecoder, getCreateVaultInstructionDataEncoder, getDepositDiscriminatorBytes, getDepositInstruction, getDepositInstructionDataCodec, getDepositInstructionDataDecoder, getDepositInstructionDataEncoder, getLendingPositionAddress, getLendingPositionCodec, getLendingPositionDecoder, getLendingPositionDiscriminatorBytes, getLendingPositionEncoder, getLendingPositionSize, getLendingVaultAddress, getLiquidatePositionFusionDiscriminatorBytes, getLiquidatePositionFusionInstruction, getLiquidatePositionFusionInstructionDataCodec, getLiquidatePositionFusionInstructionDataDecoder, getLiquidatePositionFusionInstructionDataEncoder, getLiquidatePositionOrcaDiscriminatorBytes, getLiquidatePositionOrcaInstruction, getLiquidatePositionOrcaInstructionDataCodec, getLiquidatePositionOrcaInstructionDataDecoder, getLiquidatePositionOrcaInstructionDataEncoder, getLiquidityIncreaseQuote, getMarketAddress, getMarketCodec, getMarketDecoder, getMarketDiscriminatorBytes, getMarketEncoder, getMarketMakerCodec, getMarketMakerDecoder, getMarketMakerEncoder, getMarketSize, getOpenLendingPositionDiscriminatorBytes, getOpenLendingPositionInstruction, getOpenLendingPositionInstructionDataCodec, getOpenLendingPositionInstructionDataDecoder, getOpenLendingPositionInstructionDataEncoder, getOpenPositionFusionDiscriminatorBytes, getOpenPositionFusionInstruction, getOpenPositionFusionInstructionDataCodec, getOpenPositionFusionInstructionDataDecoder, getOpenPositionFusionInstructionDataEncoder, getOpenPositionOrcaDiscriminatorBytes, getOpenPositionOrcaInstruction, getOpenPositionOrcaInstructionDataCodec, getOpenPositionOrcaInstructionDataDecoder, getOpenPositionOrcaInstructionDataEncoder, getOpenPositionWithLiquidityFusionDiscriminatorBytes, getOpenPositionWithLiquidityFusionInstruction, getOpenPositionWithLiquidityFusionInstructionDataCodec, getOpenPositionWithLiquidityFusionInstructionDataDecoder, getOpenPositionWithLiquidityFusionInstructionDataEncoder, getOpenPositionWithLiquidityOrcaDiscriminatorBytes, getOpenPositionWithLiquidityOrcaInstruction, getOpenPositionWithLiquidityOrcaInstructionDataCodec, getOpenPositionWithLiquidityOrcaInstructionDataDecoder, getOpenPositionWithLiquidityOrcaInstructionDataEncoder, getRebalancePositionFusionDiscriminatorBytes, getRebalancePositionFusionInstruction, getRebalancePositionFusionInstructionDataCodec, getRebalancePositionFusionInstructionDataDecoder, getRebalancePositionFusionInstructionDataEncoder, getRebalancePositionOrcaDiscriminatorBytes, getRebalancePositionOrcaInstruction, getRebalancePositionOrcaInstructionDataCodec, getRebalancePositionOrcaInstructionDataDecoder, getRebalancePositionOrcaInstructionDataEncoder, getRemainingAccountsInfoCodec, getRemainingAccountsInfoDecoder, getRemainingAccountsInfoEncoder, getRemainingAccountsSliceCodec, getRemainingAccountsSliceDecoder, getRemainingAccountsSliceEncoder, getRemoveLiquidityFusionDiscriminatorBytes, getRemoveLiquidityFusionInstruction, getRemoveLiquidityFusionInstructionDataCodec, getRemoveLiquidityFusionInstructionDataDecoder, getRemoveLiquidityFusionInstructionDataEncoder, getRemoveLiquidityOrcaDiscriminatorBytes, getRemoveLiquidityOrcaInstruction, getRemoveLiquidityOrcaInstructionDataCodec, getRemoveLiquidityOrcaInstructionDataDecoder, getRemoveLiquidityOrcaInstructionDataEncoder, getRepayBadDebtDiscriminatorBytes, getRepayBadDebtInstruction, getRepayBadDebtInstructionDataCodec, getRepayBadDebtInstructionDataDecoder, getRepayBadDebtInstructionDataEncoder, getRepayDebtDiscriminatorBytes, getRepayDebtInstruction, getRepayDebtInstructionDataCodec, getRepayDebtInstructionDataDecoder, getRepayDebtInstructionDataEncoder, getSetAdminAuthorityDiscriminatorBytes, getSetAdminAuthorityInstruction, getSetAdminAuthorityInstructionDataCodec, getSetAdminAuthorityInstructionDataDecoder, getSetAdminAuthorityInstructionDataEncoder, getSetDefaultMaxPercentageOfLeftoversDiscriminatorBytes, getSetDefaultMaxPercentageOfLeftoversInstruction, getSetDefaultMaxPercentageOfLeftoversInstructionDataCodec, getSetDefaultMaxPercentageOfLeftoversInstructionDataDecoder, getSetDefaultMaxPercentageOfLeftoversInstructionDataEncoder, getSetDefaultMaxSwapSlippageDiscriminatorBytes, getSetDefaultMaxSwapSlippageInstruction, getSetDefaultMaxSwapSlippageInstructionDataCodec, getSetDefaultMaxSwapSlippageInstructionDataDecoder, getSetDefaultMaxSwapSlippageInstructionDataEncoder, getSetDefaultOraclePriceDeviationThresholdDiscriminatorBytes, getSetDefaultOraclePriceDeviationThresholdInstruction, getSetDefaultOraclePriceDeviationThresholdInstructionDataCodec, getSetDefaultOraclePriceDeviationThresholdInstructionDataDecoder, getSetDefaultOraclePriceDeviationThresholdInstructionDataEncoder, getSetFeeRecipientDiscriminatorBytes, getSetFeeRecipientInstruction, getSetFeeRecipientInstructionDataCodec, getSetFeeRecipientInstructionDataDecoder, getSetFeeRecipientInstructionDataEncoder, getSetLimitOrdersDiscriminatorBytes, getSetLimitOrdersInstruction, getSetLimitOrdersInstructionDataCodec, getSetLimitOrdersInstructionDataDecoder, getSetLimitOrdersInstructionDataEncoder, getSetLiquidatorAuthorityDiscriminatorBytes, getSetLiquidatorAuthorityInstruction, getSetLiquidatorAuthorityInstructionDataCodec, getSetLiquidatorAuthorityInstructionDataDecoder, getSetLiquidatorAuthorityInstructionDataEncoder, getSetOwnerAuthorityDiscriminatorBytes, getSetOwnerAuthorityInstruction, getSetOwnerAuthorityInstructionDataCodec, getSetOwnerAuthorityInstructionDataDecoder, getSetOwnerAuthorityInstructionDataEncoder, getSetSuspendedStateDiscriminatorBytes, getSetSuspendedStateInstruction, getSetSuspendedStateInstructionDataCodec, getSetSuspendedStateInstructionDataDecoder, getSetSuspendedStateInstructionDataEncoder, getSetTunaPositionFlagsDiscriminatorBytes, getSetTunaPositionFlagsInstruction, getSetTunaPositionFlagsInstructionDataCodec, getSetTunaPositionFlagsInstructionDataDecoder, getSetTunaPositionFlagsInstructionDataEncoder, getSetTunaPositionRebalanceThresholdDiscriminatorBytes, getSetTunaPositionRebalanceThresholdInstruction, getSetTunaPositionRebalanceThresholdInstructionDataCodec, getSetTunaPositionRebalanceThresholdInstructionDataDecoder, getSetTunaPositionRebalanceThresholdInstructionDataEncoder, getTunaConfigAddress, getTunaConfigCodec, getTunaConfigDecoder, getTunaConfigDiscriminatorBytes, getTunaConfigEncoder, getTunaConfigSize, getTunaErrorMessage, getTunaPositionAddress, getTunaPositionCodec, getTunaPositionDecoder, getTunaPositionDiscriminatorBytes, getTunaPositionEncoder, getTunaPositionSize, getTunaPositionStateCodec, getTunaPositionStateDecoder, getTunaPositionStateEncoder, getUpdateMarketDiscriminatorBytes, getUpdateMarketInstruction, getUpdateMarketInstructionDataCodec, getUpdateMarketInstructionDataDecoder, getUpdateMarketInstructionDataEncoder, getUpdateVaultDiscriminatorBytes, getUpdateVaultInstruction, getUpdateVaultInstructionDataCodec, getUpdateVaultInstructionDataDecoder, getUpdateVaultInstructionDataEncoder, getVaultCodec, getVaultDecoder, getVaultDiscriminatorBytes, getVaultEncoder, getVaultSize, getWithdrawDiscriminatorBytes, getWithdrawInstruction, getWithdrawInstructionDataCodec, getWithdrawInstructionDataDecoder, getWithdrawInstructionDataEncoder, identifyTunaAccount, identifyTunaInstruction, isTunaError, lendingPositionAuthorityFilter, lendingPositionMintFilter, liquidatePositionFusionInstruction, liquidatePositionFusionInstructions, liquidatePositionOrcaInstruction, liquidatePositionOrcaInstructions, openLendingPositionAndDepositInstructions, openLendingPositionInstruction, openPositionFusionInstruction, openPositionOrcaInstruction, openPositionWithLiquidityFusionInstruction, openPositionWithLiquidityFusionInstructions, openPositionWithLiquidityOrcaInstruction, openPositionWithLiquidityOrcaInstructions, parseAddLiquidityFusionInstruction, parseAddLiquidityOrcaInstruction, parseClosePositionFusionInstruction, parseClosePositionOrcaInstruction, parseCollectAndCompoundFeesFusionInstruction, parseCollectAndCompoundFeesOrcaInstruction, parseCollectFeesFusionInstruction, parseCollectFeesOrcaInstruction, parseCollectRewardOrcaInstruction, parseCreateMarketInstruction, parseCreateTunaConfigInstruction, parseCreateVaultInstruction, parseDepositInstruction, parseLiquidatePositionFusionInstruction, parseLiquidatePositionOrcaInstruction, parseOpenLendingPositionInstruction, parseOpenPositionFusionInstruction, parseOpenPositionOrcaInstruction, parseOpenPositionWithLiquidityFusionInstruction, parseOpenPositionWithLiquidityOrcaInstruction, parseRebalancePositionFusionInstruction, parseRebalancePositionOrcaInstruction, parseRemoveLiquidityFusionInstruction, parseRemoveLiquidityOrcaInstruction, parseRepayBadDebtInstruction, parseRepayDebtInstruction, parseSetAdminAuthorityInstruction, parseSetDefaultMaxPercentageOfLeftoversInstruction, parseSetDefaultMaxSwapSlippageInstruction, parseSetDefaultOraclePriceDeviationThresholdInstruction, parseSetFeeRecipientInstruction, parseSetLimitOrdersInstruction, parseSetLiquidatorAuthorityInstruction, parseSetOwnerAuthorityInstruction, parseSetSuspendedStateInstruction, parseSetTunaPositionFlagsInstruction, parseSetTunaPositionRebalanceThresholdInstruction, parseUpdateMarketInstruction, parseUpdateVaultInstruction, parseWithdrawInstruction, rebalancePositionFusionInstruction, rebalancePositionFusionInstructions, rebalancePositionOrcaInstruction, rebalancePositionOrcaInstructions, removeLiquidityFusionInstruction, removeLiquidityFusionInstructions, removeLiquidityOrcaInstruction, removeLiquidityOrcaInstructions, repayBadDebtInstruction, repayDebtInstruction, repayDebtInstructions, setLimitOrdersInstruction, tunaPositionAuthorityFilter, tunaPositionMarketMakerFilter, tunaPositionMintAFilter, tunaPositionMintBFilter, tunaPositionMintFilter, tunaPositionPoolFilter, updateMarketInstruction, updateVaultInstruction, withdrawInstruction, withdrawInstructions };
|
package/dist/index.js
CHANGED
|
@@ -112,18 +112,12 @@ __export(index_exports, {
|
|
|
112
112
|
TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE: () => TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE,
|
|
113
113
|
TUNA_ERROR__ORACLE_STALE_PRICE: () => TUNA_ERROR__ORACLE_STALE_PRICE,
|
|
114
114
|
TUNA_ERROR__PARTIAL_FILL_ERROR: () => TUNA_ERROR__PARTIAL_FILL_ERROR,
|
|
115
|
+
TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE: () => TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE,
|
|
115
116
|
TUNA_ERROR__POSITION_IS_HEALTHY: () => TUNA_ERROR__POSITION_IS_HEALTHY,
|
|
116
117
|
TUNA_ERROR__POSITION_IS_LIQUIDATED: () => TUNA_ERROR__POSITION_IS_LIQUIDATED,
|
|
117
118
|
TUNA_ERROR__POSITION_IS_UNHEALTHY: () => TUNA_ERROR__POSITION_IS_UNHEALTHY,
|
|
118
119
|
TUNA_ERROR__POSITION_NOT_EMPTY: () => TUNA_ERROR__POSITION_NOT_EMPTY,
|
|
119
120
|
TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE: () => TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE,
|
|
120
|
-
TUNA_ERROR__RAYDIUM_INVAILD_TICK_INDEX: () => TUNA_ERROR__RAYDIUM_INVAILD_TICK_INDEX,
|
|
121
|
-
TUNA_ERROR__RAYDIUM_INVALID_FIRST_TICK_ARRAY_ACCOUNT: () => TUNA_ERROR__RAYDIUM_INVALID_FIRST_TICK_ARRAY_ACCOUNT,
|
|
122
|
-
TUNA_ERROR__RAYDIUM_INVALID_TICK_ARRAY: () => TUNA_ERROR__RAYDIUM_INVALID_TICK_ARRAY,
|
|
123
|
-
TUNA_ERROR__RAYDIUM_MAX_TOKEN_OVERFLOW: () => TUNA_ERROR__RAYDIUM_MAX_TOKEN_OVERFLOW,
|
|
124
|
-
TUNA_ERROR__RAYDIUM_NOT_ENOUGH_TICK_ARRAY_ACCOUNT: () => TUNA_ERROR__RAYDIUM_NOT_ENOUGH_TICK_ARRAY_ACCOUNT,
|
|
125
|
-
TUNA_ERROR__RAYDIUM_SQRT_PRICE_LIMIT_OVERFLOW: () => TUNA_ERROR__RAYDIUM_SQRT_PRICE_LIMIT_OVERFLOW,
|
|
126
|
-
TUNA_ERROR__RAYDIUM_ZERO_AMOUNT_SPECIFIED: () => TUNA_ERROR__RAYDIUM_ZERO_AMOUNT_SPECIFIED,
|
|
127
121
|
TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET: () => TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET,
|
|
128
122
|
TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE: () => TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE,
|
|
129
123
|
TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT: () => TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT,
|
|
@@ -771,7 +765,8 @@ function getMarketEncoder() {
|
|
|
771
765
|
["borrowLimitA", (0, import_kit7.getU64Encoder)()],
|
|
772
766
|
["borrowLimitB", (0, import_kit7.getU64Encoder)()],
|
|
773
767
|
["maxSwapSlippage", (0, import_kit7.getU32Encoder)()],
|
|
774
|
-
["
|
|
768
|
+
["rebalanceProtocolFee", (0, import_kit7.getU32Encoder)()],
|
|
769
|
+
["reserved", (0, import_kit7.fixEncoderSize)((0, import_kit7.getBytesEncoder)(), 207)]
|
|
775
770
|
]),
|
|
776
771
|
(value) => ({ ...value, discriminator: MARKET_DISCRIMINATOR })
|
|
777
772
|
);
|
|
@@ -797,7 +792,8 @@ function getMarketDecoder() {
|
|
|
797
792
|
["borrowLimitA", (0, import_kit7.getU64Decoder)()],
|
|
798
793
|
["borrowLimitB", (0, import_kit7.getU64Decoder)()],
|
|
799
794
|
["maxSwapSlippage", (0, import_kit7.getU32Decoder)()],
|
|
800
|
-
["
|
|
795
|
+
["rebalanceProtocolFee", (0, import_kit7.getU32Decoder)()],
|
|
796
|
+
["reserved", (0, import_kit7.fixDecoderSize)((0, import_kit7.getBytesDecoder)(), 207)]
|
|
801
797
|
]);
|
|
802
798
|
}
|
|
803
799
|
function getMarketCodec() {
|
|
@@ -1652,13 +1648,7 @@ var TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE = 6052;
|
|
|
1652
1648
|
var TUNA_ERROR__ZERO_PRICE_RANGE = 6053;
|
|
1653
1649
|
var TUNA_ERROR__ZERO_TRADABLE_AMOUNT = 6054;
|
|
1654
1650
|
var TUNA_ERROR__ZERO_YIELD = 6055;
|
|
1655
|
-
var
|
|
1656
|
-
var TUNA_ERROR__RAYDIUM_INVALID_TICK_ARRAY = 6057;
|
|
1657
|
-
var TUNA_ERROR__RAYDIUM_INVAILD_TICK_INDEX = 6058;
|
|
1658
|
-
var TUNA_ERROR__RAYDIUM_MAX_TOKEN_OVERFLOW = 6059;
|
|
1659
|
-
var TUNA_ERROR__RAYDIUM_NOT_ENOUGH_TICK_ARRAY_ACCOUNT = 6060;
|
|
1660
|
-
var TUNA_ERROR__RAYDIUM_SQRT_PRICE_LIMIT_OVERFLOW = 6061;
|
|
1661
|
-
var TUNA_ERROR__RAYDIUM_ZERO_AMOUNT_SPECIFIED = 6062;
|
|
1651
|
+
var TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE = 6056;
|
|
1662
1652
|
var tunaErrorMessages;
|
|
1663
1653
|
if (process.env.NODE_ENV !== "production") {
|
|
1664
1654
|
tunaErrorMessages = {
|
|
@@ -1687,18 +1677,12 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
1687
1677
|
[TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE]: `OraclePriceDeviationThresholdOutOfRange`,
|
|
1688
1678
|
[TUNA_ERROR__ORACLE_STALE_PRICE]: `Oracle price is stale`,
|
|
1689
1679
|
[TUNA_ERROR__PARTIAL_FILL_ERROR]: `Trade resulted in partial fill`,
|
|
1680
|
+
[TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE]: `Unable to claim yield for auto re-balanceable positions`,
|
|
1690
1681
|
[TUNA_ERROR__POSITION_IS_HEALTHY]: `Position is healthy`,
|
|
1691
1682
|
[TUNA_ERROR__POSITION_IS_LIQUIDATED]: `Position is already liquidated`,
|
|
1692
1683
|
[TUNA_ERROR__POSITION_IS_UNHEALTHY]: `Position is unhealthy`,
|
|
1693
1684
|
[TUNA_ERROR__POSITION_NOT_EMPTY]: `Position is not empty`,
|
|
1694
1685
|
[TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE]: `Protocol fee is out of range`,
|
|
1695
|
-
[TUNA_ERROR__RAYDIUM_INVAILD_TICK_INDEX]: `RaydiumInvaildTickIndex`,
|
|
1696
|
-
[TUNA_ERROR__RAYDIUM_INVALID_FIRST_TICK_ARRAY_ACCOUNT]: `RaydiumInvalidFirstTickArrayAccount`,
|
|
1697
|
-
[TUNA_ERROR__RAYDIUM_INVALID_TICK_ARRAY]: `RaydiumInvalidTickArray`,
|
|
1698
|
-
[TUNA_ERROR__RAYDIUM_MAX_TOKEN_OVERFLOW]: `RaydiumMaxTokenOverflow`,
|
|
1699
|
-
[TUNA_ERROR__RAYDIUM_NOT_ENOUGH_TICK_ARRAY_ACCOUNT]: `RaydiumNotEnoughTickArrayAccount`,
|
|
1700
|
-
[TUNA_ERROR__RAYDIUM_SQRT_PRICE_LIMIT_OVERFLOW]: `RaydiumSqrtPriceLimitOverflow`,
|
|
1701
|
-
[TUNA_ERROR__RAYDIUM_ZERO_AMOUNT_SPECIFIED]: `RaydiumZeroAmountSpecified`,
|
|
1702
1686
|
[TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET]: `Rebalance conditions are not met`,
|
|
1703
1687
|
[TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE]: `Same accounts type is provided more than once`,
|
|
1704
1688
|
[TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT]: `Insufficient remaining accounts`,
|
|
@@ -3188,7 +3172,8 @@ function getCreateMarketInstructionDataEncoder() {
|
|
|
3188
3172
|
["disabled", (0, import_kit23.getBooleanEncoder)()],
|
|
3189
3173
|
["borrowLimitA", (0, import_kit23.getU64Encoder)()],
|
|
3190
3174
|
["borrowLimitB", (0, import_kit23.getU64Encoder)()],
|
|
3191
|
-
["maxSwapSlippage", (0, import_kit23.getU32Encoder)()]
|
|
3175
|
+
["maxSwapSlippage", (0, import_kit23.getU32Encoder)()],
|
|
3176
|
+
["rebalanceProtocolFee", (0, import_kit23.getU32Encoder)()]
|
|
3192
3177
|
]),
|
|
3193
3178
|
(value) => ({ ...value, discriminator: CREATE_MARKET_DISCRIMINATOR })
|
|
3194
3179
|
);
|
|
@@ -3208,7 +3193,8 @@ function getCreateMarketInstructionDataDecoder() {
|
|
|
3208
3193
|
["disabled", (0, import_kit23.getBooleanDecoder)()],
|
|
3209
3194
|
["borrowLimitA", (0, import_kit23.getU64Decoder)()],
|
|
3210
3195
|
["borrowLimitB", (0, import_kit23.getU64Decoder)()],
|
|
3211
|
-
["maxSwapSlippage", (0, import_kit23.getU32Decoder)()]
|
|
3196
|
+
["maxSwapSlippage", (0, import_kit23.getU32Decoder)()],
|
|
3197
|
+
["rebalanceProtocolFee", (0, import_kit23.getU32Decoder)()]
|
|
3212
3198
|
]);
|
|
3213
3199
|
}
|
|
3214
3200
|
function getCreateMarketInstructionDataCodec() {
|
|
@@ -6622,7 +6608,8 @@ function getUpdateMarketInstructionDataEncoder() {
|
|
|
6622
6608
|
["disabled", (0, import_kit51.getBooleanEncoder)()],
|
|
6623
6609
|
["borrowLimitA", (0, import_kit51.getU64Encoder)()],
|
|
6624
6610
|
["borrowLimitB", (0, import_kit51.getU64Encoder)()],
|
|
6625
|
-
["maxSwapSlippage", (0, import_kit51.getU32Encoder)()]
|
|
6611
|
+
["maxSwapSlippage", (0, import_kit51.getU32Encoder)()],
|
|
6612
|
+
["rebalanceProtocolFee", (0, import_kit51.getU32Encoder)()]
|
|
6626
6613
|
]),
|
|
6627
6614
|
(value) => ({ ...value, discriminator: UPDATE_MARKET_DISCRIMINATOR })
|
|
6628
6615
|
);
|
|
@@ -6641,7 +6628,8 @@ function getUpdateMarketInstructionDataDecoder() {
|
|
|
6641
6628
|
["disabled", (0, import_kit51.getBooleanDecoder)()],
|
|
6642
6629
|
["borrowLimitA", (0, import_kit51.getU64Decoder)()],
|
|
6643
6630
|
["borrowLimitB", (0, import_kit51.getU64Decoder)()],
|
|
6644
|
-
["maxSwapSlippage", (0, import_kit51.getU32Decoder)()]
|
|
6631
|
+
["maxSwapSlippage", (0, import_kit51.getU32Decoder)()],
|
|
6632
|
+
["rebalanceProtocolFee", (0, import_kit51.getU32Decoder)()]
|
|
6645
6633
|
]);
|
|
6646
6634
|
}
|
|
6647
6635
|
function getUpdateMarketInstructionDataCodec() {
|
|
@@ -10651,18 +10639,12 @@ async function rebalancePositionFusionInstruction(authority, tunaPosition, tunaC
|
|
|
10651
10639
|
TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE,
|
|
10652
10640
|
TUNA_ERROR__ORACLE_STALE_PRICE,
|
|
10653
10641
|
TUNA_ERROR__PARTIAL_FILL_ERROR,
|
|
10642
|
+
TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE,
|
|
10654
10643
|
TUNA_ERROR__POSITION_IS_HEALTHY,
|
|
10655
10644
|
TUNA_ERROR__POSITION_IS_LIQUIDATED,
|
|
10656
10645
|
TUNA_ERROR__POSITION_IS_UNHEALTHY,
|
|
10657
10646
|
TUNA_ERROR__POSITION_NOT_EMPTY,
|
|
10658
10647
|
TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE,
|
|
10659
|
-
TUNA_ERROR__RAYDIUM_INVAILD_TICK_INDEX,
|
|
10660
|
-
TUNA_ERROR__RAYDIUM_INVALID_FIRST_TICK_ARRAY_ACCOUNT,
|
|
10661
|
-
TUNA_ERROR__RAYDIUM_INVALID_TICK_ARRAY,
|
|
10662
|
-
TUNA_ERROR__RAYDIUM_MAX_TOKEN_OVERFLOW,
|
|
10663
|
-
TUNA_ERROR__RAYDIUM_NOT_ENOUGH_TICK_ARRAY_ACCOUNT,
|
|
10664
|
-
TUNA_ERROR__RAYDIUM_SQRT_PRICE_LIMIT_OVERFLOW,
|
|
10665
|
-
TUNA_ERROR__RAYDIUM_ZERO_AMOUNT_SPECIFIED,
|
|
10666
10648
|
TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET,
|
|
10667
10649
|
TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE,
|
|
10668
10650
|
TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT,
|
package/dist/index.mjs
CHANGED
|
@@ -288,7 +288,8 @@ function getMarketEncoder() {
|
|
|
288
288
|
["borrowLimitA", getU64Encoder2()],
|
|
289
289
|
["borrowLimitB", getU64Encoder2()],
|
|
290
290
|
["maxSwapSlippage", getU32Encoder()],
|
|
291
|
-
["
|
|
291
|
+
["rebalanceProtocolFee", getU32Encoder()],
|
|
292
|
+
["reserved", fixEncoderSize2(getBytesEncoder2(), 207)]
|
|
292
293
|
]),
|
|
293
294
|
(value) => ({ ...value, discriminator: MARKET_DISCRIMINATOR })
|
|
294
295
|
);
|
|
@@ -314,7 +315,8 @@ function getMarketDecoder() {
|
|
|
314
315
|
["borrowLimitA", getU64Decoder2()],
|
|
315
316
|
["borrowLimitB", getU64Decoder2()],
|
|
316
317
|
["maxSwapSlippage", getU32Decoder()],
|
|
317
|
-
["
|
|
318
|
+
["rebalanceProtocolFee", getU32Decoder()],
|
|
319
|
+
["reserved", fixDecoderSize2(getBytesDecoder2(), 207)]
|
|
318
320
|
]);
|
|
319
321
|
}
|
|
320
322
|
function getMarketCodec() {
|
|
@@ -1247,13 +1249,7 @@ var TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE = 6052;
|
|
|
1247
1249
|
var TUNA_ERROR__ZERO_PRICE_RANGE = 6053;
|
|
1248
1250
|
var TUNA_ERROR__ZERO_TRADABLE_AMOUNT = 6054;
|
|
1249
1251
|
var TUNA_ERROR__ZERO_YIELD = 6055;
|
|
1250
|
-
var
|
|
1251
|
-
var TUNA_ERROR__RAYDIUM_INVALID_TICK_ARRAY = 6057;
|
|
1252
|
-
var TUNA_ERROR__RAYDIUM_INVAILD_TICK_INDEX = 6058;
|
|
1253
|
-
var TUNA_ERROR__RAYDIUM_MAX_TOKEN_OVERFLOW = 6059;
|
|
1254
|
-
var TUNA_ERROR__RAYDIUM_NOT_ENOUGH_TICK_ARRAY_ACCOUNT = 6060;
|
|
1255
|
-
var TUNA_ERROR__RAYDIUM_SQRT_PRICE_LIMIT_OVERFLOW = 6061;
|
|
1256
|
-
var TUNA_ERROR__RAYDIUM_ZERO_AMOUNT_SPECIFIED = 6062;
|
|
1252
|
+
var TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE = 6056;
|
|
1257
1253
|
var tunaErrorMessages;
|
|
1258
1254
|
if (process.env.NODE_ENV !== "production") {
|
|
1259
1255
|
tunaErrorMessages = {
|
|
@@ -1282,18 +1278,12 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
1282
1278
|
[TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE]: `OraclePriceDeviationThresholdOutOfRange`,
|
|
1283
1279
|
[TUNA_ERROR__ORACLE_STALE_PRICE]: `Oracle price is stale`,
|
|
1284
1280
|
[TUNA_ERROR__PARTIAL_FILL_ERROR]: `Trade resulted in partial fill`,
|
|
1281
|
+
[TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE]: `Unable to claim yield for auto re-balanceable positions`,
|
|
1285
1282
|
[TUNA_ERROR__POSITION_IS_HEALTHY]: `Position is healthy`,
|
|
1286
1283
|
[TUNA_ERROR__POSITION_IS_LIQUIDATED]: `Position is already liquidated`,
|
|
1287
1284
|
[TUNA_ERROR__POSITION_IS_UNHEALTHY]: `Position is unhealthy`,
|
|
1288
1285
|
[TUNA_ERROR__POSITION_NOT_EMPTY]: `Position is not empty`,
|
|
1289
1286
|
[TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE]: `Protocol fee is out of range`,
|
|
1290
|
-
[TUNA_ERROR__RAYDIUM_INVAILD_TICK_INDEX]: `RaydiumInvaildTickIndex`,
|
|
1291
|
-
[TUNA_ERROR__RAYDIUM_INVALID_FIRST_TICK_ARRAY_ACCOUNT]: `RaydiumInvalidFirstTickArrayAccount`,
|
|
1292
|
-
[TUNA_ERROR__RAYDIUM_INVALID_TICK_ARRAY]: `RaydiumInvalidTickArray`,
|
|
1293
|
-
[TUNA_ERROR__RAYDIUM_MAX_TOKEN_OVERFLOW]: `RaydiumMaxTokenOverflow`,
|
|
1294
|
-
[TUNA_ERROR__RAYDIUM_NOT_ENOUGH_TICK_ARRAY_ACCOUNT]: `RaydiumNotEnoughTickArrayAccount`,
|
|
1295
|
-
[TUNA_ERROR__RAYDIUM_SQRT_PRICE_LIMIT_OVERFLOW]: `RaydiumSqrtPriceLimitOverflow`,
|
|
1296
|
-
[TUNA_ERROR__RAYDIUM_ZERO_AMOUNT_SPECIFIED]: `RaydiumZeroAmountSpecified`,
|
|
1297
1287
|
[TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET]: `Rebalance conditions are not met`,
|
|
1298
1288
|
[TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE]: `Same accounts type is provided more than once`,
|
|
1299
1289
|
[TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT]: `Insufficient remaining accounts`,
|
|
@@ -2902,7 +2892,8 @@ function getCreateMarketInstructionDataEncoder() {
|
|
|
2902
2892
|
["disabled", getBooleanEncoder5()],
|
|
2903
2893
|
["borrowLimitA", getU64Encoder7()],
|
|
2904
2894
|
["borrowLimitB", getU64Encoder7()],
|
|
2905
|
-
["maxSwapSlippage", getU32Encoder6()]
|
|
2895
|
+
["maxSwapSlippage", getU32Encoder6()],
|
|
2896
|
+
["rebalanceProtocolFee", getU32Encoder6()]
|
|
2906
2897
|
]),
|
|
2907
2898
|
(value) => ({ ...value, discriminator: CREATE_MARKET_DISCRIMINATOR })
|
|
2908
2899
|
);
|
|
@@ -2922,7 +2913,8 @@ function getCreateMarketInstructionDataDecoder() {
|
|
|
2922
2913
|
["disabled", getBooleanDecoder5()],
|
|
2923
2914
|
["borrowLimitA", getU64Decoder7()],
|
|
2924
2915
|
["borrowLimitB", getU64Decoder7()],
|
|
2925
|
-
["maxSwapSlippage", getU32Decoder6()]
|
|
2916
|
+
["maxSwapSlippage", getU32Decoder6()],
|
|
2917
|
+
["rebalanceProtocolFee", getU32Decoder6()]
|
|
2926
2918
|
]);
|
|
2927
2919
|
}
|
|
2928
2920
|
function getCreateMarketInstructionDataCodec() {
|
|
@@ -6670,7 +6662,8 @@ function getUpdateMarketInstructionDataEncoder() {
|
|
|
6670
6662
|
["disabled", getBooleanEncoder7()],
|
|
6671
6663
|
["borrowLimitA", getU64Encoder16()],
|
|
6672
6664
|
["borrowLimitB", getU64Encoder16()],
|
|
6673
|
-
["maxSwapSlippage", getU32Encoder20()]
|
|
6665
|
+
["maxSwapSlippage", getU32Encoder20()],
|
|
6666
|
+
["rebalanceProtocolFee", getU32Encoder20()]
|
|
6674
6667
|
]),
|
|
6675
6668
|
(value) => ({ ...value, discriminator: UPDATE_MARKET_DISCRIMINATOR })
|
|
6676
6669
|
);
|
|
@@ -6689,7 +6682,8 @@ function getUpdateMarketInstructionDataDecoder() {
|
|
|
6689
6682
|
["disabled", getBooleanDecoder7()],
|
|
6690
6683
|
["borrowLimitA", getU64Decoder16()],
|
|
6691
6684
|
["borrowLimitB", getU64Decoder16()],
|
|
6692
|
-
["maxSwapSlippage", getU32Decoder20()]
|
|
6685
|
+
["maxSwapSlippage", getU32Decoder20()],
|
|
6686
|
+
["rebalanceProtocolFee", getU32Decoder20()]
|
|
6693
6687
|
]);
|
|
6694
6688
|
}
|
|
6695
6689
|
function getUpdateMarketInstructionDataCodec() {
|
|
@@ -10922,18 +10916,12 @@ export {
|
|
|
10922
10916
|
TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE,
|
|
10923
10917
|
TUNA_ERROR__ORACLE_STALE_PRICE,
|
|
10924
10918
|
TUNA_ERROR__PARTIAL_FILL_ERROR,
|
|
10919
|
+
TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE,
|
|
10925
10920
|
TUNA_ERROR__POSITION_IS_HEALTHY,
|
|
10926
10921
|
TUNA_ERROR__POSITION_IS_LIQUIDATED,
|
|
10927
10922
|
TUNA_ERROR__POSITION_IS_UNHEALTHY,
|
|
10928
10923
|
TUNA_ERROR__POSITION_NOT_EMPTY,
|
|
10929
10924
|
TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE,
|
|
10930
|
-
TUNA_ERROR__RAYDIUM_INVAILD_TICK_INDEX,
|
|
10931
|
-
TUNA_ERROR__RAYDIUM_INVALID_FIRST_TICK_ARRAY_ACCOUNT,
|
|
10932
|
-
TUNA_ERROR__RAYDIUM_INVALID_TICK_ARRAY,
|
|
10933
|
-
TUNA_ERROR__RAYDIUM_MAX_TOKEN_OVERFLOW,
|
|
10934
|
-
TUNA_ERROR__RAYDIUM_NOT_ENOUGH_TICK_ARRAY_ACCOUNT,
|
|
10935
|
-
TUNA_ERROR__RAYDIUM_SQRT_PRICE_LIMIT_OVERFLOW,
|
|
10936
|
-
TUNA_ERROR__RAYDIUM_ZERO_AMOUNT_SPECIFIED,
|
|
10937
10925
|
TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET,
|
|
10938
10926
|
TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE,
|
|
10939
10927
|
TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT,
|
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": "2.0.
|
|
4
|
+
"version": "2.0.13",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"rimraf": "^6.0.1",
|
|
52
52
|
"vitest": "^3.1.1",
|
|
53
53
|
"solana-bankrun": "^0.4.0",
|
|
54
|
-
"@crypticdot/defituna-program": "2.0.
|
|
54
|
+
"@crypticdot/defituna-program": "2.0.4"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "node ./codama.mjs && tsup src/index.ts --format cjs,esm --dts",
|