import * as _solana_kit from '@solana/kit'; import { ReadonlyUint8Array, Address, Encoder, Decoder, Codec, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, IAccountMeta, IInstruction, IInstructionWithData, IInstructionWithAccounts, WritableSignerAccount, IAccountSignerMeta, ReadonlyAccount, WritableAccount, TransactionSigner, Option, OptionOrNullable, ReadonlySignerAccount, ProgramDerivedAddress, GetProgramAccountsMemcmpFilter, Rpc, GetProgramAccountsApi, GetAccountInfoApi, Slot, GetMultipleAccountsApi, Lamports } from '@solana/kit'; import { Whirlpool } from '@orca-so/whirlpools-client'; import { FusionPool } from '@crypticdot/fusionamm-client'; import { Mint } from '@solana-program/token-2022'; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const LENDING_POSITION_DISCRIMINATOR: Uint8Array; declare function getLendingPositionDiscriminatorBytes(): ReadonlyUint8Array; type LendingPosition = { discriminator: ReadonlyUint8Array; /** Struct version */ version: number; /** Bump seed for the lending position account */ bump: ReadonlyUint8Array; /** Authority address used for managing the position */ authority: Address; /** Mint address of the token in the vault */ mint: Address; /** The amount of funds provided by a user. Used to compute earned amount. */ depositedFunds: bigint; /** The amount of funds provided by a user to the vault as shares */ depositedShares: bigint; /** The vault or Pubkey::default() for v1 positions. */ vault: Address; /** Reserved */ reserved: ReadonlyUint8Array; }; type LendingPositionArgs = { /** Struct version */ version: number; /** Bump seed for the lending position account */ bump: ReadonlyUint8Array; /** Authority address used for managing the position */ authority: Address; /** Mint address of the token in the vault */ mint: Address; /** The amount of funds provided by a user. Used to compute earned amount. */ depositedFunds: number | bigint; /** The amount of funds provided by a user to the vault as shares */ depositedShares: number | bigint; /** The vault or Pubkey::default() for v1 positions. */ vault: Address; /** Reserved */ reserved: ReadonlyUint8Array; }; declare function getLendingPositionEncoder(): Encoder; declare function getLendingPositionDecoder(): Decoder; declare function getLendingPositionCodec(): Codec; declare function decodeLendingPosition(encodedAccount: EncodedAccount): Account; declare function decodeLendingPosition(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchLendingPosition(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeLendingPosition(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllLendingPosition(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeLendingPosition(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getLendingPositionSize(): number; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare enum AccountsType { SwapTickArrays = 0, TickArrayLower = 1, TickArrayUpper = 2, PoolVaultTokenA = 3, PoolVaultTokenB = 4, WhirlpoolOracle = 5, Rewards = 6, SecondaryTickArrayLower = 7, SecondaryTickArrayUpper = 8, JupiterRoute = 9 } type AccountsTypeArgs = AccountsType; declare function getAccountsTypeEncoder(): Encoder; declare function getAccountsTypeDecoder(): Decoder; declare function getAccountsTypeCodec(): Codec; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare enum MarketMaker { Orca = 0, Fusion = 1 } type MarketMakerArgs = MarketMaker; declare function getMarketMakerEncoder(): Encoder; declare function getMarketMakerDecoder(): Decoder; declare function getMarketMakerCodec(): Codec; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ type OraclePriceUpdate = { price: bigint; exponent: number; }; type OraclePriceUpdateArgs = { price: number | bigint; exponent: number; }; declare function getOraclePriceUpdateEncoder(): Encoder; declare function getOraclePriceUpdateDecoder(): Decoder; declare function getOraclePriceUpdateCodec(): Codec; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare enum PoolToken { A = 0, B = 1 } type PoolTokenArgs = PoolToken; declare function getPoolTokenEncoder(): Encoder; declare function getPoolTokenDecoder(): Decoder; declare function getPoolTokenCodec(): Codec; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ type RemainingAccountsInfo = { slices: Array; }; type RemainingAccountsInfoArgs = { slices: Array; }; declare function getRemainingAccountsInfoEncoder(): Encoder; declare function getRemainingAccountsInfoDecoder(): Decoder; declare function getRemainingAccountsInfoCodec(): Codec; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ type RemainingAccountsSlice = { accountsType: AccountsType; length: number; }; type RemainingAccountsSliceArgs = { accountsType: AccountsTypeArgs; length: number; }; declare function getRemainingAccountsSliceEncoder(): Encoder; declare function getRemainingAccountsSliceDecoder(): Decoder; declare function getRemainingAccountsSliceCodec(): Codec; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare enum TunaPositionState { Normal = 0, Liquidated = 1, ClosedByLimitOrder = 2 } type TunaPositionStateArgs = TunaPositionState; declare function getTunaPositionStateEncoder(): Encoder; declare function getTunaPositionStateDecoder(): Decoder; declare function getTunaPositionStateCodec(): Codec; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const MARKET_DISCRIMINATOR: Uint8Array; declare function getMarketDiscriminatorBytes(): ReadonlyUint8Array; type Market = { discriminator: ReadonlyUint8Array; /** Struct version */ version: number; /** Bump seed for the market account */ bump: ReadonlyUint8Array; /** Market maker: Orca, Fusion, etc... */ marketMaker: MarketMaker; /** Liquidity pool address */ pool: Address; /** Address Lookup Table address for this market */ addressLookupTable: Address; /** Maximum allowed leverage for this market */ maxLeverage: number; /** Protocol fee represented as hundredths of a basis point. (Value of 100 is equal to 0.01%) */ protocolFee: number; /** Protocol fee on collateral (funds provided by a user) represented as hundredths of a basis point. (Value of 100 is equal to 0.01%) */ protocolFeeOnCollateral: number; /** Liquidation fee represented as hundredths of a basis point. (Value of 100 is equal to 0.01%) */ liquidationFee: number; /** Liquidation threshold represented as hundredths of a basis point. The position is treated as unhealthy if debt > balance * (liquidation_threshold / HUNDRED_PERCENT). */ liquidationThreshold: number; /** Obsolete: Limit order execution fee represented as hundredths of a basis point. (Value of 100 is equal to 0.01%) */ unused1: number; /** Oracle price deviation threshold represented as hundredths of a basis point. If it's set to zero, the default value from the global config is used. */ oraclePriceDeviationThreshold: number; /** True if the market is disabled (no more position can be opened). */ disabled: boolean; /** Total borrowed shares of token A. */ borrowedSharesA: bigint; /** Total borrowed shares of token B. */ borrowedSharesB: bigint; /** Total borrow limit for this market in token A. */ borrowLimitA: bigint; /** Total borrow limit for this market in token B. */ borrowLimitB: bigint; /** Total number of opened spot+lp positions of */ numPositions: number; /** The protocol fee taken from yield when a position is re-balanced. */ rebalanceProtocolFee: number; /** Maximum allowed position size in token A. 0 means no limit. */ spotPositionSizeLimitA: bigint; /** Maximum allowed position size in token B. 0 means no limit. */ spotPositionSizeLimitB: bigint; /** Lending vault A address */ vaultA: Address; /** Lending vault B address */ vaultB: Address; /** Bad debt size in token A. */ badDebtA: bigint; /** Bad debt size in token B. */ badDebtB: bigint; /** Market creator authority or Pubkey::default() for non-permissionless markets */ authority: Address; /** Reserved */ reserved: ReadonlyUint8Array; }; type MarketArgs = { /** Struct version */ version: number; /** Bump seed for the market account */ bump: ReadonlyUint8Array; /** Market maker: Orca, Fusion, etc... */ marketMaker: MarketMakerArgs; /** Liquidity pool address */ pool: Address; /** Address Lookup Table address for this market */ addressLookupTable: Address; /** Maximum allowed leverage for this market */ maxLeverage: number; /** Protocol fee represented as hundredths of a basis point. (Value of 100 is equal to 0.01%) */ protocolFee: number; /** Protocol fee on collateral (funds provided by a user) represented as hundredths of a basis point. (Value of 100 is equal to 0.01%) */ protocolFeeOnCollateral: number; /** Liquidation fee represented as hundredths of a basis point. (Value of 100 is equal to 0.01%) */ liquidationFee: number; /** Liquidation threshold represented as hundredths of a basis point. The position is treated as unhealthy if debt > balance * (liquidation_threshold / HUNDRED_PERCENT). */ liquidationThreshold: number; /** Obsolete: Limit order execution fee represented as hundredths of a basis point. (Value of 100 is equal to 0.01%) */ unused1: number; /** Oracle price deviation threshold represented as hundredths of a basis point. If it's set to zero, the default value from the global config is used. */ oraclePriceDeviationThreshold: number; /** True if the market is disabled (no more position can be opened). */ disabled: boolean; /** Total borrowed shares of token A. */ borrowedSharesA: number | bigint; /** Total borrowed shares of token B. */ borrowedSharesB: number | bigint; /** Total borrow limit for this market in token A. */ borrowLimitA: number | bigint; /** Total borrow limit for this market in token B. */ borrowLimitB: number | bigint; /** Total number of opened spot+lp positions of */ numPositions: number; /** The protocol fee taken from yield when a position is re-balanced. */ rebalanceProtocolFee: number; /** Maximum allowed position size in token A. 0 means no limit. */ spotPositionSizeLimitA: number | bigint; /** Maximum allowed position size in token B. 0 means no limit. */ spotPositionSizeLimitB: number | bigint; /** Lending vault A address */ vaultA: Address; /** Lending vault B address */ vaultB: Address; /** Bad debt size in token A. */ badDebtA: number | bigint; /** Bad debt size in token B. */ badDebtB: number | bigint; /** Market creator authority or Pubkey::default() for non-permissionless markets */ authority: Address; /** Reserved */ reserved: ReadonlyUint8Array; }; declare function getMarketEncoder(): Encoder; declare function getMarketDecoder(): Decoder; declare function getMarketCodec(): Codec; declare function decodeMarket(encodedAccount: EncodedAccount): Account; declare function decodeMarket(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchMarket(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeMarket(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllMarket(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeMarket(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getMarketSize(): number; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const REFERRAL_DISCRIMINATOR: Uint8Array; declare function getReferralDiscriminatorBytes(): ReadonlyUint8Array; type Referral = { discriminator: ReadonlyUint8Array; /** User authority */ authority: Address; /** Unix timestamp when the account was created */ timestamp: bigint; /** Referral id */ referralId: number; /** Reserved */ reserved: ReadonlyUint8Array; }; type ReferralArgs = { /** User authority */ authority: Address; /** Unix timestamp when the account was created */ timestamp: number | bigint; /** Referral id */ referralId: number; /** Reserved */ reserved: ReadonlyUint8Array; }; declare function getReferralEncoder(): Encoder; declare function getReferralDecoder(): Decoder; declare function getReferralCodec(): Codec; declare function decodeReferral(encodedAccount: EncodedAccount): Account; declare function decodeReferral(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchReferral(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeReferral(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllReferral(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeReferral(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getReferralSize(): number; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const TUNA_CONFIG_DISCRIMINATOR: Uint8Array; declare function getTunaConfigDiscriminatorBytes(): ReadonlyUint8Array; type TunaConfig = { discriminator: ReadonlyUint8Array; /** Struct version. */ version: number; /** Bump seed for the vaults config account. */ bump: number; /** Current update authority address for both the TunaConfig and the Vault PDAs themselves - can be updated. */ adminAuthority: Address; /** Fee recipient address. */ feeRecipient: Address; /** Governance authority for all role changes. Multisig approvals are enforced externally. */ ownerAuthority: Address; /** Obsolete: Maximum allowed swap slippage percentage. */ unused1: number; /** Maximum allowed percentage of leftovers. */ maxPercentageOfLeftovers: number; /** Suspends lending deposits in case of emergency. */ suspendLendingDeposits: boolean; /** Suspends lending withdrawals in case of emergency. */ suspendLendingWithdrawals: boolean; /** Suspends adding liquidity to positions in case of emergency. */ suspendAddLiquidity: boolean; /** Suspends removing liquidity, claiming fees and closing positions in case of emergency. */ suspendRemoveLiquidity: boolean; /** Liquidation bot wallet. */ liquidatorAuthority: Address; /** Maximum allowed oracle price deviation in percent. */ oraclePriceDeviationThreshold: number; /** The default protocol fee rate. */ defaultProtocolFeeRate: number; /** The default liquidation fee rate. */ defaultLiquidationFeeRate: number; /** The default rebalance fee rate. */ defaultRebalanceFeeRate: number; /** Oracle price update authority address */ oraclePriceUpdateAuthority: Address; /** Reserved */ reserved: ReadonlyUint8Array; }; type TunaConfigArgs = { /** Struct version. */ version: number; /** Bump seed for the vaults config account. */ bump: number; /** Current update authority address for both the TunaConfig and the Vault PDAs themselves - can be updated. */ adminAuthority: Address; /** Fee recipient address. */ feeRecipient: Address; /** Governance authority for all role changes. Multisig approvals are enforced externally. */ ownerAuthority: Address; /** Obsolete: Maximum allowed swap slippage percentage. */ unused1: number; /** Maximum allowed percentage of leftovers. */ maxPercentageOfLeftovers: number; /** Suspends lending deposits in case of emergency. */ suspendLendingDeposits: boolean; /** Suspends lending withdrawals in case of emergency. */ suspendLendingWithdrawals: boolean; /** Suspends adding liquidity to positions in case of emergency. */ suspendAddLiquidity: boolean; /** Suspends removing liquidity, claiming fees and closing positions in case of emergency. */ suspendRemoveLiquidity: boolean; /** Liquidation bot wallet. */ liquidatorAuthority: Address; /** Maximum allowed oracle price deviation in percent. */ oraclePriceDeviationThreshold: number; /** The default protocol fee rate. */ defaultProtocolFeeRate: number; /** The default liquidation fee rate. */ defaultLiquidationFeeRate: number; /** The default rebalance fee rate. */ defaultRebalanceFeeRate: number; /** Oracle price update authority address */ oraclePriceUpdateAuthority: Address; /** Reserved */ reserved: ReadonlyUint8Array; }; declare function getTunaConfigEncoder(): Encoder; declare function getTunaConfigDecoder(): Decoder; declare function getTunaConfigCodec(): Codec; declare function decodeTunaConfig(encodedAccount: EncodedAccount): Account; declare function decodeTunaConfig(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchTunaConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeTunaConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllTunaConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeTunaConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getTunaConfigSize(): number; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const TUNA_LP_POSITION_DISCRIMINATOR: Uint8Array; declare function getTunaLpPositionDiscriminatorBytes(): ReadonlyUint8Array; type TunaLpPosition = { discriminator: ReadonlyUint8Array; /** Struct version */ version: number; /** Bump seed for the tuna position account */ bump: ReadonlyUint8Array; /** The authority address used for managing the position */ authority: Address; /** Liquidity pool address this position belongs to */ pool: Address; /** The mint address for token A */ mintA: Address; /** The mint address for token B */ mintB: Address; /** The mint address for the position token (minted and used in Orca/Fusion) */ positionMint: Address; /** Total minted liquidity */ liquidity: bigint; /** Position lower tick */ tickLowerIndex: number; /** Position upper tick */ tickUpperIndex: number; /** The amount of shares borrowed by user from vault A. */ loanSharesA: bigint; /** The amount of shares borrowed by user from vault B. */ loanSharesB: bigint; /** The amount of funds borrowed by user from vault A. Doesn't include accrued interest. */ loanFundsA: bigint; /** The amount of funds borrowed by user from vault B. Doesn't include accrued interest. */ loanFundsB: bigint; /** The leftovers are funds that couldn't be added to a pool as liquidity. They remain in the position token account. */ leftoversA: bigint; /** The leftovers are funds that couldn't be added to a pool as liquidity. They remain in the position token account. */ leftoversB: bigint; /** OBSOLETE: Position entry tick index. (For position version <= 6) */ tickEntryIndex: number; /** OBSOLETE: Position stop loss tick index (for position version <= 6). */ tickStopLossIndex: number; /** OBSOLETE: Position stop loss tick index (for position version <= 6). */ tickTakeProfitIndex: number; /** Position state: normal, liquidated, closed by limit order */ state: TunaPositionState; /** OBSOLETE: Which token to swap collateral to when a limit order is executed. (For position version <= 4) */ unused1: number; /** Yield amount in token A that has already been collected and compounded into the position. */ compoundedYieldA: bigint; /** Yield amount in token B that has already been collected and compounded into the position. */ compoundedYieldB: bigint; /** Position options. */ flags: number; /** Market maker (Orca, Fusion) */ marketMaker: MarketMaker; /** Position entry sqrt price. */ entrySqrtPrice: bigint; /** Position lower limit order sqrt price (stop loss for a LONG position). */ lowerLimitOrderSqrtPrice: bigint; /** Position upper limit order sqrt price (take profit for a LONG position). */ upperLimitOrderSqrtPrice: bigint; /** * The position might be re-balanced if the current tick is lower than tick_lower_index or * higher than tick_higher_index by a threshold value. */ rebalanceThresholdTicks: number; /** Reserved */ reserved: ReadonlyUint8Array; }; type TunaLpPositionArgs = { /** Struct version */ version: number; /** Bump seed for the tuna position account */ bump: ReadonlyUint8Array; /** The authority address used for managing the position */ authority: Address; /** Liquidity pool address this position belongs to */ pool: Address; /** The mint address for token A */ mintA: Address; /** The mint address for token B */ mintB: Address; /** The mint address for the position token (minted and used in Orca/Fusion) */ positionMint: Address; /** Total minted liquidity */ liquidity: number | bigint; /** Position lower tick */ tickLowerIndex: number; /** Position upper tick */ tickUpperIndex: number; /** The amount of shares borrowed by user from vault A. */ loanSharesA: number | bigint; /** The amount of shares borrowed by user from vault B. */ loanSharesB: number | bigint; /** The amount of funds borrowed by user from vault A. Doesn't include accrued interest. */ loanFundsA: number | bigint; /** The amount of funds borrowed by user from vault B. Doesn't include accrued interest. */ loanFundsB: number | bigint; /** The leftovers are funds that couldn't be added to a pool as liquidity. They remain in the position token account. */ leftoversA: number | bigint; /** The leftovers are funds that couldn't be added to a pool as liquidity. They remain in the position token account. */ leftoversB: number | bigint; /** OBSOLETE: Position entry tick index. (For position version <= 6) */ tickEntryIndex: number; /** OBSOLETE: Position stop loss tick index (for position version <= 6). */ tickStopLossIndex: number; /** OBSOLETE: Position stop loss tick index (for position version <= 6). */ tickTakeProfitIndex: number; /** Position state: normal, liquidated, closed by limit order */ state: TunaPositionStateArgs; /** OBSOLETE: Which token to swap collateral to when a limit order is executed. (For position version <= 4) */ unused1: number; /** Yield amount in token A that has already been collected and compounded into the position. */ compoundedYieldA: number | bigint; /** Yield amount in token B that has already been collected and compounded into the position. */ compoundedYieldB: number | bigint; /** Position options. */ flags: number; /** Market maker (Orca, Fusion) */ marketMaker: MarketMakerArgs; /** Position entry sqrt price. */ entrySqrtPrice: number | bigint; /** Position lower limit order sqrt price (stop loss for a LONG position). */ lowerLimitOrderSqrtPrice: number | bigint; /** Position upper limit order sqrt price (take profit for a LONG position). */ upperLimitOrderSqrtPrice: number | bigint; /** * The position might be re-balanced if the current tick is lower than tick_lower_index or * higher than tick_higher_index by a threshold value. */ rebalanceThresholdTicks: number; /** Reserved */ reserved: ReadonlyUint8Array; }; declare function getTunaLpPositionEncoder(): Encoder; declare function getTunaLpPositionDecoder(): Decoder; declare function getTunaLpPositionCodec(): Codec; declare function decodeTunaLpPosition(encodedAccount: EncodedAccount): Account; declare function decodeTunaLpPosition(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchTunaLpPosition(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeTunaLpPosition(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllTunaLpPosition(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeTunaLpPosition(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getTunaLpPositionSize(): number; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const TUNA_PRICE_UPDATE_DISCRIMINATOR: Uint8Array; declare function getTunaPriceUpdateDiscriminatorBytes(): ReadonlyUint8Array; type TunaPriceUpdate = { discriminator: ReadonlyUint8Array; price: bigint; exponent: number; /** The timestamp of this price update in seconds */ publishTime: bigint; /** Reserved */ reserved: ReadonlyUint8Array; }; type TunaPriceUpdateArgs = { price: number | bigint; exponent: number; /** The timestamp of this price update in seconds */ publishTime: number | bigint; /** Reserved */ reserved: ReadonlyUint8Array; }; declare function getTunaPriceUpdateEncoder(): Encoder; declare function getTunaPriceUpdateDecoder(): Decoder; declare function getTunaPriceUpdateCodec(): Codec; declare function decodeTunaPriceUpdate(encodedAccount: EncodedAccount): Account; declare function decodeTunaPriceUpdate(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchTunaPriceUpdate(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeTunaPriceUpdate(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllTunaPriceUpdate(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeTunaPriceUpdate(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getTunaPriceUpdateSize(): number; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const TUNA_SPOT_POSITION_DISCRIMINATOR: Uint8Array; declare function getTunaSpotPositionDiscriminatorBytes(): ReadonlyUint8Array; type TunaSpotPosition = { discriminator: ReadonlyUint8Array; /** Struct version */ version: number; /** Bump seed for the tuna position account */ bump: ReadonlyUint8Array; /** The authority address used for managing the position */ authority: Address; /** Liquidity pool address this position belongs to */ pool: Address; /** The mint address for token A */ mintA: Address; /** The mint address for token B */ mintB: Address; /** Market maker (Orca, Fusion) */ marketMaker: MarketMaker; /** Position token: A (LONG, B is borrowed), B (SHORT, A is borrowed) */ positionToken: PoolToken; /** The token used as collateral. */ collateralToken: PoolToken; /** Position options (unused) */ flags: number; /** The total amount of the position in token A (long) or B (short). */ amount: bigint; /** The amount of shares borrowed by the user from vault B (long) or A (short). */ loanShares: bigint; /** The amount of funds borrowed by the user from vault B (long) or A (short). Doesn't include accrued interest. */ loanFunds: bigint; /** Position entry sqrt price. */ entrySqrtPrice: bigint; /** Position lower limit order sqrt price (stop loss for a LONG position). */ lowerLimitOrderSqrtPrice: bigint; /** Position upper limit order sqrt price (take profit for a LONG position). */ upperLimitOrderSqrtPrice: bigint; /** Reserved */ reserved: ReadonlyUint8Array; }; type TunaSpotPositionArgs = { /** Struct version */ version: number; /** Bump seed for the tuna position account */ bump: ReadonlyUint8Array; /** The authority address used for managing the position */ authority: Address; /** Liquidity pool address this position belongs to */ pool: Address; /** The mint address for token A */ mintA: Address; /** The mint address for token B */ mintB: Address; /** Market maker (Orca, Fusion) */ marketMaker: MarketMakerArgs; /** Position token: A (LONG, B is borrowed), B (SHORT, A is borrowed) */ positionToken: PoolTokenArgs; /** The token used as collateral. */ collateralToken: PoolTokenArgs; /** Position options (unused) */ flags: number; /** The total amount of the position in token A (long) or B (short). */ amount: number | bigint; /** The amount of shares borrowed by the user from vault B (long) or A (short). */ loanShares: number | bigint; /** The amount of funds borrowed by the user from vault B (long) or A (short). Doesn't include accrued interest. */ loanFunds: number | bigint; /** Position entry sqrt price. */ entrySqrtPrice: number | bigint; /** Position lower limit order sqrt price (stop loss for a LONG position). */ lowerLimitOrderSqrtPrice: number | bigint; /** Position upper limit order sqrt price (take profit for a LONG position). */ upperLimitOrderSqrtPrice: number | bigint; /** Reserved */ reserved: ReadonlyUint8Array; }; declare function getTunaSpotPositionEncoder(): Encoder; declare function getTunaSpotPositionDecoder(): Decoder; declare function getTunaSpotPositionCodec(): Codec; declare function decodeTunaSpotPosition(encodedAccount: EncodedAccount): Account; declare function decodeTunaSpotPosition(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchTunaSpotPosition(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeTunaSpotPosition(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllTunaSpotPosition(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeTunaSpotPosition(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getTunaSpotPositionSize(): number; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const VAULT_DISCRIMINATOR: Uint8Array; declare function getVaultDiscriminatorBytes(): ReadonlyUint8Array; type Vault = { discriminator: ReadonlyUint8Array; /** Struct version */ version: number; /** Bump seed for the vault account */ bump: ReadonlyUint8Array; /** The mint of the token that this vault holds */ mint: Address; /** The amount of funds deposited in the vault - takes into account accrued interest */ depositedFunds: bigint; /** The amount of shares deposited in the vault */ depositedShares: bigint; /** The amount of funds borrowed from the vault - takes into account accrued interest */ borrowedFunds: bigint; /** The amount of shares borrowed from the vault */ borrowedShares: bigint; /** Bad dept may appear on a position liquidation if not enough funds to repay the debt to a lending pool. */ unpaidDebtShares: bigint; /** The interest rate of the vault per seconds. (1<<60) / 31536000 = 1152921504606846976 / 31536000 = 100% annually. */ interestRate: bigint; /** The last time the vault was updated. */ lastUpdateTimestamp: bigint; /** The maximum allowed supply for this vault. */ supplyLimit: bigint; /** Pyth oracle price update account. */ oraclePriceUpdate: Address; /** Pyth oracle price feed id. */ pythOracleFeedId: Address; /** Authority that created this Vault. Should be set for permissionless vaults, otherwise Pubkey::default(). */ authority: Address; /** * The market address that the vault is associated with. Used to compute seeds. * Applicable only to isolated vaults and should be zero for default vaults. */ market: Address; /** Reserved */ reserved: ReadonlyUint8Array; }; type VaultArgs = { /** Struct version */ version: number; /** Bump seed for the vault account */ bump: ReadonlyUint8Array; /** The mint of the token that this vault holds */ mint: Address; /** The amount of funds deposited in the vault - takes into account accrued interest */ depositedFunds: number | bigint; /** The amount of shares deposited in the vault */ depositedShares: number | bigint; /** The amount of funds borrowed from the vault - takes into account accrued interest */ borrowedFunds: number | bigint; /** The amount of shares borrowed from the vault */ borrowedShares: number | bigint; /** Bad dept may appear on a position liquidation if not enough funds to repay the debt to a lending pool. */ unpaidDebtShares: number | bigint; /** The interest rate of the vault per seconds. (1<<60) / 31536000 = 1152921504606846976 / 31536000 = 100% annually. */ interestRate: number | bigint; /** The last time the vault was updated. */ lastUpdateTimestamp: number | bigint; /** The maximum allowed supply for this vault. */ supplyLimit: number | bigint; /** Pyth oracle price update account. */ oraclePriceUpdate: Address; /** Pyth oracle price feed id. */ pythOracleFeedId: Address; /** Authority that created this Vault. Should be set for permissionless vaults, otherwise Pubkey::default(). */ authority: Address; /** * The market address that the vault is associated with. Used to compute seeds. * Applicable only to isolated vaults and should be zero for default vaults. */ market: Address; /** Reserved */ reserved: ReadonlyUint8Array; }; declare function getVaultEncoder(): Encoder; declare function getVaultDecoder(): Decoder; declare function getVaultCodec(): Codec; declare function decodeVault(encodedAccount: EncodedAccount): Account; declare function decodeVault(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchVault(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeVault(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllVault(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeVault(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getVaultSize(): number; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ /** InvalidEnum: Enum value could not be converted */ declare const TUNA_ERROR__INVALID_ENUM = 6499; /** TypeCastOverflow: Type cast overflow */ declare const TUNA_ERROR__TYPE_CAST_OVERFLOW = 6500; /** MathOverflow: Math overflow */ declare const TUNA_ERROR__MATH_OVERFLOW = 6501; /** MathUnderflow: Math underflow */ declare const TUNA_ERROR__MATH_UNDERFLOW = 6502; /** VaultNotInitialized: Lending vault is not initialized */ declare const TUNA_ERROR__VAULT_NOT_INITIALIZED = 6559; /** WithdrawRequestExceedsUserBalance: Withdraw request the exceeds user balance */ declare const TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE = 6560; /** ZeroPriceRange: Zero price range: the lower price is equal to upper price) */ declare const TUNA_ERROR__ZERO_PRICE_RANGE = 6561; /** AmountSlippageExceeded: Amount slippage exceeded */ declare const TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED = 6600; /** BadDebt: Bad debt is not allowed for the executed instruction */ declare const TUNA_ERROR__BAD_DEBT = 6601; /** InvalidRemainingAccountsLength: Invalid number of remaining accounts */ declare const TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH = 6602; /** InvalidInstructionArguments: Invalid instruction arguments */ declare const TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS = 6603; /** InvalidMarketMaker: Invalid market maker */ declare const TUNA_ERROR__INVALID_MARKET_MAKER = 6604; /** InvalidAccountDiscriminator: Invalid account discriminator */ declare const TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR = 6605; /** InvalidAccountOwner: Invalid account owner */ declare const TUNA_ERROR__INVALID_ACCOUNT_OWNER = 6606; /** InvalidPool: Invalid Fusion or Orca pool */ declare const TUNA_ERROR__INVALID_POOL = 6607; /** InvalidVault: Vault address is invalid */ declare const TUNA_ERROR__INVALID_VAULT = 6608; /** InsufficientLiquidity: Insufficient liquidity */ declare const TUNA_ERROR__INSUFFICIENT_LIQUIDITY = 6609; /** InterestRateIsOutOfRange: Interest rate is out of range */ declare const TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE = 6610; /** LeverageIsOutOfRange: Leverage is out or range */ declare const TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE = 6611; /** LeftoversExceeded: Leftovers percentage exceeded the maximum allowed value */ declare const TUNA_ERROR__LEFTOVERS_EXCEEDED = 6612; /** LiquidationFeeIsOutOfRange: Liquidation fee is out of range */ declare const TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE = 6613; /** LiquidationThresholdIsOutOfRange: Liquidation threshold is out of range */ declare const TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE = 6614; /** MarketDisabled: Market is disabled */ declare const TUNA_ERROR__MARKET_DISABLED = 6615; /** MarketDebtLimitExceeded: Exceed the maximum allowed debt for the market */ declare const TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED = 6616; /** NoExtraAccountsForTransferHook: Unable to call transfer hook without extra accounts */ declare const TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK = 6617; /** OracleStalePrice: Oracle price is stale */ declare const TUNA_ERROR__ORACLE_STALE_PRICE = 6618; /** OraclePriceDeviationThresholdExceeded: Oracle price deviation threshold exceeded */ declare const TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 6619; /** OraclePriceDeviationThresholdOutOfRange: Oracle price deviation threshold out of range */ declare const TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE = 6620; /** InvalidPriceUpdateAccount: Invalid oracle price update account */ declare const TUNA_ERROR__INVALID_PRICE_UPDATE_ACCOUNT = 6621; /** PositionIsHealthy: Position is healthy */ declare const TUNA_ERROR__POSITION_IS_HEALTHY = 6622; /** PositionIsLiquidated: Position is already liquidated */ declare const TUNA_ERROR__POSITION_IS_LIQUIDATED = 6623; /** PositionIsUnhealthy: Position is unhealthy */ declare const TUNA_ERROR__POSITION_IS_UNHEALTHY = 6624; /** PositionNotEmpty: Position is not empty */ declare const TUNA_ERROR__POSITION_NOT_EMPTY = 6625; /** PositionIsEmpty: Position is empty */ declare const TUNA_ERROR__POSITION_IS_EMPTY = 6626; /** PositionIsAutoRebalanceable: Unable to claim yield for auto re-balanceable positions */ declare const TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE = 6627; /** PositionSizeLimitExceeded: Position size exceeds the maximum allowed value */ declare const TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED = 6628; /** PositionValuationDegenerate: Position valuation is degenerate */ declare const TUNA_ERROR__POSITION_VALUATION_DEGENERATE = 6629; /** ProtocolFeeIsOutOfRange: Protocol fee is out of range */ declare const TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE = 6640; /** RebalanceConditionsNotMet: Rebalance conditions are not met */ declare const TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET = 6641; /** RemainingAccountsDuplicatedAccountsType: Same accounts type is provided more than once */ declare const TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE = 6642; /** RemainingAccountsInvalidSlice: Invalid remaining accounts */ declare const TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE = 6643; /** RemainingAccountsInvalidSliceLength: Invalid remaining accounts slice length */ declare const TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH = 6644; /** RemainingAccountsInsufficient: Insufficient remaining accounts */ declare const TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT = 6645; /** RequiredRemainingAccountNotProvided: Required remaining account is not provided */ declare const TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED = 6646; /** SolverFailedToFindRoot: Swap equation solver failed to t find the root */ declare const TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT = 6647; /** SupplyLimitExceeded: Lending vault supply limit exceeded */ declare const TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED = 6648; /** Suspended: Instruction is suspended */ declare const TUNA_ERROR__SUSPENDED = 6649; /** SwapSlippageExceeded: Maximum allowed swap slippage is exceeded */ declare const TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED = 6650; /** SwapSlippageIsOutOfRange: Provided swap slippage value is out of range */ declare const TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE = 6651; /** SwapToPositionRatioEstimationFailed: Swap to position ratio estimation failed */ declare const TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED = 6652; /** SwapQuoteNotEqualToActualSwapAmount: Swap quote amount is not equal to the actual swap amount */ declare const TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT = 6653; /** TransferFeeCalculationError: Transfer fee calculation failed */ declare const TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR = 6654; /** UnableToLoadAccountData: Unable to load the account data */ declare const TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA = 6655; /** UnableToDeserializeAccountData: Unable to deserialize the account data */ declare const TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA = 6656; /** UnexpectedValue: Unexpected value */ declare const TUNA_ERROR__UNEXPECTED_VALUE = 6657; /** UnsupportedTokenMint: Token mint has unsupported attributes */ declare const TUNA_ERROR__UNSUPPORTED_TOKEN_MINT = 6658; /** ZeroYield: Collected yield is zero */ declare const TUNA_ERROR__ZERO_YIELD = 6662; /** ZeroBadDebt: Zero bad debt */ declare const TUNA_ERROR__ZERO_BAD_DEBT = 6664; /** IncorrectPositionDirection: Incorrect position direction */ declare const TUNA_ERROR__INCORRECT_POSITION_DIRECTION = 6670; /** RecipientAccountIsNotSet: Optional recipient account is not set */ declare const TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET = 6671; /** MAPriceDeviationThresholdExceeded: Moving Average price deviation threshold exceeded */ declare const TUNA_ERROR__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 6672; /** AccountNotInitialized: Account is not initialized */ declare const TUNA_ERROR__ACCOUNT_NOT_INITIALIZED = 6673; /** PositionLocked: Position is locked */ declare const TUNA_ERROR__POSITION_LOCKED = 6674; /** LeveragedLockedPositionNotAllowed: Leveraged locked position is not allowed */ declare const TUNA_ERROR__LEVERAGED_LOCKED_POSITION_NOT_ALLOWED = 6675; /** VaultNotEmpty: Vault is not empty */ declare const TUNA_ERROR__VAULT_NOT_EMPTY = 6676; /** MarketHasOpenedPositions: The market has opened positions and can't be closed */ declare const TUNA_ERROR__MARKET_HAS_OPENED_POSITIONS = 6677; /** VaultBalanceMismatch: Vault token-account balance delta does not match the ledger delta */ declare const TUNA_ERROR__VAULT_BALANCE_MISMATCH = 6678; /** ZeroRealizedTransferAmount: Transfer produced no spendable tokens */ declare const TUNA_ERROR__ZERO_REALIZED_TRANSFER_AMOUNT = 6679; /** WithheldFeesPresent: Token account has withheld transfer fees; harvest them to the mint before closing */ declare const TUNA_ERROR__WITHHELD_FEES_PRESENT = 6680; /** InvalidJupiterCreateTokenAccountInstructionData: Invalid jupiter create token account instruction data */ declare const TUNA_ERROR__INVALID_JUPITER_CREATE_TOKEN_ACCOUNT_INSTRUCTION_DATA = 6700; /** InvalidJupiterCreateTokenAccountUserAccount: Invalid jupiter create token account instruction user account */ declare const TUNA_ERROR__INVALID_JUPITER_CREATE_TOKEN_ACCOUNT_USER_ACCOUNT = 6701; /** InvalidJupiterRouteInstructionData: Invalid jupiter route instruction data */ declare const TUNA_ERROR__INVALID_JUPITER_ROUTE_INSTRUCTION_DATA = 6702; /** InvalidJupiterRouteInstructionAccount: Invalid jupiter route instruction */ declare const TUNA_ERROR__INVALID_JUPITER_ROUTE_INSTRUCTION_ACCOUNT = 6703; /** InsufficientJupiterSwapOutputAmount: Insufficient swap output amount */ declare const TUNA_ERROR__INSUFFICIENT_JUPITER_SWAP_OUTPUT_AMOUNT = 6704; /** IncorrectJupiterSwapInputAmount: Incorrect swap input amount */ declare const TUNA_ERROR__INCORRECT_JUPITER_SWAP_INPUT_AMOUNT = 6705; type TunaError = typeof TUNA_ERROR__ACCOUNT_NOT_INITIALIZED | typeof TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED | typeof TUNA_ERROR__BAD_DEBT | typeof TUNA_ERROR__INCORRECT_JUPITER_SWAP_INPUT_AMOUNT | typeof TUNA_ERROR__INCORRECT_POSITION_DIRECTION | typeof TUNA_ERROR__INSUFFICIENT_JUPITER_SWAP_OUTPUT_AMOUNT | typeof TUNA_ERROR__INSUFFICIENT_LIQUIDITY | typeof TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR | typeof TUNA_ERROR__INVALID_ACCOUNT_OWNER | typeof TUNA_ERROR__INVALID_ENUM | typeof TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS | typeof TUNA_ERROR__INVALID_JUPITER_CREATE_TOKEN_ACCOUNT_INSTRUCTION_DATA | typeof TUNA_ERROR__INVALID_JUPITER_CREATE_TOKEN_ACCOUNT_USER_ACCOUNT | typeof TUNA_ERROR__INVALID_JUPITER_ROUTE_INSTRUCTION_ACCOUNT | typeof TUNA_ERROR__INVALID_JUPITER_ROUTE_INSTRUCTION_DATA | typeof TUNA_ERROR__INVALID_MARKET_MAKER | typeof TUNA_ERROR__INVALID_POOL | typeof TUNA_ERROR__INVALID_PRICE_UPDATE_ACCOUNT | typeof TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH | typeof TUNA_ERROR__INVALID_VAULT | typeof TUNA_ERROR__LEFTOVERS_EXCEEDED | typeof TUNA_ERROR__LEVERAGED_LOCKED_POSITION_NOT_ALLOWED | typeof TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE | typeof TUNA_ERROR__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED | typeof TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED | typeof TUNA_ERROR__MARKET_DISABLED | typeof TUNA_ERROR__MARKET_HAS_OPENED_POSITIONS | typeof TUNA_ERROR__MATH_OVERFLOW | typeof TUNA_ERROR__MATH_UNDERFLOW | typeof TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK | typeof TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED | typeof TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE | typeof TUNA_ERROR__ORACLE_STALE_PRICE | typeof TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE | typeof TUNA_ERROR__POSITION_IS_EMPTY | typeof TUNA_ERROR__POSITION_IS_HEALTHY | typeof TUNA_ERROR__POSITION_IS_LIQUIDATED | typeof TUNA_ERROR__POSITION_IS_UNHEALTHY | typeof TUNA_ERROR__POSITION_LOCKED | typeof TUNA_ERROR__POSITION_NOT_EMPTY | typeof TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED | typeof TUNA_ERROR__POSITION_VALUATION_DEGENERATE | typeof TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET | typeof TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET | typeof TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE | typeof TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT | typeof TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE | typeof TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH | typeof TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED | typeof TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT | typeof TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED | typeof TUNA_ERROR__SUSPENDED | typeof TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT | typeof TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED | typeof TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED | typeof TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR | typeof TUNA_ERROR__TYPE_CAST_OVERFLOW | typeof TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA | typeof TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA | typeof TUNA_ERROR__UNEXPECTED_VALUE | typeof TUNA_ERROR__UNSUPPORTED_TOKEN_MINT | typeof TUNA_ERROR__VAULT_BALANCE_MISMATCH | typeof TUNA_ERROR__VAULT_NOT_EMPTY | typeof TUNA_ERROR__VAULT_NOT_INITIALIZED | typeof TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE | typeof TUNA_ERROR__WITHHELD_FEES_PRESENT | typeof TUNA_ERROR__ZERO_BAD_DEBT | typeof TUNA_ERROR__ZERO_PRICE_RANGE | typeof TUNA_ERROR__ZERO_REALIZED_TRANSFER_AMOUNT | typeof TUNA_ERROR__ZERO_YIELD; declare function getTunaErrorMessage(code: TunaError): string; declare function isTunaError(error: unknown, transactionMessage: { instructions: Record; }, code?: TProgramErrorCode): error is SolanaError & Readonly<{ context: Readonly<{ code: TProgramErrorCode; }>; }>; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const TUNA_PROGRAM_ADDRESS: Address<"tuna4uSQZncNeeiAMKbstuxA9CUkHH6HmC64wgmnogD">; declare enum TunaAccount { LendingPosition = 0, Market = 1, Referral = 2, TunaConfig = 3, TunaLpPosition = 4, TunaPriceUpdate = 5, TunaSpotPosition = 6, Vault = 7 } declare function identifyTunaAccount(account: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): TunaAccount; declare enum TunaInstruction { CloseMarket = 0, CloseTunaLpPositionFusion = 1, CloseTunaLpPositionOrca = 2, CloseTunaLpPositionUserVolumeAccumulatorAccount = 3, CloseTunaSpotPosition = 4, CloseTunaSpotPositionUserVolumeAccumulatorAccount = 5, CollectAndCompoundFeesFusion = 6, CollectAndCompoundFeesOrca = 7, CollectFeesFusion = 8, CollectFeesOrca = 9, CollectRewardOrca = 10, CreateMarket = 11, CreateMarketPermissionless = 12, CreatePriceUpdate = 13, CreateReferral = 14, CreateTunaConfig = 15, CreateVault = 16, CreateVaultPermissionless = 17, DecreaseTunaLpPositionFusion = 18, DecreaseTunaLpPositionOrca = 19, Deposit = 20, IncreaseTunaLpPositionFusion = 21, IncreaseTunaLpPositionOrca = 22, LiquidateTunaLpPositionFusion = 23, LiquidateTunaLpPositionFusionJupiter = 24, LiquidateTunaLpPositionOrca = 25, LiquidateTunaLpPositionOrcaJupiter = 26, LiquidateTunaSpotPositionFusion = 27, LiquidateTunaSpotPositionJupiter = 28, LiquidateTunaSpotPositionOrca = 29, ModifyTunaSpotPositionFusion = 30, ModifyTunaSpotPositionJupiter = 31, ModifyTunaSpotPositionOrca = 32, OpenAndIncreaseTunaLpPositionFusion = 33, OpenAndIncreaseTunaLpPositionOrca = 34, OpenAndIncreaseTunaSpotPositionJupiter = 35, OpenLendingPosition = 36, OpenLendingPositionV2 = 37, OpenTunaLpPositionFusion = 38, OpenTunaLpPositionOrca = 39, OpenTunaSpotPosition = 40, RebalanceTunaLpPositionFusion = 41, RebalanceTunaLpPositionOrca = 42, RepayBadDebt = 43, RepayTunaLpPositionDebt = 44, ResetMarketBadDebt = 45, ResetTunaSpotPosition = 46, SetAdminAuthority = 47, SetDefaultLiquidationFeeRate = 48, SetDefaultMaxPercentageOfLeftovers = 49, SetDefaultOraclePriceDeviationThreshold = 50, SetDefaultProtocolFeeRate = 51, SetDefaultRebalanceFeeRate = 52, SetFeeRecipient = 53, SetLiquidatorAuthority = 54, SetOraclePriceUpdateAuthority = 55, SetOwnerAuthority = 56, SetSuspendedState = 57, SetTunaLpPositionFlags = 58, SetTunaLpPositionLimitOrders = 59, SetTunaLpPositionRebalanceThreshold = 60, SetTunaSpotPositionLimitOrders = 61, SocializeBadDebt = 62, UpdateMarket = 63, UpdateOraclePrice = 64, UpdateVault = 65, Withdraw = 66 } declare function identifyTunaInstruction(instruction: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): TunaInstruction; type ParsedTunaInstruction = ({ instructionType: TunaInstruction.CloseMarket; } & ParsedCloseMarketInstruction) | ({ instructionType: TunaInstruction.CloseTunaLpPositionFusion; } & ParsedCloseTunaLpPositionFusionInstruction) | ({ instructionType: TunaInstruction.CloseTunaLpPositionOrca; } & ParsedCloseTunaLpPositionOrcaInstruction) | ({ instructionType: TunaInstruction.CloseTunaLpPositionUserVolumeAccumulatorAccount; } & ParsedCloseTunaLpPositionUserVolumeAccumulatorAccountInstruction) | ({ instructionType: TunaInstruction.CloseTunaSpotPosition; } & ParsedCloseTunaSpotPositionInstruction) | ({ instructionType: TunaInstruction.CloseTunaSpotPositionUserVolumeAccumulatorAccount; } & ParsedCloseTunaSpotPositionUserVolumeAccumulatorAccountInstruction) | ({ instructionType: TunaInstruction.CollectAndCompoundFeesFusion; } & ParsedCollectAndCompoundFeesFusionInstruction) | ({ instructionType: TunaInstruction.CollectAndCompoundFeesOrca; } & ParsedCollectAndCompoundFeesOrcaInstruction) | ({ instructionType: TunaInstruction.CollectFeesFusion; } & ParsedCollectFeesFusionInstruction) | ({ instructionType: TunaInstruction.CollectFeesOrca; } & ParsedCollectFeesOrcaInstruction) | ({ instructionType: TunaInstruction.CollectRewardOrca; } & ParsedCollectRewardOrcaInstruction) | ({ instructionType: TunaInstruction.CreateMarket; } & ParsedCreateMarketInstruction) | ({ instructionType: TunaInstruction.CreateMarketPermissionless; } & ParsedCreateMarketPermissionlessInstruction) | ({ instructionType: TunaInstruction.CreatePriceUpdate; } & ParsedCreatePriceUpdateInstruction) | ({ instructionType: TunaInstruction.CreateReferral; } & ParsedCreateReferralInstruction) | ({ instructionType: TunaInstruction.CreateTunaConfig; } & ParsedCreateTunaConfigInstruction) | ({ instructionType: TunaInstruction.CreateVault; } & ParsedCreateVaultInstruction) | ({ instructionType: TunaInstruction.CreateVaultPermissionless; } & ParsedCreateVaultPermissionlessInstruction) | ({ instructionType: TunaInstruction.DecreaseTunaLpPositionFusion; } & ParsedDecreaseTunaLpPositionFusionInstruction) | ({ instructionType: TunaInstruction.DecreaseTunaLpPositionOrca; } & ParsedDecreaseTunaLpPositionOrcaInstruction) | ({ instructionType: TunaInstruction.Deposit; } & ParsedDepositInstruction) | ({ instructionType: TunaInstruction.IncreaseTunaLpPositionFusion; } & ParsedIncreaseTunaLpPositionFusionInstruction) | ({ instructionType: TunaInstruction.IncreaseTunaLpPositionOrca; } & ParsedIncreaseTunaLpPositionOrcaInstruction) | ({ instructionType: TunaInstruction.LiquidateTunaLpPositionFusion; } & ParsedLiquidateTunaLpPositionFusionInstruction) | ({ instructionType: TunaInstruction.LiquidateTunaLpPositionFusionJupiter; } & ParsedLiquidateTunaLpPositionFusionJupiterInstruction) | ({ instructionType: TunaInstruction.LiquidateTunaLpPositionOrca; } & ParsedLiquidateTunaLpPositionOrcaInstruction) | ({ instructionType: TunaInstruction.LiquidateTunaLpPositionOrcaJupiter; } & ParsedLiquidateTunaLpPositionOrcaJupiterInstruction) | ({ instructionType: TunaInstruction.LiquidateTunaSpotPositionFusion; } & ParsedLiquidateTunaSpotPositionFusionInstruction) | ({ instructionType: TunaInstruction.LiquidateTunaSpotPositionJupiter; } & ParsedLiquidateTunaSpotPositionJupiterInstruction) | ({ instructionType: TunaInstruction.LiquidateTunaSpotPositionOrca; } & ParsedLiquidateTunaSpotPositionOrcaInstruction) | ({ instructionType: TunaInstruction.ModifyTunaSpotPositionFusion; } & ParsedModifyTunaSpotPositionFusionInstruction) | ({ instructionType: TunaInstruction.ModifyTunaSpotPositionJupiter; } & ParsedModifyTunaSpotPositionJupiterInstruction) | ({ instructionType: TunaInstruction.ModifyTunaSpotPositionOrca; } & ParsedModifyTunaSpotPositionOrcaInstruction) | ({ instructionType: TunaInstruction.OpenAndIncreaseTunaLpPositionFusion; } & ParsedOpenAndIncreaseTunaLpPositionFusionInstruction) | ({ instructionType: TunaInstruction.OpenAndIncreaseTunaLpPositionOrca; } & ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction) | ({ instructionType: TunaInstruction.OpenAndIncreaseTunaSpotPositionJupiter; } & ParsedOpenAndIncreaseTunaSpotPositionJupiterInstruction) | ({ instructionType: TunaInstruction.OpenLendingPosition; } & ParsedOpenLendingPositionInstruction) | ({ instructionType: TunaInstruction.OpenLendingPositionV2; } & ParsedOpenLendingPositionV2Instruction) | ({ instructionType: TunaInstruction.OpenTunaLpPositionFusion; } & ParsedOpenTunaLpPositionFusionInstruction) | ({ instructionType: TunaInstruction.OpenTunaLpPositionOrca; } & ParsedOpenTunaLpPositionOrcaInstruction) | ({ instructionType: TunaInstruction.OpenTunaSpotPosition; } & ParsedOpenTunaSpotPositionInstruction) | ({ instructionType: TunaInstruction.RebalanceTunaLpPositionFusion; } & ParsedRebalanceTunaLpPositionFusionInstruction) | ({ instructionType: TunaInstruction.RebalanceTunaLpPositionOrca; } & ParsedRebalanceTunaLpPositionOrcaInstruction) | ({ instructionType: TunaInstruction.RepayBadDebt; } & ParsedRepayBadDebtInstruction) | ({ instructionType: TunaInstruction.RepayTunaLpPositionDebt; } & ParsedRepayTunaLpPositionDebtInstruction) | ({ instructionType: TunaInstruction.ResetMarketBadDebt; } & ParsedResetMarketBadDebtInstruction) | ({ instructionType: TunaInstruction.ResetTunaSpotPosition; } & ParsedResetTunaSpotPositionInstruction) | ({ instructionType: TunaInstruction.SetAdminAuthority; } & ParsedSetAdminAuthorityInstruction) | ({ instructionType: TunaInstruction.SetDefaultLiquidationFeeRate; } & ParsedSetDefaultLiquidationFeeRateInstruction) | ({ instructionType: TunaInstruction.SetDefaultMaxPercentageOfLeftovers; } & ParsedSetDefaultMaxPercentageOfLeftoversInstruction) | ({ instructionType: TunaInstruction.SetDefaultOraclePriceDeviationThreshold; } & ParsedSetDefaultOraclePriceDeviationThresholdInstruction) | ({ instructionType: TunaInstruction.SetDefaultProtocolFeeRate; } & ParsedSetDefaultProtocolFeeRateInstruction) | ({ instructionType: TunaInstruction.SetDefaultRebalanceFeeRate; } & ParsedSetDefaultRebalanceFeeRateInstruction) | ({ instructionType: TunaInstruction.SetFeeRecipient; } & ParsedSetFeeRecipientInstruction) | ({ instructionType: TunaInstruction.SetLiquidatorAuthority; } & ParsedSetLiquidatorAuthorityInstruction) | ({ instructionType: TunaInstruction.SetOraclePriceUpdateAuthority; } & ParsedSetOraclePriceUpdateAuthorityInstruction) | ({ instructionType: TunaInstruction.SetOwnerAuthority; } & ParsedSetOwnerAuthorityInstruction) | ({ instructionType: TunaInstruction.SetSuspendedState; } & ParsedSetSuspendedStateInstruction) | ({ instructionType: TunaInstruction.SetTunaLpPositionFlags; } & ParsedSetTunaLpPositionFlagsInstruction) | ({ instructionType: TunaInstruction.SetTunaLpPositionLimitOrders; } & ParsedSetTunaLpPositionLimitOrdersInstruction) | ({ instructionType: TunaInstruction.SetTunaLpPositionRebalanceThreshold; } & ParsedSetTunaLpPositionRebalanceThresholdInstruction) | ({ instructionType: TunaInstruction.SetTunaSpotPositionLimitOrders; } & ParsedSetTunaSpotPositionLimitOrdersInstruction) | ({ instructionType: TunaInstruction.SocializeBadDebt; } & ParsedSocializeBadDebtInstruction) | ({ instructionType: TunaInstruction.UpdateMarket; } & ParsedUpdateMarketInstruction) | ({ instructionType: TunaInstruction.UpdateOraclePrice; } & ParsedUpdateOraclePriceInstruction) | ({ instructionType: TunaInstruction.UpdateVault; } & ParsedUpdateVaultInstruction) | ({ instructionType: TunaInstruction.Withdraw; } & ParsedWithdrawInstruction); /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const CLOSE_MARKET_DISCRIMINATOR: Uint8Array; declare function getCloseMarketDiscriminatorBytes(): ReadonlyUint8Array; type CloseMarketInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, ...TRemainingAccounts ]>; type CloseMarketInstructionData = { discriminator: ReadonlyUint8Array; }; type CloseMarketInstructionDataArgs = {}; declare function getCloseMarketInstructionDataEncoder(): Encoder; declare function getCloseMarketInstructionDataDecoder(): Decoder; declare function getCloseMarketInstructionDataCodec(): Codec; type CloseMarketInput = { authority: TransactionSigner; tunaConfig: Address; market: Address; vaultA: Address; vaultB: Address; }; declare function getCloseMarketInstruction(input: CloseMarketInput, config?: { programAddress?: TProgramAddress; }): CloseMarketInstruction; type ParsedCloseMarketInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; market: TAccountMetas[2]; vaultA: TAccountMetas[3]; vaultB: TAccountMetas[4]; }; data: CloseMarketInstructionData; }; declare function parseCloseMarketInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCloseMarketInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const CLOSE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR: Uint8Array; declare function getCloseTunaLpPositionFusionDiscriminatorBytes(): ReadonlyUint8Array; type CloseTunaLpPositionFusionInstruction = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionMint extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountFusionammProgram extends string | IAccountMeta = string, TAccountFusionPosition extends string | IAccountMeta = string, TAccountToken2022Program extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionMint extends string ? WritableAccount : TAccountTunaPositionMint, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountFusionammProgram extends string ? ReadonlyAccount : TAccountFusionammProgram, TAccountFusionPosition extends string ? WritableAccount : TAccountFusionPosition, TAccountToken2022Program extends string ? ReadonlyAccount : TAccountToken2022Program, ...TRemainingAccounts ]>; type CloseTunaLpPositionFusionInstructionData = { discriminator: ReadonlyUint8Array; }; type CloseTunaLpPositionFusionInstructionDataArgs = {}; declare function getCloseTunaLpPositionFusionInstructionDataEncoder(): Encoder; declare function getCloseTunaLpPositionFusionInstructionDataDecoder(): Decoder; declare function getCloseTunaLpPositionFusionInstructionDataCodec(): Codec; type CloseTunaLpPositionFusionInput = { /** * * TUNA accounts * */ authority: TransactionSigner; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; tunaPosition: Address; tunaPositionMint: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; /** * * Fusion accounts * */ fusionammProgram: Address; fusionPosition: Address; /** * * Other accounts * */ token2022Program: Address; }; declare function getCloseTunaLpPositionFusionInstruction(input: CloseTunaLpPositionFusionInput, config?: { programAddress?: TProgramAddress; }): CloseTunaLpPositionFusionInstruction; type ParsedCloseTunaLpPositionFusionInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; mintA: TAccountMetas[1]; mintB: TAccountMetas[2]; tokenProgramA: TAccountMetas[3]; tokenProgramB: TAccountMetas[4]; market: TAccountMetas[5]; tunaPosition: TAccountMetas[6]; tunaPositionMint: TAccountMetas[7]; tunaPositionAta: TAccountMetas[8]; tunaPositionAtaA: TAccountMetas[9]; tunaPositionAtaB: TAccountMetas[10]; /** * * Fusion accounts * */ fusionammProgram: TAccountMetas[11]; fusionPosition: TAccountMetas[12]; /** * * Other accounts * */ token2022Program: TAccountMetas[13]; }; data: CloseTunaLpPositionFusionInstructionData; }; declare function parseCloseTunaLpPositionFusionInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCloseTunaLpPositionFusionInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const CLOSE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR: Uint8Array; declare function getCloseTunaLpPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array; type CloseTunaLpPositionOrcaInstruction = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionMint extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountWhirlpoolProgram extends string | IAccountMeta = string, TAccountOrcaPosition extends string | IAccountMeta = string, TAccountToken2022Program extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionMint extends string ? WritableAccount : TAccountTunaPositionMint, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountWhirlpoolProgram extends string ? ReadonlyAccount : TAccountWhirlpoolProgram, TAccountOrcaPosition extends string ? WritableAccount : TAccountOrcaPosition, TAccountToken2022Program extends string ? ReadonlyAccount : TAccountToken2022Program, ...TRemainingAccounts ]>; type CloseTunaLpPositionOrcaInstructionData = { discriminator: ReadonlyUint8Array; }; type CloseTunaLpPositionOrcaInstructionDataArgs = {}; declare function getCloseTunaLpPositionOrcaInstructionDataEncoder(): Encoder; declare function getCloseTunaLpPositionOrcaInstructionDataDecoder(): Decoder; declare function getCloseTunaLpPositionOrcaInstructionDataCodec(): Codec; type CloseTunaLpPositionOrcaInput = { /** * * TUNA accounts * */ authority: TransactionSigner; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; tunaPosition: Address; tunaPositionMint: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; /** * * ORCA accounts * */ whirlpoolProgram: Address; orcaPosition: Address; /** * * Other accounts * */ token2022Program: Address; }; declare function getCloseTunaLpPositionOrcaInstruction(input: CloseTunaLpPositionOrcaInput, config?: { programAddress?: TProgramAddress; }): CloseTunaLpPositionOrcaInstruction; type ParsedCloseTunaLpPositionOrcaInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; mintA: TAccountMetas[1]; mintB: TAccountMetas[2]; tokenProgramA: TAccountMetas[3]; tokenProgramB: TAccountMetas[4]; market: TAccountMetas[5]; tunaPosition: TAccountMetas[6]; tunaPositionMint: TAccountMetas[7]; tunaPositionAta: TAccountMetas[8]; tunaPositionAtaA: TAccountMetas[9]; tunaPositionAtaB: TAccountMetas[10]; /** * * ORCA accounts * */ whirlpoolProgram: TAccountMetas[11]; orcaPosition: TAccountMetas[12]; /** * * Other accounts * */ token2022Program: TAccountMetas[13]; }; data: CloseTunaLpPositionOrcaInstructionData; }; declare function parseCloseTunaLpPositionOrcaInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCloseTunaLpPositionOrcaInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const CLOSE_TUNA_LP_POSITION_USER_VOLUME_ACCUMULATOR_ACCOUNT_DISCRIMINATOR: Uint8Array; declare function getCloseTunaLpPositionUserVolumeAccumulatorAccountDiscriminatorBytes(): ReadonlyUint8Array; type CloseTunaLpPositionUserVolumeAccumulatorAccountInstruction = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountUserVolumeAccumulator extends string | IAccountMeta = string, TAccountEventAuthority extends string | IAccountMeta = string, TAccountPumpAmmProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountUserVolumeAccumulator extends string ? WritableAccount : TAccountUserVolumeAccumulator, TAccountEventAuthority extends string ? ReadonlyAccount : TAccountEventAuthority, TAccountPumpAmmProgram extends string ? ReadonlyAccount : TAccountPumpAmmProgram, ...TRemainingAccounts ]>; type CloseTunaLpPositionUserVolumeAccumulatorAccountInstructionData = { discriminator: ReadonlyUint8Array; }; type CloseTunaLpPositionUserVolumeAccumulatorAccountInstructionDataArgs = {}; declare function getCloseTunaLpPositionUserVolumeAccumulatorAccountInstructionDataEncoder(): Encoder; declare function getCloseTunaLpPositionUserVolumeAccumulatorAccountInstructionDataDecoder(): Decoder; declare function getCloseTunaLpPositionUserVolumeAccumulatorAccountInstructionDataCodec(): Codec; type CloseTunaLpPositionUserVolumeAccumulatorAccountInput = { authority: TransactionSigner; tunaPosition: Address; userVolumeAccumulator: Address; eventAuthority: Address; pumpAmmProgram: Address; }; declare function getCloseTunaLpPositionUserVolumeAccumulatorAccountInstruction(input: CloseTunaLpPositionUserVolumeAccumulatorAccountInput, config?: { programAddress?: TProgramAddress; }): CloseTunaLpPositionUserVolumeAccumulatorAccountInstruction; type ParsedCloseTunaLpPositionUserVolumeAccumulatorAccountInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaPosition: TAccountMetas[1]; userVolumeAccumulator: TAccountMetas[2]; eventAuthority: TAccountMetas[3]; pumpAmmProgram: TAccountMetas[4]; }; data: CloseTunaLpPositionUserVolumeAccumulatorAccountInstructionData; }; declare function parseCloseTunaLpPositionUserVolumeAccumulatorAccountInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCloseTunaLpPositionUserVolumeAccumulatorAccountInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const CLOSE_TUNA_SPOT_POSITION_DISCRIMINATOR: Uint8Array; declare function getCloseTunaSpotPositionDiscriminatorBytes(): ReadonlyUint8Array; type CloseTunaSpotPositionInstruction = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, ...TRemainingAccounts ]>; type CloseTunaSpotPositionInstructionData = { discriminator: ReadonlyUint8Array; }; type CloseTunaSpotPositionInstructionDataArgs = {}; declare function getCloseTunaSpotPositionInstructionDataEncoder(): Encoder; declare function getCloseTunaSpotPositionInstructionDataDecoder(): Decoder; declare function getCloseTunaSpotPositionInstructionDataCodec(): Codec; type CloseTunaSpotPositionInput = { /** * * TUNA accounts * */ authority: TransactionSigner; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; tunaPosition: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; }; declare function getCloseTunaSpotPositionInstruction(input: CloseTunaSpotPositionInput, config?: { programAddress?: TProgramAddress; }): CloseTunaSpotPositionInstruction; type ParsedCloseTunaSpotPositionInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; mintA: TAccountMetas[1]; mintB: TAccountMetas[2]; tokenProgramA: TAccountMetas[3]; tokenProgramB: TAccountMetas[4]; market: TAccountMetas[5]; tunaPosition: TAccountMetas[6]; tunaPositionAtaA: TAccountMetas[7]; tunaPositionAtaB: TAccountMetas[8]; }; data: CloseTunaSpotPositionInstructionData; }; declare function parseCloseTunaSpotPositionInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCloseTunaSpotPositionInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const CLOSE_TUNA_SPOT_POSITION_USER_VOLUME_ACCUMULATOR_ACCOUNT_DISCRIMINATOR: Uint8Array; declare function getCloseTunaSpotPositionUserVolumeAccumulatorAccountDiscriminatorBytes(): ReadonlyUint8Array; type CloseTunaSpotPositionUserVolumeAccumulatorAccountInstruction = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountUserVolumeAccumulator extends string | IAccountMeta = string, TAccountEventAuthority extends string | IAccountMeta = string, TAccountPumpAmmProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountUserVolumeAccumulator extends string ? WritableAccount : TAccountUserVolumeAccumulator, TAccountEventAuthority extends string ? ReadonlyAccount : TAccountEventAuthority, TAccountPumpAmmProgram extends string ? ReadonlyAccount : TAccountPumpAmmProgram, ...TRemainingAccounts ]>; type CloseTunaSpotPositionUserVolumeAccumulatorAccountInstructionData = { discriminator: ReadonlyUint8Array; }; type CloseTunaSpotPositionUserVolumeAccumulatorAccountInstructionDataArgs = {}; declare function getCloseTunaSpotPositionUserVolumeAccumulatorAccountInstructionDataEncoder(): Encoder; declare function getCloseTunaSpotPositionUserVolumeAccumulatorAccountInstructionDataDecoder(): Decoder; declare function getCloseTunaSpotPositionUserVolumeAccumulatorAccountInstructionDataCodec(): Codec; type CloseTunaSpotPositionUserVolumeAccumulatorAccountInput = { authority: TransactionSigner; tunaPosition: Address; userVolumeAccumulator: Address; eventAuthority: Address; pumpAmmProgram: Address; }; declare function getCloseTunaSpotPositionUserVolumeAccumulatorAccountInstruction(input: CloseTunaSpotPositionUserVolumeAccumulatorAccountInput, config?: { programAddress?: TProgramAddress; }): CloseTunaSpotPositionUserVolumeAccumulatorAccountInstruction; type ParsedCloseTunaSpotPositionUserVolumeAccumulatorAccountInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaPosition: TAccountMetas[1]; userVolumeAccumulator: TAccountMetas[2]; eventAuthority: TAccountMetas[3]; pumpAmmProgram: TAccountMetas[4]; }; data: CloseTunaSpotPositionUserVolumeAccumulatorAccountInstructionData; }; declare function parseCloseTunaSpotPositionUserVolumeAccumulatorAccountInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCloseTunaSpotPositionUserVolumeAccumulatorAccountInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const COLLECT_AND_COMPOUND_FEES_FUSION_DISCRIMINATOR: Uint8Array; declare function getCollectAndCompoundFeesFusionDiscriminatorBytes(): ReadonlyUint8Array; type CollectAndCompoundFeesFusionInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountFusionammProgram extends string | IAccountMeta = string, TAccountFusionPool extends string | IAccountMeta = string, TAccountFusionPosition extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAta extends string ? ReadonlyAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountFusionammProgram extends string ? ReadonlyAccount : TAccountFusionammProgram, TAccountFusionPool extends string ? WritableAccount : TAccountFusionPool, TAccountFusionPosition extends string ? WritableAccount : TAccountFusionPosition, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type CollectAndCompoundFeesFusionInstructionData = { discriminator: ReadonlyUint8Array; useLeverage: boolean; remainingAccountsInfo: RemainingAccountsInfo; }; type CollectAndCompoundFeesFusionInstructionDataArgs = { useLeverage: boolean; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getCollectAndCompoundFeesFusionInstructionDataEncoder(): Encoder; declare function getCollectAndCompoundFeesFusionInstructionDataDecoder(): Decoder; declare function getCollectAndCompoundFeesFusionInstructionDataCodec(): Codec; type CollectAndCompoundFeesFusionInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * Fusion accounts * */ fusionammProgram: Address; fusionPool: Address; fusionPosition: Address; memoProgram: Address; /** * * Other accounts * */ systemProgram?: Address; useLeverage: CollectAndCompoundFeesFusionInstructionDataArgs['useLeverage']; remainingAccountsInfo: CollectAndCompoundFeesFusionInstructionDataArgs['remainingAccountsInfo']; }; declare function getCollectAndCompoundFeesFusionInstruction(input: CollectAndCompoundFeesFusionInput, config?: { programAddress?: TProgramAddress; }): CollectAndCompoundFeesFusionInstruction; type ParsedCollectAndCompoundFeesFusionInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; tokenProgramA: TAccountMetas[4]; tokenProgramB: TAccountMetas[5]; market: TAccountMetas[6]; vaultA: TAccountMetas[7]; vaultB: TAccountMetas[8]; vaultAAta: TAccountMetas[9]; vaultBAta: TAccountMetas[10]; tunaPosition: TAccountMetas[11]; tunaPositionAta: TAccountMetas[12]; tunaPositionAtaA: TAccountMetas[13]; tunaPositionAtaB: TAccountMetas[14]; feeRecipientAtaA: TAccountMetas[15]; feeRecipientAtaB: TAccountMetas[16]; oraclePriceUpdateA: TAccountMetas[17]; oraclePriceUpdateB: TAccountMetas[18]; /** * * Fusion accounts * */ fusionammProgram: TAccountMetas[19]; fusionPool: TAccountMetas[20]; fusionPosition: TAccountMetas[21]; memoProgram: TAccountMetas[22]; /** * * Other accounts * */ systemProgram: TAccountMetas[23]; }; data: CollectAndCompoundFeesFusionInstructionData; }; declare function parseCollectAndCompoundFeesFusionInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCollectAndCompoundFeesFusionInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const COLLECT_AND_COMPOUND_FEES_ORCA_DISCRIMINATOR: Uint8Array; declare function getCollectAndCompoundFeesOrcaDiscriminatorBytes(): ReadonlyUint8Array; type CollectAndCompoundFeesOrcaInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountWhirlpoolProgram extends string | IAccountMeta = string, TAccountWhirlpool extends string | IAccountMeta = string, TAccountOrcaPosition extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAta extends string ? ReadonlyAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountWhirlpoolProgram extends string ? ReadonlyAccount : TAccountWhirlpoolProgram, TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountOrcaPosition extends string ? WritableAccount : TAccountOrcaPosition, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type CollectAndCompoundFeesOrcaInstructionData = { discriminator: ReadonlyUint8Array; useLeverage: boolean; remainingAccountsInfo: RemainingAccountsInfo; }; type CollectAndCompoundFeesOrcaInstructionDataArgs = { useLeverage: boolean; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getCollectAndCompoundFeesOrcaInstructionDataEncoder(): Encoder; declare function getCollectAndCompoundFeesOrcaInstructionDataDecoder(): Decoder; declare function getCollectAndCompoundFeesOrcaInstructionDataCodec(): Codec; type CollectAndCompoundFeesOrcaInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * ORCA accounts * */ whirlpoolProgram: Address; whirlpool: Address; orcaPosition: Address; tokenProgramA: Address; tokenProgramB: Address; memoProgram: Address; /** * * Other accounts * */ systemProgram?: Address; useLeverage: CollectAndCompoundFeesOrcaInstructionDataArgs['useLeverage']; remainingAccountsInfo: CollectAndCompoundFeesOrcaInstructionDataArgs['remainingAccountsInfo']; }; declare function getCollectAndCompoundFeesOrcaInstruction(input: CollectAndCompoundFeesOrcaInput, config?: { programAddress?: TProgramAddress; }): CollectAndCompoundFeesOrcaInstruction; type ParsedCollectAndCompoundFeesOrcaInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; market: TAccountMetas[4]; vaultA: TAccountMetas[5]; vaultB: TAccountMetas[6]; vaultAAta: TAccountMetas[7]; vaultBAta: TAccountMetas[8]; tunaPosition: TAccountMetas[9]; tunaPositionAta: TAccountMetas[10]; tunaPositionAtaA: TAccountMetas[11]; tunaPositionAtaB: TAccountMetas[12]; feeRecipientAtaA: TAccountMetas[13]; feeRecipientAtaB: TAccountMetas[14]; oraclePriceUpdateA: TAccountMetas[15]; oraclePriceUpdateB: TAccountMetas[16]; /** * * ORCA accounts * */ whirlpoolProgram: TAccountMetas[17]; whirlpool: TAccountMetas[18]; orcaPosition: TAccountMetas[19]; tokenProgramA: TAccountMetas[20]; tokenProgramB: TAccountMetas[21]; memoProgram: TAccountMetas[22]; /** * * Other accounts * */ systemProgram: TAccountMetas[23]; }; data: CollectAndCompoundFeesOrcaInstructionData; }; declare function parseCollectAndCompoundFeesOrcaInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCollectAndCompoundFeesOrcaInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const COLLECT_FEES_FUSION_DISCRIMINATOR: Uint8Array; declare function getCollectFeesFusionDiscriminatorBytes(): ReadonlyUint8Array; type CollectFeesFusionInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountFusionammProgram extends string | IAccountMeta = string, TAccountFusionPool extends string | IAccountMeta = string, TAccountFusionPosition extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAta extends string ? ReadonlyAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountFusionammProgram extends string ? ReadonlyAccount : TAccountFusionammProgram, TAccountFusionPool extends string ? WritableAccount : TAccountFusionPool, TAccountFusionPosition extends string ? WritableAccount : TAccountFusionPosition, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; type CollectFeesFusionInstructionData = { discriminator: ReadonlyUint8Array; remainingAccountsInfo: RemainingAccountsInfo; }; type CollectFeesFusionInstructionDataArgs = { remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getCollectFeesFusionInstructionDataEncoder(): Encoder; declare function getCollectFeesFusionInstructionDataDecoder(): Decoder; declare function getCollectFeesFusionInstructionDataCodec(): Codec; type CollectFeesFusionInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; tunaPosition: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; tunaPositionOwnerAtaA: Address; tunaPositionOwnerAtaB: Address; /** * * Fusion accounts * */ fusionammProgram: Address; fusionPool: Address; fusionPosition: Address; memoProgram: Address; remainingAccountsInfo: CollectFeesFusionInstructionDataArgs['remainingAccountsInfo']; }; declare function getCollectFeesFusionInstruction(input: CollectFeesFusionInput, config?: { programAddress?: TProgramAddress; }): CollectFeesFusionInstruction; type ParsedCollectFeesFusionInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; tokenProgramA: TAccountMetas[4]; tokenProgramB: TAccountMetas[5]; tunaPosition: TAccountMetas[6]; tunaPositionAta: TAccountMetas[7]; tunaPositionAtaA: TAccountMetas[8]; tunaPositionAtaB: TAccountMetas[9]; tunaPositionOwnerAtaA: TAccountMetas[10]; tunaPositionOwnerAtaB: TAccountMetas[11]; /** * * Fusion accounts * */ fusionammProgram: TAccountMetas[12]; fusionPool: TAccountMetas[13]; fusionPosition: TAccountMetas[14]; memoProgram: TAccountMetas[15]; }; data: CollectFeesFusionInstructionData; }; declare function parseCollectFeesFusionInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCollectFeesFusionInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const COLLECT_FEES_ORCA_DISCRIMINATOR: Uint8Array; declare function getCollectFeesOrcaDiscriminatorBytes(): ReadonlyUint8Array; type CollectFeesOrcaInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountWhirlpoolProgram extends string | IAccountMeta = string, TAccountWhirlpool extends string | IAccountMeta = string, TAccountOrcaPosition extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAta extends string ? ReadonlyAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountWhirlpoolProgram extends string ? ReadonlyAccount : TAccountWhirlpoolProgram, TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountOrcaPosition extends string ? WritableAccount : TAccountOrcaPosition, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; type CollectFeesOrcaInstructionData = { discriminator: ReadonlyUint8Array; remainingAccountsInfo: RemainingAccountsInfo; }; type CollectFeesOrcaInstructionDataArgs = { remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getCollectFeesOrcaInstructionDataEncoder(): Encoder; declare function getCollectFeesOrcaInstructionDataDecoder(): Decoder; declare function getCollectFeesOrcaInstructionDataCodec(): Codec; type CollectFeesOrcaInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; tunaPosition: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; tunaPositionOwnerAtaA: Address; tunaPositionOwnerAtaB: Address; /** * * ORCA accounts * */ whirlpoolProgram: Address; whirlpool: Address; orcaPosition: Address; tokenProgramA: Address; tokenProgramB: Address; memoProgram: Address; remainingAccountsInfo: CollectFeesOrcaInstructionDataArgs['remainingAccountsInfo']; }; declare function getCollectFeesOrcaInstruction(input: CollectFeesOrcaInput, config?: { programAddress?: TProgramAddress; }): CollectFeesOrcaInstruction; type ParsedCollectFeesOrcaInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; tunaPosition: TAccountMetas[4]; tunaPositionAta: TAccountMetas[5]; tunaPositionAtaA: TAccountMetas[6]; tunaPositionAtaB: TAccountMetas[7]; tunaPositionOwnerAtaA: TAccountMetas[8]; tunaPositionOwnerAtaB: TAccountMetas[9]; /** * * ORCA accounts * */ whirlpoolProgram: TAccountMetas[10]; whirlpool: TAccountMetas[11]; orcaPosition: TAccountMetas[12]; tokenProgramA: TAccountMetas[13]; tokenProgramB: TAccountMetas[14]; memoProgram: TAccountMetas[15]; }; data: CollectFeesOrcaInstructionData; }; declare function parseCollectFeesOrcaInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCollectFeesOrcaInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const COLLECT_REWARD_ORCA_DISCRIMINATOR: Uint8Array; declare function getCollectRewardOrcaDiscriminatorBytes(): ReadonlyUint8Array; type CollectRewardOrcaInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountRewardMint extends string | IAccountMeta = string, TAccountRewardTokenProgram extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionOwnerRewardAta extends string | IAccountMeta = string, TAccountWhirlpoolProgram extends string | IAccountMeta = string, TAccountWhirlpool extends string | IAccountMeta = string, TAccountOrcaPosition extends string | IAccountMeta = string, TAccountRewardVault extends string | IAccountMeta = string, TAccountTickArrayLower extends string | IAccountMeta = string, TAccountTickArrayUpper extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountRewardMint extends string ? ReadonlyAccount : TAccountRewardMint, TAccountRewardTokenProgram extends string ? ReadonlyAccount : TAccountRewardTokenProgram, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAta extends string ? ReadonlyAccount : TAccountTunaPositionAta, TAccountTunaPositionOwnerRewardAta extends string ? WritableAccount : TAccountTunaPositionOwnerRewardAta, TAccountWhirlpoolProgram extends string ? ReadonlyAccount : TAccountWhirlpoolProgram, TAccountWhirlpool extends string ? ReadonlyAccount : TAccountWhirlpool, TAccountOrcaPosition extends string ? WritableAccount : TAccountOrcaPosition, TAccountRewardVault extends string ? WritableAccount : TAccountRewardVault, TAccountTickArrayLower extends string ? WritableAccount : TAccountTickArrayLower, TAccountTickArrayUpper extends string ? WritableAccount : TAccountTickArrayUpper, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; type CollectRewardOrcaInstructionData = { discriminator: ReadonlyUint8Array; rewardIndex: number; }; type CollectRewardOrcaInstructionDataArgs = { rewardIndex: number; }; declare function getCollectRewardOrcaInstructionDataEncoder(): Encoder; declare function getCollectRewardOrcaInstructionDataDecoder(): Decoder; declare function getCollectRewardOrcaInstructionDataCodec(): Codec; type CollectRewardOrcaInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; rewardMint: Address; rewardTokenProgram: Address; tunaPosition: Address; tunaPositionAta: Address; tunaPositionOwnerRewardAta: Address; /** * * ORCA accounts * */ whirlpoolProgram: Address; whirlpool: Address; orcaPosition: Address; rewardVault: Address; tickArrayLower: Address; tickArrayUpper: Address; memoProgram: Address; rewardIndex: CollectRewardOrcaInstructionDataArgs['rewardIndex']; }; declare function getCollectRewardOrcaInstruction(input: CollectRewardOrcaInput, config?: { programAddress?: TProgramAddress; }): CollectRewardOrcaInstruction; type ParsedCollectRewardOrcaInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; rewardMint: TAccountMetas[2]; rewardTokenProgram: TAccountMetas[3]; tunaPosition: TAccountMetas[4]; tunaPositionAta: TAccountMetas[5]; tunaPositionOwnerRewardAta: TAccountMetas[6]; /** * * ORCA accounts * */ whirlpoolProgram: TAccountMetas[7]; whirlpool: TAccountMetas[8]; orcaPosition: TAccountMetas[9]; rewardVault: TAccountMetas[10]; tickArrayLower: TAccountMetas[11]; tickArrayUpper: TAccountMetas[12]; memoProgram: TAccountMetas[13]; }; data: CollectRewardOrcaInstructionData; }; declare function parseCollectRewardOrcaInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCollectRewardOrcaInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const CREATE_MARKET_DISCRIMINATOR: Uint8Array; declare function getCreateMarketDiscriminatorBytes(): ReadonlyUint8Array; type CreateMarketInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountPool extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? ReadonlyAccount : TAccountVaultA, TAccountVaultB extends string ? ReadonlyAccount : TAccountVaultB, TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type CreateMarketInstructionData = { discriminator: ReadonlyUint8Array; addressLookupTable: Address; maxLeverage: number; protocolFee: number; protocolFeeOnCollateral: number; liquidationFee: number; liquidationThreshold: number; oraclePriceDeviationThreshold: number; disabled: boolean; borrowLimitA: bigint; borrowLimitB: bigint; unused: number; rebalanceProtocolFee: number; spotPositionSizeLimitA: bigint; spotPositionSizeLimitB: bigint; }; type CreateMarketInstructionDataArgs = { addressLookupTable: Address; maxLeverage: number; protocolFee: number; protocolFeeOnCollateral: number; liquidationFee: number; liquidationThreshold: number; oraclePriceDeviationThreshold: number; disabled: boolean; borrowLimitA: number | bigint; borrowLimitB: number | bigint; unused: number; rebalanceProtocolFee: number; spotPositionSizeLimitA: number | bigint; spotPositionSizeLimitB: number | bigint; }; declare function getCreateMarketInstructionDataEncoder(): Encoder; declare function getCreateMarketInstructionDataDecoder(): Decoder; declare function getCreateMarketInstructionDataCodec(): Codec; type CreateMarketInput = { authority: TransactionSigner; tunaConfig: Address; market: Address; vaultA: Address; vaultB: Address; pool: Address; systemProgram?: Address; addressLookupTable: CreateMarketInstructionDataArgs['addressLookupTable']; maxLeverage: CreateMarketInstructionDataArgs['maxLeverage']; protocolFee: CreateMarketInstructionDataArgs['protocolFee']; protocolFeeOnCollateral: CreateMarketInstructionDataArgs['protocolFeeOnCollateral']; liquidationFee: CreateMarketInstructionDataArgs['liquidationFee']; liquidationThreshold: CreateMarketInstructionDataArgs['liquidationThreshold']; oraclePriceDeviationThreshold: CreateMarketInstructionDataArgs['oraclePriceDeviationThreshold']; disabled: CreateMarketInstructionDataArgs['disabled']; borrowLimitA: CreateMarketInstructionDataArgs['borrowLimitA']; borrowLimitB: CreateMarketInstructionDataArgs['borrowLimitB']; unused: CreateMarketInstructionDataArgs['unused']; rebalanceProtocolFee: CreateMarketInstructionDataArgs['rebalanceProtocolFee']; spotPositionSizeLimitA: CreateMarketInstructionDataArgs['spotPositionSizeLimitA']; spotPositionSizeLimitB: CreateMarketInstructionDataArgs['spotPositionSizeLimitB']; }; declare function getCreateMarketInstruction(input: CreateMarketInput, config?: { programAddress?: TProgramAddress; }): CreateMarketInstruction; type ParsedCreateMarketInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; market: TAccountMetas[2]; vaultA: TAccountMetas[3]; vaultB: TAccountMetas[4]; pool: TAccountMetas[5]; systemProgram: TAccountMetas[6]; }; data: CreateMarketInstructionData; }; declare function parseCreateMarketInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCreateMarketInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const CREATE_MARKET_PERMISSIONLESS_DISCRIMINATOR: Uint8Array; declare function getCreateMarketPermissionlessDiscriminatorBytes(): ReadonlyUint8Array; type CreateMarketPermissionlessInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountPool extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? ReadonlyAccount : TAccountVaultA, TAccountVaultB extends string ? ReadonlyAccount : TAccountVaultB, TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type CreateMarketPermissionlessInstructionData = { discriminator: ReadonlyUint8Array; addressLookupTable: Address; }; type CreateMarketPermissionlessInstructionDataArgs = { addressLookupTable: Address; }; declare function getCreateMarketPermissionlessInstructionDataEncoder(): Encoder; declare function getCreateMarketPermissionlessInstructionDataDecoder(): Decoder; declare function getCreateMarketPermissionlessInstructionDataCodec(): Codec; type CreateMarketPermissionlessInput = { authority: TransactionSigner; tunaConfig: Address; market: Address; vaultA: Address; vaultB: Address; pool: Address; systemProgram?: Address; addressLookupTable: CreateMarketPermissionlessInstructionDataArgs['addressLookupTable']; }; declare function getCreateMarketPermissionlessInstruction(input: CreateMarketPermissionlessInput, config?: { programAddress?: TProgramAddress; }): CreateMarketPermissionlessInstruction; type ParsedCreateMarketPermissionlessInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; market: TAccountMetas[2]; vaultA: TAccountMetas[3]; vaultB: TAccountMetas[4]; pool: TAccountMetas[5]; systemProgram: TAccountMetas[6]; }; data: CreateMarketPermissionlessInstructionData; }; declare function parseCreateMarketPermissionlessInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCreateMarketPermissionlessInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const CREATE_PRICE_UPDATE_DISCRIMINATOR: Uint8Array; declare function getCreatePriceUpdateDiscriminatorBytes(): ReadonlyUint8Array; type CreatePriceUpdateInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMint extends string | IAccountMeta = string, TAccountPriceUpdate extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountPriceUpdate extends string ? WritableAccount : TAccountPriceUpdate, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type CreatePriceUpdateInstructionData = { discriminator: ReadonlyUint8Array; }; type CreatePriceUpdateInstructionDataArgs = {}; declare function getCreatePriceUpdateInstructionDataEncoder(): Encoder; declare function getCreatePriceUpdateInstructionDataDecoder(): Decoder; declare function getCreatePriceUpdateInstructionDataCodec(): Codec; type CreatePriceUpdateInput = { authority: TransactionSigner; tunaConfig: Address; mint: Address; priceUpdate: Address; systemProgram?: Address; }; declare function getCreatePriceUpdateInstruction(input: CreatePriceUpdateInput, config?: { programAddress?: TProgramAddress; }): CreatePriceUpdateInstruction; type ParsedCreatePriceUpdateInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mint: TAccountMetas[2]; priceUpdate: TAccountMetas[3]; systemProgram: TAccountMetas[4]; }; data: CreatePriceUpdateInstructionData; }; declare function parseCreatePriceUpdateInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCreatePriceUpdateInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const CREATE_REFERRAL_DISCRIMINATOR: Uint8Array; declare function getCreateReferralDiscriminatorBytes(): ReadonlyUint8Array; type CreateReferralInstruction = string, TAccountReferral extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountReferral extends string ? WritableAccount : TAccountReferral, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type CreateReferralInstructionData = { discriminator: ReadonlyUint8Array; referralId: number; }; type CreateReferralInstructionDataArgs = { referralId: number; }; declare function getCreateReferralInstructionDataEncoder(): Encoder; declare function getCreateReferralInstructionDataDecoder(): Decoder; declare function getCreateReferralInstructionDataCodec(): Codec; type CreateReferralInput = { authority: TransactionSigner; referral: Address; systemProgram?: Address; referralId: CreateReferralInstructionDataArgs['referralId']; }; declare function getCreateReferralInstruction(input: CreateReferralInput, config?: { programAddress?: TProgramAddress; }): CreateReferralInstruction; type ParsedCreateReferralInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; referral: TAccountMetas[1]; systemProgram: TAccountMetas[2]; }; data: CreateReferralInstructionData; }; declare function parseCreateReferralInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCreateReferralInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const CREATE_TUNA_CONFIG_DISCRIMINATOR: Uint8Array; declare function getCreateTunaConfigDiscriminatorBytes(): ReadonlyUint8Array; type CreateTunaConfigInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? WritableAccount : TAccountTunaConfig, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountRent extends string ? ReadonlyAccount : TAccountRent, ...TRemainingAccounts ]>; type CreateTunaConfigInstructionData = { discriminator: ReadonlyUint8Array; ownerAuthority: Address; adminAuthority: Address; liquidatorAuthority: Address; oraclePriceUpdateAuthority: Address; feeRecipient: Address; }; type CreateTunaConfigInstructionDataArgs = { ownerAuthority: Address; adminAuthority: Address; liquidatorAuthority: Address; oraclePriceUpdateAuthority: Address; feeRecipient: Address; }; declare function getCreateTunaConfigInstructionDataEncoder(): Encoder; declare function getCreateTunaConfigInstructionDataDecoder(): Decoder; declare function getCreateTunaConfigInstructionDataCodec(): Codec; type CreateTunaConfigInput = { authority: TransactionSigner; tunaConfig: Address; systemProgram?: Address; rent?: Address; ownerAuthority: CreateTunaConfigInstructionDataArgs['ownerAuthority']; adminAuthority: CreateTunaConfigInstructionDataArgs['adminAuthority']; liquidatorAuthority: CreateTunaConfigInstructionDataArgs['liquidatorAuthority']; oraclePriceUpdateAuthority: CreateTunaConfigInstructionDataArgs['oraclePriceUpdateAuthority']; feeRecipient: CreateTunaConfigInstructionDataArgs['feeRecipient']; }; declare function getCreateTunaConfigInstruction(input: CreateTunaConfigInput, config?: { programAddress?: TProgramAddress; }): CreateTunaConfigInstruction; type ParsedCreateTunaConfigInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; systemProgram: TAccountMetas[2]; rent: TAccountMetas[3]; }; data: CreateTunaConfigInstructionData; }; declare function parseCreateTunaConfigInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCreateTunaConfigInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const CREATE_VAULT_DISCRIMINATOR: Uint8Array; declare function getCreateVaultDiscriminatorBytes(): ReadonlyUint8Array; type CreateVaultInstruction = string, TAccountMint extends string | IAccountMeta = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountVault extends string | IAccountMeta = string, TAccountVaultAta extends string | IAccountMeta = string, TAccountTokenProgram extends string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountVault extends string ? WritableAccount : TAccountVault, TAccountVaultAta extends string ? WritableAccount : TAccountVaultAta, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type CreateVaultInstructionData = { discriminator: ReadonlyUint8Array; interestRate: bigint; supplyLimit: bigint; oraclePriceUpdate: Address; pythOracleFeedId: Address; allowUnsafeTokenExtensions: boolean; }; type CreateVaultInstructionDataArgs = { interestRate: number | bigint; supplyLimit: number | bigint; oraclePriceUpdate: Address; pythOracleFeedId: Address; allowUnsafeTokenExtensions: boolean; }; declare function getCreateVaultInstructionDataEncoder(): Encoder; declare function getCreateVaultInstructionDataDecoder(): Decoder; declare function getCreateVaultInstructionDataCodec(): Codec; type CreateVaultInput = { authority: TransactionSigner; mint: Address; tunaConfig: Address; vault: Address; vaultAta: Address; tokenProgram?: Address; systemProgram?: Address; interestRate: CreateVaultInstructionDataArgs['interestRate']; supplyLimit: CreateVaultInstructionDataArgs['supplyLimit']; oraclePriceUpdate: CreateVaultInstructionDataArgs['oraclePriceUpdate']; pythOracleFeedId: CreateVaultInstructionDataArgs['pythOracleFeedId']; allowUnsafeTokenExtensions: CreateVaultInstructionDataArgs['allowUnsafeTokenExtensions']; }; declare function getCreateVaultInstruction(input: CreateVaultInput, config?: { programAddress?: TProgramAddress; }): CreateVaultInstruction; type ParsedCreateVaultInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; mint: TAccountMetas[1]; tunaConfig: TAccountMetas[2]; vault: TAccountMetas[3]; vaultAta: TAccountMetas[4]; tokenProgram: TAccountMetas[5]; systemProgram: TAccountMetas[6]; }; data: CreateVaultInstructionData; }; declare function parseCreateVaultInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCreateVaultInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const CREATE_VAULT_PERMISSIONLESS_DISCRIMINATOR: Uint8Array; declare function getCreateVaultPermissionlessDiscriminatorBytes(): ReadonlyUint8Array; type CreateVaultPermissionlessInstruction = string, TAccountMint extends string | IAccountMeta = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountVault extends string | IAccountMeta = string, TAccountVaultAta extends string | IAccountMeta = string, TAccountTokenProgram extends string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountVault extends string ? WritableAccount : TAccountVault, TAccountVaultAta extends string ? WritableAccount : TAccountVaultAta, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type CreateVaultPermissionlessInstructionData = { discriminator: ReadonlyUint8Array; market: Address; interestRate: bigint; }; type CreateVaultPermissionlessInstructionDataArgs = { market: Address; interestRate: number | bigint; }; declare function getCreateVaultPermissionlessInstructionDataEncoder(): Encoder; declare function getCreateVaultPermissionlessInstructionDataDecoder(): Decoder; declare function getCreateVaultPermissionlessInstructionDataCodec(): Codec; type CreateVaultPermissionlessInput = { authority: TransactionSigner; mint: Address; tunaConfig: Address; vault: Address; vaultAta: Address; tokenProgram?: Address; systemProgram?: Address; market: CreateVaultPermissionlessInstructionDataArgs['market']; interestRate: CreateVaultPermissionlessInstructionDataArgs['interestRate']; }; declare function getCreateVaultPermissionlessInstruction(input: CreateVaultPermissionlessInput, config?: { programAddress?: TProgramAddress; }): CreateVaultPermissionlessInstruction; type ParsedCreateVaultPermissionlessInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; mint: TAccountMetas[1]; tunaConfig: TAccountMetas[2]; vault: TAccountMetas[3]; vaultAta: TAccountMetas[4]; tokenProgram: TAccountMetas[5]; systemProgram: TAccountMetas[6]; }; data: CreateVaultPermissionlessInstructionData; }; declare function parseCreateVaultPermissionlessInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedCreateVaultPermissionlessInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const DECREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR: Uint8Array; declare function getDecreaseTunaLpPositionFusionDiscriminatorBytes(): ReadonlyUint8Array; type DecreaseTunaLpPositionFusionInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountFusionammProgram extends string | IAccountMeta = string, TAccountFusionPool extends string | IAccountMeta = string, TAccountFusionPosition extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountFusionammProgram extends string ? ReadonlyAccount : TAccountFusionammProgram, TAccountFusionPool extends string ? WritableAccount : TAccountFusionPool, TAccountFusionPosition extends string ? WritableAccount : TAccountFusionPosition, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; type DecreaseTunaLpPositionFusionInstructionData = { discriminator: ReadonlyUint8Array; decreasePercent: number; swapToToken: Option; minRemovedAmountA: bigint; minRemovedAmountB: bigint; unused: number; remainingAccountsInfo: RemainingAccountsInfo; }; type DecreaseTunaLpPositionFusionInstructionDataArgs = { decreasePercent: number; swapToToken: OptionOrNullable; minRemovedAmountA: number | bigint; minRemovedAmountB: number | bigint; unused: number; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getDecreaseTunaLpPositionFusionInstructionDataEncoder(): Encoder; declare function getDecreaseTunaLpPositionFusionInstructionDataDecoder(): Decoder; declare function getDecreaseTunaLpPositionFusionInstructionDataCodec(): Codec; type DecreaseTunaLpPositionFusionInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; market: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; tunaPositionOwnerAtaA: Address; tunaPositionOwnerAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * Fusion accounts * */ fusionammProgram: Address; fusionPool: Address; fusionPosition: Address; memoProgram: Address; decreasePercent: DecreaseTunaLpPositionFusionInstructionDataArgs['decreasePercent']; swapToToken: DecreaseTunaLpPositionFusionInstructionDataArgs['swapToToken']; minRemovedAmountA: DecreaseTunaLpPositionFusionInstructionDataArgs['minRemovedAmountA']; minRemovedAmountB: DecreaseTunaLpPositionFusionInstructionDataArgs['minRemovedAmountB']; unused: DecreaseTunaLpPositionFusionInstructionDataArgs['unused']; remainingAccountsInfo: DecreaseTunaLpPositionFusionInstructionDataArgs['remainingAccountsInfo']; }; declare function getDecreaseTunaLpPositionFusionInstruction(input: DecreaseTunaLpPositionFusionInput, config?: { programAddress?: TProgramAddress; }): DecreaseTunaLpPositionFusionInstruction; type ParsedDecreaseTunaLpPositionFusionInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; market: TAccountMetas[2]; mintA: TAccountMetas[3]; mintB: TAccountMetas[4]; tokenProgramA: TAccountMetas[5]; tokenProgramB: TAccountMetas[6]; vaultA: TAccountMetas[7]; vaultB: TAccountMetas[8]; vaultAAta: TAccountMetas[9]; vaultBAta: TAccountMetas[10]; tunaPosition: TAccountMetas[11]; tunaPositionAta: TAccountMetas[12]; tunaPositionAtaA: TAccountMetas[13]; tunaPositionAtaB: TAccountMetas[14]; tunaPositionOwnerAtaA: TAccountMetas[15]; tunaPositionOwnerAtaB: TAccountMetas[16]; oraclePriceUpdateA: TAccountMetas[17]; oraclePriceUpdateB: TAccountMetas[18]; /** * * Fusion accounts * */ fusionammProgram: TAccountMetas[19]; fusionPool: TAccountMetas[20]; fusionPosition: TAccountMetas[21]; memoProgram: TAccountMetas[22]; }; data: DecreaseTunaLpPositionFusionInstructionData; }; declare function parseDecreaseTunaLpPositionFusionInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedDecreaseTunaLpPositionFusionInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const DECREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR: Uint8Array; declare function getDecreaseTunaLpPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array; type DecreaseTunaLpPositionOrcaInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountWhirlpoolProgram extends string | IAccountMeta = string, TAccountWhirlpool extends string | IAccountMeta = string, TAccountOrcaPosition extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountWhirlpoolProgram extends string ? ReadonlyAccount : TAccountWhirlpoolProgram, TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountOrcaPosition extends string ? WritableAccount : TAccountOrcaPosition, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; type DecreaseTunaLpPositionOrcaInstructionData = { discriminator: ReadonlyUint8Array; decreasePercent: number; swapToToken: Option; minRemovedAmountA: bigint; minRemovedAmountB: bigint; unused: number; remainingAccountsInfo: RemainingAccountsInfo; }; type DecreaseTunaLpPositionOrcaInstructionDataArgs = { decreasePercent: number; swapToToken: OptionOrNullable; minRemovedAmountA: number | bigint; minRemovedAmountB: number | bigint; unused: number; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getDecreaseTunaLpPositionOrcaInstructionDataEncoder(): Encoder; declare function getDecreaseTunaLpPositionOrcaInstructionDataDecoder(): Decoder; declare function getDecreaseTunaLpPositionOrcaInstructionDataCodec(): Codec; type DecreaseTunaLpPositionOrcaInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; market: Address; mintA: Address; mintB: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; tunaPositionOwnerAtaA: Address; tunaPositionOwnerAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * ORCA accounts * */ whirlpoolProgram: Address; whirlpool: Address; orcaPosition: Address; tokenProgramA: Address; tokenProgramB: Address; memoProgram: Address; decreasePercent: DecreaseTunaLpPositionOrcaInstructionDataArgs['decreasePercent']; swapToToken: DecreaseTunaLpPositionOrcaInstructionDataArgs['swapToToken']; minRemovedAmountA: DecreaseTunaLpPositionOrcaInstructionDataArgs['minRemovedAmountA']; minRemovedAmountB: DecreaseTunaLpPositionOrcaInstructionDataArgs['minRemovedAmountB']; unused: DecreaseTunaLpPositionOrcaInstructionDataArgs['unused']; remainingAccountsInfo: DecreaseTunaLpPositionOrcaInstructionDataArgs['remainingAccountsInfo']; }; declare function getDecreaseTunaLpPositionOrcaInstruction(input: DecreaseTunaLpPositionOrcaInput, config?: { programAddress?: TProgramAddress; }): DecreaseTunaLpPositionOrcaInstruction; type ParsedDecreaseTunaLpPositionOrcaInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; market: TAccountMetas[2]; mintA: TAccountMetas[3]; mintB: TAccountMetas[4]; vaultA: TAccountMetas[5]; vaultB: TAccountMetas[6]; vaultAAta: TAccountMetas[7]; vaultBAta: TAccountMetas[8]; tunaPosition: TAccountMetas[9]; tunaPositionAta: TAccountMetas[10]; tunaPositionAtaA: TAccountMetas[11]; tunaPositionAtaB: TAccountMetas[12]; tunaPositionOwnerAtaA: TAccountMetas[13]; tunaPositionOwnerAtaB: TAccountMetas[14]; oraclePriceUpdateA: TAccountMetas[15]; oraclePriceUpdateB: TAccountMetas[16]; /** * * ORCA accounts * */ whirlpoolProgram: TAccountMetas[17]; whirlpool: TAccountMetas[18]; orcaPosition: TAccountMetas[19]; tokenProgramA: TAccountMetas[20]; tokenProgramB: TAccountMetas[21]; memoProgram: TAccountMetas[22]; }; data: DecreaseTunaLpPositionOrcaInstructionData; }; declare function parseDecreaseTunaLpPositionOrcaInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedDecreaseTunaLpPositionOrcaInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const DEPOSIT_DISCRIMINATOR: Uint8Array; declare function getDepositDiscriminatorBytes(): ReadonlyUint8Array; type DepositInstruction = string, TAccountMint extends string | IAccountMeta = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountLendingPosition extends string | IAccountMeta = string, TAccountVault extends string | IAccountMeta = string, TAccountVaultAta extends string | IAccountMeta = string, TAccountAuthorityAta extends string | IAccountMeta = string, TAccountTokenProgram extends string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountMemoProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountLendingPosition extends string ? WritableAccount : TAccountLendingPosition, TAccountVault extends string ? WritableAccount : TAccountVault, TAccountVaultAta extends string ? WritableAccount : TAccountVaultAta, TAccountAuthorityAta extends string ? WritableAccount : TAccountAuthorityAta, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; type DepositInstructionData = { discriminator: ReadonlyUint8Array; amount: bigint; }; type DepositInstructionDataArgs = { amount: number | bigint; }; declare function getDepositInstructionDataEncoder(): Encoder; declare function getDepositInstructionDataDecoder(): Decoder; declare function getDepositInstructionDataCodec(): Codec; type DepositInput = { authority: TransactionSigner; mint: Address; tunaConfig: Address; lendingPosition: Address; vault: Address; vaultAta: Address; authorityAta: Address; tokenProgram?: Address; memoProgram: Address; amount: DepositInstructionDataArgs['amount']; }; declare function getDepositInstruction(input: DepositInput, config?: { programAddress?: TProgramAddress; }): DepositInstruction; type ParsedDepositInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; mint: TAccountMetas[1]; tunaConfig: TAccountMetas[2]; lendingPosition: TAccountMetas[3]; vault: TAccountMetas[4]; vaultAta: TAccountMetas[5]; authorityAta: TAccountMetas[6]; tokenProgram: TAccountMetas[7]; memoProgram: TAccountMetas[8]; }; data: DepositInstructionData; }; declare function parseDepositInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedDepositInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR: Uint8Array; declare function getIncreaseTunaLpPositionFusionDiscriminatorBytes(): ReadonlyUint8Array; type IncreaseTunaLpPositionFusionInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountFusionammProgram extends string | IAccountMeta = string, TAccountFusionPool extends string | IAccountMeta = string, TAccountFusionPosition extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountFusionammProgram extends string ? ReadonlyAccount : TAccountFusionammProgram, TAccountFusionPool extends string ? WritableAccount : TAccountFusionPool, TAccountFusionPosition extends string ? WritableAccount : TAccountFusionPosition, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type IncreaseTunaLpPositionFusionInstructionData = { discriminator: ReadonlyUint8Array; collateralA: bigint; collateralB: bigint; borrowA: bigint; borrowB: bigint; minAddedAmountA: bigint; minAddedAmountB: bigint; unused: number; remainingAccountsInfo: RemainingAccountsInfo; }; type IncreaseTunaLpPositionFusionInstructionDataArgs = { collateralA: number | bigint; collateralB: number | bigint; borrowA: number | bigint; borrowB: number | bigint; minAddedAmountA: number | bigint; minAddedAmountB: number | bigint; unused: number; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getIncreaseTunaLpPositionFusionInstructionDataEncoder(): Encoder; declare function getIncreaseTunaLpPositionFusionInstructionDataDecoder(): Decoder; declare function getIncreaseTunaLpPositionFusionInstructionDataCodec(): Codec; type IncreaseTunaLpPositionFusionInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; tunaPositionOwnerAtaA: Address; tunaPositionOwnerAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * Fusion accounts * */ fusionammProgram: Address; fusionPool: Address; fusionPosition: Address; memoProgram: Address; /** * * Other accounts * */ systemProgram?: Address; collateralA: IncreaseTunaLpPositionFusionInstructionDataArgs['collateralA']; collateralB: IncreaseTunaLpPositionFusionInstructionDataArgs['collateralB']; borrowA: IncreaseTunaLpPositionFusionInstructionDataArgs['borrowA']; borrowB: IncreaseTunaLpPositionFusionInstructionDataArgs['borrowB']; minAddedAmountA: IncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountA']; minAddedAmountB: IncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountB']; unused: IncreaseTunaLpPositionFusionInstructionDataArgs['unused']; remainingAccountsInfo: IncreaseTunaLpPositionFusionInstructionDataArgs['remainingAccountsInfo']; }; declare function getIncreaseTunaLpPositionFusionInstruction(input: IncreaseTunaLpPositionFusionInput, config?: { programAddress?: TProgramAddress; }): IncreaseTunaLpPositionFusionInstruction; type ParsedIncreaseTunaLpPositionFusionInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; tokenProgramA: TAccountMetas[4]; tokenProgramB: TAccountMetas[5]; market: TAccountMetas[6]; vaultA: TAccountMetas[7]; vaultB: TAccountMetas[8]; vaultAAta: TAccountMetas[9]; vaultBAta: TAccountMetas[10]; tunaPosition: TAccountMetas[11]; tunaPositionAta: TAccountMetas[12]; tunaPositionAtaA: TAccountMetas[13]; tunaPositionAtaB: TAccountMetas[14]; tunaPositionOwnerAtaA: TAccountMetas[15]; tunaPositionOwnerAtaB: TAccountMetas[16]; feeRecipientAtaA: TAccountMetas[17]; feeRecipientAtaB: TAccountMetas[18]; oraclePriceUpdateA: TAccountMetas[19]; oraclePriceUpdateB: TAccountMetas[20]; /** * * Fusion accounts * */ fusionammProgram: TAccountMetas[21]; fusionPool: TAccountMetas[22]; fusionPosition: TAccountMetas[23]; memoProgram: TAccountMetas[24]; /** * * Other accounts * */ systemProgram: TAccountMetas[25]; }; data: IncreaseTunaLpPositionFusionInstructionData; }; declare function parseIncreaseTunaLpPositionFusionInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedIncreaseTunaLpPositionFusionInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR: Uint8Array; declare function getIncreaseTunaLpPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array; type IncreaseTunaLpPositionOrcaInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountWhirlpoolProgram extends string | IAccountMeta = string, TAccountWhirlpool extends string | IAccountMeta = string, TAccountOrcaPosition extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountWhirlpoolProgram extends string ? ReadonlyAccount : TAccountWhirlpoolProgram, TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountOrcaPosition extends string ? WritableAccount : TAccountOrcaPosition, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type IncreaseTunaLpPositionOrcaInstructionData = { discriminator: ReadonlyUint8Array; collateralA: bigint; collateralB: bigint; borrowA: bigint; borrowB: bigint; minAddedAmountA: bigint; minAddedAmountB: bigint; unused: number; remainingAccountsInfo: RemainingAccountsInfo; }; type IncreaseTunaLpPositionOrcaInstructionDataArgs = { collateralA: number | bigint; collateralB: number | bigint; borrowA: number | bigint; borrowB: number | bigint; minAddedAmountA: number | bigint; minAddedAmountB: number | bigint; unused: number; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getIncreaseTunaLpPositionOrcaInstructionDataEncoder(): Encoder; declare function getIncreaseTunaLpPositionOrcaInstructionDataDecoder(): Decoder; declare function getIncreaseTunaLpPositionOrcaInstructionDataCodec(): Codec; type IncreaseTunaLpPositionOrcaInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; tunaPositionOwnerAtaA: Address; tunaPositionOwnerAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * ORCA accounts * */ whirlpoolProgram: Address; whirlpool: Address; orcaPosition: Address; tokenProgramA: Address; tokenProgramB: Address; memoProgram: Address; /** * * Other accounts * */ systemProgram?: Address; collateralA: IncreaseTunaLpPositionOrcaInstructionDataArgs['collateralA']; collateralB: IncreaseTunaLpPositionOrcaInstructionDataArgs['collateralB']; borrowA: IncreaseTunaLpPositionOrcaInstructionDataArgs['borrowA']; borrowB: IncreaseTunaLpPositionOrcaInstructionDataArgs['borrowB']; minAddedAmountA: IncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountA']; minAddedAmountB: IncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountB']; unused: IncreaseTunaLpPositionOrcaInstructionDataArgs['unused']; remainingAccountsInfo: IncreaseTunaLpPositionOrcaInstructionDataArgs['remainingAccountsInfo']; }; declare function getIncreaseTunaLpPositionOrcaInstruction(input: IncreaseTunaLpPositionOrcaInput, config?: { programAddress?: TProgramAddress; }): IncreaseTunaLpPositionOrcaInstruction; type ParsedIncreaseTunaLpPositionOrcaInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; market: TAccountMetas[4]; vaultA: TAccountMetas[5]; vaultB: TAccountMetas[6]; vaultAAta: TAccountMetas[7]; vaultBAta: TAccountMetas[8]; tunaPosition: TAccountMetas[9]; tunaPositionAta: TAccountMetas[10]; tunaPositionAtaA: TAccountMetas[11]; tunaPositionAtaB: TAccountMetas[12]; tunaPositionOwnerAtaA: TAccountMetas[13]; tunaPositionOwnerAtaB: TAccountMetas[14]; feeRecipientAtaA: TAccountMetas[15]; feeRecipientAtaB: TAccountMetas[16]; oraclePriceUpdateA: TAccountMetas[17]; oraclePriceUpdateB: TAccountMetas[18]; /** * * ORCA accounts * */ whirlpoolProgram: TAccountMetas[19]; whirlpool: TAccountMetas[20]; orcaPosition: TAccountMetas[21]; tokenProgramA: TAccountMetas[22]; tokenProgramB: TAccountMetas[23]; memoProgram: TAccountMetas[24]; /** * * Other accounts * */ systemProgram: TAccountMetas[25]; }; data: IncreaseTunaLpPositionOrcaInstructionData; }; declare function parseIncreaseTunaLpPositionOrcaInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedIncreaseTunaLpPositionOrcaInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const LIQUIDATE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR: Uint8Array; declare function getLiquidateTunaLpPositionFusionDiscriminatorBytes(): ReadonlyUint8Array; type LiquidateTunaLpPositionFusionInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountFusionammProgram extends string | IAccountMeta = string, TAccountFusionPool extends string | IAccountMeta = string, TAccountFusionPosition extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountFusionammProgram extends string ? ReadonlyAccount : TAccountFusionammProgram, TAccountFusionPool extends string ? WritableAccount : TAccountFusionPool, TAccountFusionPosition extends string ? WritableAccount : TAccountFusionPosition, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; type LiquidateTunaLpPositionFusionInstructionData = { discriminator: ReadonlyUint8Array; decreasePercent: number; remainingAccountsInfo: RemainingAccountsInfo; }; type LiquidateTunaLpPositionFusionInstructionDataArgs = { decreasePercent: number; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getLiquidateTunaLpPositionFusionInstructionDataEncoder(): Encoder; declare function getLiquidateTunaLpPositionFusionInstructionDataDecoder(): Decoder; declare function getLiquidateTunaLpPositionFusionInstructionDataCodec(): Codec; type LiquidateTunaLpPositionFusionInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * Fusion accounts * */ fusionammProgram: Address; fusionPool: Address; fusionPosition: Address; memoProgram: Address; decreasePercent: LiquidateTunaLpPositionFusionInstructionDataArgs['decreasePercent']; remainingAccountsInfo: LiquidateTunaLpPositionFusionInstructionDataArgs['remainingAccountsInfo']; }; declare function getLiquidateTunaLpPositionFusionInstruction(input: LiquidateTunaLpPositionFusionInput, config?: { programAddress?: TProgramAddress; }): LiquidateTunaLpPositionFusionInstruction; type ParsedLiquidateTunaLpPositionFusionInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; tokenProgramA: TAccountMetas[4]; tokenProgramB: TAccountMetas[5]; market: TAccountMetas[6]; vaultA: TAccountMetas[7]; vaultB: TAccountMetas[8]; vaultAAta: TAccountMetas[9]; vaultBAta: TAccountMetas[10]; tunaPosition: TAccountMetas[11]; tunaPositionAta: TAccountMetas[12]; tunaPositionAtaA: TAccountMetas[13]; tunaPositionAtaB: TAccountMetas[14]; feeRecipientAtaA: TAccountMetas[15]; feeRecipientAtaB: TAccountMetas[16]; oraclePriceUpdateA: TAccountMetas[17]; oraclePriceUpdateB: TAccountMetas[18]; /** * * Fusion accounts * */ fusionammProgram: TAccountMetas[19]; fusionPool: TAccountMetas[20]; fusionPosition: TAccountMetas[21]; memoProgram: TAccountMetas[22]; }; data: LiquidateTunaLpPositionFusionInstructionData; }; declare function parseLiquidateTunaLpPositionFusionInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedLiquidateTunaLpPositionFusionInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const LIQUIDATE_TUNA_LP_POSITION_FUSION_JUPITER_DISCRIMINATOR: Uint8Array; declare function getLiquidateTunaLpPositionFusionJupiterDiscriminatorBytes(): ReadonlyUint8Array; type LiquidateTunaLpPositionFusionJupiterInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountFusionammProgram extends string | IAccountMeta = string, TAccountFusionPool extends string | IAccountMeta = string, TAccountFusionPosition extends string | IAccountMeta = string, TAccountJupiterProgram extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountFusionammProgram extends string ? ReadonlyAccount : TAccountFusionammProgram, TAccountFusionPool extends string ? WritableAccount : TAccountFusionPool, TAccountFusionPosition extends string ? WritableAccount : TAccountFusionPosition, TAccountJupiterProgram extends string ? ReadonlyAccount : TAccountJupiterProgram, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; type LiquidateTunaLpPositionFusionJupiterInstructionData = { discriminator: ReadonlyUint8Array; decreasePercent: number; jupiterRouteData: ReadonlyUint8Array; remainingAccountsInfo: RemainingAccountsInfo; }; type LiquidateTunaLpPositionFusionJupiterInstructionDataArgs = { decreasePercent: number; jupiterRouteData: ReadonlyUint8Array; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getLiquidateTunaLpPositionFusionJupiterInstructionDataEncoder(): Encoder; declare function getLiquidateTunaLpPositionFusionJupiterInstructionDataDecoder(): Decoder; declare function getLiquidateTunaLpPositionFusionJupiterInstructionDataCodec(): Codec; type LiquidateTunaLpPositionFusionJupiterInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * Fusion accounts * */ fusionammProgram: Address; fusionPool: Address; fusionPosition: Address; /** * * Jupiter accounts * */ jupiterProgram: Address; /** * * Other accounts * */ memoProgram: Address; decreasePercent: LiquidateTunaLpPositionFusionJupiterInstructionDataArgs['decreasePercent']; jupiterRouteData: LiquidateTunaLpPositionFusionJupiterInstructionDataArgs['jupiterRouteData']; remainingAccountsInfo: LiquidateTunaLpPositionFusionJupiterInstructionDataArgs['remainingAccountsInfo']; }; declare function getLiquidateTunaLpPositionFusionJupiterInstruction(input: LiquidateTunaLpPositionFusionJupiterInput, config?: { programAddress?: TProgramAddress; }): LiquidateTunaLpPositionFusionJupiterInstruction; type ParsedLiquidateTunaLpPositionFusionJupiterInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; tokenProgramA: TAccountMetas[4]; tokenProgramB: TAccountMetas[5]; market: TAccountMetas[6]; vaultA: TAccountMetas[7]; vaultB: TAccountMetas[8]; vaultAAta: TAccountMetas[9]; vaultBAta: TAccountMetas[10]; tunaPosition: TAccountMetas[11]; tunaPositionAta: TAccountMetas[12]; tunaPositionAtaA: TAccountMetas[13]; tunaPositionAtaB: TAccountMetas[14]; feeRecipientAtaA: TAccountMetas[15]; feeRecipientAtaB: TAccountMetas[16]; oraclePriceUpdateA: TAccountMetas[17]; oraclePriceUpdateB: TAccountMetas[18]; /** * * Fusion accounts * */ fusionammProgram: TAccountMetas[19]; fusionPool: TAccountMetas[20]; fusionPosition: TAccountMetas[21]; /** * * Jupiter accounts * */ jupiterProgram: TAccountMetas[22]; /** * * Other accounts * */ memoProgram: TAccountMetas[23]; }; data: LiquidateTunaLpPositionFusionJupiterInstructionData; }; declare function parseLiquidateTunaLpPositionFusionJupiterInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedLiquidateTunaLpPositionFusionJupiterInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const LIQUIDATE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR: Uint8Array; declare function getLiquidateTunaLpPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array; type LiquidateTunaLpPositionOrcaInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountWhirlpoolProgram extends string | IAccountMeta = string, TAccountWhirlpool extends string | IAccountMeta = string, TAccountOrcaPosition extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountWhirlpoolProgram extends string ? ReadonlyAccount : TAccountWhirlpoolProgram, TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountOrcaPosition extends string ? WritableAccount : TAccountOrcaPosition, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; type LiquidateTunaLpPositionOrcaInstructionData = { discriminator: ReadonlyUint8Array; decreasePercent: number; remainingAccountsInfo: RemainingAccountsInfo; }; type LiquidateTunaLpPositionOrcaInstructionDataArgs = { decreasePercent: number; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getLiquidateTunaLpPositionOrcaInstructionDataEncoder(): Encoder; declare function getLiquidateTunaLpPositionOrcaInstructionDataDecoder(): Decoder; declare function getLiquidateTunaLpPositionOrcaInstructionDataCodec(): Codec; type LiquidateTunaLpPositionOrcaInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * ORCA accounts * */ whirlpoolProgram: Address; whirlpool: Address; orcaPosition: Address; tokenProgramA: Address; tokenProgramB: Address; memoProgram: Address; decreasePercent: LiquidateTunaLpPositionOrcaInstructionDataArgs['decreasePercent']; remainingAccountsInfo: LiquidateTunaLpPositionOrcaInstructionDataArgs['remainingAccountsInfo']; }; declare function getLiquidateTunaLpPositionOrcaInstruction(input: LiquidateTunaLpPositionOrcaInput, config?: { programAddress?: TProgramAddress; }): LiquidateTunaLpPositionOrcaInstruction; type ParsedLiquidateTunaLpPositionOrcaInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; market: TAccountMetas[4]; vaultA: TAccountMetas[5]; vaultB: TAccountMetas[6]; vaultAAta: TAccountMetas[7]; vaultBAta: TAccountMetas[8]; tunaPosition: TAccountMetas[9]; tunaPositionAta: TAccountMetas[10]; tunaPositionAtaA: TAccountMetas[11]; tunaPositionAtaB: TAccountMetas[12]; feeRecipientAtaA: TAccountMetas[13]; feeRecipientAtaB: TAccountMetas[14]; oraclePriceUpdateA: TAccountMetas[15]; oraclePriceUpdateB: TAccountMetas[16]; /** * * ORCA accounts * */ whirlpoolProgram: TAccountMetas[17]; whirlpool: TAccountMetas[18]; orcaPosition: TAccountMetas[19]; tokenProgramA: TAccountMetas[20]; tokenProgramB: TAccountMetas[21]; memoProgram: TAccountMetas[22]; }; data: LiquidateTunaLpPositionOrcaInstructionData; }; declare function parseLiquidateTunaLpPositionOrcaInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedLiquidateTunaLpPositionOrcaInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const LIQUIDATE_TUNA_LP_POSITION_ORCA_JUPITER_DISCRIMINATOR: Uint8Array; declare function getLiquidateTunaLpPositionOrcaJupiterDiscriminatorBytes(): ReadonlyUint8Array; type LiquidateTunaLpPositionOrcaJupiterInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountWhirlpoolProgram extends string | IAccountMeta = string, TAccountWhirlpool extends string | IAccountMeta = string, TAccountOrcaPosition extends string | IAccountMeta = string, TAccountJupiterProgram extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountWhirlpoolProgram extends string ? ReadonlyAccount : TAccountWhirlpoolProgram, TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountOrcaPosition extends string ? WritableAccount : TAccountOrcaPosition, TAccountJupiterProgram extends string ? ReadonlyAccount : TAccountJupiterProgram, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; type LiquidateTunaLpPositionOrcaJupiterInstructionData = { discriminator: ReadonlyUint8Array; decreasePercent: number; jupiterRouteData: ReadonlyUint8Array; remainingAccountsInfo: RemainingAccountsInfo; }; type LiquidateTunaLpPositionOrcaJupiterInstructionDataArgs = { decreasePercent: number; jupiterRouteData: ReadonlyUint8Array; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getLiquidateTunaLpPositionOrcaJupiterInstructionDataEncoder(): Encoder; declare function getLiquidateTunaLpPositionOrcaJupiterInstructionDataDecoder(): Decoder; declare function getLiquidateTunaLpPositionOrcaJupiterInstructionDataCodec(): Codec; type LiquidateTunaLpPositionOrcaJupiterInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * ORCA accounts * */ whirlpoolProgram: Address; whirlpool: Address; orcaPosition: Address; /** * * Jupiter accounts * */ jupiterProgram: Address; /** * * Other accounts * */ memoProgram: Address; decreasePercent: LiquidateTunaLpPositionOrcaJupiterInstructionDataArgs['decreasePercent']; jupiterRouteData: LiquidateTunaLpPositionOrcaJupiterInstructionDataArgs['jupiterRouteData']; remainingAccountsInfo: LiquidateTunaLpPositionOrcaJupiterInstructionDataArgs['remainingAccountsInfo']; }; declare function getLiquidateTunaLpPositionOrcaJupiterInstruction(input: LiquidateTunaLpPositionOrcaJupiterInput, config?: { programAddress?: TProgramAddress; }): LiquidateTunaLpPositionOrcaJupiterInstruction; type ParsedLiquidateTunaLpPositionOrcaJupiterInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; tokenProgramA: TAccountMetas[4]; tokenProgramB: TAccountMetas[5]; market: TAccountMetas[6]; vaultA: TAccountMetas[7]; vaultB: TAccountMetas[8]; vaultAAta: TAccountMetas[9]; vaultBAta: TAccountMetas[10]; tunaPosition: TAccountMetas[11]; tunaPositionAta: TAccountMetas[12]; tunaPositionAtaA: TAccountMetas[13]; tunaPositionAtaB: TAccountMetas[14]; feeRecipientAtaA: TAccountMetas[15]; feeRecipientAtaB: TAccountMetas[16]; oraclePriceUpdateA: TAccountMetas[17]; oraclePriceUpdateB: TAccountMetas[18]; /** * * ORCA accounts * */ whirlpoolProgram: TAccountMetas[19]; whirlpool: TAccountMetas[20]; orcaPosition: TAccountMetas[21]; /** * * Jupiter accounts * */ jupiterProgram: TAccountMetas[22]; /** * * Other accounts * */ memoProgram: TAccountMetas[23]; }; data: LiquidateTunaLpPositionOrcaJupiterInstructionData; }; declare function parseLiquidateTunaLpPositionOrcaJupiterInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedLiquidateTunaLpPositionOrcaJupiterInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const LIQUIDATE_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR: Uint8Array; declare function getLiquidateTunaSpotPositionFusionDiscriminatorBytes(): ReadonlyUint8Array; type LiquidateTunaSpotPositionFusionInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwner extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountFusionammProgram extends string | IAccountMeta = string, TAccountFusionPool extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountTunaPositionOwner extends string ? WritableAccount : TAccountTunaPositionOwner, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountFusionammProgram extends string ? ReadonlyAccount : TAccountFusionammProgram, TAccountFusionPool extends string ? WritableAccount : TAccountFusionPool, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type LiquidateTunaSpotPositionFusionInstructionData = { discriminator: ReadonlyUint8Array; decreasePercent: number; remainingAccountsInfo: RemainingAccountsInfo; }; type LiquidateTunaSpotPositionFusionInstructionDataArgs = { decreasePercent: number; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getLiquidateTunaSpotPositionFusionInstructionDataEncoder(): Encoder; declare function getLiquidateTunaSpotPositionFusionInstructionDataDecoder(): Decoder; declare function getLiquidateTunaSpotPositionFusionInstructionDataCodec(): Codec; type LiquidateTunaSpotPositionFusionInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; tunaPositionOwner: Address; tunaPositionOwnerAtaA?: Address; tunaPositionOwnerAtaB?: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * Fusion accounts * */ fusionammProgram: Address; fusionPool: Address; memoProgram: Address; /** * * Other accounts * */ systemProgram?: Address; decreasePercent: LiquidateTunaSpotPositionFusionInstructionDataArgs['decreasePercent']; remainingAccountsInfo: LiquidateTunaSpotPositionFusionInstructionDataArgs['remainingAccountsInfo']; }; declare function getLiquidateTunaSpotPositionFusionInstruction(input: LiquidateTunaSpotPositionFusionInput, config?: { programAddress?: TProgramAddress; }): LiquidateTunaSpotPositionFusionInstruction; type ParsedLiquidateTunaSpotPositionFusionInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; tokenProgramA: TAccountMetas[4]; tokenProgramB: TAccountMetas[5]; market: TAccountMetas[6]; vaultA: TAccountMetas[7]; vaultB: TAccountMetas[8]; vaultAAta: TAccountMetas[9]; vaultBAta: TAccountMetas[10]; tunaPosition: TAccountMetas[11]; tunaPositionAtaA: TAccountMetas[12]; tunaPositionAtaB: TAccountMetas[13]; feeRecipientAtaA: TAccountMetas[14]; feeRecipientAtaB: TAccountMetas[15]; tunaPositionOwner: TAccountMetas[16]; tunaPositionOwnerAtaA?: TAccountMetas[17] | undefined; tunaPositionOwnerAtaB?: TAccountMetas[18] | undefined; oraclePriceUpdateA: TAccountMetas[19]; oraclePriceUpdateB: TAccountMetas[20]; /** * * Fusion accounts * */ fusionammProgram: TAccountMetas[21]; fusionPool: TAccountMetas[22]; memoProgram: TAccountMetas[23]; /** * * Other accounts * */ systemProgram: TAccountMetas[24]; }; data: LiquidateTunaSpotPositionFusionInstructionData; }; declare function parseLiquidateTunaSpotPositionFusionInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedLiquidateTunaSpotPositionFusionInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const LIQUIDATE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR: Uint8Array; declare function getLiquidateTunaSpotPositionJupiterDiscriminatorBytes(): ReadonlyUint8Array; type LiquidateTunaSpotPositionJupiterInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwner extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountPool extends string | IAccountMeta = string, TAccountJupiterProgram extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountTunaPositionOwner extends string ? WritableAccount : TAccountTunaPositionOwner, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountJupiterProgram extends string ? ReadonlyAccount : TAccountJupiterProgram, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type LiquidateTunaSpotPositionJupiterInstructionData = { discriminator: ReadonlyUint8Array; decreasePercent: number; jupiterRouteData: ReadonlyUint8Array; remainingAccountsInfo: RemainingAccountsInfo; }; type LiquidateTunaSpotPositionJupiterInstructionDataArgs = { decreasePercent: number; jupiterRouteData: ReadonlyUint8Array; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getLiquidateTunaSpotPositionJupiterInstructionDataEncoder(): Encoder; declare function getLiquidateTunaSpotPositionJupiterInstructionDataDecoder(): Decoder; declare function getLiquidateTunaSpotPositionJupiterInstructionDataCodec(): Codec; type LiquidateTunaSpotPositionJupiterInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; tunaPositionOwner: Address; tunaPositionOwnerAtaA: Address; tunaPositionOwnerAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; pool: Address; /** * * Jupiter accounts * */ jupiterProgram: Address; /** * * Other accounts * */ memoProgram: Address; systemProgram?: Address; decreasePercent: LiquidateTunaSpotPositionJupiterInstructionDataArgs['decreasePercent']; jupiterRouteData: LiquidateTunaSpotPositionJupiterInstructionDataArgs['jupiterRouteData']; remainingAccountsInfo: LiquidateTunaSpotPositionJupiterInstructionDataArgs['remainingAccountsInfo']; }; declare function getLiquidateTunaSpotPositionJupiterInstruction(input: LiquidateTunaSpotPositionJupiterInput, config?: { programAddress?: TProgramAddress; }): LiquidateTunaSpotPositionJupiterInstruction; type ParsedLiquidateTunaSpotPositionJupiterInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; tokenProgramA: TAccountMetas[4]; tokenProgramB: TAccountMetas[5]; market: TAccountMetas[6]; vaultA: TAccountMetas[7]; vaultB: TAccountMetas[8]; vaultAAta: TAccountMetas[9]; vaultBAta: TAccountMetas[10]; tunaPosition: TAccountMetas[11]; tunaPositionAtaA: TAccountMetas[12]; tunaPositionAtaB: TAccountMetas[13]; feeRecipientAtaA: TAccountMetas[14]; feeRecipientAtaB: TAccountMetas[15]; tunaPositionOwner: TAccountMetas[16]; tunaPositionOwnerAtaA: TAccountMetas[17]; tunaPositionOwnerAtaB: TAccountMetas[18]; oraclePriceUpdateA: TAccountMetas[19]; oraclePriceUpdateB: TAccountMetas[20]; pool: TAccountMetas[21]; /** * * Jupiter accounts * */ jupiterProgram: TAccountMetas[22]; /** * * Other accounts * */ memoProgram: TAccountMetas[23]; systemProgram: TAccountMetas[24]; }; data: LiquidateTunaSpotPositionJupiterInstructionData; }; declare function parseLiquidateTunaSpotPositionJupiterInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedLiquidateTunaSpotPositionJupiterInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const LIQUIDATE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR: Uint8Array; declare function getLiquidateTunaSpotPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array; type LiquidateTunaSpotPositionOrcaInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwner extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountWhirlpoolProgram extends string | IAccountMeta = string, TAccountWhirlpool extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountTunaPositionOwner extends string ? WritableAccount : TAccountTunaPositionOwner, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountWhirlpoolProgram extends string ? ReadonlyAccount : TAccountWhirlpoolProgram, TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type LiquidateTunaSpotPositionOrcaInstructionData = { discriminator: ReadonlyUint8Array; decreasePercent: number; remainingAccountsInfo: RemainingAccountsInfo; }; type LiquidateTunaSpotPositionOrcaInstructionDataArgs = { decreasePercent: number; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getLiquidateTunaSpotPositionOrcaInstructionDataEncoder(): Encoder; declare function getLiquidateTunaSpotPositionOrcaInstructionDataDecoder(): Decoder; declare function getLiquidateTunaSpotPositionOrcaInstructionDataCodec(): Codec; type LiquidateTunaSpotPositionOrcaInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; tunaPositionOwner: Address; tunaPositionOwnerAtaA?: Address; tunaPositionOwnerAtaB?: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * Orca accounts * */ whirlpoolProgram: Address; whirlpool: Address; memoProgram: Address; /** * * Other accounts * */ systemProgram?: Address; decreasePercent: LiquidateTunaSpotPositionOrcaInstructionDataArgs['decreasePercent']; remainingAccountsInfo: LiquidateTunaSpotPositionOrcaInstructionDataArgs['remainingAccountsInfo']; }; declare function getLiquidateTunaSpotPositionOrcaInstruction(input: LiquidateTunaSpotPositionOrcaInput, config?: { programAddress?: TProgramAddress; }): LiquidateTunaSpotPositionOrcaInstruction; type ParsedLiquidateTunaSpotPositionOrcaInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; tokenProgramA: TAccountMetas[4]; tokenProgramB: TAccountMetas[5]; market: TAccountMetas[6]; vaultA: TAccountMetas[7]; vaultB: TAccountMetas[8]; vaultAAta: TAccountMetas[9]; vaultBAta: TAccountMetas[10]; tunaPosition: TAccountMetas[11]; tunaPositionAtaA: TAccountMetas[12]; tunaPositionAtaB: TAccountMetas[13]; feeRecipientAtaA: TAccountMetas[14]; feeRecipientAtaB: TAccountMetas[15]; tunaPositionOwner: TAccountMetas[16]; tunaPositionOwnerAtaA?: TAccountMetas[17] | undefined; tunaPositionOwnerAtaB?: TAccountMetas[18] | undefined; oraclePriceUpdateA: TAccountMetas[19]; oraclePriceUpdateB: TAccountMetas[20]; /** * * Orca accounts * */ whirlpoolProgram: TAccountMetas[21]; whirlpool: TAccountMetas[22]; memoProgram: TAccountMetas[23]; /** * * Other accounts * */ systemProgram: TAccountMetas[24]; }; data: LiquidateTunaSpotPositionOrcaInstructionData; }; declare function parseLiquidateTunaSpotPositionOrcaInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedLiquidateTunaSpotPositionOrcaInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const MODIFY_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR: Uint8Array; declare function getModifyTunaSpotPositionFusionDiscriminatorBytes(): ReadonlyUint8Array; type ModifyTunaSpotPositionFusionInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountFusionammProgram extends string | IAccountMeta = string, TAccountFusionPool extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountFusionammProgram extends string ? ReadonlyAccount : TAccountFusionammProgram, TAccountFusionPool extends string ? WritableAccount : TAccountFusionPool, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type ModifyTunaSpotPositionFusionInstructionData = { discriminator: ReadonlyUint8Array; decreasePercent: number; collateralAmount: bigint; borrowAmount: bigint; requiredSwapAmount: bigint; remainingAccountsInfo: RemainingAccountsInfo; }; type ModifyTunaSpotPositionFusionInstructionDataArgs = { decreasePercent: number; collateralAmount: number | bigint; borrowAmount: number | bigint; requiredSwapAmount: number | bigint; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getModifyTunaSpotPositionFusionInstructionDataEncoder(): Encoder; declare function getModifyTunaSpotPositionFusionInstructionDataDecoder(): Decoder; declare function getModifyTunaSpotPositionFusionInstructionDataCodec(): Codec; type ModifyTunaSpotPositionFusionInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; tunaPositionOwnerAtaA?: Address; tunaPositionOwnerAtaB?: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * Fusion accounts * */ fusionammProgram: Address; fusionPool: Address; memoProgram: Address; /** * * Other accounts * */ systemProgram?: Address; decreasePercent: ModifyTunaSpotPositionFusionInstructionDataArgs['decreasePercent']; collateralAmount: ModifyTunaSpotPositionFusionInstructionDataArgs['collateralAmount']; borrowAmount: ModifyTunaSpotPositionFusionInstructionDataArgs['borrowAmount']; requiredSwapAmount: ModifyTunaSpotPositionFusionInstructionDataArgs['requiredSwapAmount']; remainingAccountsInfo: ModifyTunaSpotPositionFusionInstructionDataArgs['remainingAccountsInfo']; }; declare function getModifyTunaSpotPositionFusionInstruction(input: ModifyTunaSpotPositionFusionInput, config?: { programAddress?: TProgramAddress; }): ModifyTunaSpotPositionFusionInstruction; type ParsedModifyTunaSpotPositionFusionInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; tokenProgramA: TAccountMetas[4]; tokenProgramB: TAccountMetas[5]; market: TAccountMetas[6]; vaultA: TAccountMetas[7]; vaultB: TAccountMetas[8]; vaultAAta: TAccountMetas[9]; vaultBAta: TAccountMetas[10]; tunaPosition: TAccountMetas[11]; tunaPositionAtaA: TAccountMetas[12]; tunaPositionAtaB: TAccountMetas[13]; tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined; tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined; feeRecipientAtaA: TAccountMetas[16]; feeRecipientAtaB: TAccountMetas[17]; oraclePriceUpdateA: TAccountMetas[18]; oraclePriceUpdateB: TAccountMetas[19]; /** * * Fusion accounts * */ fusionammProgram: TAccountMetas[20]; fusionPool: TAccountMetas[21]; memoProgram: TAccountMetas[22]; /** * * Other accounts * */ systemProgram: TAccountMetas[23]; }; data: ModifyTunaSpotPositionFusionInstructionData; }; declare function parseModifyTunaSpotPositionFusionInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedModifyTunaSpotPositionFusionInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const MODIFY_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR: Uint8Array; declare function getModifyTunaSpotPositionJupiterDiscriminatorBytes(): ReadonlyUint8Array; type ModifyTunaSpotPositionJupiterInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountPool extends string | IAccountMeta = string, TAccountJupiterProgram extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountJupiterProgram extends string ? ReadonlyAccount : TAccountJupiterProgram, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type ModifyTunaSpotPositionJupiterInstructionData = { discriminator: ReadonlyUint8Array; decreasePercent: number; collateralAmount: bigint; borrowAmount: bigint; jupiterRouteData: ReadonlyUint8Array; remainingAccountsInfo: RemainingAccountsInfo; }; type ModifyTunaSpotPositionJupiterInstructionDataArgs = { decreasePercent: number; collateralAmount: number | bigint; borrowAmount: number | bigint; jupiterRouteData: ReadonlyUint8Array; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getModifyTunaSpotPositionJupiterInstructionDataEncoder(): Encoder; declare function getModifyTunaSpotPositionJupiterInstructionDataDecoder(): Decoder; declare function getModifyTunaSpotPositionJupiterInstructionDataCodec(): Codec; type ModifyTunaSpotPositionJupiterInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; tunaPositionOwnerAtaA: Address; tunaPositionOwnerAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; pool: Address; /** * * Other accounts * */ jupiterProgram: Address; memoProgram: Address; systemProgram?: Address; decreasePercent: ModifyTunaSpotPositionJupiterInstructionDataArgs['decreasePercent']; collateralAmount: ModifyTunaSpotPositionJupiterInstructionDataArgs['collateralAmount']; borrowAmount: ModifyTunaSpotPositionJupiterInstructionDataArgs['borrowAmount']; jupiterRouteData: ModifyTunaSpotPositionJupiterInstructionDataArgs['jupiterRouteData']; remainingAccountsInfo: ModifyTunaSpotPositionJupiterInstructionDataArgs['remainingAccountsInfo']; }; declare function getModifyTunaSpotPositionJupiterInstruction(input: ModifyTunaSpotPositionJupiterInput, config?: { programAddress?: TProgramAddress; }): ModifyTunaSpotPositionJupiterInstruction; type ParsedModifyTunaSpotPositionJupiterInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; tokenProgramA: TAccountMetas[4]; tokenProgramB: TAccountMetas[5]; market: TAccountMetas[6]; vaultA: TAccountMetas[7]; vaultB: TAccountMetas[8]; vaultAAta: TAccountMetas[9]; vaultBAta: TAccountMetas[10]; tunaPosition: TAccountMetas[11]; tunaPositionAtaA: TAccountMetas[12]; tunaPositionAtaB: TAccountMetas[13]; tunaPositionOwnerAtaA: TAccountMetas[14]; tunaPositionOwnerAtaB: TAccountMetas[15]; feeRecipientAtaA: TAccountMetas[16]; feeRecipientAtaB: TAccountMetas[17]; oraclePriceUpdateA: TAccountMetas[18]; oraclePriceUpdateB: TAccountMetas[19]; pool: TAccountMetas[20]; /** * * Other accounts * */ jupiterProgram: TAccountMetas[21]; memoProgram: TAccountMetas[22]; systemProgram: TAccountMetas[23]; }; data: ModifyTunaSpotPositionJupiterInstructionData; }; declare function parseModifyTunaSpotPositionJupiterInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedModifyTunaSpotPositionJupiterInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const MODIFY_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR: Uint8Array; declare function getModifyTunaSpotPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array; type ModifyTunaSpotPositionOrcaInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountWhirlpoolProgram extends string | IAccountMeta = string, TAccountWhirlpool extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountWhirlpoolProgram extends string ? ReadonlyAccount : TAccountWhirlpoolProgram, TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type ModifyTunaSpotPositionOrcaInstructionData = { discriminator: ReadonlyUint8Array; decreasePercent: number; collateralAmount: bigint; borrowAmount: bigint; requiredSwapAmount: bigint; remainingAccountsInfo: RemainingAccountsInfo; }; type ModifyTunaSpotPositionOrcaInstructionDataArgs = { decreasePercent: number; collateralAmount: number | bigint; borrowAmount: number | bigint; requiredSwapAmount: number | bigint; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getModifyTunaSpotPositionOrcaInstructionDataEncoder(): Encoder; declare function getModifyTunaSpotPositionOrcaInstructionDataDecoder(): Decoder; declare function getModifyTunaSpotPositionOrcaInstructionDataCodec(): Codec; type ModifyTunaSpotPositionOrcaInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; tunaPositionOwnerAtaA?: Address; tunaPositionOwnerAtaB?: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * Orca accounts * */ whirlpoolProgram: Address; whirlpool: Address; memoProgram: Address; /** * * Other accounts * */ systemProgram?: Address; decreasePercent: ModifyTunaSpotPositionOrcaInstructionDataArgs['decreasePercent']; collateralAmount: ModifyTunaSpotPositionOrcaInstructionDataArgs['collateralAmount']; borrowAmount: ModifyTunaSpotPositionOrcaInstructionDataArgs['borrowAmount']; requiredSwapAmount: ModifyTunaSpotPositionOrcaInstructionDataArgs['requiredSwapAmount']; remainingAccountsInfo: ModifyTunaSpotPositionOrcaInstructionDataArgs['remainingAccountsInfo']; }; declare function getModifyTunaSpotPositionOrcaInstruction(input: ModifyTunaSpotPositionOrcaInput, config?: { programAddress?: TProgramAddress; }): ModifyTunaSpotPositionOrcaInstruction; type ParsedModifyTunaSpotPositionOrcaInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; tokenProgramA: TAccountMetas[4]; tokenProgramB: TAccountMetas[5]; market: TAccountMetas[6]; vaultA: TAccountMetas[7]; vaultB: TAccountMetas[8]; vaultAAta: TAccountMetas[9]; vaultBAta: TAccountMetas[10]; tunaPosition: TAccountMetas[11]; tunaPositionAtaA: TAccountMetas[12]; tunaPositionAtaB: TAccountMetas[13]; tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined; tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined; feeRecipientAtaA: TAccountMetas[16]; feeRecipientAtaB: TAccountMetas[17]; oraclePriceUpdateA: TAccountMetas[18]; oraclePriceUpdateB: TAccountMetas[19]; /** * * Orca accounts * */ whirlpoolProgram: TAccountMetas[20]; whirlpool: TAccountMetas[21]; memoProgram: TAccountMetas[22]; /** * * Other accounts * */ systemProgram: TAccountMetas[23]; }; data: ModifyTunaSpotPositionOrcaInstructionData; }; declare function parseModifyTunaSpotPositionOrcaInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedModifyTunaSpotPositionOrcaInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const OPEN_AND_INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR: Uint8Array; declare function getOpenAndIncreaseTunaLpPositionFusionDiscriminatorBytes(): ReadonlyUint8Array; type OpenAndIncreaseTunaLpPositionFusionInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionMint extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountFusionammProgram extends string | IAccountMeta = string, TAccountFusionPool extends string | IAccountMeta = string, TAccountFusionPosition extends string | IAccountMeta = string, TAccountMetadataUpdateAuth extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TAccountToken2022Program extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TAccountAssociatedTokenProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionMint extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountTunaPositionMint, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountFusionammProgram extends string ? ReadonlyAccount : TAccountFusionammProgram, TAccountFusionPool extends string ? WritableAccount : TAccountFusionPool, TAccountFusionPosition extends string ? WritableAccount : TAccountFusionPosition, TAccountMetadataUpdateAuth extends string ? ReadonlyAccount : TAccountMetadataUpdateAuth, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, TAccountToken2022Program extends string ? ReadonlyAccount : TAccountToken2022Program, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount : TAccountAssociatedTokenProgram, ...TRemainingAccounts ]>; type OpenAndIncreaseTunaLpPositionFusionInstructionData = { discriminator: ReadonlyUint8Array; tickLowerIndex: number; tickUpperIndex: number; lowerLimitOrderSqrtPrice: bigint; upperLimitOrderSqrtPrice: bigint; flags: number; collateralA: bigint; collateralB: bigint; borrowA: bigint; borrowB: bigint; minAddedAmountA: bigint; minAddedAmountB: bigint; unused: number; remainingAccountsInfo: RemainingAccountsInfo; }; type OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs = { tickLowerIndex: number; tickUpperIndex: number; lowerLimitOrderSqrtPrice: number | bigint; upperLimitOrderSqrtPrice: number | bigint; flags: number; collateralA: number | bigint; collateralB: number | bigint; borrowA: number | bigint; borrowB: number | bigint; minAddedAmountA: number | bigint; minAddedAmountB: number | bigint; unused: number; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getOpenAndIncreaseTunaLpPositionFusionInstructionDataEncoder(): Encoder; declare function getOpenAndIncreaseTunaLpPositionFusionInstructionDataDecoder(): Decoder; declare function getOpenAndIncreaseTunaLpPositionFusionInstructionDataCodec(): Codec; type OpenAndIncreaseTunaLpPositionFusionInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionMint: TransactionSigner; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; tunaPositionOwnerAtaA: Address; tunaPositionOwnerAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * Fusion accounts * */ fusionammProgram: Address; fusionPool: Address; fusionPosition: Address; metadataUpdateAuth: Address; memoProgram: Address; /** * * Other accounts * */ token2022Program: Address; systemProgram?: Address; associatedTokenProgram: Address; tickLowerIndex: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['tickLowerIndex']; tickUpperIndex: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['tickUpperIndex']; lowerLimitOrderSqrtPrice: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['lowerLimitOrderSqrtPrice']; upperLimitOrderSqrtPrice: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['upperLimitOrderSqrtPrice']; flags: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['flags']; collateralA: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['collateralA']; collateralB: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['collateralB']; borrowA: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['borrowA']; borrowB: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['borrowB']; minAddedAmountA: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountA']; minAddedAmountB: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountB']; unused: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['unused']; remainingAccountsInfo: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['remainingAccountsInfo']; }; declare function getOpenAndIncreaseTunaLpPositionFusionInstruction(input: OpenAndIncreaseTunaLpPositionFusionInput, config?: { programAddress?: TProgramAddress; }): OpenAndIncreaseTunaLpPositionFusionInstruction; type ParsedOpenAndIncreaseTunaLpPositionFusionInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; tokenProgramA: TAccountMetas[4]; tokenProgramB: TAccountMetas[5]; market: TAccountMetas[6]; vaultA: TAccountMetas[7]; vaultB: TAccountMetas[8]; vaultAAta: TAccountMetas[9]; vaultBAta: TAccountMetas[10]; tunaPosition: TAccountMetas[11]; tunaPositionMint: TAccountMetas[12]; tunaPositionAta: TAccountMetas[13]; tunaPositionAtaA: TAccountMetas[14]; tunaPositionAtaB: TAccountMetas[15]; tunaPositionOwnerAtaA: TAccountMetas[16]; tunaPositionOwnerAtaB: TAccountMetas[17]; feeRecipientAtaA: TAccountMetas[18]; feeRecipientAtaB: TAccountMetas[19]; oraclePriceUpdateA: TAccountMetas[20]; oraclePriceUpdateB: TAccountMetas[21]; /** * * Fusion accounts * */ fusionammProgram: TAccountMetas[22]; fusionPool: TAccountMetas[23]; fusionPosition: TAccountMetas[24]; metadataUpdateAuth: TAccountMetas[25]; memoProgram: TAccountMetas[26]; /** * * Other accounts * */ token2022Program: TAccountMetas[27]; systemProgram: TAccountMetas[28]; associatedTokenProgram: TAccountMetas[29]; }; data: OpenAndIncreaseTunaLpPositionFusionInstructionData; }; declare function parseOpenAndIncreaseTunaLpPositionFusionInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedOpenAndIncreaseTunaLpPositionFusionInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const OPEN_AND_INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR: Uint8Array; declare function getOpenAndIncreaseTunaLpPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array; type OpenAndIncreaseTunaLpPositionOrcaInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionMint extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountWhirlpoolProgram extends string | IAccountMeta = string, TAccountWhirlpool extends string | IAccountMeta = string, TAccountOrcaPosition extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMetadataUpdateAuth extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TAccountToken2022Program extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TAccountAssociatedTokenProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionMint extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountTunaPositionMint, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountWhirlpoolProgram extends string ? ReadonlyAccount : TAccountWhirlpoolProgram, TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountOrcaPosition extends string ? WritableAccount : TAccountOrcaPosition, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMetadataUpdateAuth extends string ? ReadonlyAccount : TAccountMetadataUpdateAuth, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, TAccountToken2022Program extends string ? ReadonlyAccount : TAccountToken2022Program, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount : TAccountAssociatedTokenProgram, ...TRemainingAccounts ]>; type OpenAndIncreaseTunaLpPositionOrcaInstructionData = { discriminator: ReadonlyUint8Array; tickLowerIndex: number; tickUpperIndex: number; lowerLimitOrderSqrtPrice: bigint; upperLimitOrderSqrtPrice: bigint; flags: number; collateralA: bigint; collateralB: bigint; borrowA: bigint; borrowB: bigint; minAddedAmountA: bigint; minAddedAmountB: bigint; unused: number; remainingAccountsInfo: RemainingAccountsInfo; }; type OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs = { tickLowerIndex: number; tickUpperIndex: number; lowerLimitOrderSqrtPrice: number | bigint; upperLimitOrderSqrtPrice: number | bigint; flags: number; collateralA: number | bigint; collateralB: number | bigint; borrowA: number | bigint; borrowB: number | bigint; minAddedAmountA: number | bigint; minAddedAmountB: number | bigint; unused: number; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getOpenAndIncreaseTunaLpPositionOrcaInstructionDataEncoder(): Encoder; declare function getOpenAndIncreaseTunaLpPositionOrcaInstructionDataDecoder(): Decoder; declare function getOpenAndIncreaseTunaLpPositionOrcaInstructionDataCodec(): Codec; type OpenAndIncreaseTunaLpPositionOrcaInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionMint: TransactionSigner; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; tunaPositionOwnerAtaA: Address; tunaPositionOwnerAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * ORCA accounts * */ whirlpoolProgram: Address; whirlpool: Address; orcaPosition: Address; tokenProgramA: Address; tokenProgramB: Address; metadataUpdateAuth: Address; memoProgram: Address; /** * * Other accounts * */ token2022Program: Address; systemProgram?: Address; associatedTokenProgram: Address; tickLowerIndex: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['tickLowerIndex']; tickUpperIndex: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['tickUpperIndex']; lowerLimitOrderSqrtPrice: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['lowerLimitOrderSqrtPrice']; upperLimitOrderSqrtPrice: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['upperLimitOrderSqrtPrice']; flags: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['flags']; collateralA: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['collateralA']; collateralB: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['collateralB']; borrowA: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['borrowA']; borrowB: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['borrowB']; minAddedAmountA: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountA']; minAddedAmountB: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountB']; unused: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['unused']; remainingAccountsInfo: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['remainingAccountsInfo']; }; declare function getOpenAndIncreaseTunaLpPositionOrcaInstruction(input: OpenAndIncreaseTunaLpPositionOrcaInput, config?: { programAddress?: TProgramAddress; }): OpenAndIncreaseTunaLpPositionOrcaInstruction; type ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; market: TAccountMetas[4]; vaultA: TAccountMetas[5]; vaultB: TAccountMetas[6]; vaultAAta: TAccountMetas[7]; vaultBAta: TAccountMetas[8]; tunaPosition: TAccountMetas[9]; tunaPositionMint: TAccountMetas[10]; tunaPositionAta: TAccountMetas[11]; tunaPositionAtaA: TAccountMetas[12]; tunaPositionAtaB: TAccountMetas[13]; tunaPositionOwnerAtaA: TAccountMetas[14]; tunaPositionOwnerAtaB: TAccountMetas[15]; feeRecipientAtaA: TAccountMetas[16]; feeRecipientAtaB: TAccountMetas[17]; oraclePriceUpdateA: TAccountMetas[18]; oraclePriceUpdateB: TAccountMetas[19]; /** * * ORCA accounts * */ whirlpoolProgram: TAccountMetas[20]; whirlpool: TAccountMetas[21]; orcaPosition: TAccountMetas[22]; tokenProgramA: TAccountMetas[23]; tokenProgramB: TAccountMetas[24]; metadataUpdateAuth: TAccountMetas[25]; memoProgram: TAccountMetas[26]; /** * * Other accounts * */ token2022Program: TAccountMetas[27]; systemProgram: TAccountMetas[28]; associatedTokenProgram: TAccountMetas[29]; }; data: OpenAndIncreaseTunaLpPositionOrcaInstructionData; }; declare function parseOpenAndIncreaseTunaLpPositionOrcaInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const OPEN_AND_INCREASE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR: Uint8Array; declare function getOpenAndIncreaseTunaSpotPositionJupiterDiscriminatorBytes(): ReadonlyUint8Array; type OpenAndIncreaseTunaSpotPositionJupiterInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountPool extends string | IAccountMeta = string, TAccountJupiterProgram extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TAccountAssociatedTokenProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountJupiterProgram extends string ? ReadonlyAccount : TAccountJupiterProgram, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount : TAccountAssociatedTokenProgram, ...TRemainingAccounts ]>; type OpenAndIncreaseTunaSpotPositionJupiterInstructionData = { discriminator: ReadonlyUint8Array; positionToken: PoolToken; collateralToken: PoolToken; collateralAmount: bigint; borrowAmount: bigint; jupiterRouteData: ReadonlyUint8Array; remainingAccountsInfo: RemainingAccountsInfo; }; type OpenAndIncreaseTunaSpotPositionJupiterInstructionDataArgs = { positionToken: PoolTokenArgs; collateralToken: PoolTokenArgs; collateralAmount: number | bigint; borrowAmount: number | bigint; jupiterRouteData: ReadonlyUint8Array; remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getOpenAndIncreaseTunaSpotPositionJupiterInstructionDataEncoder(): Encoder; declare function getOpenAndIncreaseTunaSpotPositionJupiterInstructionDataDecoder(): Decoder; declare function getOpenAndIncreaseTunaSpotPositionJupiterInstructionDataCodec(): Codec; type OpenAndIncreaseTunaSpotPositionJupiterInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; tunaPositionOwnerAtaA?: Address; tunaPositionOwnerAtaB?: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; pool: Address; /** * * Other accounts * */ jupiterProgram: Address; memoProgram: Address; systemProgram?: Address; associatedTokenProgram: Address; positionToken: OpenAndIncreaseTunaSpotPositionJupiterInstructionDataArgs['positionToken']; collateralToken: OpenAndIncreaseTunaSpotPositionJupiterInstructionDataArgs['collateralToken']; collateralAmount: OpenAndIncreaseTunaSpotPositionJupiterInstructionDataArgs['collateralAmount']; borrowAmount: OpenAndIncreaseTunaSpotPositionJupiterInstructionDataArgs['borrowAmount']; jupiterRouteData: OpenAndIncreaseTunaSpotPositionJupiterInstructionDataArgs['jupiterRouteData']; remainingAccountsInfo: OpenAndIncreaseTunaSpotPositionJupiterInstructionDataArgs['remainingAccountsInfo']; }; declare function getOpenAndIncreaseTunaSpotPositionJupiterInstruction(input: OpenAndIncreaseTunaSpotPositionJupiterInput, config?: { programAddress?: TProgramAddress; }): OpenAndIncreaseTunaSpotPositionJupiterInstruction; type ParsedOpenAndIncreaseTunaSpotPositionJupiterInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; tokenProgramA: TAccountMetas[4]; tokenProgramB: TAccountMetas[5]; market: TAccountMetas[6]; vaultA: TAccountMetas[7]; vaultB: TAccountMetas[8]; vaultAAta: TAccountMetas[9]; vaultBAta: TAccountMetas[10]; tunaPosition: TAccountMetas[11]; tunaPositionAtaA: TAccountMetas[12]; tunaPositionAtaB: TAccountMetas[13]; tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined; tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined; feeRecipientAtaA: TAccountMetas[16]; feeRecipientAtaB: TAccountMetas[17]; oraclePriceUpdateA: TAccountMetas[18]; oraclePriceUpdateB: TAccountMetas[19]; pool: TAccountMetas[20]; /** * * Other accounts * */ jupiterProgram: TAccountMetas[21]; memoProgram: TAccountMetas[22]; systemProgram: TAccountMetas[23]; associatedTokenProgram: TAccountMetas[24]; }; data: OpenAndIncreaseTunaSpotPositionJupiterInstructionData; }; declare function parseOpenAndIncreaseTunaSpotPositionJupiterInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedOpenAndIncreaseTunaSpotPositionJupiterInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const OPEN_LENDING_POSITION_DISCRIMINATOR: Uint8Array; declare function getOpenLendingPositionDiscriminatorBytes(): ReadonlyUint8Array; type OpenLendingPositionInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountVault extends string | IAccountMeta = string, TAccountLendingPosition extends string | IAccountMeta = string, TAccountMint extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountVault extends string ? ReadonlyAccount : TAccountVault, TAccountLendingPosition extends string ? WritableAccount : TAccountLendingPosition, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type OpenLendingPositionInstructionData = { discriminator: ReadonlyUint8Array; }; type OpenLendingPositionInstructionDataArgs = {}; declare function getOpenLendingPositionInstructionDataEncoder(): Encoder; declare function getOpenLendingPositionInstructionDataDecoder(): Decoder; declare function getOpenLendingPositionInstructionDataCodec(): Codec; type OpenLendingPositionInput = { authority: TransactionSigner; tunaConfig: Address; vault: Address; lendingPosition: Address; mint: Address; systemProgram?: Address; }; declare function getOpenLendingPositionInstruction(input: OpenLendingPositionInput, config?: { programAddress?: TProgramAddress; }): OpenLendingPositionInstruction; type ParsedOpenLendingPositionInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; vault: TAccountMetas[2]; lendingPosition: TAccountMetas[3]; mint: TAccountMetas[4]; systemProgram: TAccountMetas[5]; }; data: OpenLendingPositionInstructionData; }; declare function parseOpenLendingPositionInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedOpenLendingPositionInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const OPEN_LENDING_POSITION_V2_DISCRIMINATOR: Uint8Array; declare function getOpenLendingPositionV2DiscriminatorBytes(): ReadonlyUint8Array; type OpenLendingPositionV2Instruction = string, TAccountMint extends string | IAccountMeta = string, TAccountVault extends string | IAccountMeta = string, TAccountLendingPosition extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountVault extends string ? ReadonlyAccount : TAccountVault, TAccountLendingPosition extends string ? WritableAccount : TAccountLendingPosition, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type OpenLendingPositionV2InstructionData = { discriminator: ReadonlyUint8Array; }; type OpenLendingPositionV2InstructionDataArgs = {}; declare function getOpenLendingPositionV2InstructionDataEncoder(): Encoder; declare function getOpenLendingPositionV2InstructionDataDecoder(): Decoder; declare function getOpenLendingPositionV2InstructionDataCodec(): Codec; type OpenLendingPositionV2Input = { authority: TransactionSigner; mint: Address; vault: Address; lendingPosition: Address; systemProgram?: Address; }; declare function getOpenLendingPositionV2Instruction(input: OpenLendingPositionV2Input, config?: { programAddress?: TProgramAddress; }): OpenLendingPositionV2Instruction; type ParsedOpenLendingPositionV2Instruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; mint: TAccountMetas[1]; vault: TAccountMetas[2]; lendingPosition: TAccountMetas[3]; systemProgram: TAccountMetas[4]; }; data: OpenLendingPositionV2InstructionData; }; declare function parseOpenLendingPositionV2Instruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedOpenLendingPositionV2Instruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const OPEN_TUNA_LP_POSITION_FUSION_DISCRIMINATOR: Uint8Array; declare function getOpenTunaLpPositionFusionDiscriminatorBytes(): ReadonlyUint8Array; type OpenTunaLpPositionFusionInstruction = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionMint extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountFusionammProgram extends string | IAccountMeta = string, TAccountFusionPool extends string | IAccountMeta = string, TAccountFusionPosition extends string | IAccountMeta = string, TAccountMetadataUpdateAuth extends string | IAccountMeta = string, TAccountToken2022Program extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TAccountAssociatedTokenProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionMint extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountTunaPositionMint, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountFusionammProgram extends string ? ReadonlyAccount : TAccountFusionammProgram, TAccountFusionPool extends string ? ReadonlyAccount : TAccountFusionPool, TAccountFusionPosition extends string ? WritableAccount : TAccountFusionPosition, TAccountMetadataUpdateAuth extends string ? ReadonlyAccount : TAccountMetadataUpdateAuth, TAccountToken2022Program extends string ? ReadonlyAccount : TAccountToken2022Program, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount : TAccountAssociatedTokenProgram, ...TRemainingAccounts ]>; type OpenTunaLpPositionFusionInstructionData = { discriminator: ReadonlyUint8Array; tickLowerIndex: number; tickUpperIndex: number; lowerLimitOrderSqrtPrice: bigint; upperLimitOrderSqrtPrice: bigint; flags: number; }; type OpenTunaLpPositionFusionInstructionDataArgs = { tickLowerIndex: number; tickUpperIndex: number; lowerLimitOrderSqrtPrice: number | bigint; upperLimitOrderSqrtPrice: number | bigint; flags: number; }; declare function getOpenTunaLpPositionFusionInstructionDataEncoder(): Encoder; declare function getOpenTunaLpPositionFusionInstructionDataDecoder(): Decoder; declare function getOpenTunaLpPositionFusionInstructionDataCodec(): Codec; type OpenTunaLpPositionFusionInput = { /** * * TUNA accounts * */ authority: TransactionSigner; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; tunaPosition: Address; tunaPositionMint: TransactionSigner; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; /** * * Fusion AMM accounts * */ fusionammProgram: Address; fusionPool: Address; fusionPosition: Address; metadataUpdateAuth: Address; /** * * Other accounts * */ token2022Program: Address; systemProgram?: Address; associatedTokenProgram: Address; tickLowerIndex: OpenTunaLpPositionFusionInstructionDataArgs['tickLowerIndex']; tickUpperIndex: OpenTunaLpPositionFusionInstructionDataArgs['tickUpperIndex']; lowerLimitOrderSqrtPrice: OpenTunaLpPositionFusionInstructionDataArgs['lowerLimitOrderSqrtPrice']; upperLimitOrderSqrtPrice: OpenTunaLpPositionFusionInstructionDataArgs['upperLimitOrderSqrtPrice']; flags: OpenTunaLpPositionFusionInstructionDataArgs['flags']; }; declare function getOpenTunaLpPositionFusionInstruction(input: OpenTunaLpPositionFusionInput, config?: { programAddress?: TProgramAddress; }): OpenTunaLpPositionFusionInstruction; type ParsedOpenTunaLpPositionFusionInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; mintA: TAccountMetas[1]; mintB: TAccountMetas[2]; tokenProgramA: TAccountMetas[3]; tokenProgramB: TAccountMetas[4]; market: TAccountMetas[5]; tunaPosition: TAccountMetas[6]; tunaPositionMint: TAccountMetas[7]; tunaPositionAta: TAccountMetas[8]; tunaPositionAtaA: TAccountMetas[9]; tunaPositionAtaB: TAccountMetas[10]; /** * * Fusion AMM accounts * */ fusionammProgram: TAccountMetas[11]; fusionPool: TAccountMetas[12]; fusionPosition: TAccountMetas[13]; metadataUpdateAuth: TAccountMetas[14]; /** * * Other accounts * */ token2022Program: TAccountMetas[15]; systemProgram: TAccountMetas[16]; associatedTokenProgram: TAccountMetas[17]; }; data: OpenTunaLpPositionFusionInstructionData; }; declare function parseOpenTunaLpPositionFusionInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedOpenTunaLpPositionFusionInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const OPEN_TUNA_LP_POSITION_ORCA_DISCRIMINATOR: Uint8Array; declare function getOpenTunaLpPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array; type OpenTunaLpPositionOrcaInstruction = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionMint extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountWhirlpoolProgram extends string | IAccountMeta = string, TAccountWhirlpool extends string | IAccountMeta = string, TAccountOrcaPosition extends string | IAccountMeta = string, TAccountMetadataUpdateAuth extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountToken2022Program extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TAccountAssociatedTokenProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionMint extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountTunaPositionMint, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountWhirlpoolProgram extends string ? ReadonlyAccount : TAccountWhirlpoolProgram, TAccountWhirlpool extends string ? ReadonlyAccount : TAccountWhirlpool, TAccountOrcaPosition extends string ? WritableAccount : TAccountOrcaPosition, TAccountMetadataUpdateAuth extends string ? ReadonlyAccount : TAccountMetadataUpdateAuth, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountToken2022Program extends string ? ReadonlyAccount : TAccountToken2022Program, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount : TAccountAssociatedTokenProgram, ...TRemainingAccounts ]>; type OpenTunaLpPositionOrcaInstructionData = { discriminator: ReadonlyUint8Array; tickLowerIndex: number; tickUpperIndex: number; lowerLimitOrderSqrtPrice: bigint; upperLimitOrderSqrtPrice: bigint; flags: number; }; type OpenTunaLpPositionOrcaInstructionDataArgs = { tickLowerIndex: number; tickUpperIndex: number; lowerLimitOrderSqrtPrice: number | bigint; upperLimitOrderSqrtPrice: number | bigint; flags: number; }; declare function getOpenTunaLpPositionOrcaInstructionDataEncoder(): Encoder; declare function getOpenTunaLpPositionOrcaInstructionDataDecoder(): Decoder; declare function getOpenTunaLpPositionOrcaInstructionDataCodec(): Codec; type OpenTunaLpPositionOrcaInput = { /** * * TUNA accounts * */ authority: TransactionSigner; mintA: Address; mintB: Address; market: Address; tunaPosition: Address; tunaPositionMint: TransactionSigner; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; /** * * ORCA accounts * */ whirlpoolProgram: Address; whirlpool: Address; orcaPosition: Address; metadataUpdateAuth: Address; tokenProgramA: Address; tokenProgramB: Address; /** * * Other accounts * */ token2022Program: Address; systemProgram?: Address; associatedTokenProgram: Address; tickLowerIndex: OpenTunaLpPositionOrcaInstructionDataArgs['tickLowerIndex']; tickUpperIndex: OpenTunaLpPositionOrcaInstructionDataArgs['tickUpperIndex']; lowerLimitOrderSqrtPrice: OpenTunaLpPositionOrcaInstructionDataArgs['lowerLimitOrderSqrtPrice']; upperLimitOrderSqrtPrice: OpenTunaLpPositionOrcaInstructionDataArgs['upperLimitOrderSqrtPrice']; flags: OpenTunaLpPositionOrcaInstructionDataArgs['flags']; }; declare function getOpenTunaLpPositionOrcaInstruction(input: OpenTunaLpPositionOrcaInput, config?: { programAddress?: TProgramAddress; }): OpenTunaLpPositionOrcaInstruction; type ParsedOpenTunaLpPositionOrcaInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; mintA: TAccountMetas[1]; mintB: TAccountMetas[2]; market: TAccountMetas[3]; tunaPosition: TAccountMetas[4]; tunaPositionMint: TAccountMetas[5]; tunaPositionAta: TAccountMetas[6]; tunaPositionAtaA: TAccountMetas[7]; tunaPositionAtaB: TAccountMetas[8]; /** * * ORCA accounts * */ whirlpoolProgram: TAccountMetas[9]; whirlpool: TAccountMetas[10]; orcaPosition: TAccountMetas[11]; metadataUpdateAuth: TAccountMetas[12]; tokenProgramA: TAccountMetas[13]; tokenProgramB: TAccountMetas[14]; /** * * Other accounts * */ token2022Program: TAccountMetas[15]; systemProgram: TAccountMetas[16]; associatedTokenProgram: TAccountMetas[17]; }; data: OpenTunaLpPositionOrcaInstructionData; }; declare function parseOpenTunaLpPositionOrcaInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedOpenTunaLpPositionOrcaInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const OPEN_TUNA_SPOT_POSITION_DISCRIMINATOR: Uint8Array; declare function getOpenTunaSpotPositionDiscriminatorBytes(): ReadonlyUint8Array; type OpenTunaSpotPositionInstruction = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountPool extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TAccountAssociatedTokenProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount : TAccountAssociatedTokenProgram, ...TRemainingAccounts ]>; type OpenTunaSpotPositionInstructionData = { discriminator: ReadonlyUint8Array; positionToken: PoolToken; collateralToken: PoolToken; }; type OpenTunaSpotPositionInstructionDataArgs = { positionToken: PoolTokenArgs; collateralToken: PoolTokenArgs; }; declare function getOpenTunaSpotPositionInstructionDataEncoder(): Encoder; declare function getOpenTunaSpotPositionInstructionDataDecoder(): Decoder; declare function getOpenTunaSpotPositionInstructionDataCodec(): Codec; type OpenTunaSpotPositionInput = { /** * * TUNA accounts * */ authority: TransactionSigner; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; market: Address; tunaPosition: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; /** * * Fusion or Orca accounts * */ pool: Address; /** * * Other accounts * */ systemProgram?: Address; associatedTokenProgram: Address; positionToken: OpenTunaSpotPositionInstructionDataArgs['positionToken']; collateralToken: OpenTunaSpotPositionInstructionDataArgs['collateralToken']; }; declare function getOpenTunaSpotPositionInstruction(input: OpenTunaSpotPositionInput, config?: { programAddress?: TProgramAddress; }): OpenTunaSpotPositionInstruction; type ParsedOpenTunaSpotPositionInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; mintA: TAccountMetas[1]; mintB: TAccountMetas[2]; tokenProgramA: TAccountMetas[3]; tokenProgramB: TAccountMetas[4]; market: TAccountMetas[5]; tunaPosition: TAccountMetas[6]; tunaPositionAtaA: TAccountMetas[7]; tunaPositionAtaB: TAccountMetas[8]; /** * * Fusion or Orca accounts * */ pool: TAccountMetas[9]; /** * * Other accounts * */ systemProgram: TAccountMetas[10]; associatedTokenProgram: TAccountMetas[11]; }; data: OpenTunaSpotPositionInstructionData; }; declare function parseOpenTunaSpotPositionInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedOpenTunaSpotPositionInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const REBALANCE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR: Uint8Array; declare function getRebalanceTunaLpPositionFusionDiscriminatorBytes(): ReadonlyUint8Array; type RebalanceTunaLpPositionFusionInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountFusionammProgram extends string | IAccountMeta = string, TAccountFusionPool extends string | IAccountMeta = string, TAccountFusionPosition extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountFusionammProgram extends string ? ReadonlyAccount : TAccountFusionammProgram, TAccountFusionPool extends string ? WritableAccount : TAccountFusionPool, TAccountFusionPosition extends string ? WritableAccount : TAccountFusionPosition, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; type RebalanceTunaLpPositionFusionInstructionData = { discriminator: ReadonlyUint8Array; remainingAccountsInfo: RemainingAccountsInfo; }; type RebalanceTunaLpPositionFusionInstructionDataArgs = { remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getRebalanceTunaLpPositionFusionInstructionDataEncoder(): Encoder; declare function getRebalanceTunaLpPositionFusionInstructionDataDecoder(): Decoder; declare function getRebalanceTunaLpPositionFusionInstructionDataCodec(): Codec; type RebalanceTunaLpPositionFusionInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; market: Address; mintA: Address; mintB: Address; tokenProgramA: Address; tokenProgramB: Address; vaultA: Address; vaultB: Address; tunaPosition: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * Fusion accounts * */ fusionammProgram: Address; fusionPool: Address; fusionPosition: Address; memoProgram: Address; remainingAccountsInfo: RebalanceTunaLpPositionFusionInstructionDataArgs['remainingAccountsInfo']; }; declare function getRebalanceTunaLpPositionFusionInstruction(input: RebalanceTunaLpPositionFusionInput, config?: { programAddress?: TProgramAddress; }): RebalanceTunaLpPositionFusionInstruction; type ParsedRebalanceTunaLpPositionFusionInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; market: TAccountMetas[2]; mintA: TAccountMetas[3]; mintB: TAccountMetas[4]; tokenProgramA: TAccountMetas[5]; tokenProgramB: TAccountMetas[6]; vaultA: TAccountMetas[7]; vaultB: TAccountMetas[8]; tunaPosition: TAccountMetas[9]; tunaPositionAta: TAccountMetas[10]; tunaPositionAtaA: TAccountMetas[11]; tunaPositionAtaB: TAccountMetas[12]; feeRecipientAtaA: TAccountMetas[13]; feeRecipientAtaB: TAccountMetas[14]; oraclePriceUpdateA: TAccountMetas[15]; oraclePriceUpdateB: TAccountMetas[16]; /** * * Fusion accounts * */ fusionammProgram: TAccountMetas[17]; fusionPool: TAccountMetas[18]; fusionPosition: TAccountMetas[19]; memoProgram: TAccountMetas[20]; }; data: RebalanceTunaLpPositionFusionInstructionData; }; declare function parseRebalanceTunaLpPositionFusionInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedRebalanceTunaLpPositionFusionInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const REBALANCE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR: Uint8Array; declare function getRebalanceTunaLpPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array; type RebalanceTunaLpPositionOrcaInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAta extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountFeeRecipientAtaA extends string | IAccountMeta = string, TAccountFeeRecipientAtaB extends string | IAccountMeta = string, TAccountOraclePriceUpdateA extends string | IAccountMeta = string, TAccountOraclePriceUpdateB extends string | IAccountMeta = string, TAccountWhirlpoolProgram extends string | IAccountMeta = string, TAccountWhirlpool extends string | IAccountMeta = string, TAccountOrcaPosition extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TAccountMemoProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAta extends string ? WritableAccount : TAccountTunaPositionAta, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA extends string ? WritableAccount : TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB extends string ? WritableAccount : TAccountFeeRecipientAtaB, TAccountOraclePriceUpdateA extends string ? ReadonlyAccount : TAccountOraclePriceUpdateA, TAccountOraclePriceUpdateB extends string ? ReadonlyAccount : TAccountOraclePriceUpdateB, TAccountWhirlpoolProgram extends string ? ReadonlyAccount : TAccountWhirlpoolProgram, TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountOrcaPosition extends string ? WritableAccount : TAccountOrcaPosition, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; type RebalanceTunaLpPositionOrcaInstructionData = { discriminator: ReadonlyUint8Array; remainingAccountsInfo: RemainingAccountsInfo; }; type RebalanceTunaLpPositionOrcaInstructionDataArgs = { remainingAccountsInfo: RemainingAccountsInfoArgs; }; declare function getRebalanceTunaLpPositionOrcaInstructionDataEncoder(): Encoder; declare function getRebalanceTunaLpPositionOrcaInstructionDataDecoder(): Decoder; declare function getRebalanceTunaLpPositionOrcaInstructionDataCodec(): Codec; type RebalanceTunaLpPositionOrcaInput = { /** * * TUNA accounts * */ authority: TransactionSigner; tunaConfig: Address; mintA: Address; mintB: Address; market: Address; vaultA: Address; vaultB: Address; tunaPosition: Address; tunaPositionAta: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; feeRecipientAtaA: Address; feeRecipientAtaB: Address; oraclePriceUpdateA: Address; oraclePriceUpdateB: Address; /** * * ORCA accounts * */ whirlpoolProgram: Address; whirlpool: Address; orcaPosition: Address; tokenProgramA: Address; tokenProgramB: Address; systemProgram?: Address; memoProgram: Address; remainingAccountsInfo: RebalanceTunaLpPositionOrcaInstructionDataArgs['remainingAccountsInfo']; }; declare function getRebalanceTunaLpPositionOrcaInstruction(input: RebalanceTunaLpPositionOrcaInput, config?: { programAddress?: TProgramAddress; }): RebalanceTunaLpPositionOrcaInstruction; type ParsedRebalanceTunaLpPositionOrcaInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; mintA: TAccountMetas[2]; mintB: TAccountMetas[3]; market: TAccountMetas[4]; vaultA: TAccountMetas[5]; vaultB: TAccountMetas[6]; tunaPosition: TAccountMetas[7]; tunaPositionAta: TAccountMetas[8]; tunaPositionAtaA: TAccountMetas[9]; tunaPositionAtaB: TAccountMetas[10]; feeRecipientAtaA: TAccountMetas[11]; feeRecipientAtaB: TAccountMetas[12]; oraclePriceUpdateA: TAccountMetas[13]; oraclePriceUpdateB: TAccountMetas[14]; /** * * ORCA accounts * */ whirlpoolProgram: TAccountMetas[15]; whirlpool: TAccountMetas[16]; orcaPosition: TAccountMetas[17]; tokenProgramA: TAccountMetas[18]; tokenProgramB: TAccountMetas[19]; systemProgram: TAccountMetas[20]; memoProgram: TAccountMetas[21]; }; data: RebalanceTunaLpPositionOrcaInstructionData; }; declare function parseRebalanceTunaLpPositionOrcaInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedRebalanceTunaLpPositionOrcaInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const REPAY_BAD_DEBT_DISCRIMINATOR: Uint8Array; declare function getRepayBadDebtDiscriminatorBytes(): ReadonlyUint8Array; type RepayBadDebtInstruction = string, TAccountMint extends string | IAccountMeta = string, TAccountVault extends string | IAccountMeta = string, TAccountVaultAta extends string | IAccountMeta = string, TAccountAuthorityAta extends string | IAccountMeta = string, TAccountTokenProgram extends string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountMemoProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? ReadonlySignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountVault extends string ? WritableAccount : TAccountVault, TAccountVaultAta extends string ? WritableAccount : TAccountVaultAta, TAccountAuthorityAta extends string ? WritableAccount : TAccountAuthorityAta, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; type RepayBadDebtInstructionData = { discriminator: ReadonlyUint8Array; funds: bigint; shares: bigint; }; type RepayBadDebtInstructionDataArgs = { funds: number | bigint; shares: number | bigint; }; declare function getRepayBadDebtInstructionDataEncoder(): Encoder; declare function getRepayBadDebtInstructionDataDecoder(): Decoder; declare function getRepayBadDebtInstructionDataCodec(): Codec; type RepayBadDebtInput = { authority: TransactionSigner; mint: Address; vault: Address; vaultAta: Address; authorityAta: Address; tokenProgram?: Address; memoProgram: Address; funds: RepayBadDebtInstructionDataArgs['funds']; shares: RepayBadDebtInstructionDataArgs['shares']; }; declare function getRepayBadDebtInstruction(input: RepayBadDebtInput, config?: { programAddress?: TProgramAddress; }): RepayBadDebtInstruction; type ParsedRepayBadDebtInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; mint: TAccountMetas[1]; vault: TAccountMetas[2]; vaultAta: TAccountMetas[3]; authorityAta: TAccountMetas[4]; tokenProgram: TAccountMetas[5]; memoProgram: TAccountMetas[6]; }; data: RepayBadDebtInstructionData; }; declare function parseRepayBadDebtInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedRepayBadDebtInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const REPAY_TUNA_LP_POSITION_DEBT_DISCRIMINATOR: Uint8Array; declare function getRepayTunaLpPositionDebtDiscriminatorBytes(): ReadonlyUint8Array; type RepayTunaLpPositionDebtInstruction = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TAccountVaultAAta extends string | IAccountMeta = string, TAccountVaultBAta extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta = string, TAccountTokenProgramA extends string | IAccountMeta = string, TAccountTokenProgramB extends string | IAccountMeta = string, TAccountMemoProgram extends string | IAccountMeta = string, TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, TAccountVaultAAta extends string ? WritableAccount : TAccountVaultAAta, TAccountVaultBAta extends string ? WritableAccount : TAccountVaultBAta, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA extends string ? WritableAccount : TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB extends string ? WritableAccount : TAccountTunaPositionOwnerAtaB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type RepayTunaLpPositionDebtInstructionData = { discriminator: ReadonlyUint8Array; collateralFundsA: bigint; collateralFundsB: bigint; }; type RepayTunaLpPositionDebtInstructionDataArgs = { collateralFundsA: number | bigint; collateralFundsB: number | bigint; }; declare function getRepayTunaLpPositionDebtInstructionDataEncoder(): Encoder; declare function getRepayTunaLpPositionDebtInstructionDataDecoder(): Decoder; declare function getRepayTunaLpPositionDebtInstructionDataCodec(): Codec; type RepayTunaLpPositionDebtInput = { /** * * TUNA accounts * */ authority: TransactionSigner; mintA: Address; mintB: Address; market: Address; vaultA: Address; vaultB: Address; vaultAAta: Address; vaultBAta: Address; tunaPosition: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; tunaPositionOwnerAtaA: Address; tunaPositionOwnerAtaB: Address; /** * * Other accounts * */ tokenProgramA: Address; tokenProgramB: Address; memoProgram: Address; systemProgram?: Address; collateralFundsA: RepayTunaLpPositionDebtInstructionDataArgs['collateralFundsA']; collateralFundsB: RepayTunaLpPositionDebtInstructionDataArgs['collateralFundsB']; }; declare function getRepayTunaLpPositionDebtInstruction(input: RepayTunaLpPositionDebtInput, config?: { programAddress?: TProgramAddress; }): RepayTunaLpPositionDebtInstruction; type ParsedRepayTunaLpPositionDebtInstruction = { programAddress: Address; accounts: { /** * * TUNA accounts * */ authority: TAccountMetas[0]; mintA: TAccountMetas[1]; mintB: TAccountMetas[2]; market: TAccountMetas[3]; vaultA: TAccountMetas[4]; vaultB: TAccountMetas[5]; vaultAAta: TAccountMetas[6]; vaultBAta: TAccountMetas[7]; tunaPosition: TAccountMetas[8]; tunaPositionAtaA: TAccountMetas[9]; tunaPositionAtaB: TAccountMetas[10]; tunaPositionOwnerAtaA: TAccountMetas[11]; tunaPositionOwnerAtaB: TAccountMetas[12]; /** * * Other accounts * */ tokenProgramA: TAccountMetas[13]; tokenProgramB: TAccountMetas[14]; memoProgram: TAccountMetas[15]; systemProgram: TAccountMetas[16]; }; data: RepayTunaLpPositionDebtInstructionData; }; declare function parseRepayTunaLpPositionDebtInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedRepayTunaLpPositionDebtInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const RESET_MARKET_BAD_DEBT_DISCRIMINATOR: Uint8Array; declare function getResetMarketBadDebtDiscriminatorBytes(): ReadonlyUint8Array; type ResetMarketBadDebtInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TAccountVaultA extends string | IAccountMeta = string, TAccountVaultB extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountVaultA extends string ? WritableAccount : TAccountVaultA, TAccountVaultB extends string ? WritableAccount : TAccountVaultB, ...TRemainingAccounts ]>; type ResetMarketBadDebtInstructionData = { discriminator: ReadonlyUint8Array; }; type ResetMarketBadDebtInstructionDataArgs = {}; declare function getResetMarketBadDebtInstructionDataEncoder(): Encoder; declare function getResetMarketBadDebtInstructionDataDecoder(): Decoder; declare function getResetMarketBadDebtInstructionDataCodec(): Codec; type ResetMarketBadDebtInput = { authority: TransactionSigner; tunaConfig: Address; market: Address; vaultA: Address; vaultB: Address; }; declare function getResetMarketBadDebtInstruction(input: ResetMarketBadDebtInput, config?: { programAddress?: TProgramAddress; }): ResetMarketBadDebtInstruction; type ParsedResetMarketBadDebtInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; market: TAccountMetas[2]; vaultA: TAccountMetas[3]; vaultB: TAccountMetas[4]; }; data: ResetMarketBadDebtInstructionData; }; declare function parseResetMarketBadDebtInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedResetMarketBadDebtInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const RESET_TUNA_SPOT_POSITION_DISCRIMINATOR: Uint8Array; declare function getResetTunaSpotPositionDiscriminatorBytes(): ReadonlyUint8Array; type ResetTunaSpotPositionInstruction = string, TAccountMintA extends string | IAccountMeta = string, TAccountMintB extends string | IAccountMeta = string, TAccountTunaPosition extends string | IAccountMeta = string, TAccountTunaPositionAtaA extends string | IAccountMeta = string, TAccountTunaPositionAtaB extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? ReadonlySignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountMintA extends string ? ReadonlyAccount : TAccountMintA, TAccountMintB extends string ? ReadonlyAccount : TAccountMintB, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, TAccountTunaPositionAtaA extends string ? WritableAccount : TAccountTunaPositionAtaA, TAccountTunaPositionAtaB extends string ? WritableAccount : TAccountTunaPositionAtaB, ...TRemainingAccounts ]>; type ResetTunaSpotPositionInstructionData = { discriminator: ReadonlyUint8Array; positionToken: PoolToken; collateralToken: PoolToken; }; type ResetTunaSpotPositionInstructionDataArgs = { positionToken: PoolTokenArgs; collateralToken: PoolTokenArgs; }; declare function getResetTunaSpotPositionInstructionDataEncoder(): Encoder; declare function getResetTunaSpotPositionInstructionDataDecoder(): Decoder; declare function getResetTunaSpotPositionInstructionDataCodec(): Codec; type ResetTunaSpotPositionInput = { authority: TransactionSigner; mintA: Address; mintB: Address; tunaPosition: Address; tunaPositionAtaA: Address; tunaPositionAtaB: Address; positionToken: ResetTunaSpotPositionInstructionDataArgs['positionToken']; collateralToken: ResetTunaSpotPositionInstructionDataArgs['collateralToken']; }; declare function getResetTunaSpotPositionInstruction(input: ResetTunaSpotPositionInput, config?: { programAddress?: TProgramAddress; }): ResetTunaSpotPositionInstruction; type ParsedResetTunaSpotPositionInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; mintA: TAccountMetas[1]; mintB: TAccountMetas[2]; tunaPosition: TAccountMetas[3]; tunaPositionAtaA: TAccountMetas[4]; tunaPositionAtaB: TAccountMetas[5]; }; data: ResetTunaSpotPositionInstructionData; }; declare function parseResetTunaSpotPositionInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedResetTunaSpotPositionInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SET_ADMIN_AUTHORITY_DISCRIMINATOR: Uint8Array; declare function getSetAdminAuthorityDiscriminatorBytes(): ReadonlyUint8Array; type SetAdminAuthorityInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? WritableAccount : TAccountTunaConfig, ...TRemainingAccounts ]>; type SetAdminAuthorityInstructionData = { discriminator: ReadonlyUint8Array; adminAuthority: Address; }; type SetAdminAuthorityInstructionDataArgs = { adminAuthority: Address; }; declare function getSetAdminAuthorityInstructionDataEncoder(): Encoder; declare function getSetAdminAuthorityInstructionDataDecoder(): Decoder; declare function getSetAdminAuthorityInstructionDataCodec(): Codec; type SetAdminAuthorityInput = { authority: TransactionSigner; tunaConfig: Address; adminAuthority: SetAdminAuthorityInstructionDataArgs['adminAuthority']; }; declare function getSetAdminAuthorityInstruction(input: SetAdminAuthorityInput, config?: { programAddress?: TProgramAddress; }): SetAdminAuthorityInstruction; type ParsedSetAdminAuthorityInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; }; data: SetAdminAuthorityInstructionData; }; declare function parseSetAdminAuthorityInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSetAdminAuthorityInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SET_DEFAULT_LIQUIDATION_FEE_RATE_DISCRIMINATOR: Uint8Array; declare function getSetDefaultLiquidationFeeRateDiscriminatorBytes(): ReadonlyUint8Array; type SetDefaultLiquidationFeeRateInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? WritableAccount : TAccountTunaConfig, ...TRemainingAccounts ]>; type SetDefaultLiquidationFeeRateInstructionData = { discriminator: ReadonlyUint8Array; defaultLiquidationFeeRate: number; }; type SetDefaultLiquidationFeeRateInstructionDataArgs = { defaultLiquidationFeeRate: number; }; declare function getSetDefaultLiquidationFeeRateInstructionDataEncoder(): Encoder; declare function getSetDefaultLiquidationFeeRateInstructionDataDecoder(): Decoder; declare function getSetDefaultLiquidationFeeRateInstructionDataCodec(): Codec; type SetDefaultLiquidationFeeRateInput = { authority: TransactionSigner; tunaConfig: Address; defaultLiquidationFeeRate: SetDefaultLiquidationFeeRateInstructionDataArgs['defaultLiquidationFeeRate']; }; declare function getSetDefaultLiquidationFeeRateInstruction(input: SetDefaultLiquidationFeeRateInput, config?: { programAddress?: TProgramAddress; }): SetDefaultLiquidationFeeRateInstruction; type ParsedSetDefaultLiquidationFeeRateInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; }; data: SetDefaultLiquidationFeeRateInstructionData; }; declare function parseSetDefaultLiquidationFeeRateInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSetDefaultLiquidationFeeRateInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SET_DEFAULT_MAX_PERCENTAGE_OF_LEFTOVERS_DISCRIMINATOR: Uint8Array; declare function getSetDefaultMaxPercentageOfLeftoversDiscriminatorBytes(): ReadonlyUint8Array; type SetDefaultMaxPercentageOfLeftoversInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? WritableAccount : TAccountTunaConfig, ...TRemainingAccounts ]>; type SetDefaultMaxPercentageOfLeftoversInstructionData = { discriminator: ReadonlyUint8Array; maxPercentageOfLeftovers: number; }; type SetDefaultMaxPercentageOfLeftoversInstructionDataArgs = { maxPercentageOfLeftovers: number; }; declare function getSetDefaultMaxPercentageOfLeftoversInstructionDataEncoder(): Encoder; declare function getSetDefaultMaxPercentageOfLeftoversInstructionDataDecoder(): Decoder; declare function getSetDefaultMaxPercentageOfLeftoversInstructionDataCodec(): Codec; type SetDefaultMaxPercentageOfLeftoversInput = { authority: TransactionSigner; tunaConfig: Address; maxPercentageOfLeftovers: SetDefaultMaxPercentageOfLeftoversInstructionDataArgs['maxPercentageOfLeftovers']; }; declare function getSetDefaultMaxPercentageOfLeftoversInstruction(input: SetDefaultMaxPercentageOfLeftoversInput, config?: { programAddress?: TProgramAddress; }): SetDefaultMaxPercentageOfLeftoversInstruction; type ParsedSetDefaultMaxPercentageOfLeftoversInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; }; data: SetDefaultMaxPercentageOfLeftoversInstructionData; }; declare function parseSetDefaultMaxPercentageOfLeftoversInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSetDefaultMaxPercentageOfLeftoversInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SET_DEFAULT_ORACLE_PRICE_DEVIATION_THRESHOLD_DISCRIMINATOR: Uint8Array; declare function getSetDefaultOraclePriceDeviationThresholdDiscriminatorBytes(): ReadonlyUint8Array; type SetDefaultOraclePriceDeviationThresholdInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? WritableAccount : TAccountTunaConfig, ...TRemainingAccounts ]>; type SetDefaultOraclePriceDeviationThresholdInstructionData = { discriminator: ReadonlyUint8Array; oraclePriceDeviationThreshold: number; }; type SetDefaultOraclePriceDeviationThresholdInstructionDataArgs = { oraclePriceDeviationThreshold: number; }; declare function getSetDefaultOraclePriceDeviationThresholdInstructionDataEncoder(): Encoder; declare function getSetDefaultOraclePriceDeviationThresholdInstructionDataDecoder(): Decoder; declare function getSetDefaultOraclePriceDeviationThresholdInstructionDataCodec(): Codec; type SetDefaultOraclePriceDeviationThresholdInput = { authority: TransactionSigner; tunaConfig: Address; oraclePriceDeviationThreshold: SetDefaultOraclePriceDeviationThresholdInstructionDataArgs['oraclePriceDeviationThreshold']; }; declare function getSetDefaultOraclePriceDeviationThresholdInstruction(input: SetDefaultOraclePriceDeviationThresholdInput, config?: { programAddress?: TProgramAddress; }): SetDefaultOraclePriceDeviationThresholdInstruction; type ParsedSetDefaultOraclePriceDeviationThresholdInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; }; data: SetDefaultOraclePriceDeviationThresholdInstructionData; }; declare function parseSetDefaultOraclePriceDeviationThresholdInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSetDefaultOraclePriceDeviationThresholdInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SET_DEFAULT_PROTOCOL_FEE_RATE_DISCRIMINATOR: Uint8Array; declare function getSetDefaultProtocolFeeRateDiscriminatorBytes(): ReadonlyUint8Array; type SetDefaultProtocolFeeRateInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? WritableAccount : TAccountTunaConfig, ...TRemainingAccounts ]>; type SetDefaultProtocolFeeRateInstructionData = { discriminator: ReadonlyUint8Array; defaultProtocolFeeRate: number; }; type SetDefaultProtocolFeeRateInstructionDataArgs = { defaultProtocolFeeRate: number; }; declare function getSetDefaultProtocolFeeRateInstructionDataEncoder(): Encoder; declare function getSetDefaultProtocolFeeRateInstructionDataDecoder(): Decoder; declare function getSetDefaultProtocolFeeRateInstructionDataCodec(): Codec; type SetDefaultProtocolFeeRateInput = { authority: TransactionSigner; tunaConfig: Address; defaultProtocolFeeRate: SetDefaultProtocolFeeRateInstructionDataArgs['defaultProtocolFeeRate']; }; declare function getSetDefaultProtocolFeeRateInstruction(input: SetDefaultProtocolFeeRateInput, config?: { programAddress?: TProgramAddress; }): SetDefaultProtocolFeeRateInstruction; type ParsedSetDefaultProtocolFeeRateInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; }; data: SetDefaultProtocolFeeRateInstructionData; }; declare function parseSetDefaultProtocolFeeRateInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSetDefaultProtocolFeeRateInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SET_DEFAULT_REBALANCE_FEE_RATE_DISCRIMINATOR: Uint8Array; declare function getSetDefaultRebalanceFeeRateDiscriminatorBytes(): ReadonlyUint8Array; type SetDefaultRebalanceFeeRateInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? WritableAccount : TAccountTunaConfig, ...TRemainingAccounts ]>; type SetDefaultRebalanceFeeRateInstructionData = { discriminator: ReadonlyUint8Array; defaultRebalanceFeeRate: number; }; type SetDefaultRebalanceFeeRateInstructionDataArgs = { defaultRebalanceFeeRate: number; }; declare function getSetDefaultRebalanceFeeRateInstructionDataEncoder(): Encoder; declare function getSetDefaultRebalanceFeeRateInstructionDataDecoder(): Decoder; declare function getSetDefaultRebalanceFeeRateInstructionDataCodec(): Codec; type SetDefaultRebalanceFeeRateInput = { authority: TransactionSigner; tunaConfig: Address; defaultRebalanceFeeRate: SetDefaultRebalanceFeeRateInstructionDataArgs['defaultRebalanceFeeRate']; }; declare function getSetDefaultRebalanceFeeRateInstruction(input: SetDefaultRebalanceFeeRateInput, config?: { programAddress?: TProgramAddress; }): SetDefaultRebalanceFeeRateInstruction; type ParsedSetDefaultRebalanceFeeRateInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; }; data: SetDefaultRebalanceFeeRateInstructionData; }; declare function parseSetDefaultRebalanceFeeRateInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSetDefaultRebalanceFeeRateInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SET_FEE_RECIPIENT_DISCRIMINATOR: Uint8Array; declare function getSetFeeRecipientDiscriminatorBytes(): ReadonlyUint8Array; type SetFeeRecipientInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? WritableAccount : TAccountTunaConfig, ...TRemainingAccounts ]>; type SetFeeRecipientInstructionData = { discriminator: ReadonlyUint8Array; feeRecipient: Address; }; type SetFeeRecipientInstructionDataArgs = { feeRecipient: Address; }; declare function getSetFeeRecipientInstructionDataEncoder(): Encoder; declare function getSetFeeRecipientInstructionDataDecoder(): Decoder; declare function getSetFeeRecipientInstructionDataCodec(): Codec; type SetFeeRecipientInput = { authority: TransactionSigner; tunaConfig: Address; feeRecipient: SetFeeRecipientInstructionDataArgs['feeRecipient']; }; declare function getSetFeeRecipientInstruction(input: SetFeeRecipientInput, config?: { programAddress?: TProgramAddress; }): SetFeeRecipientInstruction; type ParsedSetFeeRecipientInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; }; data: SetFeeRecipientInstructionData; }; declare function parseSetFeeRecipientInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSetFeeRecipientInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SET_LIQUIDATOR_AUTHORITY_DISCRIMINATOR: Uint8Array; declare function getSetLiquidatorAuthorityDiscriminatorBytes(): ReadonlyUint8Array; type SetLiquidatorAuthorityInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? WritableAccount : TAccountTunaConfig, ...TRemainingAccounts ]>; type SetLiquidatorAuthorityInstructionData = { discriminator: ReadonlyUint8Array; liquidatorAuthority: Address; }; type SetLiquidatorAuthorityInstructionDataArgs = { liquidatorAuthority: Address; }; declare function getSetLiquidatorAuthorityInstructionDataEncoder(): Encoder; declare function getSetLiquidatorAuthorityInstructionDataDecoder(): Decoder; declare function getSetLiquidatorAuthorityInstructionDataCodec(): Codec; type SetLiquidatorAuthorityInput = { authority: TransactionSigner; tunaConfig: Address; liquidatorAuthority: SetLiquidatorAuthorityInstructionDataArgs['liquidatorAuthority']; }; declare function getSetLiquidatorAuthorityInstruction(input: SetLiquidatorAuthorityInput, config?: { programAddress?: TProgramAddress; }): SetLiquidatorAuthorityInstruction; type ParsedSetLiquidatorAuthorityInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; }; data: SetLiquidatorAuthorityInstructionData; }; declare function parseSetLiquidatorAuthorityInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSetLiquidatorAuthorityInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SET_ORACLE_PRICE_UPDATE_AUTHORITY_DISCRIMINATOR: Uint8Array; declare function getSetOraclePriceUpdateAuthorityDiscriminatorBytes(): ReadonlyUint8Array; type SetOraclePriceUpdateAuthorityInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? WritableAccount : TAccountTunaConfig, ...TRemainingAccounts ]>; type SetOraclePriceUpdateAuthorityInstructionData = { discriminator: ReadonlyUint8Array; oraclePriceUpdateAuthority: Address; }; type SetOraclePriceUpdateAuthorityInstructionDataArgs = { oraclePriceUpdateAuthority: Address; }; declare function getSetOraclePriceUpdateAuthorityInstructionDataEncoder(): Encoder; declare function getSetOraclePriceUpdateAuthorityInstructionDataDecoder(): Decoder; declare function getSetOraclePriceUpdateAuthorityInstructionDataCodec(): Codec; type SetOraclePriceUpdateAuthorityInput = { authority: TransactionSigner; tunaConfig: Address; oraclePriceUpdateAuthority: SetOraclePriceUpdateAuthorityInstructionDataArgs['oraclePriceUpdateAuthority']; }; declare function getSetOraclePriceUpdateAuthorityInstruction(input: SetOraclePriceUpdateAuthorityInput, config?: { programAddress?: TProgramAddress; }): SetOraclePriceUpdateAuthorityInstruction; type ParsedSetOraclePriceUpdateAuthorityInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; }; data: SetOraclePriceUpdateAuthorityInstructionData; }; declare function parseSetOraclePriceUpdateAuthorityInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSetOraclePriceUpdateAuthorityInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SET_OWNER_AUTHORITY_DISCRIMINATOR: Uint8Array; declare function getSetOwnerAuthorityDiscriminatorBytes(): ReadonlyUint8Array; type SetOwnerAuthorityInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? WritableAccount : TAccountTunaConfig, ...TRemainingAccounts ]>; type SetOwnerAuthorityInstructionData = { discriminator: ReadonlyUint8Array; ownerAuthority: Address; }; type SetOwnerAuthorityInstructionDataArgs = { ownerAuthority: Address; }; declare function getSetOwnerAuthorityInstructionDataEncoder(): Encoder; declare function getSetOwnerAuthorityInstructionDataDecoder(): Decoder; declare function getSetOwnerAuthorityInstructionDataCodec(): Codec; type SetOwnerAuthorityInput = { authority: TransactionSigner; tunaConfig: Address; ownerAuthority: SetOwnerAuthorityInstructionDataArgs['ownerAuthority']; }; declare function getSetOwnerAuthorityInstruction(input: SetOwnerAuthorityInput, config?: { programAddress?: TProgramAddress; }): SetOwnerAuthorityInstruction; type ParsedSetOwnerAuthorityInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; }; data: SetOwnerAuthorityInstructionData; }; declare function parseSetOwnerAuthorityInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSetOwnerAuthorityInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SET_SUSPENDED_STATE_DISCRIMINATOR: Uint8Array; declare function getSetSuspendedStateDiscriminatorBytes(): ReadonlyUint8Array; type SetSuspendedStateInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? WritableAccount : TAccountTunaConfig, ...TRemainingAccounts ]>; type SetSuspendedStateInstructionData = { discriminator: ReadonlyUint8Array; suspendLendingDeposits: boolean; suspendLendingWithdrawals: boolean; suspendAddLiquidity: boolean; suspendRemoveLiquidity: boolean; }; type SetSuspendedStateInstructionDataArgs = { suspendLendingDeposits: boolean; suspendLendingWithdrawals: boolean; suspendAddLiquidity: boolean; suspendRemoveLiquidity: boolean; }; declare function getSetSuspendedStateInstructionDataEncoder(): Encoder; declare function getSetSuspendedStateInstructionDataDecoder(): Decoder; declare function getSetSuspendedStateInstructionDataCodec(): Codec; type SetSuspendedStateInput = { authority: TransactionSigner; tunaConfig: Address; suspendLendingDeposits: SetSuspendedStateInstructionDataArgs['suspendLendingDeposits']; suspendLendingWithdrawals: SetSuspendedStateInstructionDataArgs['suspendLendingWithdrawals']; suspendAddLiquidity: SetSuspendedStateInstructionDataArgs['suspendAddLiquidity']; suspendRemoveLiquidity: SetSuspendedStateInstructionDataArgs['suspendRemoveLiquidity']; }; declare function getSetSuspendedStateInstruction(input: SetSuspendedStateInput, config?: { programAddress?: TProgramAddress; }): SetSuspendedStateInstruction; type ParsedSetSuspendedStateInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; }; data: SetSuspendedStateInstructionData; }; declare function parseSetSuspendedStateInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSetSuspendedStateInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SET_TUNA_LP_POSITION_FLAGS_DISCRIMINATOR: Uint8Array; declare function getSetTunaLpPositionFlagsDiscriminatorBytes(): ReadonlyUint8Array; type SetTunaLpPositionFlagsInstruction = string, TAccountTunaPosition extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? ReadonlySignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, ...TRemainingAccounts ]>; type SetTunaLpPositionFlagsInstructionData = { discriminator: ReadonlyUint8Array; flags: number; }; type SetTunaLpPositionFlagsInstructionDataArgs = { flags: number; }; declare function getSetTunaLpPositionFlagsInstructionDataEncoder(): Encoder; declare function getSetTunaLpPositionFlagsInstructionDataDecoder(): Decoder; declare function getSetTunaLpPositionFlagsInstructionDataCodec(): Codec; type SetTunaLpPositionFlagsInput = { authority: TransactionSigner; tunaPosition: Address; flags: SetTunaLpPositionFlagsInstructionDataArgs['flags']; }; declare function getSetTunaLpPositionFlagsInstruction(input: SetTunaLpPositionFlagsInput, config?: { programAddress?: TProgramAddress; }): SetTunaLpPositionFlagsInstruction; type ParsedSetTunaLpPositionFlagsInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaPosition: TAccountMetas[1]; }; data: SetTunaLpPositionFlagsInstructionData; }; declare function parseSetTunaLpPositionFlagsInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSetTunaLpPositionFlagsInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SET_TUNA_LP_POSITION_LIMIT_ORDERS_DISCRIMINATOR: Uint8Array; declare function getSetTunaLpPositionLimitOrdersDiscriminatorBytes(): ReadonlyUint8Array; type SetTunaLpPositionLimitOrdersInstruction = string, TAccountTunaPosition extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? ReadonlySignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, ...TRemainingAccounts ]>; type SetTunaLpPositionLimitOrdersInstructionData = { discriminator: ReadonlyUint8Array; lowerLimitOrderSqrtPrice: bigint; upperLimitOrderSqrtPrice: bigint; swapToTokenOnLimitOrder: number; }; type SetTunaLpPositionLimitOrdersInstructionDataArgs = { lowerLimitOrderSqrtPrice: number | bigint; upperLimitOrderSqrtPrice: number | bigint; swapToTokenOnLimitOrder: number; }; declare function getSetTunaLpPositionLimitOrdersInstructionDataEncoder(): Encoder; declare function getSetTunaLpPositionLimitOrdersInstructionDataDecoder(): Decoder; declare function getSetTunaLpPositionLimitOrdersInstructionDataCodec(): Codec; type SetTunaLpPositionLimitOrdersInput = { authority: TransactionSigner; tunaPosition: Address; lowerLimitOrderSqrtPrice: SetTunaLpPositionLimitOrdersInstructionDataArgs['lowerLimitOrderSqrtPrice']; upperLimitOrderSqrtPrice: SetTunaLpPositionLimitOrdersInstructionDataArgs['upperLimitOrderSqrtPrice']; swapToTokenOnLimitOrder: SetTunaLpPositionLimitOrdersInstructionDataArgs['swapToTokenOnLimitOrder']; }; declare function getSetTunaLpPositionLimitOrdersInstruction(input: SetTunaLpPositionLimitOrdersInput, config?: { programAddress?: TProgramAddress; }): SetTunaLpPositionLimitOrdersInstruction; type ParsedSetTunaLpPositionLimitOrdersInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaPosition: TAccountMetas[1]; }; data: SetTunaLpPositionLimitOrdersInstructionData; }; declare function parseSetTunaLpPositionLimitOrdersInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSetTunaLpPositionLimitOrdersInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SET_TUNA_LP_POSITION_REBALANCE_THRESHOLD_DISCRIMINATOR: Uint8Array; declare function getSetTunaLpPositionRebalanceThresholdDiscriminatorBytes(): ReadonlyUint8Array; type SetTunaLpPositionRebalanceThresholdInstruction = string, TAccountTunaPosition extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? ReadonlySignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, ...TRemainingAccounts ]>; type SetTunaLpPositionRebalanceThresholdInstructionData = { discriminator: ReadonlyUint8Array; rebalanceThresholdTicks: number; }; type SetTunaLpPositionRebalanceThresholdInstructionDataArgs = { rebalanceThresholdTicks: number; }; declare function getSetTunaLpPositionRebalanceThresholdInstructionDataEncoder(): Encoder; declare function getSetTunaLpPositionRebalanceThresholdInstructionDataDecoder(): Decoder; declare function getSetTunaLpPositionRebalanceThresholdInstructionDataCodec(): Codec; type SetTunaLpPositionRebalanceThresholdInput = { authority: TransactionSigner; tunaPosition: Address; rebalanceThresholdTicks: SetTunaLpPositionRebalanceThresholdInstructionDataArgs['rebalanceThresholdTicks']; }; declare function getSetTunaLpPositionRebalanceThresholdInstruction(input: SetTunaLpPositionRebalanceThresholdInput, config?: { programAddress?: TProgramAddress; }): SetTunaLpPositionRebalanceThresholdInstruction; type ParsedSetTunaLpPositionRebalanceThresholdInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaPosition: TAccountMetas[1]; }; data: SetTunaLpPositionRebalanceThresholdInstructionData; }; declare function parseSetTunaLpPositionRebalanceThresholdInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSetTunaLpPositionRebalanceThresholdInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SET_TUNA_SPOT_POSITION_LIMIT_ORDERS_DISCRIMINATOR: Uint8Array; declare function getSetTunaSpotPositionLimitOrdersDiscriminatorBytes(): ReadonlyUint8Array; type SetTunaSpotPositionLimitOrdersInstruction = string, TAccountTunaPosition extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? ReadonlySignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaPosition extends string ? WritableAccount : TAccountTunaPosition, ...TRemainingAccounts ]>; type SetTunaSpotPositionLimitOrdersInstructionData = { discriminator: ReadonlyUint8Array; lowerLimitOrderSqrtPrice: bigint; upperLimitOrderSqrtPrice: bigint; }; type SetTunaSpotPositionLimitOrdersInstructionDataArgs = { lowerLimitOrderSqrtPrice: number | bigint; upperLimitOrderSqrtPrice: number | bigint; }; declare function getSetTunaSpotPositionLimitOrdersInstructionDataEncoder(): Encoder; declare function getSetTunaSpotPositionLimitOrdersInstructionDataDecoder(): Decoder; declare function getSetTunaSpotPositionLimitOrdersInstructionDataCodec(): Codec; type SetTunaSpotPositionLimitOrdersInput = { authority: TransactionSigner; tunaPosition: Address; lowerLimitOrderSqrtPrice: SetTunaSpotPositionLimitOrdersInstructionDataArgs['lowerLimitOrderSqrtPrice']; upperLimitOrderSqrtPrice: SetTunaSpotPositionLimitOrdersInstructionDataArgs['upperLimitOrderSqrtPrice']; }; declare function getSetTunaSpotPositionLimitOrdersInstruction(input: SetTunaSpotPositionLimitOrdersInput, config?: { programAddress?: TProgramAddress; }): SetTunaSpotPositionLimitOrdersInstruction; type ParsedSetTunaSpotPositionLimitOrdersInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaPosition: TAccountMetas[1]; }; data: SetTunaSpotPositionLimitOrdersInstructionData; }; declare function parseSetTunaSpotPositionLimitOrdersInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSetTunaSpotPositionLimitOrdersInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const SOCIALIZE_BAD_DEBT_DISCRIMINATOR: Uint8Array; declare function getSocializeBadDebtDiscriminatorBytes(): ReadonlyUint8Array; type SocializeBadDebtInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountVault extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountVault extends string ? WritableAccount : TAccountVault, ...TRemainingAccounts ]>; type SocializeBadDebtInstructionData = { discriminator: ReadonlyUint8Array; }; type SocializeBadDebtInstructionDataArgs = {}; declare function getSocializeBadDebtInstructionDataEncoder(): Encoder; declare function getSocializeBadDebtInstructionDataDecoder(): Decoder; declare function getSocializeBadDebtInstructionDataCodec(): Codec; type SocializeBadDebtInput = { authority: TransactionSigner; tunaConfig: Address; vault: Address; }; declare function getSocializeBadDebtInstruction(input: SocializeBadDebtInput, config?: { programAddress?: TProgramAddress; }): SocializeBadDebtInstruction; type ParsedSocializeBadDebtInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; vault: TAccountMetas[2]; }; data: SocializeBadDebtInstructionData; }; declare function parseSocializeBadDebtInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedSocializeBadDebtInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const UPDATE_MARKET_DISCRIMINATOR: Uint8Array; declare function getUpdateMarketDiscriminatorBytes(): ReadonlyUint8Array; type UpdateMarketInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountMarket extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountMarket extends string ? WritableAccount : TAccountMarket, ...TRemainingAccounts ]>; type UpdateMarketInstructionData = { discriminator: ReadonlyUint8Array; addressLookupTable: Address; maxLeverage: number; protocolFee: number; protocolFeeOnCollateral: number; liquidationFee: number; liquidationThreshold: number; oraclePriceDeviationThreshold: number; disabled: boolean; borrowLimitA: bigint; borrowLimitB: bigint; unused: number; rebalanceProtocolFee: number; spotPositionSizeLimitA: bigint; spotPositionSizeLimitB: bigint; }; type UpdateMarketInstructionDataArgs = { addressLookupTable: Address; maxLeverage: number; protocolFee: number; protocolFeeOnCollateral: number; liquidationFee: number; liquidationThreshold: number; oraclePriceDeviationThreshold: number; disabled: boolean; borrowLimitA: number | bigint; borrowLimitB: number | bigint; unused: number; rebalanceProtocolFee: number; spotPositionSizeLimitA: number | bigint; spotPositionSizeLimitB: number | bigint; }; declare function getUpdateMarketInstructionDataEncoder(): Encoder; declare function getUpdateMarketInstructionDataDecoder(): Decoder; declare function getUpdateMarketInstructionDataCodec(): Codec; type UpdateMarketInput = { authority: TransactionSigner; tunaConfig: Address; market: Address; addressLookupTable: UpdateMarketInstructionDataArgs['addressLookupTable']; maxLeverage: UpdateMarketInstructionDataArgs['maxLeverage']; protocolFee: UpdateMarketInstructionDataArgs['protocolFee']; protocolFeeOnCollateral: UpdateMarketInstructionDataArgs['protocolFeeOnCollateral']; liquidationFee: UpdateMarketInstructionDataArgs['liquidationFee']; liquidationThreshold: UpdateMarketInstructionDataArgs['liquidationThreshold']; oraclePriceDeviationThreshold: UpdateMarketInstructionDataArgs['oraclePriceDeviationThreshold']; disabled: UpdateMarketInstructionDataArgs['disabled']; borrowLimitA: UpdateMarketInstructionDataArgs['borrowLimitA']; borrowLimitB: UpdateMarketInstructionDataArgs['borrowLimitB']; unused: UpdateMarketInstructionDataArgs['unused']; rebalanceProtocolFee: UpdateMarketInstructionDataArgs['rebalanceProtocolFee']; spotPositionSizeLimitA: UpdateMarketInstructionDataArgs['spotPositionSizeLimitA']; spotPositionSizeLimitB: UpdateMarketInstructionDataArgs['spotPositionSizeLimitB']; }; declare function getUpdateMarketInstruction(input: UpdateMarketInput, config?: { programAddress?: TProgramAddress; }): UpdateMarketInstruction; type ParsedUpdateMarketInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; market: TAccountMetas[2]; }; data: UpdateMarketInstructionData; }; declare function parseUpdateMarketInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedUpdateMarketInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const UPDATE_ORACLE_PRICE_DISCRIMINATOR: Uint8Array; declare function getUpdateOraclePriceDiscriminatorBytes(): ReadonlyUint8Array; type UpdateOraclePriceInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, ...TRemainingAccounts ]>; type UpdateOraclePriceInstructionData = { discriminator: ReadonlyUint8Array; priceUpdates: Array; }; type UpdateOraclePriceInstructionDataArgs = { priceUpdates: Array; }; declare function getUpdateOraclePriceInstructionDataEncoder(): Encoder; declare function getUpdateOraclePriceInstructionDataDecoder(): Decoder; declare function getUpdateOraclePriceInstructionDataCodec(): Codec; type UpdateOraclePriceInput = { authority: TransactionSigner; tunaConfig: Address; priceUpdates: UpdateOraclePriceInstructionDataArgs['priceUpdates']; }; declare function getUpdateOraclePriceInstruction(input: UpdateOraclePriceInput, config?: { programAddress?: TProgramAddress; }): UpdateOraclePriceInstruction; type ParsedUpdateOraclePriceInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; }; data: UpdateOraclePriceInstructionData; }; declare function parseUpdateOraclePriceInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedUpdateOraclePriceInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const UPDATE_VAULT_DISCRIMINATOR: Uint8Array; declare function getUpdateVaultDiscriminatorBytes(): ReadonlyUint8Array; type UpdateVaultInstruction = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountVault extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountVault extends string ? WritableAccount : TAccountVault, ...TRemainingAccounts ]>; type UpdateVaultInstructionData = { discriminator: ReadonlyUint8Array; interestRate: bigint; supplyLimit: bigint; oraclePriceUpdate: Address; pythOracleFeedId: Address; }; type UpdateVaultInstructionDataArgs = { interestRate: number | bigint; supplyLimit: number | bigint; oraclePriceUpdate: Address; pythOracleFeedId: Address; }; declare function getUpdateVaultInstructionDataEncoder(): Encoder; declare function getUpdateVaultInstructionDataDecoder(): Decoder; declare function getUpdateVaultInstructionDataCodec(): Codec; type UpdateVaultInput = { authority: TransactionSigner; tunaConfig: Address; vault: Address; interestRate: UpdateVaultInstructionDataArgs['interestRate']; supplyLimit: UpdateVaultInstructionDataArgs['supplyLimit']; oraclePriceUpdate: UpdateVaultInstructionDataArgs['oraclePriceUpdate']; pythOracleFeedId: UpdateVaultInstructionDataArgs['pythOracleFeedId']; }; declare function getUpdateVaultInstruction(input: UpdateVaultInput, config?: { programAddress?: TProgramAddress; }): UpdateVaultInstruction; type ParsedUpdateVaultInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; tunaConfig: TAccountMetas[1]; vault: TAccountMetas[2]; }; data: UpdateVaultInstructionData; }; declare function parseUpdateVaultInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedUpdateVaultInstruction; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ declare const WITHDRAW_DISCRIMINATOR: Uint8Array; declare function getWithdrawDiscriminatorBytes(): ReadonlyUint8Array; type WithdrawInstruction = string, TAccountMint extends string | IAccountMeta = string, TAccountTunaConfig extends string | IAccountMeta = string, TAccountLendingPosition extends string | IAccountMeta = string, TAccountVault extends string | IAccountMeta = string, TAccountVaultAta extends string | IAccountMeta = string, TAccountAuthorityAta extends string | IAccountMeta = string, TAccountTokenProgram extends string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountMemoProgram extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountTunaConfig extends string ? ReadonlyAccount : TAccountTunaConfig, TAccountLendingPosition extends string ? WritableAccount : TAccountLendingPosition, TAccountVault extends string ? WritableAccount : TAccountVault, TAccountVaultAta extends string ? WritableAccount : TAccountVaultAta, TAccountAuthorityAta extends string ? WritableAccount : TAccountAuthorityAta, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; type WithdrawInstructionData = { discriminator: ReadonlyUint8Array; funds: bigint; shares: bigint; }; type WithdrawInstructionDataArgs = { funds: number | bigint; shares: number | bigint; }; declare function getWithdrawInstructionDataEncoder(): Encoder; declare function getWithdrawInstructionDataDecoder(): Decoder; declare function getWithdrawInstructionDataCodec(): Codec; type WithdrawInput = { authority: TransactionSigner; mint: Address; tunaConfig: Address; lendingPosition: Address; vault: Address; vaultAta: Address; authorityAta: Address; tokenProgram?: Address; memoProgram: Address; funds: WithdrawInstructionDataArgs['funds']; shares: WithdrawInstructionDataArgs['shares']; }; declare function getWithdrawInstruction(input: WithdrawInput, config?: { programAddress?: TProgramAddress; }): WithdrawInstruction; type ParsedWithdrawInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; mint: TAccountMetas[1]; tunaConfig: TAccountMetas[2]; lendingPosition: TAccountMetas[3]; vault: TAccountMetas[4]; vaultAta: TAccountMetas[5]; authorityAta: TAccountMetas[6]; tokenProgram: TAccountMetas[7]; memoProgram: TAccountMetas[8]; }; data: WithdrawInstructionData; }; declare function parseWithdrawInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedWithdrawInstruction; declare function getTunaConfigAddress(): Promise; declare function getMarketAddress(pool: Address): Promise; declare function getLendingVaultAddress(mint: Address, market?: Address): Promise; declare function getLendingPositionAddress(authority: Address, mintOrVault: Address): Promise; declare function getTunaLpPositionAddress(positionMint: Address): Promise; declare function getTunaSpotPositionAddress(authority: Address, pool: Address): Promise; declare function getTunaPriceUpdateAddress(mint: Address): Promise; declare function getPythPriceUpdateAccountAddress(shardId: number, priceFeedId: Buffer | string): Promise; declare function getReferralAddress(authority: Address): Promise; type TunaLpPositionFilter = GetProgramAccountsMemcmpFilter & { readonly __kind: unique symbol; }; declare function tunaLpPositionAuthorityFilter(address: Address): TunaLpPositionFilter; declare function tunaLpPositionPoolFilter(address: Address): TunaLpPositionFilter; declare function tunaLpPositionMintAFilter(address: Address): TunaLpPositionFilter; declare function tunaLpPositionMintBFilter(address: Address): TunaLpPositionFilter; declare function tunaLpPositionMintFilter(address: Address): TunaLpPositionFilter; declare function tunaLpPositionMarketMakerFilter(marketMaker: MarketMaker): TunaLpPositionFilter; declare function fetchAllTunaLpPositionWithFilter(rpc: Rpc, ...filters: TunaLpPositionFilter[]): Promise[]>; type TunaSpotPositionFilter = GetProgramAccountsMemcmpFilter & { readonly __kind: unique symbol; }; declare function tunaSpotPositionAuthorityFilter(address: Address): TunaSpotPositionFilter; declare function tunaSpotPositionPoolFilter(address: Address): TunaSpotPositionFilter; declare function tunaSpotPositionMintAFilter(address: Address): TunaSpotPositionFilter; declare function tunaSpotPositionMintBFilter(address: Address): TunaSpotPositionFilter; declare function fetchAllTunaSpotPositionWithFilter(rpc: Rpc, ...filters: TunaSpotPositionFilter[]): Promise[]>; type LendingPositionFilter = GetProgramAccountsMemcmpFilter & { readonly __kind: unique symbol; }; declare function lendingPositionAuthorityFilter(address: Address): LendingPositionFilter; declare function lendingPositionMintFilter(address: Address): LendingPositionFilter; declare function lendingPositionVaultFilter(address: Address): LendingPositionFilter; declare function fetchAllLendingPositionWithFilter(rpc: Rpc, ...filters: LendingPositionFilter[]): Promise[]>; type MarketFilter = GetProgramAccountsMemcmpFilter & { readonly __kind: unique symbol; }; declare function marketMarketMakerFilter(marketMaker: MarketMaker): MarketFilter; declare function marketAuthorityFilter(address: Address): MarketFilter; declare function fetchAllMarketWithFilter(rpc: Rpc, ...filters: MarketFilter[]): Promise[]>; type ReferralFilter = GetProgramAccountsMemcmpFilter & { readonly __kind: unique symbol; }; declare function referralAuthorityFilter(address: Address): ReferralFilter; declare function referralIdFilter(referralId: number): ReferralFilter; declare function fetchAllReferralsWithFilter(rpc: Rpc, ...filters: ReferralFilter[]): Promise[]>; declare function mulDiv(x: bigint, y: bigint, d: bigint, roundUp?: boolean): bigint; declare class OrcaUtils { static getTickArrayAddressFromTickIndex(whirlpool: Account, tickIndex: number): Promise>; static getSwapTickArrayAddresses(whirlpool: Account): Promise; static getTickArraysForRebalancedPosition(whirlpool: Account, tunaPosition: Account): Promise<{ lowerTickArrayAddress: Address; lowerTickArrayStartIndex: number; upperTickArrayAddress: Address; upperTickArrayStartIndex: number; }>; } declare class FusionUtils { static getTickArrayAddressFromTickIndex(fusionPool: Account, tickIndex: number): Promise>; static getSwapTickArrayAddresses(fusionPool: Account): Promise; static getTickArraysForRebalancedPosition(fusionPool: Account, tunaPosition: Account): Promise<{ lowerTickArrayAddress: Address; lowerTickArrayStartIndex: number; upperTickArrayAddress: Address; upperTickArrayStartIndex: number; }>; } declare const NATIVE_MINT: Address<"So11111111111111111111111111111111111111112">; declare function getCreateAtaInstruction(mint: Address, owner: Address, payer: TransactionSigner, tokenProgram?: Address, idempotent?: boolean): Promise; declare function getCreateAtaInstructions(rpc: Rpc | undefined, payer: TransactionSigner, mint: Address, owner: Address, tokenProgram?: Address, amount?: bigint | number): Promise<{ init: IInstruction[]; cleanup: IInstruction[]; }>; declare function sharesToFunds(shares: bigint, totalFunds: bigint, totalShares: bigint, roundUp?: boolean): bigint; declare function fundsToShares(funds: bigint, totalFunds: bigint, totalShares: bigint, roundUp?: boolean): bigint; type CreateAddressLookupTableResult = { instructions: IInstruction[]; lookupTableAddress: Address; addresses: Address[]; }; declare function createAddressLookupTableInstructions(authority: TransactionSigner, addresses: Address[], recentSlot: Slot): Promise; type JupiterSwapQuoteRequest = { tunaPositionAddress: Address; inputMint: Account; outputMint: Account; inputAmount: number; slippageBps?: number; }; type JupiterSwapQuoteResponse = { swapInstructionAccounts: IAccountMeta[]; swapInstructionData: ReadonlyUint8Array; addressLookupTableAddresses: Address[]; priceImpactPct: string; inputMint: string; inAmount: string; outputMint: string; outAmount: string; otherAmountThreshold: string; }; declare function jupiterSwapQuote(args: JupiterSwapQuoteRequest): Promise; type JupiterSwapQuoteByOutputAmountRequest = { tunaPositionAddress: Address; inputMint: Account; outputMint: Account; estimatedInputAmount: number; minOutputAmount: number; slippageBps?: number; toleranceBps?: number; }; declare function jupiterSwapQuoteByOutputAmount(args: JupiterSwapQuoteByOutputAmountRequest): Promise; type IncreaseTunaLpPositionOrcaInstructionsArgs = Omit; declare function increaseTunaLpPositionOrcaInstructions(rpc: Rpc, authority: TransactionSigner, positionMint: Address, args: IncreaseTunaLpPositionOrcaInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise; declare function increaseTunaLpPositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, whirlpool: Account, args: Omit): Promise; type IncreaseTunaLpPositionFusionInstructionsArgs = Omit; declare function increaseTunaLpPositionFusionInstructions(rpc: Rpc, authority: TransactionSigner, positionMint: Address, args: IncreaseTunaLpPositionFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise; declare function increaseTunaLpPositionFusionInstruction(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, fusionPool: Account, args: Omit): Promise; declare function closeTunaLpPositionOrcaInstruction(rpc: Rpc, authority: TransactionSigner, positionMint: Address): Promise; declare function closeTunaLpPositionFusionInstruction(rpc: Rpc, authority: TransactionSigner, positionMint: Address): Promise; declare function collectAndCompoundFeesOrcaInstructions(rpc: Rpc, authority: TransactionSigner, positionMint: Address, useLeverage: boolean): Promise; declare function collectAndCompoundFeesOrcaInstruction(authority: TransactionSigner, tunaConfig: Account, tunaPosition: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, whirlpool: Account, useLeverage: boolean): Promise; declare function collectAndCompoundFeesFusionInstructions(rpc: Rpc, authority: TransactionSigner, positionMint: Address, useLeverage: boolean): Promise; declare function collectAndCompoundFeesFusionInstruction(authority: TransactionSigner, tunaConfig: Account, tunaPosition: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, fusionPool: Account, useLeverage: boolean): Promise; declare function collectFeesOrcaInstructions(rpc: Rpc, authority: TransactionSigner, positionMint: Address, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise; declare function collectFeesOrcaInstruction(authority: TransactionSigner, tunaPosition: Account, mintA: Account, mintB: Account, whirlpool: Account): Promise; declare function collectFeesFusionInstructions(rpc: Rpc, authority: TransactionSigner, positionMint: Address, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise; declare function collectFeesFusionInstruction(authority: TransactionSigner, tunaPosition: Account, mintA: Account, mintB: Account, fusionPool: Account): Promise; declare function openLendingPositionInstruction(authority: TransactionSigner, mintAddress: Address): Promise; declare function openLendingPositionV2Instruction(authority: TransactionSigner, mint: Address, vault: Address): Promise; declare function openLendingPositionAndDepositInstructions(rpc: Rpc, authority: TransactionSigner, mintAddress: Address, vaultAddress: Address | undefined, amount: bigint): Promise; declare function closeActiveTunaLpPositionOrcaInstructions(rpc: Rpc, authority: TransactionSigner, positionMint: Address, args: CloseActiveTunaLpPositionInstructionArgs): Promise; type CloseActiveTunaLpPositionInstructionArgs = { swapToToken: OptionOrNullable; minRemovedAmountA: bigint; minRemovedAmountB: bigint; }; declare function closeActiveTunaLpPositionFusionInstructions(rpc: Rpc, authority: TransactionSigner, positionMint: Address, args: CloseActiveTunaLpPositionInstructionArgs): Promise; type ModifyTunaSpotPositionOrcaInstructionsArgs = Omit; declare function modifyTunaSpotPositionOrcaInstructions(rpc: Rpc, authority: TransactionSigner, pool: Address, collateralToken: PoolToken | undefined, args: ModifyTunaSpotPositionOrcaInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise; declare function modifyTunaSpotPositionOrcaInstruction(authority: TransactionSigner, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, pool: Account, requireTunaPositionOwnerAtaA: boolean, requireTunaPositionOwnerAtaB: boolean, args: ModifyTunaSpotPositionOrcaInstructionsArgs): Promise; type ModifyTunaSpotPositionFusionInstructionsArgs = Omit; declare function modifyTunaSpotPositionFusionInstructions(rpc: Rpc, authority: TransactionSigner, pool: Address, collateralToken: PoolToken | undefined, args: ModifyTunaSpotPositionFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise; declare function modifyTunaSpotPositionFusionInstruction(authority: TransactionSigner, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, pool: Account, requireTunaPositionOwnerAtaA: boolean, requireTunaPositionOwnerAtaB: boolean, args: ModifyTunaSpotPositionFusionInstructionsArgs): Promise; type ModifyTunaSpotPositionJupiterInstructionsArgs = Omit; declare function modifyTunaSpotPositionJupiterInstructions(rpc: Rpc, authority: TransactionSigner, pool: Address, jupiterRouteAccounts: IAccountMeta[], args: ModifyTunaSpotPositionJupiterInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise; declare function modifyTunaSpotPositionJupiterInstruction(authority: TransactionSigner, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, pool: Address, jupiterRouteAccounts: IAccountMeta[], args: ModifyTunaSpotPositionJupiterInstructionsArgs): Promise; type OpenAndIncreaseTunaSpotPositionJupiterInstructionsArgs = Omit; declare function openAndIncreaseTunaSpotPositionJupiterInstructions(rpc: Rpc, authority: TransactionSigner, pool: Address, jupiterRouteAccounts: IAccountMeta[], args: OpenAndIncreaseTunaSpotPositionJupiterInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise; declare function openAndIncreaseTunaSpotPositionJupiterInstruction(authority: TransactionSigner, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, pool: Address, requireTunaPositionOwnerAtaA: boolean, requireTunaPositionOwnerAtaB: boolean, jupiterRouteAccounts: IAccountMeta[], args: OpenAndIncreaseTunaSpotPositionJupiterInstructionsArgs): Promise; declare function closeTunaSpotPositionInstructions(rpc: Rpc, authority: TransactionSigner, pool: Address): Promise; declare function closeTunaSpotPositionInstruction(authority: TransactionSigner, pool: Address, mintA: Account, mintB: Account): Promise; declare function createMarketInstruction(authority: TransactionSigner, pool: Address, vaultA: Address, vaultB: Address, args: CreateMarketInstructionDataArgs): Promise; declare function createMarketPermissionlessInstruction(authority: TransactionSigner, pool: Address, vaultA: Address, vaultB: Address, args: CreateMarketPermissionlessInstructionDataArgs): Promise; declare function closeMarketInstructions(rpc: Rpc, authority: TransactionSigner, poolAddress: Address, deactivateLookupTable: boolean): Promise; declare function createReferralInstruction(authority: TransactionSigner, referralId: number): Promise; declare function createTunaConfigInstruction(authority: TransactionSigner, ownerAuthority: Address, adminAuthority: Address, liquidatorAuthority: Address, oraclePriceUpdateAuthority: Address, feeRecipient: Address): Promise; declare function createVaultInstructions(authority: TransactionSigner, mint: Account, args: CreateVaultInstructionDataArgs): Promise; declare function createVaultPermissionlessInstructions(authority: TransactionSigner, vault: Address, mint: Account, args: CreateVaultPermissionlessInstructionDataArgs): Promise; declare function depositInstructions(rpc: Rpc, authority: TransactionSigner, mintAddress: Address, vaultAddress: Address | undefined, amount: bigint): Promise; declare function depositInstruction(authority: TransactionSigner, mint: Account, vault: Address | undefined, amount: bigint): Promise; declare function liquidateTunaLpPositionOrcaInstructions(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, whirlpool: Account, decreasePercent: number): Promise; declare function liquidateTunaLpPositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, whirlpool: Account, decreasePercent: number): Promise; declare function liquidateTunaLpPositionFusionInstructions(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, whirlpool: Account, decreasePercent: number): Promise; declare function liquidateTunaLpPositionFusionInstruction(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, fusionPool: Account, decreasePercent: number): Promise; type LiquidateTunaLpPositionFusionJupiterInstructionsArgs = Omit; declare function liquidateTunaLpPositionFusionJupiterInstructions(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, fusionPool: Account, jupiterRouteAccounts: IAccountMeta[], args: LiquidateTunaLpPositionFusionJupiterInstructionsArgs): Promise; declare function liquidateTunaLpPositionFusionJupiterInstruction(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, fusionPool: Account, jupiterRouteAccounts: IAccountMeta[], args: LiquidateTunaLpPositionFusionJupiterInstructionsArgs): Promise; type LiquidateTunaLpPositionOrcaJupiterInstructionsArgs = Omit; declare function liquidateTunaLpPositionOrcaJupiterInstructions(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, whirlpool: Account, jupiterRouteAccounts: IAccountMeta[], args: LiquidateTunaLpPositionOrcaJupiterInstructionsArgs): Promise; declare function liquidateTunaLpPositionOrcaJupiterInstruction(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, whirlpool: Account, jupiterRouteAccounts: IAccountMeta[], args: LiquidateTunaLpPositionOrcaJupiterInstructionsArgs): Promise; declare function liquidateTunaSpotPositionFusionInstructions(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, fusionPool: Account, decreasePercent: number): Promise; declare function liquidateTunaSpotPositionFusionInstruction(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, fusionPool: Account, decreasePercent: number): Promise; type LiquidateTunaSpotPositionJupiterInstructionsArgs = Omit; declare function liquidateTunaSpotPositionJupiterInstructions(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, pool: Address, jupiterRouteAccounts: IAccountMeta[], args: LiquidateTunaSpotPositionJupiterInstructionsArgs): Promise; declare function liquidateTunaSpotPositionJupiterInstruction(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, pool: Address, jupiterRouteAccounts: IAccountMeta[], args: LiquidateTunaSpotPositionJupiterInstructionsArgs): Promise; declare function liquidateTunaSpotPositionOrcaInstructions(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, whirlpool: Account, decreasePercent: number): Promise; declare function liquidateTunaSpotPositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, whirlpool: Account, decreasePercent: number): Promise; declare function openTunaLpPositionOrcaInstruction(rpc: Rpc, authority: TransactionSigner, positionMint: TransactionSigner | Address, whirlpoolAddress: Address, args: OpenTunaLpPositionOrcaInstructionDataArgs): Promise; type OpenTunaLpPositionOrcaInputWithEphemeralSigner = Omit & { tunaPositionMint: Address; }; declare function getOpenTunaLpPositionOrcaInstructionWithEphemeralSigner(input: OpenTunaLpPositionOrcaInputWithEphemeralSigner): IInstruction; declare function openTunaLpPositionFusionInstruction(rpc: Rpc, authority: TransactionSigner, positionMint: TransactionSigner | Address, fusionPoolAddress: Address, args: OpenTunaLpPositionFusionInstructionDataArgs): Promise; type OpenTunaLpPositionFusionInputWithEphemeralSigner = Omit & { tunaPositionMint: Address; }; declare function getOpenTunaLpPositionFusionInstructionWithEphemeralSigner(input: OpenTunaLpPositionFusionInputWithEphemeralSigner): IInstruction; type OpenAndIncreaseTunaLpPositionOrca = { /** List of Solana transaction instructions to execute. */ instructions: IInstruction[]; /** The initialization cost for opening the position in lamports. */ initializationCost: Lamports; }; type OpenAndIncreaseTunaLpPositionOrcaInstructionsArgs = Omit; declare function openAndIncreaseTunaLpPositionOrcaInstructions(rpc: Rpc, authority: TransactionSigner, positionMint: TransactionSigner | Address, whirlpoolAddress: Address, args: OpenAndIncreaseTunaLpPositionOrcaInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise; declare function openAndIncreaseTunaLpPositionOrcaInstruction(authority: TransactionSigner, positionMint: TransactionSigner | Address, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, whirlpool: Account, args: Omit): Promise; type OpenAndIncreaseTunaLpPositionOrcaInputWithEphemeralSigner = Omit & { tunaPositionMint: Address; }; declare function getOpenAndIncreaseTunaLpPositionOrcaInstructionWithEphemeralSigner(input: OpenAndIncreaseTunaLpPositionOrcaInputWithEphemeralSigner): IInstruction; type OpenAndIncreaseTunaLpPositionFusion = { /** List of Solana transaction instructions to execute. */ instructions: IInstruction[]; /** The initialization cost for opening the position in lamports. */ initializationCost: Lamports; }; type OpenAndIncreaseTunaLpPositionFusionInstructionsArgs = Omit; declare function openAndIncreaseTunaLpPositionFusionInstructions(rpc: Rpc, authority: TransactionSigner, positionMint: TransactionSigner | Address, fusionPoolAddress: Address, args: OpenAndIncreaseTunaLpPositionFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise; declare function openAndIncreaseTunaLpPositionFusionInstruction(authority: TransactionSigner, positionMint: TransactionSigner | Address, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, fusionPool: Account, args: Omit): Promise; type OpenAndIncreaseTunaLpPositionFusionInputWithEphemeralSigner = Omit & { tunaPositionMint: Address; }; declare function getOpenAndIncreaseTunaLpPositionFusionInstructionWithEphemeralSigner(input: OpenAndIncreaseTunaLpPositionFusionInputWithEphemeralSigner): IInstruction; declare function openTunaSpotPositionInstructions(rpc: Rpc, authority: TransactionSigner, pool: Address, args: OpenTunaSpotPositionInstructionDataArgs): Promise; declare function openTunaSpotPositionInstruction(authority: TransactionSigner, mintA: Account, mintB: Account, pool: Address, args: OpenTunaSpotPositionInstructionDataArgs): Promise; type DecreaseTunaLpPositionOrcaInstructionsArgs = Omit; declare function decreaseTunaLpPositionOrcaInstructions(rpc: Rpc, authority: TransactionSigner, positionMint: Address, args: DecreaseTunaLpPositionOrcaInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise; declare function decreaseTunaLpPositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, whirlpool: Account, rewardIndicesToClaim: number[], rewardMints: Account[], args: Omit): Promise; type DecreaseTunaLpPositionFusionInstructionsArgs = Omit; declare function decreaseTunaLpPositionFusionInstructions(rpc: Rpc, authority: TransactionSigner, positionMint: Address, args: DecreaseTunaLpPositionFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise; declare function decreaseTunaLpPositionFusionInstruction(authority: TransactionSigner, tunaPosition: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, fusionPool: Account, args: Omit): Promise; declare function repayBadDebtInstruction(rpc: Rpc, authority: TransactionSigner, vaultAddress: Address, funds: bigint, shares: bigint): Promise; declare function setTunaLpPositionLimitOrdersInstruction(authority: TransactionSigner, args: SetTunaLpPositionLimitOrdersInstructionDataArgs, positionMint?: Address, tunaPositionAddress?: Address): Promise; declare function setTunaSpotPositionLimitOrdersInstruction(authority: TransactionSigner, poolAddress: Address, args: SetTunaSpotPositionLimitOrdersInstructionDataArgs): Promise; declare function resetTunaSpotPositionInstruction(rpc: Rpc, authority: TransactionSigner, pool: Address, args: ResetTunaSpotPositionInstructionDataArgs): Promise; declare function updateMarketInstruction(authority: TransactionSigner, pool: Address, args: UpdateMarketInstructionDataArgs): Promise; declare function updateVaultInstruction(authority: TransactionSigner, vault: Address, args: UpdateVaultInstructionDataArgs): Promise; declare function withdrawInstructions(rpc: Rpc, authority: TransactionSigner, mintAddress: Address, vaultAddress: Address | undefined, funds: bigint, shares: bigint): Promise; declare function withdrawInstruction(authority: TransactionSigner, mint: Account, vault: Address | undefined, funds: bigint, shares: bigint): Promise; declare function getAddressesForMarketLookupTable(rpc: Rpc, pool: Address, marketMaker: MarketMaker, isolatedVaults: boolean): Promise; declare function getAddressesForFusionMarketLookupTable(fusionPoolAddress: Address, fusionPoolTokenVaultA: Address, fusionPoolTokenVaultB: Address, tunaConfig: Account, mintA: Account, mintB: Account, vaultAAddress: Address, vaultBAddress: Address, oraclePriceUpdateA?: Address<"11111111111111111111111111111111">, oraclePriceUpdateB?: Address<"11111111111111111111111111111111">): Promise; declare function createAddressLookupTableForMarketInstructions(rpc: Rpc, pool: Address, marketMaker: MarketMaker, isolatedVaults: boolean, authority: TransactionSigner, recentSlot: Slot): Promise; declare function extendAddressLookupTableForMarketInstructions(rpc: Rpc, pool: Address, marketMaker: MarketMaker, isolatedVaults: boolean, authority: TransactionSigner, lookupTableAddress: Address): Promise; declare function repayTunaLpPositionDebtInstructions(rpc: Rpc, authority: TransactionSigner, positionMint: Address, collateralA: bigint, collateralB: bigint, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise; declare function repayTunaLpPositionDebtInstruction(authority: TransactionSigner, positionMint: Address, mintA: Account, mintB: Account, marketAddress: Address, vaultAAddress: Address, vaultBAddress: Address, collateralA: bigint, collateralB: bigint): Promise; type RebalanceTunaLpPositionOrca = { /** List of Solana transaction instructions to execute. */ instructions: IInstruction[]; /** The initialization cost for opening the position in lamports. */ initializationCost: Lamports; }; declare function rebalanceTunaLpPositionOrcaInstructions(rpc: Rpc, authority: TransactionSigner, positionMint: Address, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise; declare function rebalanceTunaLpPositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, whirlpool: Account): Promise; type RebalanceTunaLpPositionFusion = { /** List of Solana transaction instructions to execute. */ instructions: IInstruction[]; /** The initialization cost for opening the position in lamports. */ initializationCost: Lamports; }; declare function rebalanceTunaLpPositionFusionInstructions(rpc: Rpc, authority: TransactionSigner, positionMint: Address, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise; declare function rebalanceTunaLpPositionFusionInstruction(authority: TransactionSigner, tunaPosition: Account, tunaConfig: Account, mintA: Account, mintB: Account, vaultA: Account, vaultB: Account, fusionPool: Account): Promise; declare const DEFAULT_ADDRESS: _solana_kit.Address<"11111111111111111111111111111111">; declare const HUNDRED_PERCENT = 1000000; declare const HUNDRED_PERCENTn = 1000000n; declare const LEVERAGE_ONE = 1000000; declare const MAX_LEVERAGE: number; declare const MAX_PROTOCOL_FEE: number; declare const MAX_LIQUIDATION_FEE: number; declare const DEFAULT_MAX_SWAP_SLIPPAGE: number; declare const MAX_LIQUIDATION_THRESHOLD: number; declare const NO_LOWER_LIMIT_ORDER = -2147483648; declare const NO_UPPER_LIMIT_ORDER = 2147483647; declare const COMPUTED_AMOUNT = 18446744073709551615n; declare const UNLIMITED_SUPPLY_LIMIT = 18446744073709551615n; declare const TUNA_POSITION_FLAGS_LOWER_LIMIT_ORDER_SWAP_TO_TOKEN_A = 1; declare const TUNA_POSITION_FLAGS_LOWER_LIMIT_ORDER_SWAP_TO_TOKEN_B: number; declare const TUNA_POSITION_FLAGS_UPPER_LIMIT_ORDER_SWAP_TO_TOKEN_A: number; declare const TUNA_POSITION_FLAGS_UPPER_LIMIT_ORDER_SWAP_TO_TOKEN_B: number; declare const TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD: number; declare const TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD_WITH_LEVERAGE: number; declare const TUNA_POSITION_FLAGS_ALLOW_REBALANCING: number; declare const TUNA_POSITION_FLAGS_LOCKED: number; declare const TUNA_POSITION_FLAGS_MASK: number; declare const WP_NFT_UPDATE_AUTH: _solana_kit.Address<"3axbTs2z5GBy6usVbNVoqEgZMng3vZvMnAoX29BFfwhr">; declare const DEFAULT_PUSH_ORACLE_PROGRAM_ID: _solana_kit.Address<"pythWSnswVUd12oZpeFP8e9CVaEqJg25g1Vtc2biRsT">; declare const JUPITER_EVENT_AUTHORITY: _solana_kit.Address<"D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf">; declare const JUPITER_PROGRAM_AUTHORITY_8: _solana_kit.Address<"9nnLbotNTcUhvbrsA6Mdkx45Sm82G35zo28AqUvjExn8">; declare const JUPITER_PROGRAM_AUTHORITY_11: _solana_kit.Address<"69yhtoJR4JYPPABZcSNkzuqbaFbwHsCkja1sP1Q2aVT5">; declare const MIN_SQRT_PRICE = 4295048016n; declare const MAX_SQRT_PRICE = 79226673515401279992447579055n; export { AccountsType, type AccountsTypeArgs, CLOSE_MARKET_DISCRIMINATOR, CLOSE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, CLOSE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, CLOSE_TUNA_LP_POSITION_USER_VOLUME_ACCUMULATOR_ACCOUNT_DISCRIMINATOR, CLOSE_TUNA_SPOT_POSITION_DISCRIMINATOR, CLOSE_TUNA_SPOT_POSITION_USER_VOLUME_ACCUMULATOR_ACCOUNT_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_MARKET_PERMISSIONLESS_DISCRIMINATOR, CREATE_PRICE_UPDATE_DISCRIMINATOR, CREATE_REFERRAL_DISCRIMINATOR, CREATE_TUNA_CONFIG_DISCRIMINATOR, CREATE_VAULT_DISCRIMINATOR, CREATE_VAULT_PERMISSIONLESS_DISCRIMINATOR, type CloseActiveTunaLpPositionInstructionArgs, type CloseMarketInput, type CloseMarketInstruction, type CloseMarketInstructionData, type CloseMarketInstructionDataArgs, type CloseTunaLpPositionFusionInput, type CloseTunaLpPositionFusionInstruction, type CloseTunaLpPositionFusionInstructionData, type CloseTunaLpPositionFusionInstructionDataArgs, type CloseTunaLpPositionOrcaInput, type CloseTunaLpPositionOrcaInstruction, type CloseTunaLpPositionOrcaInstructionData, type CloseTunaLpPositionOrcaInstructionDataArgs, type CloseTunaLpPositionUserVolumeAccumulatorAccountInput, type CloseTunaLpPositionUserVolumeAccumulatorAccountInstruction, type CloseTunaLpPositionUserVolumeAccumulatorAccountInstructionData, type CloseTunaLpPositionUserVolumeAccumulatorAccountInstructionDataArgs, type CloseTunaSpotPositionInput, type CloseTunaSpotPositionInstruction, type CloseTunaSpotPositionInstructionData, type CloseTunaSpotPositionInstructionDataArgs, type CloseTunaSpotPositionUserVolumeAccumulatorAccountInput, type CloseTunaSpotPositionUserVolumeAccumulatorAccountInstruction, type CloseTunaSpotPositionUserVolumeAccumulatorAccountInstructionData, type CloseTunaSpotPositionUserVolumeAccumulatorAccountInstructionDataArgs, 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 CreateMarketPermissionlessInput, type CreateMarketPermissionlessInstruction, type CreateMarketPermissionlessInstructionData, type CreateMarketPermissionlessInstructionDataArgs, type CreatePriceUpdateInput, type CreatePriceUpdateInstruction, type CreatePriceUpdateInstructionData, type CreatePriceUpdateInstructionDataArgs, type CreateReferralInput, type CreateReferralInstruction, type CreateReferralInstructionData, type CreateReferralInstructionDataArgs, type CreateTunaConfigInput, type CreateTunaConfigInstruction, type CreateTunaConfigInstructionData, type CreateTunaConfigInstructionDataArgs, type CreateVaultInput, type CreateVaultInstruction, type CreateVaultInstructionData, type CreateVaultInstructionDataArgs, type CreateVaultPermissionlessInput, type CreateVaultPermissionlessInstruction, type CreateVaultPermissionlessInstructionData, type CreateVaultPermissionlessInstructionDataArgs, DECREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, DECREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, DEFAULT_ADDRESS, DEFAULT_MAX_SWAP_SLIPPAGE, DEFAULT_PUSH_ORACLE_PROGRAM_ID, DEPOSIT_DISCRIMINATOR, type DecreaseTunaLpPositionFusionInput, type DecreaseTunaLpPositionFusionInstruction, type DecreaseTunaLpPositionFusionInstructionData, type DecreaseTunaLpPositionFusionInstructionDataArgs, type DecreaseTunaLpPositionFusionInstructionsArgs, type DecreaseTunaLpPositionOrcaInput, type DecreaseTunaLpPositionOrcaInstruction, type DecreaseTunaLpPositionOrcaInstructionData, type DecreaseTunaLpPositionOrcaInstructionDataArgs, type DecreaseTunaLpPositionOrcaInstructionsArgs, type DepositInput, type DepositInstruction, type DepositInstructionData, type DepositInstructionDataArgs, FusionUtils, HUNDRED_PERCENT, HUNDRED_PERCENTn, INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, type IncreaseTunaLpPositionFusionInput, type IncreaseTunaLpPositionFusionInstruction, type IncreaseTunaLpPositionFusionInstructionData, type IncreaseTunaLpPositionFusionInstructionDataArgs, type IncreaseTunaLpPositionFusionInstructionsArgs, type IncreaseTunaLpPositionOrcaInput, type IncreaseTunaLpPositionOrcaInstruction, type IncreaseTunaLpPositionOrcaInstructionData, type IncreaseTunaLpPositionOrcaInstructionDataArgs, type IncreaseTunaLpPositionOrcaInstructionsArgs, JUPITER_EVENT_AUTHORITY, JUPITER_PROGRAM_AUTHORITY_11, JUPITER_PROGRAM_AUTHORITY_8, type JupiterSwapQuoteByOutputAmountRequest, type JupiterSwapQuoteRequest, type JupiterSwapQuoteResponse, LENDING_POSITION_DISCRIMINATOR, LEVERAGE_ONE, LIQUIDATE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, LIQUIDATE_TUNA_LP_POSITION_FUSION_JUPITER_DISCRIMINATOR, LIQUIDATE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, LIQUIDATE_TUNA_LP_POSITION_ORCA_JUPITER_DISCRIMINATOR, LIQUIDATE_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR, LIQUIDATE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR, LIQUIDATE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR, type LendingPosition, type LendingPositionArgs, type LiquidateTunaLpPositionFusionInput, type LiquidateTunaLpPositionFusionInstruction, type LiquidateTunaLpPositionFusionInstructionData, type LiquidateTunaLpPositionFusionInstructionDataArgs, type LiquidateTunaLpPositionFusionJupiterInput, type LiquidateTunaLpPositionFusionJupiterInstruction, type LiquidateTunaLpPositionFusionJupiterInstructionData, type LiquidateTunaLpPositionFusionJupiterInstructionDataArgs, type LiquidateTunaLpPositionFusionJupiterInstructionsArgs, type LiquidateTunaLpPositionOrcaInput, type LiquidateTunaLpPositionOrcaInstruction, type LiquidateTunaLpPositionOrcaInstructionData, type LiquidateTunaLpPositionOrcaInstructionDataArgs, type LiquidateTunaLpPositionOrcaJupiterInput, type LiquidateTunaLpPositionOrcaJupiterInstruction, type LiquidateTunaLpPositionOrcaJupiterInstructionData, type LiquidateTunaLpPositionOrcaJupiterInstructionDataArgs, type LiquidateTunaLpPositionOrcaJupiterInstructionsArgs, type LiquidateTunaSpotPositionFusionInput, type LiquidateTunaSpotPositionFusionInstruction, type LiquidateTunaSpotPositionFusionInstructionData, type LiquidateTunaSpotPositionFusionInstructionDataArgs, type LiquidateTunaSpotPositionJupiterInput, type LiquidateTunaSpotPositionJupiterInstruction, type LiquidateTunaSpotPositionJupiterInstructionData, type LiquidateTunaSpotPositionJupiterInstructionDataArgs, type LiquidateTunaSpotPositionJupiterInstructionsArgs, type LiquidateTunaSpotPositionOrcaInput, type LiquidateTunaSpotPositionOrcaInstruction, type LiquidateTunaSpotPositionOrcaInstructionData, type LiquidateTunaSpotPositionOrcaInstructionDataArgs, MARKET_DISCRIMINATOR, MAX_LEVERAGE, MAX_LIQUIDATION_FEE, MAX_LIQUIDATION_THRESHOLD, MAX_PROTOCOL_FEE, MAX_SQRT_PRICE, MIN_SQRT_PRICE, MODIFY_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR, MODIFY_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR, MODIFY_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR, type Market, type MarketArgs, MarketMaker, type MarketMakerArgs, type ModifyTunaSpotPositionFusionInput, type ModifyTunaSpotPositionFusionInstruction, type ModifyTunaSpotPositionFusionInstructionData, type ModifyTunaSpotPositionFusionInstructionDataArgs, type ModifyTunaSpotPositionFusionInstructionsArgs, type ModifyTunaSpotPositionJupiterInput, type ModifyTunaSpotPositionJupiterInstruction, type ModifyTunaSpotPositionJupiterInstructionData, type ModifyTunaSpotPositionJupiterInstructionDataArgs, type ModifyTunaSpotPositionJupiterInstructionsArgs, type ModifyTunaSpotPositionOrcaInput, type ModifyTunaSpotPositionOrcaInstruction, type ModifyTunaSpotPositionOrcaInstructionData, type ModifyTunaSpotPositionOrcaInstructionDataArgs, type ModifyTunaSpotPositionOrcaInstructionsArgs, NATIVE_MINT, NO_LOWER_LIMIT_ORDER, NO_UPPER_LIMIT_ORDER, OPEN_AND_INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, OPEN_AND_INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, OPEN_AND_INCREASE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR, OPEN_LENDING_POSITION_DISCRIMINATOR, OPEN_LENDING_POSITION_V2_DISCRIMINATOR, OPEN_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, OPEN_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, OPEN_TUNA_SPOT_POSITION_DISCRIMINATOR, type OpenAndIncreaseTunaLpPositionFusion, type OpenAndIncreaseTunaLpPositionFusionInput, type OpenAndIncreaseTunaLpPositionFusionInstruction, type OpenAndIncreaseTunaLpPositionFusionInstructionData, type OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs, type OpenAndIncreaseTunaLpPositionFusionInstructionsArgs, type OpenAndIncreaseTunaLpPositionOrca, type OpenAndIncreaseTunaLpPositionOrcaInput, type OpenAndIncreaseTunaLpPositionOrcaInstruction, type OpenAndIncreaseTunaLpPositionOrcaInstructionData, type OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs, type OpenAndIncreaseTunaLpPositionOrcaInstructionsArgs, type OpenAndIncreaseTunaSpotPositionJupiterInput, type OpenAndIncreaseTunaSpotPositionJupiterInstruction, type OpenAndIncreaseTunaSpotPositionJupiterInstructionData, type OpenAndIncreaseTunaSpotPositionJupiterInstructionDataArgs, type OpenAndIncreaseTunaSpotPositionJupiterInstructionsArgs, type OpenLendingPositionInput, type OpenLendingPositionInstruction, type OpenLendingPositionInstructionData, type OpenLendingPositionInstructionDataArgs, type OpenLendingPositionV2Input, type OpenLendingPositionV2Instruction, type OpenLendingPositionV2InstructionData, type OpenLendingPositionV2InstructionDataArgs, type OpenTunaLpPositionFusionInput, type OpenTunaLpPositionFusionInstruction, type OpenTunaLpPositionFusionInstructionData, type OpenTunaLpPositionFusionInstructionDataArgs, type OpenTunaLpPositionOrcaInput, type OpenTunaLpPositionOrcaInstruction, type OpenTunaLpPositionOrcaInstructionData, type OpenTunaLpPositionOrcaInstructionDataArgs, type OpenTunaSpotPositionInput, type OpenTunaSpotPositionInstruction, type OpenTunaSpotPositionInstructionData, type OpenTunaSpotPositionInstructionDataArgs, type OraclePriceUpdate, type OraclePriceUpdateArgs, OrcaUtils, type ParsedCloseMarketInstruction, type ParsedCloseTunaLpPositionFusionInstruction, type ParsedCloseTunaLpPositionOrcaInstruction, type ParsedCloseTunaLpPositionUserVolumeAccumulatorAccountInstruction, type ParsedCloseTunaSpotPositionInstruction, type ParsedCloseTunaSpotPositionUserVolumeAccumulatorAccountInstruction, type ParsedCollectAndCompoundFeesFusionInstruction, type ParsedCollectAndCompoundFeesOrcaInstruction, type ParsedCollectFeesFusionInstruction, type ParsedCollectFeesOrcaInstruction, type ParsedCollectRewardOrcaInstruction, type ParsedCreateMarketInstruction, type ParsedCreateMarketPermissionlessInstruction, type ParsedCreatePriceUpdateInstruction, type ParsedCreateReferralInstruction, type ParsedCreateTunaConfigInstruction, type ParsedCreateVaultInstruction, type ParsedCreateVaultPermissionlessInstruction, type ParsedDecreaseTunaLpPositionFusionInstruction, type ParsedDecreaseTunaLpPositionOrcaInstruction, type ParsedDepositInstruction, type ParsedIncreaseTunaLpPositionFusionInstruction, type ParsedIncreaseTunaLpPositionOrcaInstruction, type ParsedLiquidateTunaLpPositionFusionInstruction, type ParsedLiquidateTunaLpPositionFusionJupiterInstruction, type ParsedLiquidateTunaLpPositionOrcaInstruction, type ParsedLiquidateTunaLpPositionOrcaJupiterInstruction, type ParsedLiquidateTunaSpotPositionFusionInstruction, type ParsedLiquidateTunaSpotPositionJupiterInstruction, type ParsedLiquidateTunaSpotPositionOrcaInstruction, type ParsedModifyTunaSpotPositionFusionInstruction, type ParsedModifyTunaSpotPositionJupiterInstruction, type ParsedModifyTunaSpotPositionOrcaInstruction, type ParsedOpenAndIncreaseTunaLpPositionFusionInstruction, type ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction, type ParsedOpenAndIncreaseTunaSpotPositionJupiterInstruction, type ParsedOpenLendingPositionInstruction, type ParsedOpenLendingPositionV2Instruction, type ParsedOpenTunaLpPositionFusionInstruction, type ParsedOpenTunaLpPositionOrcaInstruction, type ParsedOpenTunaSpotPositionInstruction, type ParsedRebalanceTunaLpPositionFusionInstruction, type ParsedRebalanceTunaLpPositionOrcaInstruction, type ParsedRepayBadDebtInstruction, type ParsedRepayTunaLpPositionDebtInstruction, type ParsedResetMarketBadDebtInstruction, type ParsedResetTunaSpotPositionInstruction, type ParsedSetAdminAuthorityInstruction, type ParsedSetDefaultLiquidationFeeRateInstruction, type ParsedSetDefaultMaxPercentageOfLeftoversInstruction, type ParsedSetDefaultOraclePriceDeviationThresholdInstruction, type ParsedSetDefaultProtocolFeeRateInstruction, type ParsedSetDefaultRebalanceFeeRateInstruction, type ParsedSetFeeRecipientInstruction, type ParsedSetLiquidatorAuthorityInstruction, type ParsedSetOraclePriceUpdateAuthorityInstruction, type ParsedSetOwnerAuthorityInstruction, type ParsedSetSuspendedStateInstruction, type ParsedSetTunaLpPositionFlagsInstruction, type ParsedSetTunaLpPositionLimitOrdersInstruction, type ParsedSetTunaLpPositionRebalanceThresholdInstruction, type ParsedSetTunaSpotPositionLimitOrdersInstruction, type ParsedSocializeBadDebtInstruction, type ParsedTunaInstruction, type ParsedUpdateMarketInstruction, type ParsedUpdateOraclePriceInstruction, type ParsedUpdateVaultInstruction, type ParsedWithdrawInstruction, PoolToken, type PoolTokenArgs, REBALANCE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, REBALANCE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, REFERRAL_DISCRIMINATOR, REPAY_BAD_DEBT_DISCRIMINATOR, REPAY_TUNA_LP_POSITION_DEBT_DISCRIMINATOR, RESET_MARKET_BAD_DEBT_DISCRIMINATOR, RESET_TUNA_SPOT_POSITION_DISCRIMINATOR, type RebalanceTunaLpPositionFusion, type RebalanceTunaLpPositionFusionInput, type RebalanceTunaLpPositionFusionInstruction, type RebalanceTunaLpPositionFusionInstructionData, type RebalanceTunaLpPositionFusionInstructionDataArgs, type RebalanceTunaLpPositionOrca, type RebalanceTunaLpPositionOrcaInput, type RebalanceTunaLpPositionOrcaInstruction, type RebalanceTunaLpPositionOrcaInstructionData, type RebalanceTunaLpPositionOrcaInstructionDataArgs, type Referral, type ReferralArgs, type RemainingAccountsInfo, type RemainingAccountsInfoArgs, type RemainingAccountsSlice, type RemainingAccountsSliceArgs, type RepayBadDebtInput, type RepayBadDebtInstruction, type RepayBadDebtInstructionData, type RepayBadDebtInstructionDataArgs, type RepayTunaLpPositionDebtInput, type RepayTunaLpPositionDebtInstruction, type RepayTunaLpPositionDebtInstructionData, type RepayTunaLpPositionDebtInstructionDataArgs, type ResetMarketBadDebtInput, type ResetMarketBadDebtInstruction, type ResetMarketBadDebtInstructionData, type ResetMarketBadDebtInstructionDataArgs, type ResetTunaSpotPositionInput, type ResetTunaSpotPositionInstruction, type ResetTunaSpotPositionInstructionData, type ResetTunaSpotPositionInstructionDataArgs, SET_ADMIN_AUTHORITY_DISCRIMINATOR, SET_DEFAULT_LIQUIDATION_FEE_RATE_DISCRIMINATOR, SET_DEFAULT_MAX_PERCENTAGE_OF_LEFTOVERS_DISCRIMINATOR, SET_DEFAULT_ORACLE_PRICE_DEVIATION_THRESHOLD_DISCRIMINATOR, SET_DEFAULT_PROTOCOL_FEE_RATE_DISCRIMINATOR, SET_DEFAULT_REBALANCE_FEE_RATE_DISCRIMINATOR, SET_FEE_RECIPIENT_DISCRIMINATOR, SET_LIQUIDATOR_AUTHORITY_DISCRIMINATOR, SET_ORACLE_PRICE_UPDATE_AUTHORITY_DISCRIMINATOR, SET_OWNER_AUTHORITY_DISCRIMINATOR, SET_SUSPENDED_STATE_DISCRIMINATOR, SET_TUNA_LP_POSITION_FLAGS_DISCRIMINATOR, SET_TUNA_LP_POSITION_LIMIT_ORDERS_DISCRIMINATOR, SET_TUNA_LP_POSITION_REBALANCE_THRESHOLD_DISCRIMINATOR, SET_TUNA_SPOT_POSITION_LIMIT_ORDERS_DISCRIMINATOR, SOCIALIZE_BAD_DEBT_DISCRIMINATOR, type SetAdminAuthorityInput, type SetAdminAuthorityInstruction, type SetAdminAuthorityInstructionData, type SetAdminAuthorityInstructionDataArgs, type SetDefaultLiquidationFeeRateInput, type SetDefaultLiquidationFeeRateInstruction, type SetDefaultLiquidationFeeRateInstructionData, type SetDefaultLiquidationFeeRateInstructionDataArgs, type SetDefaultMaxPercentageOfLeftoversInput, type SetDefaultMaxPercentageOfLeftoversInstruction, type SetDefaultMaxPercentageOfLeftoversInstructionData, type SetDefaultMaxPercentageOfLeftoversInstructionDataArgs, type SetDefaultOraclePriceDeviationThresholdInput, type SetDefaultOraclePriceDeviationThresholdInstruction, type SetDefaultOraclePriceDeviationThresholdInstructionData, type SetDefaultOraclePriceDeviationThresholdInstructionDataArgs, type SetDefaultProtocolFeeRateInput, type SetDefaultProtocolFeeRateInstruction, type SetDefaultProtocolFeeRateInstructionData, type SetDefaultProtocolFeeRateInstructionDataArgs, type SetDefaultRebalanceFeeRateInput, type SetDefaultRebalanceFeeRateInstruction, type SetDefaultRebalanceFeeRateInstructionData, type SetDefaultRebalanceFeeRateInstructionDataArgs, type SetFeeRecipientInput, type SetFeeRecipientInstruction, type SetFeeRecipientInstructionData, type SetFeeRecipientInstructionDataArgs, type SetLiquidatorAuthorityInput, type SetLiquidatorAuthorityInstruction, type SetLiquidatorAuthorityInstructionData, type SetLiquidatorAuthorityInstructionDataArgs, type SetOraclePriceUpdateAuthorityInput, type SetOraclePriceUpdateAuthorityInstruction, type SetOraclePriceUpdateAuthorityInstructionData, type SetOraclePriceUpdateAuthorityInstructionDataArgs, type SetOwnerAuthorityInput, type SetOwnerAuthorityInstruction, type SetOwnerAuthorityInstructionData, type SetOwnerAuthorityInstructionDataArgs, type SetSuspendedStateInput, type SetSuspendedStateInstruction, type SetSuspendedStateInstructionData, type SetSuspendedStateInstructionDataArgs, type SetTunaLpPositionFlagsInput, type SetTunaLpPositionFlagsInstruction, type SetTunaLpPositionFlagsInstructionData, type SetTunaLpPositionFlagsInstructionDataArgs, type SetTunaLpPositionLimitOrdersInput, type SetTunaLpPositionLimitOrdersInstruction, type SetTunaLpPositionLimitOrdersInstructionData, type SetTunaLpPositionLimitOrdersInstructionDataArgs, type SetTunaLpPositionRebalanceThresholdInput, type SetTunaLpPositionRebalanceThresholdInstruction, type SetTunaLpPositionRebalanceThresholdInstructionData, type SetTunaLpPositionRebalanceThresholdInstructionDataArgs, type SetTunaSpotPositionLimitOrdersInput, type SetTunaSpotPositionLimitOrdersInstruction, type SetTunaSpotPositionLimitOrdersInstructionData, type SetTunaSpotPositionLimitOrdersInstructionDataArgs, type SocializeBadDebtInput, type SocializeBadDebtInstruction, type SocializeBadDebtInstructionData, type SocializeBadDebtInstructionDataArgs, TUNA_CONFIG_DISCRIMINATOR, TUNA_ERROR__ACCOUNT_NOT_INITIALIZED, TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED, TUNA_ERROR__BAD_DEBT, TUNA_ERROR__INCORRECT_JUPITER_SWAP_INPUT_AMOUNT, TUNA_ERROR__INCORRECT_POSITION_DIRECTION, TUNA_ERROR__INSUFFICIENT_JUPITER_SWAP_OUTPUT_AMOUNT, TUNA_ERROR__INSUFFICIENT_LIQUIDITY, TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE, TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR, TUNA_ERROR__INVALID_ACCOUNT_OWNER, TUNA_ERROR__INVALID_ENUM, TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS, TUNA_ERROR__INVALID_JUPITER_CREATE_TOKEN_ACCOUNT_INSTRUCTION_DATA, TUNA_ERROR__INVALID_JUPITER_CREATE_TOKEN_ACCOUNT_USER_ACCOUNT, TUNA_ERROR__INVALID_JUPITER_ROUTE_INSTRUCTION_ACCOUNT, TUNA_ERROR__INVALID_JUPITER_ROUTE_INSTRUCTION_DATA, TUNA_ERROR__INVALID_MARKET_MAKER, TUNA_ERROR__INVALID_POOL, TUNA_ERROR__INVALID_PRICE_UPDATE_ACCOUNT, TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH, TUNA_ERROR__INVALID_VAULT, TUNA_ERROR__LEFTOVERS_EXCEEDED, TUNA_ERROR__LEVERAGED_LOCKED_POSITION_NOT_ALLOWED, TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE, TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED, TUNA_ERROR__MARKET_DISABLED, TUNA_ERROR__MARKET_HAS_OPENED_POSITIONS, TUNA_ERROR__MATH_OVERFLOW, TUNA_ERROR__MATH_UNDERFLOW, TUNA_ERROR__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED, 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__POSITION_IS_AUTO_REBALANCEABLE, TUNA_ERROR__POSITION_IS_EMPTY, TUNA_ERROR__POSITION_IS_HEALTHY, TUNA_ERROR__POSITION_IS_LIQUIDATED, TUNA_ERROR__POSITION_IS_UNHEALTHY, TUNA_ERROR__POSITION_LOCKED, TUNA_ERROR__POSITION_NOT_EMPTY, TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED, TUNA_ERROR__POSITION_VALUATION_DEGENERATE, TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET, TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET, 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__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__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_BALANCE_MISMATCH, TUNA_ERROR__VAULT_NOT_EMPTY, TUNA_ERROR__VAULT_NOT_INITIALIZED, TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE, TUNA_ERROR__WITHHELD_FEES_PRESENT, TUNA_ERROR__ZERO_BAD_DEBT, TUNA_ERROR__ZERO_PRICE_RANGE, TUNA_ERROR__ZERO_REALIZED_TRANSFER_AMOUNT, TUNA_ERROR__ZERO_YIELD, TUNA_LP_POSITION_DISCRIMINATOR, TUNA_POSITION_FLAGS_ALLOW_REBALANCING, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD_WITH_LEVERAGE, TUNA_POSITION_FLAGS_LOCKED, TUNA_POSITION_FLAGS_LOWER_LIMIT_ORDER_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_LOWER_LIMIT_ORDER_SWAP_TO_TOKEN_B, TUNA_POSITION_FLAGS_MASK, TUNA_POSITION_FLAGS_UPPER_LIMIT_ORDER_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_UPPER_LIMIT_ORDER_SWAP_TO_TOKEN_B, TUNA_PRICE_UPDATE_DISCRIMINATOR, TUNA_PROGRAM_ADDRESS, TUNA_SPOT_POSITION_DISCRIMINATOR, TunaAccount, type TunaConfig, type TunaConfigArgs, type TunaError, TunaInstruction, type TunaLpPosition, type TunaLpPositionArgs, TunaPositionState, type TunaPositionStateArgs, type TunaPriceUpdate, type TunaPriceUpdateArgs, type TunaSpotPosition, type TunaSpotPositionArgs, UNLIMITED_SUPPLY_LIMIT, UPDATE_MARKET_DISCRIMINATOR, UPDATE_ORACLE_PRICE_DISCRIMINATOR, UPDATE_VAULT_DISCRIMINATOR, type UpdateMarketInput, type UpdateMarketInstruction, type UpdateMarketInstructionData, type UpdateMarketInstructionDataArgs, type UpdateOraclePriceInput, type UpdateOraclePriceInstruction, type UpdateOraclePriceInstructionData, type UpdateOraclePriceInstructionDataArgs, 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, closeActiveTunaLpPositionFusionInstructions, closeActiveTunaLpPositionOrcaInstructions, closeMarketInstructions, closeTunaLpPositionFusionInstruction, closeTunaLpPositionOrcaInstruction, closeTunaSpotPositionInstruction, closeTunaSpotPositionInstructions, collectAndCompoundFeesFusionInstruction, collectAndCompoundFeesFusionInstructions, collectAndCompoundFeesOrcaInstruction, collectAndCompoundFeesOrcaInstructions, collectFeesFusionInstruction, collectFeesFusionInstructions, collectFeesOrcaInstruction, collectFeesOrcaInstructions, createAddressLookupTableForMarketInstructions, createAddressLookupTableInstructions, createMarketInstruction, createMarketPermissionlessInstruction, createReferralInstruction, createTunaConfigInstruction, createVaultInstructions, createVaultPermissionlessInstructions, decodeLendingPosition, decodeMarket, decodeReferral, decodeTunaConfig, decodeTunaLpPosition, decodeTunaPriceUpdate, decodeTunaSpotPosition, decodeVault, decreaseTunaLpPositionFusionInstruction, decreaseTunaLpPositionFusionInstructions, decreaseTunaLpPositionOrcaInstruction, decreaseTunaLpPositionOrcaInstructions, depositInstruction, depositInstructions, extendAddressLookupTableForMarketInstructions, fetchAllLendingPosition, fetchAllLendingPositionWithFilter, fetchAllMarket, fetchAllMarketWithFilter, fetchAllMaybeLendingPosition, fetchAllMaybeMarket, fetchAllMaybeReferral, fetchAllMaybeTunaConfig, fetchAllMaybeTunaLpPosition, fetchAllMaybeTunaPriceUpdate, fetchAllMaybeTunaSpotPosition, fetchAllMaybeVault, fetchAllReferral, fetchAllReferralsWithFilter, fetchAllTunaConfig, fetchAllTunaLpPosition, fetchAllTunaLpPositionWithFilter, fetchAllTunaPriceUpdate, fetchAllTunaSpotPosition, fetchAllTunaSpotPositionWithFilter, fetchAllVault, fetchLendingPosition, fetchMarket, fetchMaybeLendingPosition, fetchMaybeMarket, fetchMaybeReferral, fetchMaybeTunaConfig, fetchMaybeTunaLpPosition, fetchMaybeTunaPriceUpdate, fetchMaybeTunaSpotPosition, fetchMaybeVault, fetchReferral, fetchTunaConfig, fetchTunaLpPosition, fetchTunaPriceUpdate, fetchTunaSpotPosition, fetchVault, fundsToShares, getAccountsTypeCodec, getAccountsTypeDecoder, getAccountsTypeEncoder, getAddressesForFusionMarketLookupTable, getAddressesForMarketLookupTable, getCloseMarketDiscriminatorBytes, getCloseMarketInstruction, getCloseMarketInstructionDataCodec, getCloseMarketInstructionDataDecoder, getCloseMarketInstructionDataEncoder, getCloseTunaLpPositionFusionDiscriminatorBytes, getCloseTunaLpPositionFusionInstruction, getCloseTunaLpPositionFusionInstructionDataCodec, getCloseTunaLpPositionFusionInstructionDataDecoder, getCloseTunaLpPositionFusionInstructionDataEncoder, getCloseTunaLpPositionOrcaDiscriminatorBytes, getCloseTunaLpPositionOrcaInstruction, getCloseTunaLpPositionOrcaInstructionDataCodec, getCloseTunaLpPositionOrcaInstructionDataDecoder, getCloseTunaLpPositionOrcaInstructionDataEncoder, getCloseTunaLpPositionUserVolumeAccumulatorAccountDiscriminatorBytes, getCloseTunaLpPositionUserVolumeAccumulatorAccountInstruction, getCloseTunaLpPositionUserVolumeAccumulatorAccountInstructionDataCodec, getCloseTunaLpPositionUserVolumeAccumulatorAccountInstructionDataDecoder, getCloseTunaLpPositionUserVolumeAccumulatorAccountInstructionDataEncoder, getCloseTunaSpotPositionDiscriminatorBytes, getCloseTunaSpotPositionInstruction, getCloseTunaSpotPositionInstructionDataCodec, getCloseTunaSpotPositionInstructionDataDecoder, getCloseTunaSpotPositionInstructionDataEncoder, getCloseTunaSpotPositionUserVolumeAccumulatorAccountDiscriminatorBytes, getCloseTunaSpotPositionUserVolumeAccumulatorAccountInstruction, getCloseTunaSpotPositionUserVolumeAccumulatorAccountInstructionDataCodec, getCloseTunaSpotPositionUserVolumeAccumulatorAccountInstructionDataDecoder, getCloseTunaSpotPositionUserVolumeAccumulatorAccountInstructionDataEncoder, 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, getCreateMarketPermissionlessDiscriminatorBytes, getCreateMarketPermissionlessInstruction, getCreateMarketPermissionlessInstructionDataCodec, getCreateMarketPermissionlessInstructionDataDecoder, getCreateMarketPermissionlessInstructionDataEncoder, getCreatePriceUpdateDiscriminatorBytes, getCreatePriceUpdateInstruction, getCreatePriceUpdateInstructionDataCodec, getCreatePriceUpdateInstructionDataDecoder, getCreatePriceUpdateInstructionDataEncoder, getCreateReferralDiscriminatorBytes, getCreateReferralInstruction, getCreateReferralInstructionDataCodec, getCreateReferralInstructionDataDecoder, getCreateReferralInstructionDataEncoder, getCreateTunaConfigDiscriminatorBytes, getCreateTunaConfigInstruction, getCreateTunaConfigInstructionDataCodec, getCreateTunaConfigInstructionDataDecoder, getCreateTunaConfigInstructionDataEncoder, getCreateVaultDiscriminatorBytes, getCreateVaultInstruction, getCreateVaultInstructionDataCodec, getCreateVaultInstructionDataDecoder, getCreateVaultInstructionDataEncoder, getCreateVaultPermissionlessDiscriminatorBytes, getCreateVaultPermissionlessInstruction, getCreateVaultPermissionlessInstructionDataCodec, getCreateVaultPermissionlessInstructionDataDecoder, getCreateVaultPermissionlessInstructionDataEncoder, getDecreaseTunaLpPositionFusionDiscriminatorBytes, getDecreaseTunaLpPositionFusionInstruction, getDecreaseTunaLpPositionFusionInstructionDataCodec, getDecreaseTunaLpPositionFusionInstructionDataDecoder, getDecreaseTunaLpPositionFusionInstructionDataEncoder, getDecreaseTunaLpPositionOrcaDiscriminatorBytes, getDecreaseTunaLpPositionOrcaInstruction, getDecreaseTunaLpPositionOrcaInstructionDataCodec, getDecreaseTunaLpPositionOrcaInstructionDataDecoder, getDecreaseTunaLpPositionOrcaInstructionDataEncoder, getDepositDiscriminatorBytes, getDepositInstruction, getDepositInstructionDataCodec, getDepositInstructionDataDecoder, getDepositInstructionDataEncoder, getIncreaseTunaLpPositionFusionDiscriminatorBytes, getIncreaseTunaLpPositionFusionInstruction, getIncreaseTunaLpPositionFusionInstructionDataCodec, getIncreaseTunaLpPositionFusionInstructionDataDecoder, getIncreaseTunaLpPositionFusionInstructionDataEncoder, getIncreaseTunaLpPositionOrcaDiscriminatorBytes, getIncreaseTunaLpPositionOrcaInstruction, getIncreaseTunaLpPositionOrcaInstructionDataCodec, getIncreaseTunaLpPositionOrcaInstructionDataDecoder, getIncreaseTunaLpPositionOrcaInstructionDataEncoder, getLendingPositionAddress, getLendingPositionCodec, getLendingPositionDecoder, getLendingPositionDiscriminatorBytes, getLendingPositionEncoder, getLendingPositionSize, getLendingVaultAddress, getLiquidateTunaLpPositionFusionDiscriminatorBytes, getLiquidateTunaLpPositionFusionInstruction, getLiquidateTunaLpPositionFusionInstructionDataCodec, getLiquidateTunaLpPositionFusionInstructionDataDecoder, getLiquidateTunaLpPositionFusionInstructionDataEncoder, getLiquidateTunaLpPositionFusionJupiterDiscriminatorBytes, getLiquidateTunaLpPositionFusionJupiterInstruction, getLiquidateTunaLpPositionFusionJupiterInstructionDataCodec, getLiquidateTunaLpPositionFusionJupiterInstructionDataDecoder, getLiquidateTunaLpPositionFusionJupiterInstructionDataEncoder, getLiquidateTunaLpPositionOrcaDiscriminatorBytes, getLiquidateTunaLpPositionOrcaInstruction, getLiquidateTunaLpPositionOrcaInstructionDataCodec, getLiquidateTunaLpPositionOrcaInstructionDataDecoder, getLiquidateTunaLpPositionOrcaInstructionDataEncoder, getLiquidateTunaLpPositionOrcaJupiterDiscriminatorBytes, getLiquidateTunaLpPositionOrcaJupiterInstruction, getLiquidateTunaLpPositionOrcaJupiterInstructionDataCodec, getLiquidateTunaLpPositionOrcaJupiterInstructionDataDecoder, getLiquidateTunaLpPositionOrcaJupiterInstructionDataEncoder, getLiquidateTunaSpotPositionFusionDiscriminatorBytes, getLiquidateTunaSpotPositionFusionInstruction, getLiquidateTunaSpotPositionFusionInstructionDataCodec, getLiquidateTunaSpotPositionFusionInstructionDataDecoder, getLiquidateTunaSpotPositionFusionInstructionDataEncoder, getLiquidateTunaSpotPositionJupiterDiscriminatorBytes, getLiquidateTunaSpotPositionJupiterInstruction, getLiquidateTunaSpotPositionJupiterInstructionDataCodec, getLiquidateTunaSpotPositionJupiterInstructionDataDecoder, getLiquidateTunaSpotPositionJupiterInstructionDataEncoder, getLiquidateTunaSpotPositionOrcaDiscriminatorBytes, getLiquidateTunaSpotPositionOrcaInstruction, getLiquidateTunaSpotPositionOrcaInstructionDataCodec, getLiquidateTunaSpotPositionOrcaInstructionDataDecoder, getLiquidateTunaSpotPositionOrcaInstructionDataEncoder, getMarketAddress, getMarketCodec, getMarketDecoder, getMarketDiscriminatorBytes, getMarketEncoder, getMarketMakerCodec, getMarketMakerDecoder, getMarketMakerEncoder, getMarketSize, getModifyTunaSpotPositionFusionDiscriminatorBytes, getModifyTunaSpotPositionFusionInstruction, getModifyTunaSpotPositionFusionInstructionDataCodec, getModifyTunaSpotPositionFusionInstructionDataDecoder, getModifyTunaSpotPositionFusionInstructionDataEncoder, getModifyTunaSpotPositionJupiterDiscriminatorBytes, getModifyTunaSpotPositionJupiterInstruction, getModifyTunaSpotPositionJupiterInstructionDataCodec, getModifyTunaSpotPositionJupiterInstructionDataDecoder, getModifyTunaSpotPositionJupiterInstructionDataEncoder, getModifyTunaSpotPositionOrcaDiscriminatorBytes, getModifyTunaSpotPositionOrcaInstruction, getModifyTunaSpotPositionOrcaInstructionDataCodec, getModifyTunaSpotPositionOrcaInstructionDataDecoder, getModifyTunaSpotPositionOrcaInstructionDataEncoder, getOpenAndIncreaseTunaLpPositionFusionDiscriminatorBytes, getOpenAndIncreaseTunaLpPositionFusionInstruction, getOpenAndIncreaseTunaLpPositionFusionInstructionDataCodec, getOpenAndIncreaseTunaLpPositionFusionInstructionDataDecoder, getOpenAndIncreaseTunaLpPositionFusionInstructionDataEncoder, getOpenAndIncreaseTunaLpPositionFusionInstructionWithEphemeralSigner, getOpenAndIncreaseTunaLpPositionOrcaDiscriminatorBytes, getOpenAndIncreaseTunaLpPositionOrcaInstruction, getOpenAndIncreaseTunaLpPositionOrcaInstructionDataCodec, getOpenAndIncreaseTunaLpPositionOrcaInstructionDataDecoder, getOpenAndIncreaseTunaLpPositionOrcaInstructionDataEncoder, getOpenAndIncreaseTunaLpPositionOrcaInstructionWithEphemeralSigner, getOpenAndIncreaseTunaSpotPositionJupiterDiscriminatorBytes, getOpenAndIncreaseTunaSpotPositionJupiterInstruction, getOpenAndIncreaseTunaSpotPositionJupiterInstructionDataCodec, getOpenAndIncreaseTunaSpotPositionJupiterInstructionDataDecoder, getOpenAndIncreaseTunaSpotPositionJupiterInstructionDataEncoder, getOpenLendingPositionDiscriminatorBytes, getOpenLendingPositionInstruction, getOpenLendingPositionInstructionDataCodec, getOpenLendingPositionInstructionDataDecoder, getOpenLendingPositionInstructionDataEncoder, getOpenLendingPositionV2DiscriminatorBytes, getOpenLendingPositionV2Instruction, getOpenLendingPositionV2InstructionDataCodec, getOpenLendingPositionV2InstructionDataDecoder, getOpenLendingPositionV2InstructionDataEncoder, getOpenTunaLpPositionFusionDiscriminatorBytes, getOpenTunaLpPositionFusionInstruction, getOpenTunaLpPositionFusionInstructionDataCodec, getOpenTunaLpPositionFusionInstructionDataDecoder, getOpenTunaLpPositionFusionInstructionDataEncoder, getOpenTunaLpPositionFusionInstructionWithEphemeralSigner, getOpenTunaLpPositionOrcaDiscriminatorBytes, getOpenTunaLpPositionOrcaInstruction, getOpenTunaLpPositionOrcaInstructionDataCodec, getOpenTunaLpPositionOrcaInstructionDataDecoder, getOpenTunaLpPositionOrcaInstructionDataEncoder, getOpenTunaLpPositionOrcaInstructionWithEphemeralSigner, getOpenTunaSpotPositionDiscriminatorBytes, getOpenTunaSpotPositionInstruction, getOpenTunaSpotPositionInstructionDataCodec, getOpenTunaSpotPositionInstructionDataDecoder, getOpenTunaSpotPositionInstructionDataEncoder, getOraclePriceUpdateCodec, getOraclePriceUpdateDecoder, getOraclePriceUpdateEncoder, getPoolTokenCodec, getPoolTokenDecoder, getPoolTokenEncoder, getPythPriceUpdateAccountAddress, getRebalanceTunaLpPositionFusionDiscriminatorBytes, getRebalanceTunaLpPositionFusionInstruction, getRebalanceTunaLpPositionFusionInstructionDataCodec, getRebalanceTunaLpPositionFusionInstructionDataDecoder, getRebalanceTunaLpPositionFusionInstructionDataEncoder, getRebalanceTunaLpPositionOrcaDiscriminatorBytes, getRebalanceTunaLpPositionOrcaInstruction, getRebalanceTunaLpPositionOrcaInstructionDataCodec, getRebalanceTunaLpPositionOrcaInstructionDataDecoder, getRebalanceTunaLpPositionOrcaInstructionDataEncoder, getReferralAddress, getReferralCodec, getReferralDecoder, getReferralDiscriminatorBytes, getReferralEncoder, getReferralSize, getRemainingAccountsInfoCodec, getRemainingAccountsInfoDecoder, getRemainingAccountsInfoEncoder, getRemainingAccountsSliceCodec, getRemainingAccountsSliceDecoder, getRemainingAccountsSliceEncoder, getRepayBadDebtDiscriminatorBytes, getRepayBadDebtInstruction, getRepayBadDebtInstructionDataCodec, getRepayBadDebtInstructionDataDecoder, getRepayBadDebtInstructionDataEncoder, getRepayTunaLpPositionDebtDiscriminatorBytes, getRepayTunaLpPositionDebtInstruction, getRepayTunaLpPositionDebtInstructionDataCodec, getRepayTunaLpPositionDebtInstructionDataDecoder, getRepayTunaLpPositionDebtInstructionDataEncoder, getResetMarketBadDebtDiscriminatorBytes, getResetMarketBadDebtInstruction, getResetMarketBadDebtInstructionDataCodec, getResetMarketBadDebtInstructionDataDecoder, getResetMarketBadDebtInstructionDataEncoder, getResetTunaSpotPositionDiscriminatorBytes, getResetTunaSpotPositionInstruction, getResetTunaSpotPositionInstructionDataCodec, getResetTunaSpotPositionInstructionDataDecoder, getResetTunaSpotPositionInstructionDataEncoder, getSetAdminAuthorityDiscriminatorBytes, getSetAdminAuthorityInstruction, getSetAdminAuthorityInstructionDataCodec, getSetAdminAuthorityInstructionDataDecoder, getSetAdminAuthorityInstructionDataEncoder, getSetDefaultLiquidationFeeRateDiscriminatorBytes, getSetDefaultLiquidationFeeRateInstruction, getSetDefaultLiquidationFeeRateInstructionDataCodec, getSetDefaultLiquidationFeeRateInstructionDataDecoder, getSetDefaultLiquidationFeeRateInstructionDataEncoder, getSetDefaultMaxPercentageOfLeftoversDiscriminatorBytes, getSetDefaultMaxPercentageOfLeftoversInstruction, getSetDefaultMaxPercentageOfLeftoversInstructionDataCodec, getSetDefaultMaxPercentageOfLeftoversInstructionDataDecoder, getSetDefaultMaxPercentageOfLeftoversInstructionDataEncoder, getSetDefaultOraclePriceDeviationThresholdDiscriminatorBytes, getSetDefaultOraclePriceDeviationThresholdInstruction, getSetDefaultOraclePriceDeviationThresholdInstructionDataCodec, getSetDefaultOraclePriceDeviationThresholdInstructionDataDecoder, getSetDefaultOraclePriceDeviationThresholdInstructionDataEncoder, getSetDefaultProtocolFeeRateDiscriminatorBytes, getSetDefaultProtocolFeeRateInstruction, getSetDefaultProtocolFeeRateInstructionDataCodec, getSetDefaultProtocolFeeRateInstructionDataDecoder, getSetDefaultProtocolFeeRateInstructionDataEncoder, getSetDefaultRebalanceFeeRateDiscriminatorBytes, getSetDefaultRebalanceFeeRateInstruction, getSetDefaultRebalanceFeeRateInstructionDataCodec, getSetDefaultRebalanceFeeRateInstructionDataDecoder, getSetDefaultRebalanceFeeRateInstructionDataEncoder, getSetFeeRecipientDiscriminatorBytes, getSetFeeRecipientInstruction, getSetFeeRecipientInstructionDataCodec, getSetFeeRecipientInstructionDataDecoder, getSetFeeRecipientInstructionDataEncoder, getSetLiquidatorAuthorityDiscriminatorBytes, getSetLiquidatorAuthorityInstruction, getSetLiquidatorAuthorityInstructionDataCodec, getSetLiquidatorAuthorityInstructionDataDecoder, getSetLiquidatorAuthorityInstructionDataEncoder, getSetOraclePriceUpdateAuthorityDiscriminatorBytes, getSetOraclePriceUpdateAuthorityInstruction, getSetOraclePriceUpdateAuthorityInstructionDataCodec, getSetOraclePriceUpdateAuthorityInstructionDataDecoder, getSetOraclePriceUpdateAuthorityInstructionDataEncoder, getSetOwnerAuthorityDiscriminatorBytes, getSetOwnerAuthorityInstruction, getSetOwnerAuthorityInstructionDataCodec, getSetOwnerAuthorityInstructionDataDecoder, getSetOwnerAuthorityInstructionDataEncoder, getSetSuspendedStateDiscriminatorBytes, getSetSuspendedStateInstruction, getSetSuspendedStateInstructionDataCodec, getSetSuspendedStateInstructionDataDecoder, getSetSuspendedStateInstructionDataEncoder, getSetTunaLpPositionFlagsDiscriminatorBytes, getSetTunaLpPositionFlagsInstruction, getSetTunaLpPositionFlagsInstructionDataCodec, getSetTunaLpPositionFlagsInstructionDataDecoder, getSetTunaLpPositionFlagsInstructionDataEncoder, getSetTunaLpPositionLimitOrdersDiscriminatorBytes, getSetTunaLpPositionLimitOrdersInstruction, getSetTunaLpPositionLimitOrdersInstructionDataCodec, getSetTunaLpPositionLimitOrdersInstructionDataDecoder, getSetTunaLpPositionLimitOrdersInstructionDataEncoder, getSetTunaLpPositionRebalanceThresholdDiscriminatorBytes, getSetTunaLpPositionRebalanceThresholdInstruction, getSetTunaLpPositionRebalanceThresholdInstructionDataCodec, getSetTunaLpPositionRebalanceThresholdInstructionDataDecoder, getSetTunaLpPositionRebalanceThresholdInstructionDataEncoder, getSetTunaSpotPositionLimitOrdersDiscriminatorBytes, getSetTunaSpotPositionLimitOrdersInstruction, getSetTunaSpotPositionLimitOrdersInstructionDataCodec, getSetTunaSpotPositionLimitOrdersInstructionDataDecoder, getSetTunaSpotPositionLimitOrdersInstructionDataEncoder, getSocializeBadDebtDiscriminatorBytes, getSocializeBadDebtInstruction, getSocializeBadDebtInstructionDataCodec, getSocializeBadDebtInstructionDataDecoder, getSocializeBadDebtInstructionDataEncoder, getTunaConfigAddress, getTunaConfigCodec, getTunaConfigDecoder, getTunaConfigDiscriminatorBytes, getTunaConfigEncoder, getTunaConfigSize, getTunaErrorMessage, getTunaLpPositionAddress, getTunaLpPositionCodec, getTunaLpPositionDecoder, getTunaLpPositionDiscriminatorBytes, getTunaLpPositionEncoder, getTunaLpPositionSize, getTunaPositionStateCodec, getTunaPositionStateDecoder, getTunaPositionStateEncoder, getTunaPriceUpdateAddress, getTunaPriceUpdateCodec, getTunaPriceUpdateDecoder, getTunaPriceUpdateDiscriminatorBytes, getTunaPriceUpdateEncoder, getTunaPriceUpdateSize, getTunaSpotPositionAddress, getTunaSpotPositionCodec, getTunaSpotPositionDecoder, getTunaSpotPositionDiscriminatorBytes, getTunaSpotPositionEncoder, getTunaSpotPositionSize, getUpdateMarketDiscriminatorBytes, getUpdateMarketInstruction, getUpdateMarketInstructionDataCodec, getUpdateMarketInstructionDataDecoder, getUpdateMarketInstructionDataEncoder, getUpdateOraclePriceDiscriminatorBytes, getUpdateOraclePriceInstruction, getUpdateOraclePriceInstructionDataCodec, getUpdateOraclePriceInstructionDataDecoder, getUpdateOraclePriceInstructionDataEncoder, getUpdateVaultDiscriminatorBytes, getUpdateVaultInstruction, getUpdateVaultInstructionDataCodec, getUpdateVaultInstructionDataDecoder, getUpdateVaultInstructionDataEncoder, getVaultCodec, getVaultDecoder, getVaultDiscriminatorBytes, getVaultEncoder, getVaultSize, getWithdrawDiscriminatorBytes, getWithdrawInstruction, getWithdrawInstructionDataCodec, getWithdrawInstructionDataDecoder, getWithdrawInstructionDataEncoder, identifyTunaAccount, identifyTunaInstruction, increaseTunaLpPositionFusionInstruction, increaseTunaLpPositionFusionInstructions, increaseTunaLpPositionOrcaInstruction, increaseTunaLpPositionOrcaInstructions, isTunaError, jupiterSwapQuote, jupiterSwapQuoteByOutputAmount, lendingPositionAuthorityFilter, lendingPositionMintFilter, lendingPositionVaultFilter, liquidateTunaLpPositionFusionInstruction, liquidateTunaLpPositionFusionInstructions, liquidateTunaLpPositionFusionJupiterInstruction, liquidateTunaLpPositionFusionJupiterInstructions, liquidateTunaLpPositionOrcaInstruction, liquidateTunaLpPositionOrcaInstructions, liquidateTunaLpPositionOrcaJupiterInstruction, liquidateTunaLpPositionOrcaJupiterInstructions, liquidateTunaSpotPositionFusionInstruction, liquidateTunaSpotPositionFusionInstructions, liquidateTunaSpotPositionJupiterInstruction, liquidateTunaSpotPositionJupiterInstructions, liquidateTunaSpotPositionOrcaInstruction, liquidateTunaSpotPositionOrcaInstructions, marketAuthorityFilter, marketMarketMakerFilter, modifyTunaSpotPositionFusionInstruction, modifyTunaSpotPositionFusionInstructions, modifyTunaSpotPositionJupiterInstruction, modifyTunaSpotPositionJupiterInstructions, modifyTunaSpotPositionOrcaInstruction, modifyTunaSpotPositionOrcaInstructions, mulDiv, openAndIncreaseTunaLpPositionFusionInstruction, openAndIncreaseTunaLpPositionFusionInstructions, openAndIncreaseTunaLpPositionOrcaInstruction, openAndIncreaseTunaLpPositionOrcaInstructions, openAndIncreaseTunaSpotPositionJupiterInstruction, openAndIncreaseTunaSpotPositionJupiterInstructions, openLendingPositionAndDepositInstructions, openLendingPositionInstruction, openLendingPositionV2Instruction, openTunaLpPositionFusionInstruction, openTunaLpPositionOrcaInstruction, openTunaSpotPositionInstruction, openTunaSpotPositionInstructions, parseCloseMarketInstruction, parseCloseTunaLpPositionFusionInstruction, parseCloseTunaLpPositionOrcaInstruction, parseCloseTunaLpPositionUserVolumeAccumulatorAccountInstruction, parseCloseTunaSpotPositionInstruction, parseCloseTunaSpotPositionUserVolumeAccumulatorAccountInstruction, parseCollectAndCompoundFeesFusionInstruction, parseCollectAndCompoundFeesOrcaInstruction, parseCollectFeesFusionInstruction, parseCollectFeesOrcaInstruction, parseCollectRewardOrcaInstruction, parseCreateMarketInstruction, parseCreateMarketPermissionlessInstruction, parseCreatePriceUpdateInstruction, parseCreateReferralInstruction, parseCreateTunaConfigInstruction, parseCreateVaultInstruction, parseCreateVaultPermissionlessInstruction, parseDecreaseTunaLpPositionFusionInstruction, parseDecreaseTunaLpPositionOrcaInstruction, parseDepositInstruction, parseIncreaseTunaLpPositionFusionInstruction, parseIncreaseTunaLpPositionOrcaInstruction, parseLiquidateTunaLpPositionFusionInstruction, parseLiquidateTunaLpPositionFusionJupiterInstruction, parseLiquidateTunaLpPositionOrcaInstruction, parseLiquidateTunaLpPositionOrcaJupiterInstruction, parseLiquidateTunaSpotPositionFusionInstruction, parseLiquidateTunaSpotPositionJupiterInstruction, parseLiquidateTunaSpotPositionOrcaInstruction, parseModifyTunaSpotPositionFusionInstruction, parseModifyTunaSpotPositionJupiterInstruction, parseModifyTunaSpotPositionOrcaInstruction, parseOpenAndIncreaseTunaLpPositionFusionInstruction, parseOpenAndIncreaseTunaLpPositionOrcaInstruction, parseOpenAndIncreaseTunaSpotPositionJupiterInstruction, parseOpenLendingPositionInstruction, parseOpenLendingPositionV2Instruction, parseOpenTunaLpPositionFusionInstruction, parseOpenTunaLpPositionOrcaInstruction, parseOpenTunaSpotPositionInstruction, parseRebalanceTunaLpPositionFusionInstruction, parseRebalanceTunaLpPositionOrcaInstruction, parseRepayBadDebtInstruction, parseRepayTunaLpPositionDebtInstruction, parseResetMarketBadDebtInstruction, parseResetTunaSpotPositionInstruction, parseSetAdminAuthorityInstruction, parseSetDefaultLiquidationFeeRateInstruction, parseSetDefaultMaxPercentageOfLeftoversInstruction, parseSetDefaultOraclePriceDeviationThresholdInstruction, parseSetDefaultProtocolFeeRateInstruction, parseSetDefaultRebalanceFeeRateInstruction, parseSetFeeRecipientInstruction, parseSetLiquidatorAuthorityInstruction, parseSetOraclePriceUpdateAuthorityInstruction, parseSetOwnerAuthorityInstruction, parseSetSuspendedStateInstruction, parseSetTunaLpPositionFlagsInstruction, parseSetTunaLpPositionLimitOrdersInstruction, parseSetTunaLpPositionRebalanceThresholdInstruction, parseSetTunaSpotPositionLimitOrdersInstruction, parseSocializeBadDebtInstruction, parseUpdateMarketInstruction, parseUpdateOraclePriceInstruction, parseUpdateVaultInstruction, parseWithdrawInstruction, rebalanceTunaLpPositionFusionInstruction, rebalanceTunaLpPositionFusionInstructions, rebalanceTunaLpPositionOrcaInstruction, rebalanceTunaLpPositionOrcaInstructions, referralAuthorityFilter, referralIdFilter, repayBadDebtInstruction, repayTunaLpPositionDebtInstruction, repayTunaLpPositionDebtInstructions, resetTunaSpotPositionInstruction, setTunaLpPositionLimitOrdersInstruction, setTunaSpotPositionLimitOrdersInstruction, sharesToFunds, tunaLpPositionAuthorityFilter, tunaLpPositionMarketMakerFilter, tunaLpPositionMintAFilter, tunaLpPositionMintBFilter, tunaLpPositionMintFilter, tunaLpPositionPoolFilter, tunaSpotPositionAuthorityFilter, tunaSpotPositionMintAFilter, tunaSpotPositionMintBFilter, tunaSpotPositionPoolFilter, updateMarketInstruction, updateVaultInstruction, withdrawInstruction, withdrawInstructions };