@crypticdot/defituna-client 2.0.13 → 2.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _solana_kit from '@solana/kit';
2
- 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, ReadonlySignerAccount, ProgramDerivedAddress, GetProgramAccountsMemcmpFilter, Rpc, GetProgramAccountsApi, GetAccountInfoApi, Slot, GetMultipleAccountsApi } from '@solana/kit';
2
+ 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, ReadonlySignerAccount, ProgramDerivedAddress, GetProgramAccountsMemcmpFilter, Rpc, GetProgramAccountsApi, GetAccountInfoApi, Slot, GetMultipleAccountsApi, Lamports } from '@solana/kit';
3
3
  import { Whirlpool } from '@orca-so/whirlpools-client';
4
4
  import { FusionPool } from '@crypticdot/fusionamm-client';
5
5
  import { Mint } from '@solana-program/token-2022';
@@ -277,7 +277,7 @@ type TunaConfig = {
277
277
  version: number;
278
278
  /** Bump seed for the vaults config account. */
279
279
  bump: number;
280
- /** Current update authority address for both the tunaConfig and the Vault PDAs themselves - can be updated. */
280
+ /** Current update authority address for both the TunaConfig and the Vault PDAs themselves - can be updated. */
281
281
  adminAuthority: Address;
282
282
  /** Fee recipient address. */
283
283
  feeRecipient: Address;
@@ -307,7 +307,7 @@ type TunaConfigArgs = {
307
307
  version: number;
308
308
  /** Bump seed for the vaults config account. */
309
309
  bump: number;
310
- /** Current update authority address for both the tunaConfig and the Vault PDAs themselves - can be updated. */
310
+ /** Current update authority address for both the TunaConfig and the Vault PDAs themselves - can be updated. */
311
311
  adminAuthority: Address;
312
312
  /** Fee recipient address. */
313
313
  feeRecipient: Address;
@@ -2230,7 +2230,7 @@ declare function parseDepositInstruction<TProgram extends string, TAccountMetas
2230
2230
 
2231
2231
  declare const LIQUIDATE_POSITION_FUSION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2232
2232
  declare function getLiquidatePositionFusionDiscriminatorBytes(): ReadonlyUint8Array;
2233
- type LiquidatePositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountTunaConfig extends string | IAccountMeta<string> = string, TAccountMintA extends string | IAccountMeta<string> = string, TAccountMintB extends string | IAccountMeta<string> = string, TAccountTokenProgramA extends string | IAccountMeta<string> = string, TAccountTokenProgramB extends string | IAccountMeta<string> = string, TAccountMarket extends string | IAccountMeta<string> = string, TAccountVaultA extends string | IAccountMeta<string> = string, TAccountVaultB extends string | IAccountMeta<string> = string, TAccountVaultAAta extends string | IAccountMeta<string> = string, TAccountVaultBAta extends string | IAccountMeta<string> = string, TAccountTunaPosition extends string | IAccountMeta<string> = string, TAccountTunaPositionAta extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountLiquidationFeeRecipientAtaA extends string | IAccountMeta<string> = string, TAccountLiquidationFeeRecipientAtaB extends string | IAccountMeta<string> = string, TAccountPythOraclePriceFeedA extends string | IAccountMeta<string> = string, TAccountPythOraclePriceFeedB extends string | IAccountMeta<string> = string, TAccountFusionammProgram extends string | IAccountMeta<string> = string, TAccountFusionPool extends string | IAccountMeta<string> = string, TAccountFusionPosition extends string | IAccountMeta<string> = string, TAccountMemoProgram extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
2233
+ type LiquidatePositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountTunaConfig extends string | IAccountMeta<string> = string, TAccountMintA extends string | IAccountMeta<string> = string, TAccountMintB extends string | IAccountMeta<string> = string, TAccountTokenProgramA extends string | IAccountMeta<string> = string, TAccountTokenProgramB extends string | IAccountMeta<string> = string, TAccountMarket extends string | IAccountMeta<string> = string, TAccountVaultA extends string | IAccountMeta<string> = string, TAccountVaultB extends string | IAccountMeta<string> = string, TAccountVaultAAta extends string | IAccountMeta<string> = string, TAccountVaultBAta extends string | IAccountMeta<string> = string, TAccountTunaPosition extends string | IAccountMeta<string> = string, TAccountTunaPositionAta extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountFeeRecipientAtaA extends string | IAccountMeta<string> = string, TAccountFeeRecipientAtaB extends string | IAccountMeta<string> = string, TAccountPythOraclePriceFeedA extends string | IAccountMeta<string> = string, TAccountPythOraclePriceFeedB extends string | IAccountMeta<string> = string, TAccountFusionammProgram extends string | IAccountMeta<string> = string, TAccountFusionPool extends string | IAccountMeta<string> = string, TAccountFusionPosition extends string | IAccountMeta<string> = string, TAccountMemoProgram extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
2234
2234
  TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
2235
2235
  TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
2236
2236
  TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
@@ -2246,8 +2246,8 @@ type LiquidatePositionFusionInstruction<TProgram extends string = typeof TUNA_PR
2246
2246
  TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
2247
2247
  TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
2248
2248
  TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
2249
- TAccountLiquidationFeeRecipientAtaA extends string ? WritableAccount<TAccountLiquidationFeeRecipientAtaA> : TAccountLiquidationFeeRecipientAtaA,
2250
- TAccountLiquidationFeeRecipientAtaB extends string ? WritableAccount<TAccountLiquidationFeeRecipientAtaB> : TAccountLiquidationFeeRecipientAtaB,
2249
+ TAccountFeeRecipientAtaA extends string ? WritableAccount<TAccountFeeRecipientAtaA> : TAccountFeeRecipientAtaA,
2250
+ TAccountFeeRecipientAtaB extends string ? WritableAccount<TAccountFeeRecipientAtaB> : TAccountFeeRecipientAtaB,
2251
2251
  TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
2252
2252
  TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
2253
2253
  TAccountFusionammProgram extends string ? ReadonlyAccount<TAccountFusionammProgram> : TAccountFusionammProgram,
@@ -2268,7 +2268,7 @@ type LiquidatePositionFusionInstructionDataArgs = {
2268
2268
  declare function getLiquidatePositionFusionInstructionDataEncoder(): Encoder<LiquidatePositionFusionInstructionDataArgs>;
2269
2269
  declare function getLiquidatePositionFusionInstructionDataDecoder(): Decoder<LiquidatePositionFusionInstructionData>;
2270
2270
  declare function getLiquidatePositionFusionInstructionDataCodec(): Codec<LiquidatePositionFusionInstructionDataArgs, LiquidatePositionFusionInstructionData>;
2271
- type LiquidatePositionFusionInput<TAccountAuthority extends string = string, TAccountTunaConfig extends string = string, TAccountMintA extends string = string, TAccountMintB extends string = string, TAccountTokenProgramA extends string = string, TAccountTokenProgramB extends string = string, TAccountMarket extends string = string, TAccountVaultA extends string = string, TAccountVaultB extends string = string, TAccountVaultAAta extends string = string, TAccountVaultBAta extends string = string, TAccountTunaPosition extends string = string, TAccountTunaPositionAta extends string = string, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountLiquidationFeeRecipientAtaA extends string = string, TAccountLiquidationFeeRecipientAtaB extends string = string, TAccountPythOraclePriceFeedA extends string = string, TAccountPythOraclePriceFeedB extends string = string, TAccountFusionammProgram extends string = string, TAccountFusionPool extends string = string, TAccountFusionPosition extends string = string, TAccountMemoProgram extends string = string> = {
2271
+ type LiquidatePositionFusionInput<TAccountAuthority extends string = string, TAccountTunaConfig extends string = string, TAccountMintA extends string = string, TAccountMintB extends string = string, TAccountTokenProgramA extends string = string, TAccountTokenProgramB extends string = string, TAccountMarket extends string = string, TAccountVaultA extends string = string, TAccountVaultB extends string = string, TAccountVaultAAta extends string = string, TAccountVaultBAta extends string = string, TAccountTunaPosition extends string = string, TAccountTunaPositionAta extends string = string, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountFeeRecipientAtaA extends string = string, TAccountFeeRecipientAtaB extends string = string, TAccountPythOraclePriceFeedA extends string = string, TAccountPythOraclePriceFeedB extends string = string, TAccountFusionammProgram extends string = string, TAccountFusionPool extends string = string, TAccountFusionPosition extends string = string, TAccountMemoProgram extends string = string> = {
2272
2272
  /**
2273
2273
  *
2274
2274
  * TUNA accounts
@@ -2289,8 +2289,8 @@ type LiquidatePositionFusionInput<TAccountAuthority extends string = string, TAc
2289
2289
  tunaPositionAta: Address<TAccountTunaPositionAta>;
2290
2290
  tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
2291
2291
  tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
2292
- liquidationFeeRecipientAtaA: Address<TAccountLiquidationFeeRecipientAtaA>;
2293
- liquidationFeeRecipientAtaB: Address<TAccountLiquidationFeeRecipientAtaB>;
2292
+ feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
2293
+ feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
2294
2294
  pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
2295
2295
  pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
2296
2296
  /**
@@ -2305,9 +2305,9 @@ type LiquidatePositionFusionInput<TAccountAuthority extends string = string, TAc
2305
2305
  withdrawPercent: LiquidatePositionFusionInstructionDataArgs['withdrawPercent'];
2306
2306
  remainingAccountsInfo: LiquidatePositionFusionInstructionDataArgs['remainingAccountsInfo'];
2307
2307
  };
2308
- declare function getLiquidatePositionFusionInstruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TAccountMintA extends string, TAccountMintB extends string, TAccountTokenProgramA extends string, TAccountTokenProgramB extends string, TAccountMarket extends string, TAccountVaultA extends string, TAccountVaultB extends string, TAccountVaultAAta extends string, TAccountVaultBAta extends string, TAccountTunaPosition extends string, TAccountTunaPositionAta extends string, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountLiquidationFeeRecipientAtaA extends string, TAccountLiquidationFeeRecipientAtaB extends string, TAccountPythOraclePriceFeedA extends string, TAccountPythOraclePriceFeedB extends string, TAccountFusionammProgram extends string, TAccountFusionPool extends string, TAccountFusionPosition extends string, TAccountMemoProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: LiquidatePositionFusionInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountLiquidationFeeRecipientAtaA, TAccountLiquidationFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountFusionPosition, TAccountMemoProgram>, config?: {
2308
+ declare function getLiquidatePositionFusionInstruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TAccountMintA extends string, TAccountMintB extends string, TAccountTokenProgramA extends string, TAccountTokenProgramB extends string, TAccountMarket extends string, TAccountVaultA extends string, TAccountVaultB extends string, TAccountVaultAAta extends string, TAccountVaultBAta extends string, TAccountTunaPosition extends string, TAccountTunaPositionAta extends string, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountFeeRecipientAtaA extends string, TAccountFeeRecipientAtaB extends string, TAccountPythOraclePriceFeedA extends string, TAccountPythOraclePriceFeedB extends string, TAccountFusionammProgram extends string, TAccountFusionPool extends string, TAccountFusionPosition extends string, TAccountMemoProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: LiquidatePositionFusionInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountFusionPosition, TAccountMemoProgram>, config?: {
2309
2309
  programAddress?: TProgramAddress;
2310
- }): LiquidatePositionFusionInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountLiquidationFeeRecipientAtaA, TAccountLiquidationFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountFusionPosition, TAccountMemoProgram>;
2310
+ }): LiquidatePositionFusionInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountFusionPosition, TAccountMemoProgram>;
2311
2311
  type ParsedLiquidatePositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
2312
2312
  programAddress: Address<TProgram>;
2313
2313
  accounts: {
@@ -2331,8 +2331,8 @@ type ParsedLiquidatePositionFusionInstruction<TProgram extends string = typeof T
2331
2331
  tunaPositionAta: TAccountMetas[12];
2332
2332
  tunaPositionAtaA: TAccountMetas[13];
2333
2333
  tunaPositionAtaB: TAccountMetas[14];
2334
- liquidationFeeRecipientAtaA: TAccountMetas[15];
2335
- liquidationFeeRecipientAtaB: TAccountMetas[16];
2334
+ feeRecipientAtaA: TAccountMetas[15];
2335
+ feeRecipientAtaB: TAccountMetas[16];
2336
2336
  pythOraclePriceFeedA: TAccountMetas[17];
2337
2337
  pythOraclePriceFeedB: TAccountMetas[18];
2338
2338
  /**
@@ -2359,7 +2359,7 @@ declare function parseLiquidatePositionFusionInstruction<TProgram extends string
2359
2359
 
2360
2360
  declare const LIQUIDATE_POSITION_ORCA_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2361
2361
  declare function getLiquidatePositionOrcaDiscriminatorBytes(): ReadonlyUint8Array;
2362
- type LiquidatePositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountTunaConfig extends string | IAccountMeta<string> = string, TAccountMintA extends string | IAccountMeta<string> = string, TAccountMintB extends string | IAccountMeta<string> = string, TAccountMarket extends string | IAccountMeta<string> = string, TAccountVaultA extends string | IAccountMeta<string> = string, TAccountVaultB extends string | IAccountMeta<string> = string, TAccountVaultAAta extends string | IAccountMeta<string> = string, TAccountVaultBAta extends string | IAccountMeta<string> = string, TAccountTunaPosition extends string | IAccountMeta<string> = string, TAccountTunaPositionAta extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountLiquidationFeeRecipientAtaA extends string | IAccountMeta<string> = string, TAccountLiquidationFeeRecipientAtaB extends string | IAccountMeta<string> = string, TAccountPythOraclePriceFeedA extends string | IAccountMeta<string> = string, TAccountPythOraclePriceFeedB extends string | IAccountMeta<string> = string, TAccountWhirlpoolProgram extends string | IAccountMeta<string> = string, TAccountWhirlpool extends string | IAccountMeta<string> = string, TAccountOrcaPosition extends string | IAccountMeta<string> = string, TAccountTokenProgramA extends string | IAccountMeta<string> = string, TAccountTokenProgramB extends string | IAccountMeta<string> = string, TAccountMemoProgram extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
2362
+ type LiquidatePositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountTunaConfig extends string | IAccountMeta<string> = string, TAccountMintA extends string | IAccountMeta<string> = string, TAccountMintB extends string | IAccountMeta<string> = string, TAccountMarket extends string | IAccountMeta<string> = string, TAccountVaultA extends string | IAccountMeta<string> = string, TAccountVaultB extends string | IAccountMeta<string> = string, TAccountVaultAAta extends string | IAccountMeta<string> = string, TAccountVaultBAta extends string | IAccountMeta<string> = string, TAccountTunaPosition extends string | IAccountMeta<string> = string, TAccountTunaPositionAta extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountFeeRecipientAtaA extends string | IAccountMeta<string> = string, TAccountFeeRecipientAtaB extends string | IAccountMeta<string> = string, TAccountPythOraclePriceFeedA extends string | IAccountMeta<string> = string, TAccountPythOraclePriceFeedB extends string | IAccountMeta<string> = string, TAccountWhirlpoolProgram extends string | IAccountMeta<string> = string, TAccountWhirlpool extends string | IAccountMeta<string> = string, TAccountOrcaPosition extends string | IAccountMeta<string> = string, TAccountTokenProgramA extends string | IAccountMeta<string> = string, TAccountTokenProgramB extends string | IAccountMeta<string> = string, TAccountMemoProgram extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
2363
2363
  TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
2364
2364
  TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
2365
2365
  TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
@@ -2373,8 +2373,8 @@ type LiquidatePositionOrcaInstruction<TProgram extends string = typeof TUNA_PROG
2373
2373
  TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
2374
2374
  TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
2375
2375
  TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
2376
- TAccountLiquidationFeeRecipientAtaA extends string ? WritableAccount<TAccountLiquidationFeeRecipientAtaA> : TAccountLiquidationFeeRecipientAtaA,
2377
- TAccountLiquidationFeeRecipientAtaB extends string ? WritableAccount<TAccountLiquidationFeeRecipientAtaB> : TAccountLiquidationFeeRecipientAtaB,
2376
+ TAccountFeeRecipientAtaA extends string ? WritableAccount<TAccountFeeRecipientAtaA> : TAccountFeeRecipientAtaA,
2377
+ TAccountFeeRecipientAtaB extends string ? WritableAccount<TAccountFeeRecipientAtaB> : TAccountFeeRecipientAtaB,
2378
2378
  TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
2379
2379
  TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
2380
2380
  TAccountWhirlpoolProgram extends string ? ReadonlyAccount<TAccountWhirlpoolProgram> : TAccountWhirlpoolProgram,
@@ -2397,7 +2397,7 @@ type LiquidatePositionOrcaInstructionDataArgs = {
2397
2397
  declare function getLiquidatePositionOrcaInstructionDataEncoder(): Encoder<LiquidatePositionOrcaInstructionDataArgs>;
2398
2398
  declare function getLiquidatePositionOrcaInstructionDataDecoder(): Decoder<LiquidatePositionOrcaInstructionData>;
2399
2399
  declare function getLiquidatePositionOrcaInstructionDataCodec(): Codec<LiquidatePositionOrcaInstructionDataArgs, LiquidatePositionOrcaInstructionData>;
2400
- type LiquidatePositionOrcaInput<TAccountAuthority extends string = string, TAccountTunaConfig extends string = string, TAccountMintA extends string = string, TAccountMintB extends string = string, TAccountMarket extends string = string, TAccountVaultA extends string = string, TAccountVaultB extends string = string, TAccountVaultAAta extends string = string, TAccountVaultBAta extends string = string, TAccountTunaPosition extends string = string, TAccountTunaPositionAta extends string = string, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountLiquidationFeeRecipientAtaA extends string = string, TAccountLiquidationFeeRecipientAtaB extends string = string, TAccountPythOraclePriceFeedA extends string = string, TAccountPythOraclePriceFeedB extends string = string, TAccountWhirlpoolProgram extends string = string, TAccountWhirlpool extends string = string, TAccountOrcaPosition extends string = string, TAccountTokenProgramA extends string = string, TAccountTokenProgramB extends string = string, TAccountMemoProgram extends string = string> = {
2400
+ type LiquidatePositionOrcaInput<TAccountAuthority extends string = string, TAccountTunaConfig extends string = string, TAccountMintA extends string = string, TAccountMintB extends string = string, TAccountMarket extends string = string, TAccountVaultA extends string = string, TAccountVaultB extends string = string, TAccountVaultAAta extends string = string, TAccountVaultBAta extends string = string, TAccountTunaPosition extends string = string, TAccountTunaPositionAta extends string = string, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountFeeRecipientAtaA extends string = string, TAccountFeeRecipientAtaB extends string = string, TAccountPythOraclePriceFeedA extends string = string, TAccountPythOraclePriceFeedB extends string = string, TAccountWhirlpoolProgram extends string = string, TAccountWhirlpool extends string = string, TAccountOrcaPosition extends string = string, TAccountTokenProgramA extends string = string, TAccountTokenProgramB extends string = string, TAccountMemoProgram extends string = string> = {
2401
2401
  /**
2402
2402
  *
2403
2403
  * TUNA accounts
@@ -2416,8 +2416,8 @@ type LiquidatePositionOrcaInput<TAccountAuthority extends string = string, TAcco
2416
2416
  tunaPositionAta: Address<TAccountTunaPositionAta>;
2417
2417
  tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
2418
2418
  tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
2419
- liquidationFeeRecipientAtaA: Address<TAccountLiquidationFeeRecipientAtaA>;
2420
- liquidationFeeRecipientAtaB: Address<TAccountLiquidationFeeRecipientAtaB>;
2419
+ feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
2420
+ feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
2421
2421
  pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
2422
2422
  pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
2423
2423
  /**
@@ -2434,9 +2434,9 @@ type LiquidatePositionOrcaInput<TAccountAuthority extends string = string, TAcco
2434
2434
  withdrawPercent: LiquidatePositionOrcaInstructionDataArgs['withdrawPercent'];
2435
2435
  remainingAccountsInfo: LiquidatePositionOrcaInstructionDataArgs['remainingAccountsInfo'];
2436
2436
  };
2437
- declare function getLiquidatePositionOrcaInstruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TAccountMintA extends string, TAccountMintB extends string, TAccountMarket extends string, TAccountVaultA extends string, TAccountVaultB extends string, TAccountVaultAAta extends string, TAccountVaultBAta extends string, TAccountTunaPosition extends string, TAccountTunaPositionAta extends string, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountLiquidationFeeRecipientAtaA extends string, TAccountLiquidationFeeRecipientAtaB extends string, TAccountPythOraclePriceFeedA extends string, TAccountPythOraclePriceFeedB extends string, TAccountWhirlpoolProgram extends string, TAccountWhirlpool extends string, TAccountOrcaPosition extends string, TAccountTokenProgramA extends string, TAccountTokenProgramB extends string, TAccountMemoProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: LiquidatePositionOrcaInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountLiquidationFeeRecipientAtaA, TAccountLiquidationFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountOrcaPosition, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMemoProgram>, config?: {
2437
+ declare function getLiquidatePositionOrcaInstruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TAccountMintA extends string, TAccountMintB extends string, TAccountMarket extends string, TAccountVaultA extends string, TAccountVaultB extends string, TAccountVaultAAta extends string, TAccountVaultBAta extends string, TAccountTunaPosition extends string, TAccountTunaPositionAta extends string, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountFeeRecipientAtaA extends string, TAccountFeeRecipientAtaB extends string, TAccountPythOraclePriceFeedA extends string, TAccountPythOraclePriceFeedB extends string, TAccountWhirlpoolProgram extends string, TAccountWhirlpool extends string, TAccountOrcaPosition extends string, TAccountTokenProgramA extends string, TAccountTokenProgramB extends string, TAccountMemoProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: LiquidatePositionOrcaInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountOrcaPosition, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMemoProgram>, config?: {
2438
2438
  programAddress?: TProgramAddress;
2439
- }): LiquidatePositionOrcaInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountLiquidationFeeRecipientAtaA, TAccountLiquidationFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountOrcaPosition, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMemoProgram>;
2439
+ }): LiquidatePositionOrcaInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountOrcaPosition, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMemoProgram>;
2440
2440
  type ParsedLiquidatePositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
2441
2441
  programAddress: Address<TProgram>;
2442
2442
  accounts: {
@@ -2458,8 +2458,8 @@ type ParsedLiquidatePositionOrcaInstruction<TProgram extends string = typeof TUN
2458
2458
  tunaPositionAta: TAccountMetas[10];
2459
2459
  tunaPositionAtaA: TAccountMetas[11];
2460
2460
  tunaPositionAtaB: TAccountMetas[12];
2461
- liquidationFeeRecipientAtaA: TAccountMetas[13];
2462
- liquidationFeeRecipientAtaB: TAccountMetas[14];
2461
+ feeRecipientAtaA: TAccountMetas[13];
2462
+ feeRecipientAtaB: TAccountMetas[14];
2463
2463
  pythOraclePriceFeedA: TAccountMetas[15];
2464
2464
  pythOraclePriceFeedB: TAccountMetas[16];
2465
2465
  /**
@@ -4741,26 +4741,42 @@ declare function createVaultInstructions(authority: TransactionSigner, mint: Acc
4741
4741
  declare function depositInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, mintAddress: Address, amount: bigint): Promise<IInstruction[]>;
4742
4742
  declare function depositInstruction(authority: TransactionSigner, mint: Account<Mint>, amount: bigint): Promise<IInstruction>;
4743
4743
 
4744
- declare function liquidatePositionOrcaInstructions(authority: TransactionSigner, tunaPosition: Account<TunaPosition>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, withdrawPercent: number): Promise<IInstruction[]>;
4745
- declare function liquidatePositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account<TunaPosition>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, withdrawPercent: number): Promise<IInstruction>;
4744
+ declare function liquidatePositionOrcaInstructions(authority: TransactionSigner, tunaPosition: Account<TunaPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, withdrawPercent: number): Promise<IInstruction[]>;
4745
+ declare function liquidatePositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account<TunaPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, withdrawPercent: number): Promise<IInstruction>;
4746
4746
 
4747
- declare function liquidatePositionFusionInstructions(authority: TransactionSigner, tunaPosition: Account<TunaPosition>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<FusionPool>, withdrawPercent: number): Promise<IInstruction[]>;
4748
- declare function liquidatePositionFusionInstruction(authority: TransactionSigner, tunaPosition: Account<TunaPosition>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>, withdrawPercent: number): Promise<IInstruction>;
4747
+ declare function liquidatePositionFusionInstructions(authority: TransactionSigner, tunaPosition: Account<TunaPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<FusionPool>, withdrawPercent: number): Promise<IInstruction[]>;
4748
+ declare function liquidatePositionFusionInstruction(authority: TransactionSigner, tunaPosition: Account<TunaPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>, withdrawPercent: number): Promise<IInstruction>;
4749
4749
 
4750
4750
  declare function openPositionOrcaInstruction(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, positionMint: TransactionSigner, whirlpoolAddress: Address, args: OpenPositionOrcaInstructionDataArgs): Promise<IInstruction>;
4751
4751
 
4752
4752
  declare function openPositionFusionInstruction(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, positionMint: TransactionSigner, fusionPoolAddress: Address, args: OpenPositionFusionInstructionDataArgs): Promise<IInstruction>;
4753
4753
 
4754
+ type OpenPositionWithLiquidityOrca = {
4755
+ /** The mint address of the position NFT. */
4756
+ positionMint: Address;
4757
+ /** List of Solana transaction instructions to execute. */
4758
+ instructions: IInstruction[];
4759
+ /** The initialization cost for opening the position in lamports. */
4760
+ initializationCost: Lamports;
4761
+ };
4754
4762
  type OpenPositionWithLiquidityOrcaInstructionsArgs = Omit<OpenPositionWithLiquidityOrcaInstructionDataArgs, "remainingAccountsInfo" | "minAddedAmountA" | "minAddedAmountB"> & {
4755
4763
  maxAmountSlippage: number;
4756
4764
  };
4757
- declare function openPositionWithLiquidityOrcaInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, positionMint: TransactionSigner, whirlpoolAddress: Address, args: OpenPositionWithLiquidityOrcaInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
4765
+ declare function openPositionWithLiquidityOrcaInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, whirlpoolAddress: Address, args: OpenPositionWithLiquidityOrcaInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<OpenPositionWithLiquidityOrca>;
4758
4766
  declare function openPositionWithLiquidityOrcaInstruction(authority: TransactionSigner, positionMint: TransactionSigner, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, args: Omit<OpenPositionWithLiquidityOrcaInstructionDataArgs, "remainingAccountsInfo">): Promise<IInstruction>;
4759
4767
 
4768
+ type OpenPositionWithLiquidityFusion = {
4769
+ /** The mint address of the position NFT. */
4770
+ positionMint: Address;
4771
+ /** List of Solana transaction instructions to execute. */
4772
+ instructions: IInstruction[];
4773
+ /** The initialization cost for opening the position in lamports. */
4774
+ initializationCost: Lamports;
4775
+ };
4760
4776
  type OpenPositionWithLiquidityFusionInstructionsArgs = Omit<OpenPositionWithLiquidityFusionInstructionDataArgs, "remainingAccountsInfo" | "minAddedAmountA" | "minAddedAmountB"> & {
4761
4777
  maxAmountSlippage: number;
4762
4778
  };
4763
- declare function openPositionWithLiquidityFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, positionMint: TransactionSigner, fusionPoolAddress: Address, args: OpenPositionWithLiquidityFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
4779
+ declare function openPositionWithLiquidityFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, fusionPoolAddress: Address, args: OpenPositionWithLiquidityFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<OpenPositionWithLiquidityFusion>;
4764
4780
  declare function openPositionWithLiquidityFusionInstruction(authority: TransactionSigner, positionMint: TransactionSigner, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>, args: Omit<OpenPositionWithLiquidityFusionInstructionDataArgs, "remainingAccountsInfo">): Promise<IInstruction>;
4765
4781
 
4766
4782
  type RemoveLiquidityOrcaInstructionsArgs = Omit<RemoveLiquidityOrcaInstructionDataArgs, "remainingAccountsInfo" | "minRemovedAmountA" | "minRemovedAmountB"> & {
@@ -4791,10 +4807,22 @@ declare function createAddressLookupTableForMarketInstructions(rpc: Rpc<GetAccou
4791
4807
  declare function repayDebtInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, positionMint: Address, collateralA: bigint, collateralB: bigint, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
4792
4808
  declare function repayDebtInstruction(authority: TransactionSigner, positionMint: Address, mintA: Account<Mint>, mintB: Account<Mint>, marketAddress: Address, collateralA: bigint, collateralB: bigint): Promise<IInstruction>;
4793
4809
 
4794
- declare function rebalancePositionOrcaInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, positionMint: Address, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
4810
+ type RebalancePositionOrca = {
4811
+ /** List of Solana transaction instructions to execute. */
4812
+ instructions: IInstruction[];
4813
+ /** The initialization cost for opening the position in lamports. */
4814
+ initializationCost: Lamports;
4815
+ };
4816
+ declare function rebalancePositionOrcaInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, positionMint: Address, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<RebalancePositionOrca>;
4795
4817
  declare function rebalancePositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account<TunaPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>): Promise<IInstruction>;
4796
4818
 
4797
- declare function rebalancePositionFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, positionMint: Address, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
4819
+ type RebalancePositionFusion = {
4820
+ /** List of Solana transaction instructions to execute. */
4821
+ instructions: IInstruction[];
4822
+ /** The initialization cost for opening the position in lamports. */
4823
+ initializationCost: Lamports;
4824
+ };
4825
+ declare function rebalancePositionFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, positionMint: Address, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<RebalancePositionFusion>;
4798
4826
  declare function rebalancePositionFusionInstruction(authority: TransactionSigner, tunaPosition: Account<TunaPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>): Promise<IInstruction>;
4799
4827
 
4800
4828
  declare const DEFAULT_ADDRESS: _solana_kit.Address<"11111111111111111111111111111111">;
@@ -4818,4 +4846,4 @@ declare const TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD_WITH_LEVERAGE: number;
4818
4846
  declare const TUNA_POSITION_FLAGS_ALLOW_REBALANCING: number;
4819
4847
  declare const WP_NFT_UPDATE_AUTH: _solana_kit.Address<"3axbTs2z5GBy6usVbNVoqEgZMng3vZvMnAoX29BFfwhr">;
4820
4848
 
4821
- export { ADD_LIQUIDITY_FUSION_DISCRIMINATOR, ADD_LIQUIDITY_ORCA_DISCRIMINATOR, AccountsType, type AccountsTypeArgs, type AddLiquidityFusionInput, type AddLiquidityFusionInstruction, type AddLiquidityFusionInstructionData, type AddLiquidityFusionInstructionDataArgs, type AddLiquidityFusionInstructionsArgs, type AddLiquidityOrcaInput, type AddLiquidityOrcaInstruction, type AddLiquidityOrcaInstructionData, type AddLiquidityOrcaInstructionDataArgs, type AddLiquidityOrcaInstructionsArgs, CLOSE_POSITION_FUSION_DISCRIMINATOR, CLOSE_POSITION_ORCA_DISCRIMINATOR, COLLECT_AND_COMPOUND_FEES_FUSION_DISCRIMINATOR, COLLECT_AND_COMPOUND_FEES_ORCA_DISCRIMINATOR, COLLECT_FEES_FUSION_DISCRIMINATOR, COLLECT_FEES_ORCA_DISCRIMINATOR, COLLECT_REWARD_ORCA_DISCRIMINATOR, COMPUTED_AMOUNT, CREATE_MARKET_DISCRIMINATOR, CREATE_TUNA_CONFIG_DISCRIMINATOR, CREATE_VAULT_DISCRIMINATOR, type ClosePositionFusionInput, type ClosePositionFusionInstruction, type ClosePositionFusionInstructionData, type ClosePositionFusionInstructionDataArgs, type ClosePositionOrcaInput, type ClosePositionOrcaInstruction, type ClosePositionOrcaInstructionData, type ClosePositionOrcaInstructionDataArgs, type ClosePositionWithLiquidityFusionInstructionArgs, type ClosePositionWithLiquidityOrcaInstructionArgs, type CollectAndCompoundFeesFusionInput, type CollectAndCompoundFeesFusionInstruction, type CollectAndCompoundFeesFusionInstructionData, type CollectAndCompoundFeesFusionInstructionDataArgs, type CollectAndCompoundFeesOrcaInput, type CollectAndCompoundFeesOrcaInstruction, type CollectAndCompoundFeesOrcaInstructionData, type CollectAndCompoundFeesOrcaInstructionDataArgs, type CollectFeesFusionInput, type CollectFeesFusionInstruction, type CollectFeesFusionInstructionData, type CollectFeesFusionInstructionDataArgs, type CollectFeesOrcaInput, type CollectFeesOrcaInstruction, type CollectFeesOrcaInstructionData, type CollectFeesOrcaInstructionDataArgs, type CollectRewardOrcaInput, type CollectRewardOrcaInstruction, type CollectRewardOrcaInstructionData, type CollectRewardOrcaInstructionDataArgs, type CreateAddressLookupTableResult, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateTunaConfigInput, type CreateTunaConfigInstruction, type CreateTunaConfigInstructionData, type CreateTunaConfigInstructionDataArgs, type CreateVaultInput, type CreateVaultInstruction, type CreateVaultInstructionData, type CreateVaultInstructionDataArgs, DEFAULT_ADDRESS, DEFAULT_MAX_AMOUNT_SLIPPAGE, DEFAULT_MAX_SWAP_SLIPPAGE, DEPOSIT_DISCRIMINATOR, type DepositInput, type DepositInstruction, type DepositInstructionData, type DepositInstructionDataArgs, FusionUtils, HUNDRED_PERCENT, type IncreaseLiquidityQuoteArgs, type IncreaseLiquidityQuoteResult, LENDING_POSITION_DISCRIMINATOR, LEVERAGE_ONE, LIQUIDATE_POSITION_FUSION_DISCRIMINATOR, LIQUIDATE_POSITION_ORCA_DISCRIMINATOR, type LendingPosition, type LendingPositionArgs, type LiquidatePositionFusionInput, type LiquidatePositionFusionInstruction, type LiquidatePositionFusionInstructionData, type LiquidatePositionFusionInstructionDataArgs, type LiquidatePositionOrcaInput, type LiquidatePositionOrcaInstruction, type LiquidatePositionOrcaInstructionData, type LiquidatePositionOrcaInstructionDataArgs, MARKET_DISCRIMINATOR, MAX_LEVERAGE, MAX_LIMIT_ORDER_EXECUTION_FEE, MAX_LIQUIDATION_FEE, MAX_LIQUIDATION_THRESHOLD, MAX_PROTOCOL_FEE, type Market, type MarketArgs, MarketMaker, type MarketMakerArgs, NATIVE_MINT, NO_STOP_LOSS, NO_TAKE_PROFIT, OPEN_LENDING_POSITION_DISCRIMINATOR, OPEN_POSITION_FUSION_DISCRIMINATOR, OPEN_POSITION_ORCA_DISCRIMINATOR, OPEN_POSITION_WITH_LIQUIDITY_FUSION_DISCRIMINATOR, OPEN_POSITION_WITH_LIQUIDITY_ORCA_DISCRIMINATOR, type OpenLendingPositionInput, type OpenLendingPositionInstruction, type OpenLendingPositionInstructionData, type OpenLendingPositionInstructionDataArgs, type OpenPositionFusionInput, type OpenPositionFusionInstruction, type OpenPositionFusionInstructionData, type OpenPositionFusionInstructionDataArgs, type OpenPositionOrcaInput, type OpenPositionOrcaInstruction, type OpenPositionOrcaInstructionData, type OpenPositionOrcaInstructionDataArgs, type OpenPositionWithLiquidityFusionInput, type OpenPositionWithLiquidityFusionInstruction, type OpenPositionWithLiquidityFusionInstructionData, type OpenPositionWithLiquidityFusionInstructionDataArgs, type OpenPositionWithLiquidityFusionInstructionsArgs, type OpenPositionWithLiquidityOrcaInput, type OpenPositionWithLiquidityOrcaInstruction, type OpenPositionWithLiquidityOrcaInstructionData, type OpenPositionWithLiquidityOrcaInstructionDataArgs, type OpenPositionWithLiquidityOrcaInstructionsArgs, OrcaUtils, type ParsedAddLiquidityFusionInstruction, type ParsedAddLiquidityOrcaInstruction, type ParsedClosePositionFusionInstruction, type ParsedClosePositionOrcaInstruction, type ParsedCollectAndCompoundFeesFusionInstruction, type ParsedCollectAndCompoundFeesOrcaInstruction, type ParsedCollectFeesFusionInstruction, type ParsedCollectFeesOrcaInstruction, type ParsedCollectRewardOrcaInstruction, type ParsedCreateMarketInstruction, type ParsedCreateTunaConfigInstruction, type ParsedCreateVaultInstruction, type ParsedDepositInstruction, type ParsedLiquidatePositionFusionInstruction, type ParsedLiquidatePositionOrcaInstruction, type ParsedOpenLendingPositionInstruction, type ParsedOpenPositionFusionInstruction, type ParsedOpenPositionOrcaInstruction, type ParsedOpenPositionWithLiquidityFusionInstruction, type ParsedOpenPositionWithLiquidityOrcaInstruction, type ParsedRebalancePositionFusionInstruction, type ParsedRebalancePositionOrcaInstruction, type ParsedRemoveLiquidityFusionInstruction, type ParsedRemoveLiquidityOrcaInstruction, type ParsedRepayBadDebtInstruction, type ParsedRepayDebtInstruction, type ParsedSetAdminAuthorityInstruction, type ParsedSetDefaultMaxPercentageOfLeftoversInstruction, type ParsedSetDefaultMaxSwapSlippageInstruction, type ParsedSetDefaultOraclePriceDeviationThresholdInstruction, type ParsedSetFeeRecipientInstruction, type ParsedSetLimitOrdersInstruction, type ParsedSetLiquidatorAuthorityInstruction, type ParsedSetOwnerAuthorityInstruction, type ParsedSetSuspendedStateInstruction, type ParsedSetTunaPositionFlagsInstruction, type ParsedSetTunaPositionRebalanceThresholdInstruction, type ParsedTunaInstruction, type ParsedUpdateMarketInstruction, type ParsedUpdateVaultInstruction, type ParsedWithdrawInstruction, REBALANCE_POSITION_FUSION_DISCRIMINATOR, REBALANCE_POSITION_ORCA_DISCRIMINATOR, REMOVE_LIQUIDITY_FUSION_DISCRIMINATOR, REMOVE_LIQUIDITY_ORCA_DISCRIMINATOR, REPAY_BAD_DEBT_DISCRIMINATOR, REPAY_DEBT_DISCRIMINATOR, type RebalancePositionFusionInput, type RebalancePositionFusionInstruction, type RebalancePositionFusionInstructionData, type RebalancePositionFusionInstructionDataArgs, type RebalancePositionOrcaInput, type RebalancePositionOrcaInstruction, type RebalancePositionOrcaInstructionData, type RebalancePositionOrcaInstructionDataArgs, type RemainingAccountsInfo, type RemainingAccountsInfoArgs, type RemainingAccountsSlice, type RemainingAccountsSliceArgs, type RemoveLiquidityFusionInput, type RemoveLiquidityFusionInstruction, type RemoveLiquidityFusionInstructionData, type RemoveLiquidityFusionInstructionDataArgs, type RemoveLiquidityFusionInstructionsArgs, type RemoveLiquidityOrcaInput, type RemoveLiquidityOrcaInstruction, type RemoveLiquidityOrcaInstructionData, type RemoveLiquidityOrcaInstructionDataArgs, type RemoveLiquidityOrcaInstructionsArgs, type RepayBadDebtInput, type RepayBadDebtInstruction, type RepayBadDebtInstructionData, type RepayBadDebtInstructionDataArgs, type RepayDebtInput, type RepayDebtInstruction, type RepayDebtInstructionData, type RepayDebtInstructionDataArgs, SET_ADMIN_AUTHORITY_DISCRIMINATOR, SET_DEFAULT_MAX_PERCENTAGE_OF_LEFTOVERS_DISCRIMINATOR, SET_DEFAULT_MAX_SWAP_SLIPPAGE_DISCRIMINATOR, SET_DEFAULT_ORACLE_PRICE_DEVIATION_THRESHOLD_DISCRIMINATOR, SET_FEE_RECIPIENT_DISCRIMINATOR, SET_LIMIT_ORDERS_DISCRIMINATOR, SET_LIQUIDATOR_AUTHORITY_DISCRIMINATOR, SET_OWNER_AUTHORITY_DISCRIMINATOR, SET_SUSPENDED_STATE_DISCRIMINATOR, SET_TUNA_POSITION_FLAGS_DISCRIMINATOR, SET_TUNA_POSITION_REBALANCE_THRESHOLD_DISCRIMINATOR, type SetAdminAuthorityInput, type SetAdminAuthorityInstruction, type SetAdminAuthorityInstructionData, type SetAdminAuthorityInstructionDataArgs, type SetDefaultMaxPercentageOfLeftoversInput, type SetDefaultMaxPercentageOfLeftoversInstruction, type SetDefaultMaxPercentageOfLeftoversInstructionData, type SetDefaultMaxPercentageOfLeftoversInstructionDataArgs, type SetDefaultMaxSwapSlippageInput, type SetDefaultMaxSwapSlippageInstruction, type SetDefaultMaxSwapSlippageInstructionData, type SetDefaultMaxSwapSlippageInstructionDataArgs, type SetDefaultOraclePriceDeviationThresholdInput, type SetDefaultOraclePriceDeviationThresholdInstruction, type SetDefaultOraclePriceDeviationThresholdInstructionData, type SetDefaultOraclePriceDeviationThresholdInstructionDataArgs, type SetFeeRecipientInput, type SetFeeRecipientInstruction, type SetFeeRecipientInstructionData, type SetFeeRecipientInstructionDataArgs, type SetLimitOrdersInput, type SetLimitOrdersInstruction, type SetLimitOrdersInstructionData, type SetLimitOrdersInstructionDataArgs, type SetLiquidatorAuthorityInput, type SetLiquidatorAuthorityInstruction, type SetLiquidatorAuthorityInstructionData, type SetLiquidatorAuthorityInstructionDataArgs, type SetOwnerAuthorityInput, type SetOwnerAuthorityInstruction, type SetOwnerAuthorityInstructionData, type SetOwnerAuthorityInstructionDataArgs, type SetSuspendedStateInput, type SetSuspendedStateInstruction, type SetSuspendedStateInstructionData, type SetSuspendedStateInstructionDataArgs, type SetTunaPositionFlagsInput, type SetTunaPositionFlagsInstruction, type SetTunaPositionFlagsInstructionData, type SetTunaPositionFlagsInstructionDataArgs, type SetTunaPositionRebalanceThresholdInput, type SetTunaPositionRebalanceThresholdInstruction, type SetTunaPositionRebalanceThresholdInstructionData, type SetTunaPositionRebalanceThresholdInstructionDataArgs, TUNA_CONFIG_DISCRIMINATOR, TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED, TUNA_ERROR__BAD_DEBT, TUNA_ERROR__INSUFFICIENT_LIQUIDITY, TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE, TUNA_ERROR__INVALID_ACCOUNT_OWNER, TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS, TUNA_ERROR__INVALID_MARKET_MAKER, TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH, TUNA_ERROR__INVALID_SQRT_PRICE_LIMIT_DIRECTION, TUNA_ERROR__INVALID_TICK_ARRAY_SEQUENCE, TUNA_ERROR__LEFTOVERS_EXCEEDED, TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE, TUNA_ERROR__LIMIT_ORDER_EXECUTION_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDITY_ZERO, TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED, TUNA_ERROR__MARKET_DISABLED, TUNA_ERROR__MATH_OVERFLOW, TUNA_ERROR__MATH_UNDERFLOW, TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE, TUNA_ERROR__ORACLE_STALE_PRICE, TUNA_ERROR__PARTIAL_FILL_ERROR, TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE, TUNA_ERROR__POSITION_IS_HEALTHY, TUNA_ERROR__POSITION_IS_LIQUIDATED, TUNA_ERROR__POSITION_IS_UNHEALTHY, TUNA_ERROR__POSITION_NOT_EMPTY, TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET, TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE, TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH, TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED, TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT, TUNA_ERROR__SQRT_PRICE_OUT_OF_BOUNDS, TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED, TUNA_ERROR__SUSPENDED, TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT, TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED, TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE, TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED, TUNA_ERROR__TICK_INDEX_OF_BOUNDS, TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR, TUNA_ERROR__TYPE_CAST_OVERFLOW, TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA, TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA, TUNA_ERROR__UNEXPECTED_VALUE, TUNA_ERROR__UNSUPPORTED_TOKEN_MINT, TUNA_ERROR__VAULT_NOT_INITIALIZED, TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE, TUNA_ERROR__ZERO_PRICE_RANGE, TUNA_ERROR__ZERO_TRADABLE_AMOUNT, TUNA_ERROR__ZERO_YIELD, TUNA_POSITION_DISCRIMINATOR, TUNA_POSITION_FLAGS_ALLOW_REBALANCING, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD_WITH_LEVERAGE, TUNA_POSITION_FLAGS_STOP_LOSS_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_STOP_LOSS_SWAP_TO_TOKEN_B, TUNA_POSITION_FLAGS_TAKE_PROFIT_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_TAKE_PROFIT_SWAP_TO_TOKEN_B, TUNA_PROGRAM_ADDRESS, TunaAccount, type TunaConfig, type TunaConfigArgs, type TunaError, TunaInstruction, type TunaPosition, type TunaPositionArgs, TunaPositionState, type TunaPositionStateArgs, UPDATE_MARKET_DISCRIMINATOR, UPDATE_VAULT_DISCRIMINATOR, type UpdateMarketInput, type UpdateMarketInstruction, type UpdateMarketInstructionData, type UpdateMarketInstructionDataArgs, type UpdateVaultInput, type UpdateVaultInstruction, type UpdateVaultInstructionData, type UpdateVaultInstructionDataArgs, VAULT_DISCRIMINATOR, type Vault, type VaultArgs, WITHDRAW_DISCRIMINATOR, WP_NFT_UPDATE_AUTH, type WithdrawInput, type WithdrawInstruction, type WithdrawInstructionData, type WithdrawInstructionDataArgs, addLiquidityFusionInstruction, addLiquidityFusionInstructions, addLiquidityOrcaInstruction, addLiquidityOrcaInstructions, calculateProtocolFee, closePositionFusionInstruction, closePositionOrcaInstruction, closePositionWithLiquidityFusionInstructions, closePositionWithLiquidityOrcaInstructions, collectAndCompoundFeesFusionInstruction, collectAndCompoundFeesFusionInstructions, collectAndCompoundFeesOrcaInstruction, collectAndCompoundFeesOrcaInstructions, collectFeesFusionInstruction, collectFeesFusionInstructions, collectFeesOrcaInstruction, collectFeesOrcaInstructions, createAddressLookupTableForMarketInstructions, createAddressLookupTableInstructions, createMarketInstruction, createTunaConfigInstruction, createVaultInstructions, decodeLendingPosition, decodeMarket, decodeTunaConfig, decodeTunaPosition, decodeVault, depositInstruction, depositInstructions, fetchAllLendingPosition, fetchAllLendingPositionWithFilter, fetchAllMarket, fetchAllMaybeLendingPosition, fetchAllMaybeMarket, fetchAllMaybeTunaConfig, fetchAllMaybeTunaPosition, fetchAllMaybeVault, fetchAllTunaConfig, fetchAllTunaPosition, fetchAllTunaPositionWithFilter, fetchAllVault, fetchLendingPosition, fetchMarket, fetchMaybeLendingPosition, fetchMaybeMarket, fetchMaybeTunaConfig, fetchMaybeTunaPosition, fetchMaybeVault, fetchTunaConfig, fetchTunaPosition, fetchVault, getAccountsTypeCodec, getAccountsTypeDecoder, getAccountsTypeEncoder, getAddLiquidityFusionDiscriminatorBytes, getAddLiquidityFusionInstruction, getAddLiquidityFusionInstructionDataCodec, getAddLiquidityFusionInstructionDataDecoder, getAddLiquidityFusionInstructionDataEncoder, getAddLiquidityOrcaDiscriminatorBytes, getAddLiquidityOrcaInstruction, getAddLiquidityOrcaInstructionDataCodec, getAddLiquidityOrcaInstructionDataDecoder, getAddLiquidityOrcaInstructionDataEncoder, getClosePositionFusionDiscriminatorBytes, getClosePositionFusionInstruction, getClosePositionFusionInstructionDataCodec, getClosePositionFusionInstructionDataDecoder, getClosePositionFusionInstructionDataEncoder, getClosePositionOrcaDiscriminatorBytes, getClosePositionOrcaInstruction, getClosePositionOrcaInstructionDataCodec, getClosePositionOrcaInstructionDataDecoder, getClosePositionOrcaInstructionDataEncoder, getCollectAndCompoundFeesFusionDiscriminatorBytes, getCollectAndCompoundFeesFusionInstruction, getCollectAndCompoundFeesFusionInstructionDataCodec, getCollectAndCompoundFeesFusionInstructionDataDecoder, getCollectAndCompoundFeesFusionInstructionDataEncoder, getCollectAndCompoundFeesOrcaDiscriminatorBytes, getCollectAndCompoundFeesOrcaInstruction, getCollectAndCompoundFeesOrcaInstructionDataCodec, getCollectAndCompoundFeesOrcaInstructionDataDecoder, getCollectAndCompoundFeesOrcaInstructionDataEncoder, getCollectFeesFusionDiscriminatorBytes, getCollectFeesFusionInstruction, getCollectFeesFusionInstructionDataCodec, getCollectFeesFusionInstructionDataDecoder, getCollectFeesFusionInstructionDataEncoder, getCollectFeesOrcaDiscriminatorBytes, getCollectFeesOrcaInstruction, getCollectFeesOrcaInstructionDataCodec, getCollectFeesOrcaInstructionDataDecoder, getCollectFeesOrcaInstructionDataEncoder, getCollectRewardOrcaDiscriminatorBytes, getCollectRewardOrcaInstruction, getCollectRewardOrcaInstructionDataCodec, getCollectRewardOrcaInstructionDataDecoder, getCollectRewardOrcaInstructionDataEncoder, getCreateAtaInstruction, getCreateAtaInstructions, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreateTunaConfigDiscriminatorBytes, getCreateTunaConfigInstruction, getCreateTunaConfigInstructionDataCodec, getCreateTunaConfigInstructionDataDecoder, getCreateTunaConfigInstructionDataEncoder, getCreateVaultDiscriminatorBytes, getCreateVaultInstruction, getCreateVaultInstructionDataCodec, getCreateVaultInstructionDataDecoder, getCreateVaultInstructionDataEncoder, getDepositDiscriminatorBytes, getDepositInstruction, getDepositInstructionDataCodec, getDepositInstructionDataDecoder, getDepositInstructionDataEncoder, getLendingPositionAddress, getLendingPositionCodec, getLendingPositionDecoder, getLendingPositionDiscriminatorBytes, getLendingPositionEncoder, getLendingPositionSize, getLendingVaultAddress, getLiquidatePositionFusionDiscriminatorBytes, getLiquidatePositionFusionInstruction, getLiquidatePositionFusionInstructionDataCodec, getLiquidatePositionFusionInstructionDataDecoder, getLiquidatePositionFusionInstructionDataEncoder, getLiquidatePositionOrcaDiscriminatorBytes, getLiquidatePositionOrcaInstruction, getLiquidatePositionOrcaInstructionDataCodec, getLiquidatePositionOrcaInstructionDataDecoder, getLiquidatePositionOrcaInstructionDataEncoder, getLiquidityIncreaseQuote, getMarketAddress, getMarketCodec, getMarketDecoder, getMarketDiscriminatorBytes, getMarketEncoder, getMarketMakerCodec, getMarketMakerDecoder, getMarketMakerEncoder, getMarketSize, getOpenLendingPositionDiscriminatorBytes, getOpenLendingPositionInstruction, getOpenLendingPositionInstructionDataCodec, getOpenLendingPositionInstructionDataDecoder, getOpenLendingPositionInstructionDataEncoder, getOpenPositionFusionDiscriminatorBytes, getOpenPositionFusionInstruction, getOpenPositionFusionInstructionDataCodec, getOpenPositionFusionInstructionDataDecoder, getOpenPositionFusionInstructionDataEncoder, getOpenPositionOrcaDiscriminatorBytes, getOpenPositionOrcaInstruction, getOpenPositionOrcaInstructionDataCodec, getOpenPositionOrcaInstructionDataDecoder, getOpenPositionOrcaInstructionDataEncoder, getOpenPositionWithLiquidityFusionDiscriminatorBytes, getOpenPositionWithLiquidityFusionInstruction, getOpenPositionWithLiquidityFusionInstructionDataCodec, getOpenPositionWithLiquidityFusionInstructionDataDecoder, getOpenPositionWithLiquidityFusionInstructionDataEncoder, getOpenPositionWithLiquidityOrcaDiscriminatorBytes, getOpenPositionWithLiquidityOrcaInstruction, getOpenPositionWithLiquidityOrcaInstructionDataCodec, getOpenPositionWithLiquidityOrcaInstructionDataDecoder, getOpenPositionWithLiquidityOrcaInstructionDataEncoder, getRebalancePositionFusionDiscriminatorBytes, getRebalancePositionFusionInstruction, getRebalancePositionFusionInstructionDataCodec, getRebalancePositionFusionInstructionDataDecoder, getRebalancePositionFusionInstructionDataEncoder, getRebalancePositionOrcaDiscriminatorBytes, getRebalancePositionOrcaInstruction, getRebalancePositionOrcaInstructionDataCodec, getRebalancePositionOrcaInstructionDataDecoder, getRebalancePositionOrcaInstructionDataEncoder, getRemainingAccountsInfoCodec, getRemainingAccountsInfoDecoder, getRemainingAccountsInfoEncoder, getRemainingAccountsSliceCodec, getRemainingAccountsSliceDecoder, getRemainingAccountsSliceEncoder, getRemoveLiquidityFusionDiscriminatorBytes, getRemoveLiquidityFusionInstruction, getRemoveLiquidityFusionInstructionDataCodec, getRemoveLiquidityFusionInstructionDataDecoder, getRemoveLiquidityFusionInstructionDataEncoder, getRemoveLiquidityOrcaDiscriminatorBytes, getRemoveLiquidityOrcaInstruction, getRemoveLiquidityOrcaInstructionDataCodec, getRemoveLiquidityOrcaInstructionDataDecoder, getRemoveLiquidityOrcaInstructionDataEncoder, getRepayBadDebtDiscriminatorBytes, getRepayBadDebtInstruction, getRepayBadDebtInstructionDataCodec, getRepayBadDebtInstructionDataDecoder, getRepayBadDebtInstructionDataEncoder, getRepayDebtDiscriminatorBytes, getRepayDebtInstruction, getRepayDebtInstructionDataCodec, getRepayDebtInstructionDataDecoder, getRepayDebtInstructionDataEncoder, getSetAdminAuthorityDiscriminatorBytes, getSetAdminAuthorityInstruction, getSetAdminAuthorityInstructionDataCodec, getSetAdminAuthorityInstructionDataDecoder, getSetAdminAuthorityInstructionDataEncoder, getSetDefaultMaxPercentageOfLeftoversDiscriminatorBytes, getSetDefaultMaxPercentageOfLeftoversInstruction, getSetDefaultMaxPercentageOfLeftoversInstructionDataCodec, getSetDefaultMaxPercentageOfLeftoversInstructionDataDecoder, getSetDefaultMaxPercentageOfLeftoversInstructionDataEncoder, getSetDefaultMaxSwapSlippageDiscriminatorBytes, getSetDefaultMaxSwapSlippageInstruction, getSetDefaultMaxSwapSlippageInstructionDataCodec, getSetDefaultMaxSwapSlippageInstructionDataDecoder, getSetDefaultMaxSwapSlippageInstructionDataEncoder, getSetDefaultOraclePriceDeviationThresholdDiscriminatorBytes, getSetDefaultOraclePriceDeviationThresholdInstruction, getSetDefaultOraclePriceDeviationThresholdInstructionDataCodec, getSetDefaultOraclePriceDeviationThresholdInstructionDataDecoder, getSetDefaultOraclePriceDeviationThresholdInstructionDataEncoder, getSetFeeRecipientDiscriminatorBytes, getSetFeeRecipientInstruction, getSetFeeRecipientInstructionDataCodec, getSetFeeRecipientInstructionDataDecoder, getSetFeeRecipientInstructionDataEncoder, getSetLimitOrdersDiscriminatorBytes, getSetLimitOrdersInstruction, getSetLimitOrdersInstructionDataCodec, getSetLimitOrdersInstructionDataDecoder, getSetLimitOrdersInstructionDataEncoder, getSetLiquidatorAuthorityDiscriminatorBytes, getSetLiquidatorAuthorityInstruction, getSetLiquidatorAuthorityInstructionDataCodec, getSetLiquidatorAuthorityInstructionDataDecoder, getSetLiquidatorAuthorityInstructionDataEncoder, getSetOwnerAuthorityDiscriminatorBytes, getSetOwnerAuthorityInstruction, getSetOwnerAuthorityInstructionDataCodec, getSetOwnerAuthorityInstructionDataDecoder, getSetOwnerAuthorityInstructionDataEncoder, getSetSuspendedStateDiscriminatorBytes, getSetSuspendedStateInstruction, getSetSuspendedStateInstructionDataCodec, getSetSuspendedStateInstructionDataDecoder, getSetSuspendedStateInstructionDataEncoder, getSetTunaPositionFlagsDiscriminatorBytes, getSetTunaPositionFlagsInstruction, getSetTunaPositionFlagsInstructionDataCodec, getSetTunaPositionFlagsInstructionDataDecoder, getSetTunaPositionFlagsInstructionDataEncoder, getSetTunaPositionRebalanceThresholdDiscriminatorBytes, getSetTunaPositionRebalanceThresholdInstruction, getSetTunaPositionRebalanceThresholdInstructionDataCodec, getSetTunaPositionRebalanceThresholdInstructionDataDecoder, getSetTunaPositionRebalanceThresholdInstructionDataEncoder, getTunaConfigAddress, getTunaConfigCodec, getTunaConfigDecoder, getTunaConfigDiscriminatorBytes, getTunaConfigEncoder, getTunaConfigSize, getTunaErrorMessage, getTunaPositionAddress, getTunaPositionCodec, getTunaPositionDecoder, getTunaPositionDiscriminatorBytes, getTunaPositionEncoder, getTunaPositionSize, getTunaPositionStateCodec, getTunaPositionStateDecoder, getTunaPositionStateEncoder, getUpdateMarketDiscriminatorBytes, getUpdateMarketInstruction, getUpdateMarketInstructionDataCodec, getUpdateMarketInstructionDataDecoder, getUpdateMarketInstructionDataEncoder, getUpdateVaultDiscriminatorBytes, getUpdateVaultInstruction, getUpdateVaultInstructionDataCodec, getUpdateVaultInstructionDataDecoder, getUpdateVaultInstructionDataEncoder, getVaultCodec, getVaultDecoder, getVaultDiscriminatorBytes, getVaultEncoder, getVaultSize, getWithdrawDiscriminatorBytes, getWithdrawInstruction, getWithdrawInstructionDataCodec, getWithdrawInstructionDataDecoder, getWithdrawInstructionDataEncoder, identifyTunaAccount, identifyTunaInstruction, isTunaError, lendingPositionAuthorityFilter, lendingPositionMintFilter, liquidatePositionFusionInstruction, liquidatePositionFusionInstructions, liquidatePositionOrcaInstruction, liquidatePositionOrcaInstructions, openLendingPositionAndDepositInstructions, openLendingPositionInstruction, openPositionFusionInstruction, openPositionOrcaInstruction, openPositionWithLiquidityFusionInstruction, openPositionWithLiquidityFusionInstructions, openPositionWithLiquidityOrcaInstruction, openPositionWithLiquidityOrcaInstructions, parseAddLiquidityFusionInstruction, parseAddLiquidityOrcaInstruction, parseClosePositionFusionInstruction, parseClosePositionOrcaInstruction, parseCollectAndCompoundFeesFusionInstruction, parseCollectAndCompoundFeesOrcaInstruction, parseCollectFeesFusionInstruction, parseCollectFeesOrcaInstruction, parseCollectRewardOrcaInstruction, parseCreateMarketInstruction, parseCreateTunaConfigInstruction, parseCreateVaultInstruction, parseDepositInstruction, parseLiquidatePositionFusionInstruction, parseLiquidatePositionOrcaInstruction, parseOpenLendingPositionInstruction, parseOpenPositionFusionInstruction, parseOpenPositionOrcaInstruction, parseOpenPositionWithLiquidityFusionInstruction, parseOpenPositionWithLiquidityOrcaInstruction, parseRebalancePositionFusionInstruction, parseRebalancePositionOrcaInstruction, parseRemoveLiquidityFusionInstruction, parseRemoveLiquidityOrcaInstruction, parseRepayBadDebtInstruction, parseRepayDebtInstruction, parseSetAdminAuthorityInstruction, parseSetDefaultMaxPercentageOfLeftoversInstruction, parseSetDefaultMaxSwapSlippageInstruction, parseSetDefaultOraclePriceDeviationThresholdInstruction, parseSetFeeRecipientInstruction, parseSetLimitOrdersInstruction, parseSetLiquidatorAuthorityInstruction, parseSetOwnerAuthorityInstruction, parseSetSuspendedStateInstruction, parseSetTunaPositionFlagsInstruction, parseSetTunaPositionRebalanceThresholdInstruction, parseUpdateMarketInstruction, parseUpdateVaultInstruction, parseWithdrawInstruction, rebalancePositionFusionInstruction, rebalancePositionFusionInstructions, rebalancePositionOrcaInstruction, rebalancePositionOrcaInstructions, removeLiquidityFusionInstruction, removeLiquidityFusionInstructions, removeLiquidityOrcaInstruction, removeLiquidityOrcaInstructions, repayBadDebtInstruction, repayDebtInstruction, repayDebtInstructions, setLimitOrdersInstruction, tunaPositionAuthorityFilter, tunaPositionMarketMakerFilter, tunaPositionMintAFilter, tunaPositionMintBFilter, tunaPositionMintFilter, tunaPositionPoolFilter, updateMarketInstruction, updateVaultInstruction, withdrawInstruction, withdrawInstructions };
4849
+ export { ADD_LIQUIDITY_FUSION_DISCRIMINATOR, ADD_LIQUIDITY_ORCA_DISCRIMINATOR, AccountsType, type AccountsTypeArgs, type AddLiquidityFusionInput, type AddLiquidityFusionInstruction, type AddLiquidityFusionInstructionData, type AddLiquidityFusionInstructionDataArgs, type AddLiquidityFusionInstructionsArgs, type AddLiquidityOrcaInput, type AddLiquidityOrcaInstruction, type AddLiquidityOrcaInstructionData, type AddLiquidityOrcaInstructionDataArgs, type AddLiquidityOrcaInstructionsArgs, CLOSE_POSITION_FUSION_DISCRIMINATOR, CLOSE_POSITION_ORCA_DISCRIMINATOR, COLLECT_AND_COMPOUND_FEES_FUSION_DISCRIMINATOR, COLLECT_AND_COMPOUND_FEES_ORCA_DISCRIMINATOR, COLLECT_FEES_FUSION_DISCRIMINATOR, COLLECT_FEES_ORCA_DISCRIMINATOR, COLLECT_REWARD_ORCA_DISCRIMINATOR, COMPUTED_AMOUNT, CREATE_MARKET_DISCRIMINATOR, CREATE_TUNA_CONFIG_DISCRIMINATOR, CREATE_VAULT_DISCRIMINATOR, type ClosePositionFusionInput, type ClosePositionFusionInstruction, type ClosePositionFusionInstructionData, type ClosePositionFusionInstructionDataArgs, type ClosePositionOrcaInput, type ClosePositionOrcaInstruction, type ClosePositionOrcaInstructionData, type ClosePositionOrcaInstructionDataArgs, type ClosePositionWithLiquidityFusionInstructionArgs, type ClosePositionWithLiquidityOrcaInstructionArgs, type CollectAndCompoundFeesFusionInput, type CollectAndCompoundFeesFusionInstruction, type CollectAndCompoundFeesFusionInstructionData, type CollectAndCompoundFeesFusionInstructionDataArgs, type CollectAndCompoundFeesOrcaInput, type CollectAndCompoundFeesOrcaInstruction, type CollectAndCompoundFeesOrcaInstructionData, type CollectAndCompoundFeesOrcaInstructionDataArgs, type CollectFeesFusionInput, type CollectFeesFusionInstruction, type CollectFeesFusionInstructionData, type CollectFeesFusionInstructionDataArgs, type CollectFeesOrcaInput, type CollectFeesOrcaInstruction, type CollectFeesOrcaInstructionData, type CollectFeesOrcaInstructionDataArgs, type CollectRewardOrcaInput, type CollectRewardOrcaInstruction, type CollectRewardOrcaInstructionData, type CollectRewardOrcaInstructionDataArgs, type CreateAddressLookupTableResult, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateTunaConfigInput, type CreateTunaConfigInstruction, type CreateTunaConfigInstructionData, type CreateTunaConfigInstructionDataArgs, type CreateVaultInput, type CreateVaultInstruction, type CreateVaultInstructionData, type CreateVaultInstructionDataArgs, DEFAULT_ADDRESS, DEFAULT_MAX_AMOUNT_SLIPPAGE, DEFAULT_MAX_SWAP_SLIPPAGE, DEPOSIT_DISCRIMINATOR, type DepositInput, type DepositInstruction, type DepositInstructionData, type DepositInstructionDataArgs, FusionUtils, HUNDRED_PERCENT, type IncreaseLiquidityQuoteArgs, type IncreaseLiquidityQuoteResult, LENDING_POSITION_DISCRIMINATOR, LEVERAGE_ONE, LIQUIDATE_POSITION_FUSION_DISCRIMINATOR, LIQUIDATE_POSITION_ORCA_DISCRIMINATOR, type LendingPosition, type LendingPositionArgs, type LiquidatePositionFusionInput, type LiquidatePositionFusionInstruction, type LiquidatePositionFusionInstructionData, type LiquidatePositionFusionInstructionDataArgs, type LiquidatePositionOrcaInput, type LiquidatePositionOrcaInstruction, type LiquidatePositionOrcaInstructionData, type LiquidatePositionOrcaInstructionDataArgs, MARKET_DISCRIMINATOR, MAX_LEVERAGE, MAX_LIMIT_ORDER_EXECUTION_FEE, MAX_LIQUIDATION_FEE, MAX_LIQUIDATION_THRESHOLD, MAX_PROTOCOL_FEE, type Market, type MarketArgs, MarketMaker, type MarketMakerArgs, NATIVE_MINT, NO_STOP_LOSS, NO_TAKE_PROFIT, OPEN_LENDING_POSITION_DISCRIMINATOR, OPEN_POSITION_FUSION_DISCRIMINATOR, OPEN_POSITION_ORCA_DISCRIMINATOR, OPEN_POSITION_WITH_LIQUIDITY_FUSION_DISCRIMINATOR, OPEN_POSITION_WITH_LIQUIDITY_ORCA_DISCRIMINATOR, type OpenLendingPositionInput, type OpenLendingPositionInstruction, type OpenLendingPositionInstructionData, type OpenLendingPositionInstructionDataArgs, type OpenPositionFusionInput, type OpenPositionFusionInstruction, type OpenPositionFusionInstructionData, type OpenPositionFusionInstructionDataArgs, type OpenPositionOrcaInput, type OpenPositionOrcaInstruction, type OpenPositionOrcaInstructionData, type OpenPositionOrcaInstructionDataArgs, type OpenPositionWithLiquidityFusion, type OpenPositionWithLiquidityFusionInput, type OpenPositionWithLiquidityFusionInstruction, type OpenPositionWithLiquidityFusionInstructionData, type OpenPositionWithLiquidityFusionInstructionDataArgs, type OpenPositionWithLiquidityFusionInstructionsArgs, type OpenPositionWithLiquidityOrca, type OpenPositionWithLiquidityOrcaInput, type OpenPositionWithLiquidityOrcaInstruction, type OpenPositionWithLiquidityOrcaInstructionData, type OpenPositionWithLiquidityOrcaInstructionDataArgs, type OpenPositionWithLiquidityOrcaInstructionsArgs, OrcaUtils, type ParsedAddLiquidityFusionInstruction, type ParsedAddLiquidityOrcaInstruction, type ParsedClosePositionFusionInstruction, type ParsedClosePositionOrcaInstruction, type ParsedCollectAndCompoundFeesFusionInstruction, type ParsedCollectAndCompoundFeesOrcaInstruction, type ParsedCollectFeesFusionInstruction, type ParsedCollectFeesOrcaInstruction, type ParsedCollectRewardOrcaInstruction, type ParsedCreateMarketInstruction, type ParsedCreateTunaConfigInstruction, type ParsedCreateVaultInstruction, type ParsedDepositInstruction, type ParsedLiquidatePositionFusionInstruction, type ParsedLiquidatePositionOrcaInstruction, type ParsedOpenLendingPositionInstruction, type ParsedOpenPositionFusionInstruction, type ParsedOpenPositionOrcaInstruction, type ParsedOpenPositionWithLiquidityFusionInstruction, type ParsedOpenPositionWithLiquidityOrcaInstruction, type ParsedRebalancePositionFusionInstruction, type ParsedRebalancePositionOrcaInstruction, type ParsedRemoveLiquidityFusionInstruction, type ParsedRemoveLiquidityOrcaInstruction, type ParsedRepayBadDebtInstruction, type ParsedRepayDebtInstruction, type ParsedSetAdminAuthorityInstruction, type ParsedSetDefaultMaxPercentageOfLeftoversInstruction, type ParsedSetDefaultMaxSwapSlippageInstruction, type ParsedSetDefaultOraclePriceDeviationThresholdInstruction, type ParsedSetFeeRecipientInstruction, type ParsedSetLimitOrdersInstruction, type ParsedSetLiquidatorAuthorityInstruction, type ParsedSetOwnerAuthorityInstruction, type ParsedSetSuspendedStateInstruction, type ParsedSetTunaPositionFlagsInstruction, type ParsedSetTunaPositionRebalanceThresholdInstruction, type ParsedTunaInstruction, type ParsedUpdateMarketInstruction, type ParsedUpdateVaultInstruction, type ParsedWithdrawInstruction, REBALANCE_POSITION_FUSION_DISCRIMINATOR, REBALANCE_POSITION_ORCA_DISCRIMINATOR, REMOVE_LIQUIDITY_FUSION_DISCRIMINATOR, REMOVE_LIQUIDITY_ORCA_DISCRIMINATOR, REPAY_BAD_DEBT_DISCRIMINATOR, REPAY_DEBT_DISCRIMINATOR, type RebalancePositionFusion, type RebalancePositionFusionInput, type RebalancePositionFusionInstruction, type RebalancePositionFusionInstructionData, type RebalancePositionFusionInstructionDataArgs, type RebalancePositionOrca, type RebalancePositionOrcaInput, type RebalancePositionOrcaInstruction, type RebalancePositionOrcaInstructionData, type RebalancePositionOrcaInstructionDataArgs, type RemainingAccountsInfo, type RemainingAccountsInfoArgs, type RemainingAccountsSlice, type RemainingAccountsSliceArgs, type RemoveLiquidityFusionInput, type RemoveLiquidityFusionInstruction, type RemoveLiquidityFusionInstructionData, type RemoveLiquidityFusionInstructionDataArgs, type RemoveLiquidityFusionInstructionsArgs, type RemoveLiquidityOrcaInput, type RemoveLiquidityOrcaInstruction, type RemoveLiquidityOrcaInstructionData, type RemoveLiquidityOrcaInstructionDataArgs, type RemoveLiquidityOrcaInstructionsArgs, type RepayBadDebtInput, type RepayBadDebtInstruction, type RepayBadDebtInstructionData, type RepayBadDebtInstructionDataArgs, type RepayDebtInput, type RepayDebtInstruction, type RepayDebtInstructionData, type RepayDebtInstructionDataArgs, SET_ADMIN_AUTHORITY_DISCRIMINATOR, SET_DEFAULT_MAX_PERCENTAGE_OF_LEFTOVERS_DISCRIMINATOR, SET_DEFAULT_MAX_SWAP_SLIPPAGE_DISCRIMINATOR, SET_DEFAULT_ORACLE_PRICE_DEVIATION_THRESHOLD_DISCRIMINATOR, SET_FEE_RECIPIENT_DISCRIMINATOR, SET_LIMIT_ORDERS_DISCRIMINATOR, SET_LIQUIDATOR_AUTHORITY_DISCRIMINATOR, SET_OWNER_AUTHORITY_DISCRIMINATOR, SET_SUSPENDED_STATE_DISCRIMINATOR, SET_TUNA_POSITION_FLAGS_DISCRIMINATOR, SET_TUNA_POSITION_REBALANCE_THRESHOLD_DISCRIMINATOR, type SetAdminAuthorityInput, type SetAdminAuthorityInstruction, type SetAdminAuthorityInstructionData, type SetAdminAuthorityInstructionDataArgs, type SetDefaultMaxPercentageOfLeftoversInput, type SetDefaultMaxPercentageOfLeftoversInstruction, type SetDefaultMaxPercentageOfLeftoversInstructionData, type SetDefaultMaxPercentageOfLeftoversInstructionDataArgs, type SetDefaultMaxSwapSlippageInput, type SetDefaultMaxSwapSlippageInstruction, type SetDefaultMaxSwapSlippageInstructionData, type SetDefaultMaxSwapSlippageInstructionDataArgs, type SetDefaultOraclePriceDeviationThresholdInput, type SetDefaultOraclePriceDeviationThresholdInstruction, type SetDefaultOraclePriceDeviationThresholdInstructionData, type SetDefaultOraclePriceDeviationThresholdInstructionDataArgs, type SetFeeRecipientInput, type SetFeeRecipientInstruction, type SetFeeRecipientInstructionData, type SetFeeRecipientInstructionDataArgs, type SetLimitOrdersInput, type SetLimitOrdersInstruction, type SetLimitOrdersInstructionData, type SetLimitOrdersInstructionDataArgs, type SetLiquidatorAuthorityInput, type SetLiquidatorAuthorityInstruction, type SetLiquidatorAuthorityInstructionData, type SetLiquidatorAuthorityInstructionDataArgs, type SetOwnerAuthorityInput, type SetOwnerAuthorityInstruction, type SetOwnerAuthorityInstructionData, type SetOwnerAuthorityInstructionDataArgs, type SetSuspendedStateInput, type SetSuspendedStateInstruction, type SetSuspendedStateInstructionData, type SetSuspendedStateInstructionDataArgs, type SetTunaPositionFlagsInput, type SetTunaPositionFlagsInstruction, type SetTunaPositionFlagsInstructionData, type SetTunaPositionFlagsInstructionDataArgs, type SetTunaPositionRebalanceThresholdInput, type SetTunaPositionRebalanceThresholdInstruction, type SetTunaPositionRebalanceThresholdInstructionData, type SetTunaPositionRebalanceThresholdInstructionDataArgs, TUNA_CONFIG_DISCRIMINATOR, TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED, TUNA_ERROR__BAD_DEBT, TUNA_ERROR__INSUFFICIENT_LIQUIDITY, TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE, TUNA_ERROR__INVALID_ACCOUNT_OWNER, TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS, TUNA_ERROR__INVALID_MARKET_MAKER, TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH, TUNA_ERROR__INVALID_SQRT_PRICE_LIMIT_DIRECTION, TUNA_ERROR__INVALID_TICK_ARRAY_SEQUENCE, TUNA_ERROR__LEFTOVERS_EXCEEDED, TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE, TUNA_ERROR__LIMIT_ORDER_EXECUTION_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDITY_ZERO, TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED, TUNA_ERROR__MARKET_DISABLED, TUNA_ERROR__MATH_OVERFLOW, TUNA_ERROR__MATH_UNDERFLOW, TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE, TUNA_ERROR__ORACLE_STALE_PRICE, TUNA_ERROR__PARTIAL_FILL_ERROR, TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE, TUNA_ERROR__POSITION_IS_HEALTHY, TUNA_ERROR__POSITION_IS_LIQUIDATED, TUNA_ERROR__POSITION_IS_UNHEALTHY, TUNA_ERROR__POSITION_NOT_EMPTY, TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET, TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE, TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH, TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED, TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT, TUNA_ERROR__SQRT_PRICE_OUT_OF_BOUNDS, TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED, TUNA_ERROR__SUSPENDED, TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT, TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED, TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE, TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED, TUNA_ERROR__TICK_INDEX_OF_BOUNDS, TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR, TUNA_ERROR__TYPE_CAST_OVERFLOW, TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA, TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA, TUNA_ERROR__UNEXPECTED_VALUE, TUNA_ERROR__UNSUPPORTED_TOKEN_MINT, TUNA_ERROR__VAULT_NOT_INITIALIZED, TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE, TUNA_ERROR__ZERO_PRICE_RANGE, TUNA_ERROR__ZERO_TRADABLE_AMOUNT, TUNA_ERROR__ZERO_YIELD, TUNA_POSITION_DISCRIMINATOR, TUNA_POSITION_FLAGS_ALLOW_REBALANCING, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD_WITH_LEVERAGE, TUNA_POSITION_FLAGS_STOP_LOSS_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_STOP_LOSS_SWAP_TO_TOKEN_B, TUNA_POSITION_FLAGS_TAKE_PROFIT_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_TAKE_PROFIT_SWAP_TO_TOKEN_B, TUNA_PROGRAM_ADDRESS, TunaAccount, type TunaConfig, type TunaConfigArgs, type TunaError, TunaInstruction, type TunaPosition, type TunaPositionArgs, TunaPositionState, type TunaPositionStateArgs, UPDATE_MARKET_DISCRIMINATOR, UPDATE_VAULT_DISCRIMINATOR, type UpdateMarketInput, type UpdateMarketInstruction, type UpdateMarketInstructionData, type UpdateMarketInstructionDataArgs, type UpdateVaultInput, type UpdateVaultInstruction, type UpdateVaultInstructionData, type UpdateVaultInstructionDataArgs, VAULT_DISCRIMINATOR, type Vault, type VaultArgs, WITHDRAW_DISCRIMINATOR, WP_NFT_UPDATE_AUTH, type WithdrawInput, type WithdrawInstruction, type WithdrawInstructionData, type WithdrawInstructionDataArgs, addLiquidityFusionInstruction, addLiquidityFusionInstructions, addLiquidityOrcaInstruction, addLiquidityOrcaInstructions, calculateProtocolFee, closePositionFusionInstruction, closePositionOrcaInstruction, closePositionWithLiquidityFusionInstructions, closePositionWithLiquidityOrcaInstructions, collectAndCompoundFeesFusionInstruction, collectAndCompoundFeesFusionInstructions, collectAndCompoundFeesOrcaInstruction, collectAndCompoundFeesOrcaInstructions, collectFeesFusionInstruction, collectFeesFusionInstructions, collectFeesOrcaInstruction, collectFeesOrcaInstructions, createAddressLookupTableForMarketInstructions, createAddressLookupTableInstructions, createMarketInstruction, createTunaConfigInstruction, createVaultInstructions, decodeLendingPosition, decodeMarket, decodeTunaConfig, decodeTunaPosition, decodeVault, depositInstruction, depositInstructions, fetchAllLendingPosition, fetchAllLendingPositionWithFilter, fetchAllMarket, fetchAllMaybeLendingPosition, fetchAllMaybeMarket, fetchAllMaybeTunaConfig, fetchAllMaybeTunaPosition, fetchAllMaybeVault, fetchAllTunaConfig, fetchAllTunaPosition, fetchAllTunaPositionWithFilter, fetchAllVault, fetchLendingPosition, fetchMarket, fetchMaybeLendingPosition, fetchMaybeMarket, fetchMaybeTunaConfig, fetchMaybeTunaPosition, fetchMaybeVault, fetchTunaConfig, fetchTunaPosition, fetchVault, getAccountsTypeCodec, getAccountsTypeDecoder, getAccountsTypeEncoder, getAddLiquidityFusionDiscriminatorBytes, getAddLiquidityFusionInstruction, getAddLiquidityFusionInstructionDataCodec, getAddLiquidityFusionInstructionDataDecoder, getAddLiquidityFusionInstructionDataEncoder, getAddLiquidityOrcaDiscriminatorBytes, getAddLiquidityOrcaInstruction, getAddLiquidityOrcaInstructionDataCodec, getAddLiquidityOrcaInstructionDataDecoder, getAddLiquidityOrcaInstructionDataEncoder, getClosePositionFusionDiscriminatorBytes, getClosePositionFusionInstruction, getClosePositionFusionInstructionDataCodec, getClosePositionFusionInstructionDataDecoder, getClosePositionFusionInstructionDataEncoder, getClosePositionOrcaDiscriminatorBytes, getClosePositionOrcaInstruction, getClosePositionOrcaInstructionDataCodec, getClosePositionOrcaInstructionDataDecoder, getClosePositionOrcaInstructionDataEncoder, getCollectAndCompoundFeesFusionDiscriminatorBytes, getCollectAndCompoundFeesFusionInstruction, getCollectAndCompoundFeesFusionInstructionDataCodec, getCollectAndCompoundFeesFusionInstructionDataDecoder, getCollectAndCompoundFeesFusionInstructionDataEncoder, getCollectAndCompoundFeesOrcaDiscriminatorBytes, getCollectAndCompoundFeesOrcaInstruction, getCollectAndCompoundFeesOrcaInstructionDataCodec, getCollectAndCompoundFeesOrcaInstructionDataDecoder, getCollectAndCompoundFeesOrcaInstructionDataEncoder, getCollectFeesFusionDiscriminatorBytes, getCollectFeesFusionInstruction, getCollectFeesFusionInstructionDataCodec, getCollectFeesFusionInstructionDataDecoder, getCollectFeesFusionInstructionDataEncoder, getCollectFeesOrcaDiscriminatorBytes, getCollectFeesOrcaInstruction, getCollectFeesOrcaInstructionDataCodec, getCollectFeesOrcaInstructionDataDecoder, getCollectFeesOrcaInstructionDataEncoder, getCollectRewardOrcaDiscriminatorBytes, getCollectRewardOrcaInstruction, getCollectRewardOrcaInstructionDataCodec, getCollectRewardOrcaInstructionDataDecoder, getCollectRewardOrcaInstructionDataEncoder, getCreateAtaInstruction, getCreateAtaInstructions, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreateTunaConfigDiscriminatorBytes, getCreateTunaConfigInstruction, getCreateTunaConfigInstructionDataCodec, getCreateTunaConfigInstructionDataDecoder, getCreateTunaConfigInstructionDataEncoder, getCreateVaultDiscriminatorBytes, getCreateVaultInstruction, getCreateVaultInstructionDataCodec, getCreateVaultInstructionDataDecoder, getCreateVaultInstructionDataEncoder, getDepositDiscriminatorBytes, getDepositInstruction, getDepositInstructionDataCodec, getDepositInstructionDataDecoder, getDepositInstructionDataEncoder, getLendingPositionAddress, getLendingPositionCodec, getLendingPositionDecoder, getLendingPositionDiscriminatorBytes, getLendingPositionEncoder, getLendingPositionSize, getLendingVaultAddress, getLiquidatePositionFusionDiscriminatorBytes, getLiquidatePositionFusionInstruction, getLiquidatePositionFusionInstructionDataCodec, getLiquidatePositionFusionInstructionDataDecoder, getLiquidatePositionFusionInstructionDataEncoder, getLiquidatePositionOrcaDiscriminatorBytes, getLiquidatePositionOrcaInstruction, getLiquidatePositionOrcaInstructionDataCodec, getLiquidatePositionOrcaInstructionDataDecoder, getLiquidatePositionOrcaInstructionDataEncoder, getLiquidityIncreaseQuote, getMarketAddress, getMarketCodec, getMarketDecoder, getMarketDiscriminatorBytes, getMarketEncoder, getMarketMakerCodec, getMarketMakerDecoder, getMarketMakerEncoder, getMarketSize, getOpenLendingPositionDiscriminatorBytes, getOpenLendingPositionInstruction, getOpenLendingPositionInstructionDataCodec, getOpenLendingPositionInstructionDataDecoder, getOpenLendingPositionInstructionDataEncoder, getOpenPositionFusionDiscriminatorBytes, getOpenPositionFusionInstruction, getOpenPositionFusionInstructionDataCodec, getOpenPositionFusionInstructionDataDecoder, getOpenPositionFusionInstructionDataEncoder, getOpenPositionOrcaDiscriminatorBytes, getOpenPositionOrcaInstruction, getOpenPositionOrcaInstructionDataCodec, getOpenPositionOrcaInstructionDataDecoder, getOpenPositionOrcaInstructionDataEncoder, getOpenPositionWithLiquidityFusionDiscriminatorBytes, getOpenPositionWithLiquidityFusionInstruction, getOpenPositionWithLiquidityFusionInstructionDataCodec, getOpenPositionWithLiquidityFusionInstructionDataDecoder, getOpenPositionWithLiquidityFusionInstructionDataEncoder, getOpenPositionWithLiquidityOrcaDiscriminatorBytes, getOpenPositionWithLiquidityOrcaInstruction, getOpenPositionWithLiquidityOrcaInstructionDataCodec, getOpenPositionWithLiquidityOrcaInstructionDataDecoder, getOpenPositionWithLiquidityOrcaInstructionDataEncoder, getRebalancePositionFusionDiscriminatorBytes, getRebalancePositionFusionInstruction, getRebalancePositionFusionInstructionDataCodec, getRebalancePositionFusionInstructionDataDecoder, getRebalancePositionFusionInstructionDataEncoder, getRebalancePositionOrcaDiscriminatorBytes, getRebalancePositionOrcaInstruction, getRebalancePositionOrcaInstructionDataCodec, getRebalancePositionOrcaInstructionDataDecoder, getRebalancePositionOrcaInstructionDataEncoder, getRemainingAccountsInfoCodec, getRemainingAccountsInfoDecoder, getRemainingAccountsInfoEncoder, getRemainingAccountsSliceCodec, getRemainingAccountsSliceDecoder, getRemainingAccountsSliceEncoder, getRemoveLiquidityFusionDiscriminatorBytes, getRemoveLiquidityFusionInstruction, getRemoveLiquidityFusionInstructionDataCodec, getRemoveLiquidityFusionInstructionDataDecoder, getRemoveLiquidityFusionInstructionDataEncoder, getRemoveLiquidityOrcaDiscriminatorBytes, getRemoveLiquidityOrcaInstruction, getRemoveLiquidityOrcaInstructionDataCodec, getRemoveLiquidityOrcaInstructionDataDecoder, getRemoveLiquidityOrcaInstructionDataEncoder, getRepayBadDebtDiscriminatorBytes, getRepayBadDebtInstruction, getRepayBadDebtInstructionDataCodec, getRepayBadDebtInstructionDataDecoder, getRepayBadDebtInstructionDataEncoder, getRepayDebtDiscriminatorBytes, getRepayDebtInstruction, getRepayDebtInstructionDataCodec, getRepayDebtInstructionDataDecoder, getRepayDebtInstructionDataEncoder, getSetAdminAuthorityDiscriminatorBytes, getSetAdminAuthorityInstruction, getSetAdminAuthorityInstructionDataCodec, getSetAdminAuthorityInstructionDataDecoder, getSetAdminAuthorityInstructionDataEncoder, getSetDefaultMaxPercentageOfLeftoversDiscriminatorBytes, getSetDefaultMaxPercentageOfLeftoversInstruction, getSetDefaultMaxPercentageOfLeftoversInstructionDataCodec, getSetDefaultMaxPercentageOfLeftoversInstructionDataDecoder, getSetDefaultMaxPercentageOfLeftoversInstructionDataEncoder, getSetDefaultMaxSwapSlippageDiscriminatorBytes, getSetDefaultMaxSwapSlippageInstruction, getSetDefaultMaxSwapSlippageInstructionDataCodec, getSetDefaultMaxSwapSlippageInstructionDataDecoder, getSetDefaultMaxSwapSlippageInstructionDataEncoder, getSetDefaultOraclePriceDeviationThresholdDiscriminatorBytes, getSetDefaultOraclePriceDeviationThresholdInstruction, getSetDefaultOraclePriceDeviationThresholdInstructionDataCodec, getSetDefaultOraclePriceDeviationThresholdInstructionDataDecoder, getSetDefaultOraclePriceDeviationThresholdInstructionDataEncoder, getSetFeeRecipientDiscriminatorBytes, getSetFeeRecipientInstruction, getSetFeeRecipientInstructionDataCodec, getSetFeeRecipientInstructionDataDecoder, getSetFeeRecipientInstructionDataEncoder, getSetLimitOrdersDiscriminatorBytes, getSetLimitOrdersInstruction, getSetLimitOrdersInstructionDataCodec, getSetLimitOrdersInstructionDataDecoder, getSetLimitOrdersInstructionDataEncoder, getSetLiquidatorAuthorityDiscriminatorBytes, getSetLiquidatorAuthorityInstruction, getSetLiquidatorAuthorityInstructionDataCodec, getSetLiquidatorAuthorityInstructionDataDecoder, getSetLiquidatorAuthorityInstructionDataEncoder, getSetOwnerAuthorityDiscriminatorBytes, getSetOwnerAuthorityInstruction, getSetOwnerAuthorityInstructionDataCodec, getSetOwnerAuthorityInstructionDataDecoder, getSetOwnerAuthorityInstructionDataEncoder, getSetSuspendedStateDiscriminatorBytes, getSetSuspendedStateInstruction, getSetSuspendedStateInstructionDataCodec, getSetSuspendedStateInstructionDataDecoder, getSetSuspendedStateInstructionDataEncoder, getSetTunaPositionFlagsDiscriminatorBytes, getSetTunaPositionFlagsInstruction, getSetTunaPositionFlagsInstructionDataCodec, getSetTunaPositionFlagsInstructionDataDecoder, getSetTunaPositionFlagsInstructionDataEncoder, getSetTunaPositionRebalanceThresholdDiscriminatorBytes, getSetTunaPositionRebalanceThresholdInstruction, getSetTunaPositionRebalanceThresholdInstructionDataCodec, getSetTunaPositionRebalanceThresholdInstructionDataDecoder, getSetTunaPositionRebalanceThresholdInstructionDataEncoder, getTunaConfigAddress, getTunaConfigCodec, getTunaConfigDecoder, getTunaConfigDiscriminatorBytes, getTunaConfigEncoder, getTunaConfigSize, getTunaErrorMessage, getTunaPositionAddress, getTunaPositionCodec, getTunaPositionDecoder, getTunaPositionDiscriminatorBytes, getTunaPositionEncoder, getTunaPositionSize, getTunaPositionStateCodec, getTunaPositionStateDecoder, getTunaPositionStateEncoder, getUpdateMarketDiscriminatorBytes, getUpdateMarketInstruction, getUpdateMarketInstructionDataCodec, getUpdateMarketInstructionDataDecoder, getUpdateMarketInstructionDataEncoder, getUpdateVaultDiscriminatorBytes, getUpdateVaultInstruction, getUpdateVaultInstructionDataCodec, getUpdateVaultInstructionDataDecoder, getUpdateVaultInstructionDataEncoder, getVaultCodec, getVaultDecoder, getVaultDiscriminatorBytes, getVaultEncoder, getVaultSize, getWithdrawDiscriminatorBytes, getWithdrawInstruction, getWithdrawInstructionDataCodec, getWithdrawInstructionDataDecoder, getWithdrawInstructionDataEncoder, identifyTunaAccount, identifyTunaInstruction, isTunaError, lendingPositionAuthorityFilter, lendingPositionMintFilter, liquidatePositionFusionInstruction, liquidatePositionFusionInstructions, liquidatePositionOrcaInstruction, liquidatePositionOrcaInstructions, openLendingPositionAndDepositInstructions, openLendingPositionInstruction, openPositionFusionInstruction, openPositionOrcaInstruction, openPositionWithLiquidityFusionInstruction, openPositionWithLiquidityFusionInstructions, openPositionWithLiquidityOrcaInstruction, openPositionWithLiquidityOrcaInstructions, parseAddLiquidityFusionInstruction, parseAddLiquidityOrcaInstruction, parseClosePositionFusionInstruction, parseClosePositionOrcaInstruction, parseCollectAndCompoundFeesFusionInstruction, parseCollectAndCompoundFeesOrcaInstruction, parseCollectFeesFusionInstruction, parseCollectFeesOrcaInstruction, parseCollectRewardOrcaInstruction, parseCreateMarketInstruction, parseCreateTunaConfigInstruction, parseCreateVaultInstruction, parseDepositInstruction, parseLiquidatePositionFusionInstruction, parseLiquidatePositionOrcaInstruction, parseOpenLendingPositionInstruction, parseOpenPositionFusionInstruction, parseOpenPositionOrcaInstruction, parseOpenPositionWithLiquidityFusionInstruction, parseOpenPositionWithLiquidityOrcaInstruction, parseRebalancePositionFusionInstruction, parseRebalancePositionOrcaInstruction, parseRemoveLiquidityFusionInstruction, parseRemoveLiquidityOrcaInstruction, parseRepayBadDebtInstruction, parseRepayDebtInstruction, parseSetAdminAuthorityInstruction, parseSetDefaultMaxPercentageOfLeftoversInstruction, parseSetDefaultMaxSwapSlippageInstruction, parseSetDefaultOraclePriceDeviationThresholdInstruction, parseSetFeeRecipientInstruction, parseSetLimitOrdersInstruction, parseSetLiquidatorAuthorityInstruction, parseSetOwnerAuthorityInstruction, parseSetSuspendedStateInstruction, parseSetTunaPositionFlagsInstruction, parseSetTunaPositionRebalanceThresholdInstruction, parseUpdateMarketInstruction, parseUpdateVaultInstruction, parseWithdrawInstruction, rebalancePositionFusionInstruction, rebalancePositionFusionInstructions, rebalancePositionOrcaInstruction, rebalancePositionOrcaInstructions, removeLiquidityFusionInstruction, removeLiquidityFusionInstructions, removeLiquidityOrcaInstruction, removeLiquidityOrcaInstructions, repayBadDebtInstruction, repayDebtInstruction, repayDebtInstructions, setLimitOrdersInstruction, tunaPositionAuthorityFilter, tunaPositionMarketMakerFilter, tunaPositionMintAFilter, tunaPositionMintBFilter, tunaPositionMintFilter, tunaPositionPoolFilter, updateMarketInstruction, updateVaultInstruction, withdrawInstruction, withdrawInstructions };