@crypticdot/defituna-client 3.2.7 → 3.3.1
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 +705 -1732
- package/dist/index.d.ts +705 -1732
- package/dist/index.js +4964 -7736
- package/dist/index.mjs +5233 -8416
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -840,17 +840,17 @@ declare const TUNA_ERROR__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED = 6060;
|
|
|
840
840
|
declare const TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED = 6061;
|
|
841
841
|
/** InvalidJupiterRoute: Invalid jupiter route data */
|
|
842
842
|
declare const TUNA_ERROR__INVALID_JUPITER_ROUTE = 6062;
|
|
843
|
-
/** IncorrectSwapInputAmount: Incorrect swap input amount */
|
|
844
|
-
declare const TUNA_ERROR__INCORRECT_SWAP_INPUT_AMOUNT = 6063;
|
|
845
843
|
/** InsufficientSwapOutputAmount: Insufficient swap output amount */
|
|
846
|
-
declare const TUNA_ERROR__INSUFFICIENT_SWAP_OUTPUT_AMOUNT =
|
|
844
|
+
declare const TUNA_ERROR__INSUFFICIENT_SWAP_OUTPUT_AMOUNT = 6063;
|
|
847
845
|
/** AccountNotInitialized: Account is not initialized */
|
|
848
|
-
declare const TUNA_ERROR__ACCOUNT_NOT_INITIALIZED =
|
|
846
|
+
declare const TUNA_ERROR__ACCOUNT_NOT_INITIALIZED = 6064;
|
|
849
847
|
/** InvalidAccountDiscriminator: Invalid account discriminator */
|
|
850
|
-
declare const TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR =
|
|
848
|
+
declare const TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR = 6065;
|
|
851
849
|
/** InvalidPool: Invalid Fusion or Orca pool */
|
|
852
|
-
declare const TUNA_ERROR__INVALID_POOL =
|
|
853
|
-
|
|
850
|
+
declare const TUNA_ERROR__INVALID_POOL = 6066;
|
|
851
|
+
/** PositionIsEmpty: Position is empty */
|
|
852
|
+
declare const TUNA_ERROR__POSITION_IS_EMPTY = 6067;
|
|
853
|
+
type TunaError = typeof TUNA_ERROR__ACCOUNT_NOT_INITIALIZED | typeof TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED | typeof TUNA_ERROR__BAD_DEBT | typeof TUNA_ERROR__INCORRECT_POSITION_DIRECTION | typeof TUNA_ERROR__INSUFFICIENT_LIQUIDITY | typeof TUNA_ERROR__INSUFFICIENT_SWAP_OUTPUT_AMOUNT | typeof TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR | typeof TUNA_ERROR__INVALID_ACCOUNT_OWNER | typeof TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS | typeof TUNA_ERROR__INVALID_JUPITER_ROUTE | typeof TUNA_ERROR__INVALID_MARKET_MAKER | typeof TUNA_ERROR__INVALID_POOL | typeof TUNA_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH | typeof TUNA_ERROR__INVALID_SQRT_PRICE_LIMIT_DIRECTION | typeof TUNA_ERROR__INVALID_TICK_ARRAY_SEQUENCE | typeof TUNA_ERROR__LEFTOVERS_EXCEEDED | typeof TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIMIT_ORDER_EXECUTION_FEE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIQUIDITY_ZERO | typeof TUNA_ERROR__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED | typeof TUNA_ERROR__MARKET_DEBT_LIMIT_EXCEEDED | typeof TUNA_ERROR__MARKET_DISABLED | typeof TUNA_ERROR__MATH_OVERFLOW | typeof TUNA_ERROR__MATH_UNDERFLOW | typeof TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK | typeof TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED | typeof TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE | typeof TUNA_ERROR__ORACLE_STALE_PRICE | typeof TUNA_ERROR__PARTIAL_FILL_ERROR | typeof TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE | typeof TUNA_ERROR__POSITION_IS_EMPTY | typeof TUNA_ERROR__POSITION_IS_HEALTHY | typeof TUNA_ERROR__POSITION_IS_LIQUIDATED | typeof TUNA_ERROR__POSITION_IS_UNHEALTHY | typeof TUNA_ERROR__POSITION_NOT_EMPTY | typeof TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED | typeof TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET | typeof TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET | typeof TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE | typeof TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT | typeof TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE | typeof TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH | typeof TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED | typeof TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT | typeof TUNA_ERROR__SQRT_PRICE_OUT_OF_BOUNDS | typeof TUNA_ERROR__SUPPLY_LIMIT_EXCEEDED | typeof TUNA_ERROR__SUSPENDED | typeof TUNA_ERROR__SWAP_QUOTE_NOT_EQUAL_TO_ACTUAL_SWAP_AMOUNT | typeof TUNA_ERROR__SWAP_SLIPPAGE_EXCEEDED | typeof TUNA_ERROR__SWAP_SLIPPAGE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__SWAP_TO_POSITION_RATIO_ESTIMATION_FAILED | typeof TUNA_ERROR__TICK_INDEX_OF_BOUNDS | typeof TUNA_ERROR__TRANSFER_FEE_CALCULATION_ERROR | typeof TUNA_ERROR__TYPE_CAST_OVERFLOW | typeof TUNA_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT_DATA | typeof TUNA_ERROR__UNABLE_TO_LOAD_ACCOUNT_DATA | typeof TUNA_ERROR__UNEXPECTED_VALUE | typeof TUNA_ERROR__UNSUPPORTED_TOKEN_MINT | typeof TUNA_ERROR__VAULT_NOT_INITIALIZED | typeof TUNA_ERROR__WITHDRAW_REQUEST_EXCEEDS_USER_BALANCE | typeof TUNA_ERROR__ZERO_AMOUNT | typeof TUNA_ERROR__ZERO_PRICE_RANGE | typeof TUNA_ERROR__ZERO_TRADABLE_AMOUNT | typeof TUNA_ERROR__ZERO_YIELD;
|
|
854
854
|
declare function getTunaErrorMessage(code: TunaError): string;
|
|
855
855
|
declare function isTunaError<TProgramErrorCode extends TunaError>(error: unknown, transactionMessage: {
|
|
856
856
|
instructions: Record<number, {
|
|
@@ -883,71 +883,60 @@ declare function identifyTunaAccount(account: {
|
|
|
883
883
|
data: ReadonlyUint8Array;
|
|
884
884
|
} | ReadonlyUint8Array): TunaAccount;
|
|
885
885
|
declare enum TunaInstruction {
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
SetTunaLpPositionFlags = 49,
|
|
936
|
-
SetTunaLpPositionLimitOrders = 50,
|
|
937
|
-
SetTunaLpPositionRebalanceThreshold = 51,
|
|
938
|
-
SetTunaSpotPositionLimitOrders = 52,
|
|
939
|
-
UpdateMarket = 53,
|
|
940
|
-
UpdateVault = 54,
|
|
941
|
-
Withdraw = 55
|
|
886
|
+
CloseTunaLpPositionFusion = 0,
|
|
887
|
+
CloseTunaLpPositionOrca = 1,
|
|
888
|
+
CloseTunaSpotPosition = 2,
|
|
889
|
+
CollectAndCompoundFeesFusion = 3,
|
|
890
|
+
CollectAndCompoundFeesOrca = 4,
|
|
891
|
+
CollectFeesFusion = 5,
|
|
892
|
+
CollectFeesOrca = 6,
|
|
893
|
+
CollectRewardOrca = 7,
|
|
894
|
+
CreateMarket = 8,
|
|
895
|
+
CreateTunaConfig = 9,
|
|
896
|
+
CreateVault = 10,
|
|
897
|
+
DecreaseTunaLpPositionFusion = 11,
|
|
898
|
+
DecreaseTunaLpPositionOrca = 12,
|
|
899
|
+
Deposit = 13,
|
|
900
|
+
IncreaseTunaLpPositionFusion = 14,
|
|
901
|
+
IncreaseTunaLpPositionOrca = 15,
|
|
902
|
+
LiquidateTunaLpPositionFusion = 16,
|
|
903
|
+
LiquidateTunaLpPositionOrca = 17,
|
|
904
|
+
LiquidateTunaSpotPositionFusion = 18,
|
|
905
|
+
LiquidateTunaSpotPositionOrca = 19,
|
|
906
|
+
ModifyTunaSpotPositionFusion = 20,
|
|
907
|
+
ModifyTunaSpotPositionJupiter = 21,
|
|
908
|
+
ModifyTunaSpotPositionOrca = 22,
|
|
909
|
+
OpenAndIncreaseTunaLpPositionFusion = 23,
|
|
910
|
+
OpenAndIncreaseTunaLpPositionOrca = 24,
|
|
911
|
+
OpenLendingPosition = 25,
|
|
912
|
+
OpenTunaLpPositionFusion = 26,
|
|
913
|
+
OpenTunaLpPositionOrca = 27,
|
|
914
|
+
OpenTunaSpotPosition = 28,
|
|
915
|
+
RebalanceTunaLpPositionFusion = 29,
|
|
916
|
+
RebalanceTunaLpPositionOrca = 30,
|
|
917
|
+
RepayBadDebt = 31,
|
|
918
|
+
RepayTunaLpPositionDebt = 32,
|
|
919
|
+
ResetTunaSpotPosition = 33,
|
|
920
|
+
SetAdminAuthority = 34,
|
|
921
|
+
SetDefaultMaxPercentageOfLeftovers = 35,
|
|
922
|
+
SetDefaultMaxSwapSlippage = 36,
|
|
923
|
+
SetDefaultOraclePriceDeviationThreshold = 37,
|
|
924
|
+
SetFeeRecipient = 38,
|
|
925
|
+
SetLiquidatorAuthority = 39,
|
|
926
|
+
SetOwnerAuthority = 40,
|
|
927
|
+
SetSuspendedState = 41,
|
|
928
|
+
SetTunaLpPositionFlags = 42,
|
|
929
|
+
SetTunaLpPositionLimitOrders = 43,
|
|
930
|
+
SetTunaLpPositionRebalanceThreshold = 44,
|
|
931
|
+
SetTunaSpotPositionLimitOrders = 45,
|
|
932
|
+
UpdateMarket = 46,
|
|
933
|
+
UpdateVault = 47,
|
|
934
|
+
Withdraw = 48
|
|
942
935
|
}
|
|
943
936
|
declare function identifyTunaInstruction(instruction: {
|
|
944
937
|
data: ReadonlyUint8Array;
|
|
945
938
|
} | ReadonlyUint8Array): TunaInstruction;
|
|
946
939
|
type ParsedTunaInstruction<TProgram extends string = 'tuna4uSQZncNeeiAMKbstuxA9CUkHH6HmC64wgmnogD'> = ({
|
|
947
|
-
instructionType: TunaInstruction.CloseActiveTunaSpotPositionFusion;
|
|
948
|
-
} & ParsedCloseActiveTunaSpotPositionFusionInstruction<TProgram>) | ({
|
|
949
|
-
instructionType: TunaInstruction.CloseActiveTunaSpotPositionOrca;
|
|
950
|
-
} & ParsedCloseActiveTunaSpotPositionOrcaInstruction<TProgram>) | ({
|
|
951
940
|
instructionType: TunaInstruction.CloseTunaLpPositionFusion;
|
|
952
941
|
} & ParsedCloseTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
953
942
|
instructionType: TunaInstruction.CloseTunaLpPositionOrca;
|
|
@@ -974,24 +963,12 @@ type ParsedTunaInstruction<TProgram extends string = 'tuna4uSQZncNeeiAMKbstuxA9C
|
|
|
974
963
|
} & ParsedDecreaseTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
975
964
|
instructionType: TunaInstruction.DecreaseTunaLpPositionOrca;
|
|
976
965
|
} & ParsedDecreaseTunaLpPositionOrcaInstruction<TProgram>) | ({
|
|
977
|
-
instructionType: TunaInstruction.DecreaseTunaSpotPositionFusion;
|
|
978
|
-
} & ParsedDecreaseTunaSpotPositionFusionInstruction<TProgram>) | ({
|
|
979
|
-
instructionType: TunaInstruction.DecreaseTunaSpotPositionJupiter;
|
|
980
|
-
} & ParsedDecreaseTunaSpotPositionJupiterInstruction<TProgram>) | ({
|
|
981
|
-
instructionType: TunaInstruction.DecreaseTunaSpotPositionOrca;
|
|
982
|
-
} & ParsedDecreaseTunaSpotPositionOrcaInstruction<TProgram>) | ({
|
|
983
966
|
instructionType: TunaInstruction.Deposit;
|
|
984
967
|
} & ParsedDepositInstruction<TProgram>) | ({
|
|
985
968
|
instructionType: TunaInstruction.IncreaseTunaLpPositionFusion;
|
|
986
969
|
} & ParsedIncreaseTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
987
970
|
instructionType: TunaInstruction.IncreaseTunaLpPositionOrca;
|
|
988
971
|
} & ParsedIncreaseTunaLpPositionOrcaInstruction<TProgram>) | ({
|
|
989
|
-
instructionType: TunaInstruction.IncreaseTunaSpotPositionFusion;
|
|
990
|
-
} & ParsedIncreaseTunaSpotPositionFusionInstruction<TProgram>) | ({
|
|
991
|
-
instructionType: TunaInstruction.IncreaseTunaSpotPositionJupiter;
|
|
992
|
-
} & ParsedIncreaseTunaSpotPositionJupiterInstruction<TProgram>) | ({
|
|
993
|
-
instructionType: TunaInstruction.IncreaseTunaSpotPositionOrca;
|
|
994
|
-
} & ParsedIncreaseTunaSpotPositionOrcaInstruction<TProgram>) | ({
|
|
995
972
|
instructionType: TunaInstruction.LiquidateTunaLpPositionFusion;
|
|
996
973
|
} & ParsedLiquidateTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
997
974
|
instructionType: TunaInstruction.LiquidateTunaLpPositionOrca;
|
|
@@ -1000,14 +977,16 @@ type ParsedTunaInstruction<TProgram extends string = 'tuna4uSQZncNeeiAMKbstuxA9C
|
|
|
1000
977
|
} & ParsedLiquidateTunaSpotPositionFusionInstruction<TProgram>) | ({
|
|
1001
978
|
instructionType: TunaInstruction.LiquidateTunaSpotPositionOrca;
|
|
1002
979
|
} & ParsedLiquidateTunaSpotPositionOrcaInstruction<TProgram>) | ({
|
|
980
|
+
instructionType: TunaInstruction.ModifyTunaSpotPositionFusion;
|
|
981
|
+
} & ParsedModifyTunaSpotPositionFusionInstruction<TProgram>) | ({
|
|
982
|
+
instructionType: TunaInstruction.ModifyTunaSpotPositionJupiter;
|
|
983
|
+
} & ParsedModifyTunaSpotPositionJupiterInstruction<TProgram>) | ({
|
|
984
|
+
instructionType: TunaInstruction.ModifyTunaSpotPositionOrca;
|
|
985
|
+
} & ParsedModifyTunaSpotPositionOrcaInstruction<TProgram>) | ({
|
|
1003
986
|
instructionType: TunaInstruction.OpenAndIncreaseTunaLpPositionFusion;
|
|
1004
987
|
} & ParsedOpenAndIncreaseTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
1005
988
|
instructionType: TunaInstruction.OpenAndIncreaseTunaLpPositionOrca;
|
|
1006
989
|
} & ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram>) | ({
|
|
1007
|
-
instructionType: TunaInstruction.OpenAndIncreaseTunaSpotPositionFusion;
|
|
1008
|
-
} & ParsedOpenAndIncreaseTunaSpotPositionFusionInstruction<TProgram>) | ({
|
|
1009
|
-
instructionType: TunaInstruction.OpenAndIncreaseTunaSpotPositionOrca;
|
|
1010
|
-
} & ParsedOpenAndIncreaseTunaSpotPositionOrcaInstruction<TProgram>) | ({
|
|
1011
990
|
instructionType: TunaInstruction.OpenLendingPosition;
|
|
1012
991
|
} & ParsedOpenLendingPositionInstruction<TProgram>) | ({
|
|
1013
992
|
instructionType: TunaInstruction.OpenTunaLpPositionFusion;
|
|
@@ -1057,252 +1036,6 @@ type ParsedTunaInstruction<TProgram extends string = 'tuna4uSQZncNeeiAMKbstuxA9C
|
|
|
1057
1036
|
instructionType: TunaInstruction.Withdraw;
|
|
1058
1037
|
} & ParsedWithdrawInstruction<TProgram>);
|
|
1059
1038
|
|
|
1060
|
-
/**
|
|
1061
|
-
* This code was AUTOGENERATED using the codama library.
|
|
1062
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1063
|
-
* to add features, then rerun codama to update it.
|
|
1064
|
-
*
|
|
1065
|
-
* @see https://github.com/codama-idl/codama
|
|
1066
|
-
*/
|
|
1067
|
-
|
|
1068
|
-
declare const CLOSE_ACTIVE_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1069
|
-
declare function getCloseActiveTunaSpotPositionFusionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1070
|
-
type CloseActiveTunaSpotPositionFusionInstruction<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, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaB 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, TAccountMemoProgram extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
1071
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
1072
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
1073
|
-
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
1074
|
-
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
1075
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
1076
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
1077
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
1078
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
1079
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
1080
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
1081
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
1082
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
1083
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
1084
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
1085
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
1086
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
1087
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
1088
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
1089
|
-
TAccountFusionammProgram extends string ? ReadonlyAccount<TAccountFusionammProgram> : TAccountFusionammProgram,
|
|
1090
|
-
TAccountFusionPool extends string ? WritableAccount<TAccountFusionPool> : TAccountFusionPool,
|
|
1091
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
1092
|
-
...TRemainingAccounts
|
|
1093
|
-
]>;
|
|
1094
|
-
type CloseActiveTunaSpotPositionFusionInstructionData = {
|
|
1095
|
-
discriminator: ReadonlyUint8Array;
|
|
1096
|
-
acceptableSwapAmount: bigint;
|
|
1097
|
-
remainingAccountsInfo: RemainingAccountsInfo;
|
|
1098
|
-
};
|
|
1099
|
-
type CloseActiveTunaSpotPositionFusionInstructionDataArgs = {
|
|
1100
|
-
acceptableSwapAmount: number | bigint;
|
|
1101
|
-
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
1102
|
-
};
|
|
1103
|
-
declare function getCloseActiveTunaSpotPositionFusionInstructionDataEncoder(): Encoder<CloseActiveTunaSpotPositionFusionInstructionDataArgs>;
|
|
1104
|
-
declare function getCloseActiveTunaSpotPositionFusionInstructionDataDecoder(): Decoder<CloseActiveTunaSpotPositionFusionInstructionData>;
|
|
1105
|
-
declare function getCloseActiveTunaSpotPositionFusionInstructionDataCodec(): Codec<CloseActiveTunaSpotPositionFusionInstructionDataArgs, CloseActiveTunaSpotPositionFusionInstructionData>;
|
|
1106
|
-
type CloseActiveTunaSpotPositionFusionInput<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, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountTunaPositionOwnerAtaA extends string = string, TAccountTunaPositionOwnerAtaB extends string = string, TAccountPythOraclePriceFeedA extends string = string, TAccountPythOraclePriceFeedB extends string = string, TAccountFusionammProgram extends string = string, TAccountFusionPool extends string = string, TAccountMemoProgram extends string = string> = {
|
|
1107
|
-
/**
|
|
1108
|
-
*
|
|
1109
|
-
* TUNA accounts
|
|
1110
|
-
*
|
|
1111
|
-
*/
|
|
1112
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
1113
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
1114
|
-
mintA: Address<TAccountMintA>;
|
|
1115
|
-
mintB: Address<TAccountMintB>;
|
|
1116
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
1117
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
1118
|
-
market: Address<TAccountMarket>;
|
|
1119
|
-
vaultA: Address<TAccountVaultA>;
|
|
1120
|
-
vaultB: Address<TAccountVaultB>;
|
|
1121
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
1122
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
1123
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
1124
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
1125
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
1126
|
-
tunaPositionOwnerAtaA?: Address<TAccountTunaPositionOwnerAtaA>;
|
|
1127
|
-
tunaPositionOwnerAtaB?: Address<TAccountTunaPositionOwnerAtaB>;
|
|
1128
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
1129
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
1130
|
-
/**
|
|
1131
|
-
*
|
|
1132
|
-
* Fusion accounts
|
|
1133
|
-
*
|
|
1134
|
-
*/
|
|
1135
|
-
fusionammProgram: Address<TAccountFusionammProgram>;
|
|
1136
|
-
fusionPool: Address<TAccountFusionPool>;
|
|
1137
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
1138
|
-
acceptableSwapAmount: CloseActiveTunaSpotPositionFusionInstructionDataArgs['acceptableSwapAmount'];
|
|
1139
|
-
remainingAccountsInfo: CloseActiveTunaSpotPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
1140
|
-
};
|
|
1141
|
-
declare function getCloseActiveTunaSpotPositionFusionInstruction<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, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB extends string, TAccountPythOraclePriceFeedA extends string, TAccountPythOraclePriceFeedB extends string, TAccountFusionammProgram extends string, TAccountFusionPool extends string, TAccountMemoProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: CloseActiveTunaSpotPositionFusionInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountMemoProgram>, config?: {
|
|
1142
|
-
programAddress?: TProgramAddress;
|
|
1143
|
-
}): CloseActiveTunaSpotPositionFusionInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountMemoProgram>;
|
|
1144
|
-
type ParsedCloseActiveTunaSpotPositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
1145
|
-
programAddress: Address<TProgram>;
|
|
1146
|
-
accounts: {
|
|
1147
|
-
/**
|
|
1148
|
-
*
|
|
1149
|
-
* TUNA accounts
|
|
1150
|
-
*
|
|
1151
|
-
*/
|
|
1152
|
-
authority: TAccountMetas[0];
|
|
1153
|
-
tunaConfig: TAccountMetas[1];
|
|
1154
|
-
mintA: TAccountMetas[2];
|
|
1155
|
-
mintB: TAccountMetas[3];
|
|
1156
|
-
tokenProgramA: TAccountMetas[4];
|
|
1157
|
-
tokenProgramB: TAccountMetas[5];
|
|
1158
|
-
market: TAccountMetas[6];
|
|
1159
|
-
vaultA: TAccountMetas[7];
|
|
1160
|
-
vaultB: TAccountMetas[8];
|
|
1161
|
-
vaultAAta: TAccountMetas[9];
|
|
1162
|
-
vaultBAta: TAccountMetas[10];
|
|
1163
|
-
tunaPosition: TAccountMetas[11];
|
|
1164
|
-
tunaPositionAtaA: TAccountMetas[12];
|
|
1165
|
-
tunaPositionAtaB: TAccountMetas[13];
|
|
1166
|
-
tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined;
|
|
1167
|
-
tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined;
|
|
1168
|
-
pythOraclePriceFeedA: TAccountMetas[16];
|
|
1169
|
-
pythOraclePriceFeedB: TAccountMetas[17];
|
|
1170
|
-
/**
|
|
1171
|
-
*
|
|
1172
|
-
* Fusion accounts
|
|
1173
|
-
*
|
|
1174
|
-
*/
|
|
1175
|
-
fusionammProgram: TAccountMetas[18];
|
|
1176
|
-
fusionPool: TAccountMetas[19];
|
|
1177
|
-
memoProgram: TAccountMetas[20];
|
|
1178
|
-
};
|
|
1179
|
-
data: CloseActiveTunaSpotPositionFusionInstructionData;
|
|
1180
|
-
};
|
|
1181
|
-
declare function parseCloseActiveTunaSpotPositionFusionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCloseActiveTunaSpotPositionFusionInstruction<TProgram, TAccountMetas>;
|
|
1182
|
-
|
|
1183
|
-
/**
|
|
1184
|
-
* This code was AUTOGENERATED using the codama library.
|
|
1185
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1186
|
-
* to add features, then rerun codama to update it.
|
|
1187
|
-
*
|
|
1188
|
-
* @see https://github.com/codama-idl/codama
|
|
1189
|
-
*/
|
|
1190
|
-
|
|
1191
|
-
declare const CLOSE_ACTIVE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1192
|
-
declare function getCloseActiveTunaSpotPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1193
|
-
type CloseActiveTunaSpotPositionOrcaInstruction<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, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaB 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, TAccountMemoProgram extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
1194
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
1195
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
1196
|
-
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
1197
|
-
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
1198
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
1199
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
1200
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
1201
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
1202
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
1203
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
1204
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
1205
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
1206
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
1207
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
1208
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
1209
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
1210
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
1211
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
1212
|
-
TAccountWhirlpoolProgram extends string ? ReadonlyAccount<TAccountWhirlpoolProgram> : TAccountWhirlpoolProgram,
|
|
1213
|
-
TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool,
|
|
1214
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
1215
|
-
...TRemainingAccounts
|
|
1216
|
-
]>;
|
|
1217
|
-
type CloseActiveTunaSpotPositionOrcaInstructionData = {
|
|
1218
|
-
discriminator: ReadonlyUint8Array;
|
|
1219
|
-
acceptableSwapAmount: bigint;
|
|
1220
|
-
remainingAccountsInfo: RemainingAccountsInfo;
|
|
1221
|
-
};
|
|
1222
|
-
type CloseActiveTunaSpotPositionOrcaInstructionDataArgs = {
|
|
1223
|
-
acceptableSwapAmount: number | bigint;
|
|
1224
|
-
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
1225
|
-
};
|
|
1226
|
-
declare function getCloseActiveTunaSpotPositionOrcaInstructionDataEncoder(): Encoder<CloseActiveTunaSpotPositionOrcaInstructionDataArgs>;
|
|
1227
|
-
declare function getCloseActiveTunaSpotPositionOrcaInstructionDataDecoder(): Decoder<CloseActiveTunaSpotPositionOrcaInstructionData>;
|
|
1228
|
-
declare function getCloseActiveTunaSpotPositionOrcaInstructionDataCodec(): Codec<CloseActiveTunaSpotPositionOrcaInstructionDataArgs, CloseActiveTunaSpotPositionOrcaInstructionData>;
|
|
1229
|
-
type CloseActiveTunaSpotPositionOrcaInput<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, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountTunaPositionOwnerAtaA extends string = string, TAccountTunaPositionOwnerAtaB extends string = string, TAccountPythOraclePriceFeedA extends string = string, TAccountPythOraclePriceFeedB extends string = string, TAccountWhirlpoolProgram extends string = string, TAccountWhirlpool extends string = string, TAccountMemoProgram extends string = string> = {
|
|
1230
|
-
/**
|
|
1231
|
-
*
|
|
1232
|
-
* TUNA accounts
|
|
1233
|
-
*
|
|
1234
|
-
*/
|
|
1235
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
1236
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
1237
|
-
mintA: Address<TAccountMintA>;
|
|
1238
|
-
mintB: Address<TAccountMintB>;
|
|
1239
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
1240
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
1241
|
-
market: Address<TAccountMarket>;
|
|
1242
|
-
vaultA: Address<TAccountVaultA>;
|
|
1243
|
-
vaultB: Address<TAccountVaultB>;
|
|
1244
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
1245
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
1246
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
1247
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
1248
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
1249
|
-
tunaPositionOwnerAtaA?: Address<TAccountTunaPositionOwnerAtaA>;
|
|
1250
|
-
tunaPositionOwnerAtaB?: Address<TAccountTunaPositionOwnerAtaB>;
|
|
1251
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
1252
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
1253
|
-
/**
|
|
1254
|
-
*
|
|
1255
|
-
* Orca accounts
|
|
1256
|
-
*
|
|
1257
|
-
*/
|
|
1258
|
-
whirlpoolProgram: Address<TAccountWhirlpoolProgram>;
|
|
1259
|
-
whirlpool: Address<TAccountWhirlpool>;
|
|
1260
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
1261
|
-
acceptableSwapAmount: CloseActiveTunaSpotPositionOrcaInstructionDataArgs['acceptableSwapAmount'];
|
|
1262
|
-
remainingAccountsInfo: CloseActiveTunaSpotPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
1263
|
-
};
|
|
1264
|
-
declare function getCloseActiveTunaSpotPositionOrcaInstruction<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, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB extends string, TAccountPythOraclePriceFeedA extends string, TAccountPythOraclePriceFeedB extends string, TAccountWhirlpoolProgram extends string, TAccountWhirlpool extends string, TAccountMemoProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: CloseActiveTunaSpotPositionOrcaInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountMemoProgram>, config?: {
|
|
1265
|
-
programAddress?: TProgramAddress;
|
|
1266
|
-
}): CloseActiveTunaSpotPositionOrcaInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountMemoProgram>;
|
|
1267
|
-
type ParsedCloseActiveTunaSpotPositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
1268
|
-
programAddress: Address<TProgram>;
|
|
1269
|
-
accounts: {
|
|
1270
|
-
/**
|
|
1271
|
-
*
|
|
1272
|
-
* TUNA accounts
|
|
1273
|
-
*
|
|
1274
|
-
*/
|
|
1275
|
-
authority: TAccountMetas[0];
|
|
1276
|
-
tunaConfig: TAccountMetas[1];
|
|
1277
|
-
mintA: TAccountMetas[2];
|
|
1278
|
-
mintB: TAccountMetas[3];
|
|
1279
|
-
tokenProgramA: TAccountMetas[4];
|
|
1280
|
-
tokenProgramB: TAccountMetas[5];
|
|
1281
|
-
market: TAccountMetas[6];
|
|
1282
|
-
vaultA: TAccountMetas[7];
|
|
1283
|
-
vaultB: TAccountMetas[8];
|
|
1284
|
-
vaultAAta: TAccountMetas[9];
|
|
1285
|
-
vaultBAta: TAccountMetas[10];
|
|
1286
|
-
tunaPosition: TAccountMetas[11];
|
|
1287
|
-
tunaPositionAtaA: TAccountMetas[12];
|
|
1288
|
-
tunaPositionAtaB: TAccountMetas[13];
|
|
1289
|
-
tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined;
|
|
1290
|
-
tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined;
|
|
1291
|
-
pythOraclePriceFeedA: TAccountMetas[16];
|
|
1292
|
-
pythOraclePriceFeedB: TAccountMetas[17];
|
|
1293
|
-
/**
|
|
1294
|
-
*
|
|
1295
|
-
* Orca accounts
|
|
1296
|
-
*
|
|
1297
|
-
*/
|
|
1298
|
-
whirlpoolProgram: TAccountMetas[18];
|
|
1299
|
-
whirlpool: TAccountMetas[19];
|
|
1300
|
-
memoProgram: TAccountMetas[20];
|
|
1301
|
-
};
|
|
1302
|
-
data: CloseActiveTunaSpotPositionOrcaInstructionData;
|
|
1303
|
-
};
|
|
1304
|
-
declare function parseCloseActiveTunaSpotPositionOrcaInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCloseActiveTunaSpotPositionOrcaInstruction<TProgram, TAccountMetas>;
|
|
1305
|
-
|
|
1306
1039
|
/**
|
|
1307
1040
|
* This code was AUTOGENERATED using the codama library.
|
|
1308
1041
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -2404,7 +2137,7 @@ type DecreaseTunaLpPositionFusionInstruction<TProgram extends string = typeof TU
|
|
|
2404
2137
|
]>;
|
|
2405
2138
|
type DecreaseTunaLpPositionFusionInstructionData = {
|
|
2406
2139
|
discriminator: ReadonlyUint8Array;
|
|
2407
|
-
|
|
2140
|
+
decreasePercent: number;
|
|
2408
2141
|
swapToToken: Option<PoolToken>;
|
|
2409
2142
|
minRemovedAmountA: bigint;
|
|
2410
2143
|
minRemovedAmountB: bigint;
|
|
@@ -2412,7 +2145,7 @@ type DecreaseTunaLpPositionFusionInstructionData = {
|
|
|
2412
2145
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
2413
2146
|
};
|
|
2414
2147
|
type DecreaseTunaLpPositionFusionInstructionDataArgs = {
|
|
2415
|
-
|
|
2148
|
+
decreasePercent: number;
|
|
2416
2149
|
swapToToken: OptionOrNullable<PoolTokenArgs>;
|
|
2417
2150
|
minRemovedAmountA: number | bigint;
|
|
2418
2151
|
minRemovedAmountB: number | bigint;
|
|
@@ -2456,7 +2189,7 @@ type DecreaseTunaLpPositionFusionInput<TAccountAuthority extends string = string
|
|
|
2456
2189
|
fusionPool: Address<TAccountFusionPool>;
|
|
2457
2190
|
fusionPosition: Address<TAccountFusionPosition>;
|
|
2458
2191
|
memoProgram: Address<TAccountMemoProgram>;
|
|
2459
|
-
|
|
2192
|
+
decreasePercent: DecreaseTunaLpPositionFusionInstructionDataArgs['decreasePercent'];
|
|
2460
2193
|
swapToToken: DecreaseTunaLpPositionFusionInstructionDataArgs['swapToToken'];
|
|
2461
2194
|
minRemovedAmountA: DecreaseTunaLpPositionFusionInstructionDataArgs['minRemovedAmountA'];
|
|
2462
2195
|
minRemovedAmountB: DecreaseTunaLpPositionFusionInstructionDataArgs['minRemovedAmountB'];
|
|
@@ -2545,7 +2278,7 @@ type DecreaseTunaLpPositionOrcaInstruction<TProgram extends string = typeof TUNA
|
|
|
2545
2278
|
]>;
|
|
2546
2279
|
type DecreaseTunaLpPositionOrcaInstructionData = {
|
|
2547
2280
|
discriminator: ReadonlyUint8Array;
|
|
2548
|
-
|
|
2281
|
+
decreasePercent: number;
|
|
2549
2282
|
swapToToken: Option<PoolToken>;
|
|
2550
2283
|
minRemovedAmountA: bigint;
|
|
2551
2284
|
minRemovedAmountB: bigint;
|
|
@@ -2553,7 +2286,7 @@ type DecreaseTunaLpPositionOrcaInstructionData = {
|
|
|
2553
2286
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
2554
2287
|
};
|
|
2555
2288
|
type DecreaseTunaLpPositionOrcaInstructionDataArgs = {
|
|
2556
|
-
|
|
2289
|
+
decreasePercent: number;
|
|
2557
2290
|
swapToToken: OptionOrNullable<PoolTokenArgs>;
|
|
2558
2291
|
minRemovedAmountA: number | bigint;
|
|
2559
2292
|
minRemovedAmountB: number | bigint;
|
|
@@ -2597,7 +2330,7 @@ type DecreaseTunaLpPositionOrcaInput<TAccountAuthority extends string = string,
|
|
|
2597
2330
|
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
2598
2331
|
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
2599
2332
|
memoProgram: Address<TAccountMemoProgram>;
|
|
2600
|
-
|
|
2333
|
+
decreasePercent: DecreaseTunaLpPositionOrcaInstructionDataArgs['decreasePercent'];
|
|
2601
2334
|
swapToToken: DecreaseTunaLpPositionOrcaInstructionDataArgs['swapToToken'];
|
|
2602
2335
|
minRemovedAmountA: DecreaseTunaLpPositionOrcaInstructionDataArgs['minRemovedAmountA'];
|
|
2603
2336
|
minRemovedAmountB: DecreaseTunaLpPositionOrcaInstructionDataArgs['minRemovedAmountB'];
|
|
@@ -2656,790 +2389,61 @@ declare function parseDecreaseTunaLpPositionOrcaInstruction<TProgram extends str
|
|
|
2656
2389
|
* @see https://github.com/codama-idl/codama
|
|
2657
2390
|
*/
|
|
2658
2391
|
|
|
2659
|
-
declare const
|
|
2660
|
-
declare function
|
|
2661
|
-
type
|
|
2392
|
+
declare const DEPOSIT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2393
|
+
declare function getDepositDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2394
|
+
type DepositInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountMint extends string | IAccountMeta<string> = string, TAccountTunaConfig extends string | IAccountMeta<string> = string, TAccountLendingPosition extends string | IAccountMeta<string> = string, TAccountVault extends string | IAccountMeta<string> = string, TAccountVaultAta extends string | IAccountMeta<string> = string, TAccountAuthorityAta extends string | IAccountMeta<string> = string, TAccountTokenProgram extends string | IAccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountMemoProgram extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
2662
2395
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2396
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
2663
2397
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
2670
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
2671
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
2672
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
2673
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
2674
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
2675
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
2676
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
2677
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
2678
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
2679
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
2680
|
-
TAccountFusionammProgram extends string ? ReadonlyAccount<TAccountFusionammProgram> : TAccountFusionammProgram,
|
|
2681
|
-
TAccountFusionPool extends string ? WritableAccount<TAccountFusionPool> : TAccountFusionPool,
|
|
2398
|
+
TAccountLendingPosition extends string ? WritableAccount<TAccountLendingPosition> : TAccountLendingPosition,
|
|
2399
|
+
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
2400
|
+
TAccountVaultAta extends string ? WritableAccount<TAccountVaultAta> : TAccountVaultAta,
|
|
2401
|
+
TAccountAuthorityAta extends string ? WritableAccount<TAccountAuthorityAta> : TAccountAuthorityAta,
|
|
2402
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2682
2403
|
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
2683
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2684
2404
|
...TRemainingAccounts
|
|
2685
2405
|
]>;
|
|
2686
|
-
type
|
|
2406
|
+
type DepositInstructionData = {
|
|
2687
2407
|
discriminator: ReadonlyUint8Array;
|
|
2688
|
-
|
|
2689
|
-
acceptableSwapAmount: bigint;
|
|
2690
|
-
remainingAccountsInfo: RemainingAccountsInfo;
|
|
2408
|
+
amount: bigint;
|
|
2691
2409
|
};
|
|
2692
|
-
type
|
|
2693
|
-
|
|
2694
|
-
acceptableSwapAmount: number | bigint;
|
|
2695
|
-
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
2410
|
+
type DepositInstructionDataArgs = {
|
|
2411
|
+
amount: number | bigint;
|
|
2696
2412
|
};
|
|
2697
|
-
declare function
|
|
2698
|
-
declare function
|
|
2699
|
-
declare function
|
|
2700
|
-
type
|
|
2701
|
-
/**
|
|
2702
|
-
*
|
|
2703
|
-
* TUNA accounts
|
|
2704
|
-
*
|
|
2705
|
-
*/
|
|
2413
|
+
declare function getDepositInstructionDataEncoder(): Encoder<DepositInstructionDataArgs>;
|
|
2414
|
+
declare function getDepositInstructionDataDecoder(): Decoder<DepositInstructionData>;
|
|
2415
|
+
declare function getDepositInstructionDataCodec(): Codec<DepositInstructionDataArgs, DepositInstructionData>;
|
|
2416
|
+
type DepositInput<TAccountAuthority extends string = string, TAccountMint extends string = string, TAccountTunaConfig extends string = string, TAccountLendingPosition extends string = string, TAccountVault extends string = string, TAccountVaultAta extends string = string, TAccountAuthorityAta extends string = string, TAccountTokenProgram extends string = string, TAccountMemoProgram extends string = string> = {
|
|
2706
2417
|
authority: TransactionSigner<TAccountAuthority>;
|
|
2418
|
+
mint: Address<TAccountMint>;
|
|
2707
2419
|
tunaConfig: Address<TAccountTunaConfig>;
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
market: Address<TAccountMarket>;
|
|
2713
|
-
vaultA: Address<TAccountVaultA>;
|
|
2714
|
-
vaultB: Address<TAccountVaultB>;
|
|
2715
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
2716
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
2717
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
2718
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
2719
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
2720
|
-
tunaPositionOwnerAtaA?: Address<TAccountTunaPositionOwnerAtaA>;
|
|
2721
|
-
tunaPositionOwnerAtaB?: Address<TAccountTunaPositionOwnerAtaB>;
|
|
2722
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
2723
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
2724
|
-
/**
|
|
2725
|
-
*
|
|
2726
|
-
* Fusion accounts
|
|
2727
|
-
*
|
|
2728
|
-
*/
|
|
2729
|
-
fusionammProgram: Address<TAccountFusionammProgram>;
|
|
2730
|
-
fusionPool: Address<TAccountFusionPool>;
|
|
2731
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
2732
|
-
/**
|
|
2733
|
-
*
|
|
2734
|
-
* Other accounts
|
|
2735
|
-
*
|
|
2736
|
-
*/
|
|
2737
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
2738
|
-
withdrawPercent: DecreaseTunaSpotPositionFusionInstructionDataArgs['withdrawPercent'];
|
|
2739
|
-
acceptableSwapAmount: DecreaseTunaSpotPositionFusionInstructionDataArgs['acceptableSwapAmount'];
|
|
2740
|
-
remainingAccountsInfo: DecreaseTunaSpotPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
2741
|
-
};
|
|
2742
|
-
declare function getDecreaseTunaSpotPositionFusionInstruction<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, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB extends string, TAccountPythOraclePriceFeedA extends string, TAccountPythOraclePriceFeedB extends string, TAccountFusionammProgram extends string, TAccountFusionPool extends string, TAccountMemoProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: DecreaseTunaSpotPositionFusionInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountMemoProgram, TAccountSystemProgram>, config?: {
|
|
2743
|
-
programAddress?: TProgramAddress;
|
|
2744
|
-
}): DecreaseTunaSpotPositionFusionInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountMemoProgram, TAccountSystemProgram>;
|
|
2745
|
-
type ParsedDecreaseTunaSpotPositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
2746
|
-
programAddress: Address<TProgram>;
|
|
2747
|
-
accounts: {
|
|
2748
|
-
/**
|
|
2749
|
-
*
|
|
2750
|
-
* TUNA accounts
|
|
2751
|
-
*
|
|
2752
|
-
*/
|
|
2753
|
-
authority: TAccountMetas[0];
|
|
2754
|
-
tunaConfig: TAccountMetas[1];
|
|
2755
|
-
mintA: TAccountMetas[2];
|
|
2756
|
-
mintB: TAccountMetas[3];
|
|
2757
|
-
tokenProgramA: TAccountMetas[4];
|
|
2758
|
-
tokenProgramB: TAccountMetas[5];
|
|
2759
|
-
market: TAccountMetas[6];
|
|
2760
|
-
vaultA: TAccountMetas[7];
|
|
2761
|
-
vaultB: TAccountMetas[8];
|
|
2762
|
-
vaultAAta: TAccountMetas[9];
|
|
2763
|
-
vaultBAta: TAccountMetas[10];
|
|
2764
|
-
tunaPosition: TAccountMetas[11];
|
|
2765
|
-
tunaPositionAtaA: TAccountMetas[12];
|
|
2766
|
-
tunaPositionAtaB: TAccountMetas[13];
|
|
2767
|
-
tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined;
|
|
2768
|
-
tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined;
|
|
2769
|
-
pythOraclePriceFeedA: TAccountMetas[16];
|
|
2770
|
-
pythOraclePriceFeedB: TAccountMetas[17];
|
|
2771
|
-
/**
|
|
2772
|
-
*
|
|
2773
|
-
* Fusion accounts
|
|
2774
|
-
*
|
|
2775
|
-
*/
|
|
2776
|
-
fusionammProgram: TAccountMetas[18];
|
|
2777
|
-
fusionPool: TAccountMetas[19];
|
|
2778
|
-
memoProgram: TAccountMetas[20];
|
|
2779
|
-
/**
|
|
2780
|
-
*
|
|
2781
|
-
* Other accounts
|
|
2782
|
-
*
|
|
2783
|
-
*/
|
|
2784
|
-
systemProgram: TAccountMetas[21];
|
|
2785
|
-
};
|
|
2786
|
-
data: DecreaseTunaSpotPositionFusionInstructionData;
|
|
2787
|
-
};
|
|
2788
|
-
declare function parseDecreaseTunaSpotPositionFusionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedDecreaseTunaSpotPositionFusionInstruction<TProgram, TAccountMetas>;
|
|
2789
|
-
|
|
2790
|
-
/**
|
|
2791
|
-
* This code was AUTOGENERATED using the codama library.
|
|
2792
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2793
|
-
* to add features, then rerun codama to update it.
|
|
2794
|
-
*
|
|
2795
|
-
* @see https://github.com/codama-idl/codama
|
|
2796
|
-
*/
|
|
2797
|
-
|
|
2798
|
-
declare const DECREASE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2799
|
-
declare function getDecreaseTunaSpotPositionJupiterDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2800
|
-
type DecreaseTunaSpotPositionJupiterInstruction<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, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaB extends string | IAccountMeta<string> = string, TAccountPythOraclePriceFeedA extends string | IAccountMeta<string> = string, TAccountPythOraclePriceFeedB extends string | IAccountMeta<string> = string, TAccountPool extends string | IAccountMeta<string> = string, TAccountJupiterProgram extends string | IAccountMeta<string> = string, TAccountJupiterEventAuthority extends string | IAccountMeta<string> = string, TAccountJupiterProgramAuthority extends string | IAccountMeta<string> = string, TAccountTokenProgram extends string | IAccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountMemoProgram extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
2801
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2802
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
2803
|
-
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
2804
|
-
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
2805
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
2806
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
2807
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2808
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
2809
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
2810
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
2811
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
2812
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
2813
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
2814
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
2815
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
2816
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
2817
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
2818
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
2819
|
-
TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
|
|
2820
|
-
TAccountJupiterProgram extends string ? ReadonlyAccount<TAccountJupiterProgram> : TAccountJupiterProgram,
|
|
2821
|
-
TAccountJupiterEventAuthority extends string ? ReadonlyAccount<TAccountJupiterEventAuthority> : TAccountJupiterEventAuthority,
|
|
2822
|
-
TAccountJupiterProgramAuthority extends string ? ReadonlyAccount<TAccountJupiterProgramAuthority> : TAccountJupiterProgramAuthority,
|
|
2823
|
-
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2824
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
2825
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2826
|
-
...TRemainingAccounts
|
|
2827
|
-
]>;
|
|
2828
|
-
type DecreaseTunaSpotPositionJupiterInstructionData = {
|
|
2829
|
-
discriminator: ReadonlyUint8Array;
|
|
2830
|
-
withdrawPercent: number;
|
|
2831
|
-
routeData: ReadonlyUint8Array;
|
|
2832
|
-
};
|
|
2833
|
-
type DecreaseTunaSpotPositionJupiterInstructionDataArgs = {
|
|
2834
|
-
withdrawPercent: number;
|
|
2835
|
-
routeData: ReadonlyUint8Array;
|
|
2836
|
-
};
|
|
2837
|
-
declare function getDecreaseTunaSpotPositionJupiterInstructionDataEncoder(): Encoder<DecreaseTunaSpotPositionJupiterInstructionDataArgs>;
|
|
2838
|
-
declare function getDecreaseTunaSpotPositionJupiterInstructionDataDecoder(): Decoder<DecreaseTunaSpotPositionJupiterInstructionData>;
|
|
2839
|
-
declare function getDecreaseTunaSpotPositionJupiterInstructionDataCodec(): Codec<DecreaseTunaSpotPositionJupiterInstructionDataArgs, DecreaseTunaSpotPositionJupiterInstructionData>;
|
|
2840
|
-
type DecreaseTunaSpotPositionJupiterInput<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, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountTunaPositionOwnerAtaA extends string = string, TAccountTunaPositionOwnerAtaB extends string = string, TAccountPythOraclePriceFeedA extends string = string, TAccountPythOraclePriceFeedB extends string = string, TAccountPool extends string = string, TAccountJupiterProgram extends string = string, TAccountJupiterEventAuthority extends string = string, TAccountJupiterProgramAuthority extends string = string, TAccountTokenProgram extends string = string, TAccountMemoProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2841
|
-
/**
|
|
2842
|
-
*
|
|
2843
|
-
* TUNA accounts
|
|
2844
|
-
*
|
|
2845
|
-
*/
|
|
2846
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
2847
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
2848
|
-
mintA: Address<TAccountMintA>;
|
|
2849
|
-
mintB: Address<TAccountMintB>;
|
|
2850
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
2851
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
2852
|
-
market: Address<TAccountMarket>;
|
|
2853
|
-
vaultA: Address<TAccountVaultA>;
|
|
2854
|
-
vaultB: Address<TAccountVaultB>;
|
|
2855
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
2856
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
2857
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
2858
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
2859
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
2860
|
-
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
2861
|
-
tunaPositionOwnerAtaB: Address<TAccountTunaPositionOwnerAtaB>;
|
|
2862
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
2863
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
2864
|
-
pool: Address<TAccountPool>;
|
|
2865
|
-
/**
|
|
2866
|
-
*
|
|
2867
|
-
* Jupiter accounts
|
|
2868
|
-
*
|
|
2869
|
-
*/
|
|
2870
|
-
jupiterProgram: Address<TAccountJupiterProgram>;
|
|
2871
|
-
jupiterEventAuthority: Address<TAccountJupiterEventAuthority>;
|
|
2872
|
-
jupiterProgramAuthority: Address<TAccountJupiterProgramAuthority>;
|
|
2873
|
-
/**
|
|
2874
|
-
*
|
|
2875
|
-
* Other accounts
|
|
2876
|
-
*
|
|
2877
|
-
*/
|
|
2420
|
+
lendingPosition: Address<TAccountLendingPosition>;
|
|
2421
|
+
vault: Address<TAccountVault>;
|
|
2422
|
+
vaultAta: Address<TAccountVaultAta>;
|
|
2423
|
+
authorityAta: Address<TAccountAuthorityAta>;
|
|
2878
2424
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2879
2425
|
memoProgram: Address<TAccountMemoProgram>;
|
|
2880
|
-
|
|
2881
|
-
withdrawPercent: DecreaseTunaSpotPositionJupiterInstructionDataArgs['withdrawPercent'];
|
|
2882
|
-
routeData: DecreaseTunaSpotPositionJupiterInstructionDataArgs['routeData'];
|
|
2426
|
+
amount: DepositInstructionDataArgs['amount'];
|
|
2883
2427
|
};
|
|
2884
|
-
declare function
|
|
2428
|
+
declare function getDepositInstruction<TAccountAuthority extends string, TAccountMint extends string, TAccountTunaConfig extends string, TAccountLendingPosition extends string, TAccountVault extends string, TAccountVaultAta extends string, TAccountAuthorityAta extends string, TAccountTokenProgram extends string, TAccountMemoProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: DepositInput<TAccountAuthority, TAccountMint, TAccountTunaConfig, TAccountLendingPosition, TAccountVault, TAccountVaultAta, TAccountAuthorityAta, TAccountTokenProgram, TAccountMemoProgram>, config?: {
|
|
2885
2429
|
programAddress?: TProgramAddress;
|
|
2886
|
-
}):
|
|
2887
|
-
type
|
|
2430
|
+
}): DepositInstruction<TProgramAddress, TAccountAuthority, TAccountMint, TAccountTunaConfig, TAccountLendingPosition, TAccountVault, TAccountVaultAta, TAccountAuthorityAta, TAccountTokenProgram, TAccountMemoProgram>;
|
|
2431
|
+
type ParsedDepositInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
2888
2432
|
programAddress: Address<TProgram>;
|
|
2889
|
-
accounts: {
|
|
2890
|
-
/**
|
|
2891
|
-
*
|
|
2892
|
-
* TUNA accounts
|
|
2893
|
-
*
|
|
2894
|
-
*/
|
|
2895
|
-
authority: TAccountMetas[0];
|
|
2896
|
-
tunaConfig: TAccountMetas[1];
|
|
2897
|
-
mintA: TAccountMetas[2];
|
|
2898
|
-
mintB: TAccountMetas[3];
|
|
2899
|
-
tokenProgramA: TAccountMetas[4];
|
|
2900
|
-
tokenProgramB: TAccountMetas[5];
|
|
2901
|
-
market: TAccountMetas[6];
|
|
2902
|
-
vaultA: TAccountMetas[7];
|
|
2903
|
-
vaultB: TAccountMetas[8];
|
|
2904
|
-
vaultAAta: TAccountMetas[9];
|
|
2905
|
-
vaultBAta: TAccountMetas[10];
|
|
2906
|
-
tunaPosition: TAccountMetas[11];
|
|
2907
|
-
tunaPositionAtaA: TAccountMetas[12];
|
|
2908
|
-
tunaPositionAtaB: TAccountMetas[13];
|
|
2909
|
-
tunaPositionOwnerAtaA: TAccountMetas[14];
|
|
2910
|
-
tunaPositionOwnerAtaB: TAccountMetas[15];
|
|
2911
|
-
pythOraclePriceFeedA: TAccountMetas[16];
|
|
2912
|
-
pythOraclePriceFeedB: TAccountMetas[17];
|
|
2913
|
-
pool: TAccountMetas[18];
|
|
2914
|
-
/**
|
|
2915
|
-
*
|
|
2916
|
-
* Jupiter accounts
|
|
2917
|
-
*
|
|
2918
|
-
*/
|
|
2919
|
-
jupiterProgram: TAccountMetas[19];
|
|
2920
|
-
jupiterEventAuthority: TAccountMetas[20];
|
|
2921
|
-
jupiterProgramAuthority: TAccountMetas[21];
|
|
2922
|
-
/**
|
|
2923
|
-
*
|
|
2924
|
-
* Other accounts
|
|
2925
|
-
*
|
|
2926
|
-
*/
|
|
2927
|
-
tokenProgram: TAccountMetas[22];
|
|
2928
|
-
memoProgram: TAccountMetas[23];
|
|
2929
|
-
systemProgram: TAccountMetas[24];
|
|
2930
|
-
};
|
|
2931
|
-
data: DecreaseTunaSpotPositionJupiterInstructionData;
|
|
2932
|
-
};
|
|
2933
|
-
declare function parseDecreaseTunaSpotPositionJupiterInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedDecreaseTunaSpotPositionJupiterInstruction<TProgram, TAccountMetas>;
|
|
2934
|
-
|
|
2935
|
-
/**
|
|
2936
|
-
* This code was AUTOGENERATED using the codama library.
|
|
2937
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2938
|
-
* to add features, then rerun codama to update it.
|
|
2939
|
-
*
|
|
2940
|
-
* @see https://github.com/codama-idl/codama
|
|
2941
|
-
*/
|
|
2942
|
-
|
|
2943
|
-
declare const DECREASE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2944
|
-
declare function getDecreaseTunaSpotPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2945
|
-
type DecreaseTunaSpotPositionOrcaInstruction<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, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaB 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, TAccountMemoProgram extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
2946
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2947
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
2948
|
-
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
2949
|
-
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
2950
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
2951
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
2952
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2953
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
2954
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
2955
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
2956
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
2957
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
2958
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
2959
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
2960
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
2961
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
2962
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
2963
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
2964
|
-
TAccountWhirlpoolProgram extends string ? ReadonlyAccount<TAccountWhirlpoolProgram> : TAccountWhirlpoolProgram,
|
|
2965
|
-
TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool,
|
|
2966
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
2967
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2968
|
-
...TRemainingAccounts
|
|
2969
|
-
]>;
|
|
2970
|
-
type DecreaseTunaSpotPositionOrcaInstructionData = {
|
|
2971
|
-
discriminator: ReadonlyUint8Array;
|
|
2972
|
-
withdrawPercent: number;
|
|
2973
|
-
acceptableSwapAmount: bigint;
|
|
2974
|
-
remainingAccountsInfo: RemainingAccountsInfo;
|
|
2975
|
-
};
|
|
2976
|
-
type DecreaseTunaSpotPositionOrcaInstructionDataArgs = {
|
|
2977
|
-
withdrawPercent: number;
|
|
2978
|
-
acceptableSwapAmount: number | bigint;
|
|
2979
|
-
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
2980
|
-
};
|
|
2981
|
-
declare function getDecreaseTunaSpotPositionOrcaInstructionDataEncoder(): Encoder<DecreaseTunaSpotPositionOrcaInstructionDataArgs>;
|
|
2982
|
-
declare function getDecreaseTunaSpotPositionOrcaInstructionDataDecoder(): Decoder<DecreaseTunaSpotPositionOrcaInstructionData>;
|
|
2983
|
-
declare function getDecreaseTunaSpotPositionOrcaInstructionDataCodec(): Codec<DecreaseTunaSpotPositionOrcaInstructionDataArgs, DecreaseTunaSpotPositionOrcaInstructionData>;
|
|
2984
|
-
type DecreaseTunaSpotPositionOrcaInput<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, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountTunaPositionOwnerAtaA extends string = string, TAccountTunaPositionOwnerAtaB extends string = string, TAccountPythOraclePriceFeedA extends string = string, TAccountPythOraclePriceFeedB extends string = string, TAccountWhirlpoolProgram extends string = string, TAccountWhirlpool extends string = string, TAccountMemoProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2985
|
-
/**
|
|
2986
|
-
*
|
|
2987
|
-
* TUNA accounts
|
|
2988
|
-
*
|
|
2989
|
-
*/
|
|
2990
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
2991
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
2992
|
-
mintA: Address<TAccountMintA>;
|
|
2993
|
-
mintB: Address<TAccountMintB>;
|
|
2994
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
2995
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
2996
|
-
market: Address<TAccountMarket>;
|
|
2997
|
-
vaultA: Address<TAccountVaultA>;
|
|
2998
|
-
vaultB: Address<TAccountVaultB>;
|
|
2999
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
3000
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
3001
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
3002
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
3003
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
3004
|
-
tunaPositionOwnerAtaA?: Address<TAccountTunaPositionOwnerAtaA>;
|
|
3005
|
-
tunaPositionOwnerAtaB?: Address<TAccountTunaPositionOwnerAtaB>;
|
|
3006
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
3007
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
3008
|
-
/**
|
|
3009
|
-
*
|
|
3010
|
-
* Orca accounts
|
|
3011
|
-
*
|
|
3012
|
-
*/
|
|
3013
|
-
whirlpoolProgram: Address<TAccountWhirlpoolProgram>;
|
|
3014
|
-
whirlpool: Address<TAccountWhirlpool>;
|
|
3015
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
3016
|
-
/**
|
|
3017
|
-
*
|
|
3018
|
-
* Other accounts
|
|
3019
|
-
*
|
|
3020
|
-
*/
|
|
3021
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
3022
|
-
withdrawPercent: DecreaseTunaSpotPositionOrcaInstructionDataArgs['withdrawPercent'];
|
|
3023
|
-
acceptableSwapAmount: DecreaseTunaSpotPositionOrcaInstructionDataArgs['acceptableSwapAmount'];
|
|
3024
|
-
remainingAccountsInfo: DecreaseTunaSpotPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
3025
|
-
};
|
|
3026
|
-
declare function getDecreaseTunaSpotPositionOrcaInstruction<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, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB extends string, TAccountPythOraclePriceFeedA extends string, TAccountPythOraclePriceFeedB extends string, TAccountWhirlpoolProgram extends string, TAccountWhirlpool extends string, TAccountMemoProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: DecreaseTunaSpotPositionOrcaInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountMemoProgram, TAccountSystemProgram>, config?: {
|
|
3027
|
-
programAddress?: TProgramAddress;
|
|
3028
|
-
}): DecreaseTunaSpotPositionOrcaInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountMemoProgram, TAccountSystemProgram>;
|
|
3029
|
-
type ParsedDecreaseTunaSpotPositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
3030
|
-
programAddress: Address<TProgram>;
|
|
3031
|
-
accounts: {
|
|
3032
|
-
/**
|
|
3033
|
-
*
|
|
3034
|
-
* TUNA accounts
|
|
3035
|
-
*
|
|
3036
|
-
*/
|
|
3037
|
-
authority: TAccountMetas[0];
|
|
3038
|
-
tunaConfig: TAccountMetas[1];
|
|
3039
|
-
mintA: TAccountMetas[2];
|
|
3040
|
-
mintB: TAccountMetas[3];
|
|
3041
|
-
tokenProgramA: TAccountMetas[4];
|
|
3042
|
-
tokenProgramB: TAccountMetas[5];
|
|
3043
|
-
market: TAccountMetas[6];
|
|
3044
|
-
vaultA: TAccountMetas[7];
|
|
3045
|
-
vaultB: TAccountMetas[8];
|
|
3046
|
-
vaultAAta: TAccountMetas[9];
|
|
3047
|
-
vaultBAta: TAccountMetas[10];
|
|
3048
|
-
tunaPosition: TAccountMetas[11];
|
|
3049
|
-
tunaPositionAtaA: TAccountMetas[12];
|
|
3050
|
-
tunaPositionAtaB: TAccountMetas[13];
|
|
3051
|
-
tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined;
|
|
3052
|
-
tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined;
|
|
3053
|
-
pythOraclePriceFeedA: TAccountMetas[16];
|
|
3054
|
-
pythOraclePriceFeedB: TAccountMetas[17];
|
|
3055
|
-
/**
|
|
3056
|
-
*
|
|
3057
|
-
* Orca accounts
|
|
3058
|
-
*
|
|
3059
|
-
*/
|
|
3060
|
-
whirlpoolProgram: TAccountMetas[18];
|
|
3061
|
-
whirlpool: TAccountMetas[19];
|
|
3062
|
-
memoProgram: TAccountMetas[20];
|
|
3063
|
-
/**
|
|
3064
|
-
*
|
|
3065
|
-
* Other accounts
|
|
3066
|
-
*
|
|
3067
|
-
*/
|
|
3068
|
-
systemProgram: TAccountMetas[21];
|
|
3069
|
-
};
|
|
3070
|
-
data: DecreaseTunaSpotPositionOrcaInstructionData;
|
|
3071
|
-
};
|
|
3072
|
-
declare function parseDecreaseTunaSpotPositionOrcaInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedDecreaseTunaSpotPositionOrcaInstruction<TProgram, TAccountMetas>;
|
|
3073
|
-
|
|
3074
|
-
/**
|
|
3075
|
-
* This code was AUTOGENERATED using the codama library.
|
|
3076
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3077
|
-
* to add features, then rerun codama to update it.
|
|
3078
|
-
*
|
|
3079
|
-
* @see https://github.com/codama-idl/codama
|
|
3080
|
-
*/
|
|
3081
|
-
|
|
3082
|
-
declare const DEPOSIT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3083
|
-
declare function getDepositDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3084
|
-
type DepositInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountMint extends string | IAccountMeta<string> = string, TAccountTunaConfig extends string | IAccountMeta<string> = string, TAccountLendingPosition extends string | IAccountMeta<string> = string, TAccountVault extends string | IAccountMeta<string> = string, TAccountVaultAta extends string | IAccountMeta<string> = string, TAccountAuthorityAta extends string | IAccountMeta<string> = string, TAccountTokenProgram extends string | IAccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountMemoProgram extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
3085
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3086
|
-
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
3087
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
3088
|
-
TAccountLendingPosition extends string ? WritableAccount<TAccountLendingPosition> : TAccountLendingPosition,
|
|
3089
|
-
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
3090
|
-
TAccountVaultAta extends string ? WritableAccount<TAccountVaultAta> : TAccountVaultAta,
|
|
3091
|
-
TAccountAuthorityAta extends string ? WritableAccount<TAccountAuthorityAta> : TAccountAuthorityAta,
|
|
3092
|
-
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3093
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3094
|
-
...TRemainingAccounts
|
|
3095
|
-
]>;
|
|
3096
|
-
type DepositInstructionData = {
|
|
3097
|
-
discriminator: ReadonlyUint8Array;
|
|
3098
|
-
amount: bigint;
|
|
3099
|
-
};
|
|
3100
|
-
type DepositInstructionDataArgs = {
|
|
3101
|
-
amount: number | bigint;
|
|
3102
|
-
};
|
|
3103
|
-
declare function getDepositInstructionDataEncoder(): Encoder<DepositInstructionDataArgs>;
|
|
3104
|
-
declare function getDepositInstructionDataDecoder(): Decoder<DepositInstructionData>;
|
|
3105
|
-
declare function getDepositInstructionDataCodec(): Codec<DepositInstructionDataArgs, DepositInstructionData>;
|
|
3106
|
-
type DepositInput<TAccountAuthority extends string = string, TAccountMint extends string = string, TAccountTunaConfig extends string = string, TAccountLendingPosition extends string = string, TAccountVault extends string = string, TAccountVaultAta extends string = string, TAccountAuthorityAta extends string = string, TAccountTokenProgram extends string = string, TAccountMemoProgram extends string = string> = {
|
|
3107
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
3108
|
-
mint: Address<TAccountMint>;
|
|
3109
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
3110
|
-
lendingPosition: Address<TAccountLendingPosition>;
|
|
3111
|
-
vault: Address<TAccountVault>;
|
|
3112
|
-
vaultAta: Address<TAccountVaultAta>;
|
|
3113
|
-
authorityAta: Address<TAccountAuthorityAta>;
|
|
3114
|
-
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3115
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
3116
|
-
amount: DepositInstructionDataArgs['amount'];
|
|
3117
|
-
};
|
|
3118
|
-
declare function getDepositInstruction<TAccountAuthority extends string, TAccountMint extends string, TAccountTunaConfig extends string, TAccountLendingPosition extends string, TAccountVault extends string, TAccountVaultAta extends string, TAccountAuthorityAta extends string, TAccountTokenProgram extends string, TAccountMemoProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: DepositInput<TAccountAuthority, TAccountMint, TAccountTunaConfig, TAccountLendingPosition, TAccountVault, TAccountVaultAta, TAccountAuthorityAta, TAccountTokenProgram, TAccountMemoProgram>, config?: {
|
|
3119
|
-
programAddress?: TProgramAddress;
|
|
3120
|
-
}): DepositInstruction<TProgramAddress, TAccountAuthority, TAccountMint, TAccountTunaConfig, TAccountLendingPosition, TAccountVault, TAccountVaultAta, TAccountAuthorityAta, TAccountTokenProgram, TAccountMemoProgram>;
|
|
3121
|
-
type ParsedDepositInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
3122
|
-
programAddress: Address<TProgram>;
|
|
3123
|
-
accounts: {
|
|
3124
|
-
authority: TAccountMetas[0];
|
|
3125
|
-
mint: TAccountMetas[1];
|
|
3126
|
-
tunaConfig: TAccountMetas[2];
|
|
3127
|
-
lendingPosition: TAccountMetas[3];
|
|
3128
|
-
vault: TAccountMetas[4];
|
|
3129
|
-
vaultAta: TAccountMetas[5];
|
|
3130
|
-
authorityAta: TAccountMetas[6];
|
|
3131
|
-
tokenProgram: TAccountMetas[7];
|
|
3132
|
-
memoProgram: TAccountMetas[8];
|
|
3133
|
-
};
|
|
3134
|
-
data: DepositInstructionData;
|
|
3135
|
-
};
|
|
3136
|
-
declare function parseDepositInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedDepositInstruction<TProgram, TAccountMetas>;
|
|
3137
|
-
|
|
3138
|
-
/**
|
|
3139
|
-
* This code was AUTOGENERATED using the codama library.
|
|
3140
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3141
|
-
* to add features, then rerun codama to update it.
|
|
3142
|
-
*
|
|
3143
|
-
* @see https://github.com/codama-idl/codama
|
|
3144
|
-
*/
|
|
3145
|
-
|
|
3146
|
-
declare const INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3147
|
-
declare function getIncreaseTunaLpPositionFusionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3148
|
-
type IncreaseTunaLpPositionFusionInstruction<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, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaB 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<[
|
|
3149
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3150
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
3151
|
-
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
3152
|
-
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
3153
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
3154
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
3155
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3156
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
3157
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
3158
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
3159
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
3160
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
3161
|
-
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
3162
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
3163
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
3164
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
3165
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
3166
|
-
TAccountFeeRecipientAtaA extends string ? WritableAccount<TAccountFeeRecipientAtaA> : TAccountFeeRecipientAtaA,
|
|
3167
|
-
TAccountFeeRecipientAtaB extends string ? WritableAccount<TAccountFeeRecipientAtaB> : TAccountFeeRecipientAtaB,
|
|
3168
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
3169
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
3170
|
-
TAccountFusionammProgram extends string ? ReadonlyAccount<TAccountFusionammProgram> : TAccountFusionammProgram,
|
|
3171
|
-
TAccountFusionPool extends string ? WritableAccount<TAccountFusionPool> : TAccountFusionPool,
|
|
3172
|
-
TAccountFusionPosition extends string ? WritableAccount<TAccountFusionPosition> : TAccountFusionPosition,
|
|
3173
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3174
|
-
...TRemainingAccounts
|
|
3175
|
-
]>;
|
|
3176
|
-
type IncreaseTunaLpPositionFusionInstructionData = {
|
|
3177
|
-
discriminator: ReadonlyUint8Array;
|
|
3178
|
-
collateralA: bigint;
|
|
3179
|
-
collateralB: bigint;
|
|
3180
|
-
borrowA: bigint;
|
|
3181
|
-
borrowB: bigint;
|
|
3182
|
-
minAddedAmountA: bigint;
|
|
3183
|
-
minAddedAmountB: bigint;
|
|
3184
|
-
maxSwapSlippage: number;
|
|
3185
|
-
remainingAccountsInfo: RemainingAccountsInfo;
|
|
3186
|
-
};
|
|
3187
|
-
type IncreaseTunaLpPositionFusionInstructionDataArgs = {
|
|
3188
|
-
collateralA: number | bigint;
|
|
3189
|
-
collateralB: number | bigint;
|
|
3190
|
-
borrowA: number | bigint;
|
|
3191
|
-
borrowB: number | bigint;
|
|
3192
|
-
minAddedAmountA: number | bigint;
|
|
3193
|
-
minAddedAmountB: number | bigint;
|
|
3194
|
-
maxSwapSlippage: number;
|
|
3195
|
-
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
3196
|
-
};
|
|
3197
|
-
declare function getIncreaseTunaLpPositionFusionInstructionDataEncoder(): Encoder<IncreaseTunaLpPositionFusionInstructionDataArgs>;
|
|
3198
|
-
declare function getIncreaseTunaLpPositionFusionInstructionDataDecoder(): Decoder<IncreaseTunaLpPositionFusionInstructionData>;
|
|
3199
|
-
declare function getIncreaseTunaLpPositionFusionInstructionDataCodec(): Codec<IncreaseTunaLpPositionFusionInstructionDataArgs, IncreaseTunaLpPositionFusionInstructionData>;
|
|
3200
|
-
type IncreaseTunaLpPositionFusionInput<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, TAccountTunaPositionOwnerAtaA extends string = string, TAccountTunaPositionOwnerAtaB 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> = {
|
|
3201
|
-
/**
|
|
3202
|
-
*
|
|
3203
|
-
* TUNA accounts
|
|
3204
|
-
*
|
|
3205
|
-
*/
|
|
3206
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
3207
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
3208
|
-
mintA: Address<TAccountMintA>;
|
|
3209
|
-
mintB: Address<TAccountMintB>;
|
|
3210
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
3211
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
3212
|
-
market: Address<TAccountMarket>;
|
|
3213
|
-
vaultA: Address<TAccountVaultA>;
|
|
3214
|
-
vaultB: Address<TAccountVaultB>;
|
|
3215
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
3216
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
3217
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
3218
|
-
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
3219
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
3220
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
3221
|
-
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
3222
|
-
tunaPositionOwnerAtaB: Address<TAccountTunaPositionOwnerAtaB>;
|
|
3223
|
-
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
3224
|
-
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
3225
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
3226
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
3227
|
-
/**
|
|
3228
|
-
*
|
|
3229
|
-
* Fusion accounts
|
|
3230
|
-
*
|
|
3231
|
-
*/
|
|
3232
|
-
fusionammProgram: Address<TAccountFusionammProgram>;
|
|
3233
|
-
fusionPool: Address<TAccountFusionPool>;
|
|
3234
|
-
fusionPosition: Address<TAccountFusionPosition>;
|
|
3235
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
3236
|
-
collateralA: IncreaseTunaLpPositionFusionInstructionDataArgs['collateralA'];
|
|
3237
|
-
collateralB: IncreaseTunaLpPositionFusionInstructionDataArgs['collateralB'];
|
|
3238
|
-
borrowA: IncreaseTunaLpPositionFusionInstructionDataArgs['borrowA'];
|
|
3239
|
-
borrowB: IncreaseTunaLpPositionFusionInstructionDataArgs['borrowB'];
|
|
3240
|
-
minAddedAmountA: IncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountA'];
|
|
3241
|
-
minAddedAmountB: IncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountB'];
|
|
3242
|
-
maxSwapSlippage: IncreaseTunaLpPositionFusionInstructionDataArgs['maxSwapSlippage'];
|
|
3243
|
-
remainingAccountsInfo: IncreaseTunaLpPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
3244
|
-
};
|
|
3245
|
-
declare function getIncreaseTunaLpPositionFusionInstruction<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, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB 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: IncreaseTunaLpPositionFusionInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountFusionPosition, TAccountMemoProgram>, config?: {
|
|
3246
|
-
programAddress?: TProgramAddress;
|
|
3247
|
-
}): IncreaseTunaLpPositionFusionInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountFusionPosition, TAccountMemoProgram>;
|
|
3248
|
-
type ParsedIncreaseTunaLpPositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
3249
|
-
programAddress: Address<TProgram>;
|
|
3250
|
-
accounts: {
|
|
3251
|
-
/**
|
|
3252
|
-
*
|
|
3253
|
-
* TUNA accounts
|
|
3254
|
-
*
|
|
3255
|
-
*/
|
|
3256
|
-
authority: TAccountMetas[0];
|
|
3257
|
-
tunaConfig: TAccountMetas[1];
|
|
3258
|
-
mintA: TAccountMetas[2];
|
|
3259
|
-
mintB: TAccountMetas[3];
|
|
3260
|
-
tokenProgramA: TAccountMetas[4];
|
|
3261
|
-
tokenProgramB: TAccountMetas[5];
|
|
3262
|
-
market: TAccountMetas[6];
|
|
3263
|
-
vaultA: TAccountMetas[7];
|
|
3264
|
-
vaultB: TAccountMetas[8];
|
|
3265
|
-
vaultAAta: TAccountMetas[9];
|
|
3266
|
-
vaultBAta: TAccountMetas[10];
|
|
3267
|
-
tunaPosition: TAccountMetas[11];
|
|
3268
|
-
tunaPositionAta: TAccountMetas[12];
|
|
3269
|
-
tunaPositionAtaA: TAccountMetas[13];
|
|
3270
|
-
tunaPositionAtaB: TAccountMetas[14];
|
|
3271
|
-
tunaPositionOwnerAtaA: TAccountMetas[15];
|
|
3272
|
-
tunaPositionOwnerAtaB: TAccountMetas[16];
|
|
3273
|
-
feeRecipientAtaA: TAccountMetas[17];
|
|
3274
|
-
feeRecipientAtaB: TAccountMetas[18];
|
|
3275
|
-
pythOraclePriceFeedA: TAccountMetas[19];
|
|
3276
|
-
pythOraclePriceFeedB: TAccountMetas[20];
|
|
3277
|
-
/**
|
|
3278
|
-
*
|
|
3279
|
-
* Fusion accounts
|
|
3280
|
-
*
|
|
3281
|
-
*/
|
|
3282
|
-
fusionammProgram: TAccountMetas[21];
|
|
3283
|
-
fusionPool: TAccountMetas[22];
|
|
3284
|
-
fusionPosition: TAccountMetas[23];
|
|
3285
|
-
memoProgram: TAccountMetas[24];
|
|
3286
|
-
};
|
|
3287
|
-
data: IncreaseTunaLpPositionFusionInstructionData;
|
|
3288
|
-
};
|
|
3289
|
-
declare function parseIncreaseTunaLpPositionFusionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedIncreaseTunaLpPositionFusionInstruction<TProgram, TAccountMetas>;
|
|
3290
|
-
|
|
3291
|
-
/**
|
|
3292
|
-
* This code was AUTOGENERATED using the codama library.
|
|
3293
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3294
|
-
* to add features, then rerun codama to update it.
|
|
3295
|
-
*
|
|
3296
|
-
* @see https://github.com/codama-idl/codama
|
|
3297
|
-
*/
|
|
3298
|
-
|
|
3299
|
-
declare const INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3300
|
-
declare function getIncreaseTunaLpPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3301
|
-
type IncreaseTunaLpPositionOrcaInstruction<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, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaB 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<[
|
|
3302
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3303
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
3304
|
-
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
3305
|
-
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
3306
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3307
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
3308
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
3309
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
3310
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
3311
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
3312
|
-
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
3313
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
3314
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
3315
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
3316
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
3317
|
-
TAccountFeeRecipientAtaA extends string ? WritableAccount<TAccountFeeRecipientAtaA> : TAccountFeeRecipientAtaA,
|
|
3318
|
-
TAccountFeeRecipientAtaB extends string ? WritableAccount<TAccountFeeRecipientAtaB> : TAccountFeeRecipientAtaB,
|
|
3319
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
3320
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
3321
|
-
TAccountWhirlpoolProgram extends string ? ReadonlyAccount<TAccountWhirlpoolProgram> : TAccountWhirlpoolProgram,
|
|
3322
|
-
TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool,
|
|
3323
|
-
TAccountOrcaPosition extends string ? WritableAccount<TAccountOrcaPosition> : TAccountOrcaPosition,
|
|
3324
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
3325
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
3326
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3327
|
-
...TRemainingAccounts
|
|
3328
|
-
]>;
|
|
3329
|
-
type IncreaseTunaLpPositionOrcaInstructionData = {
|
|
3330
|
-
discriminator: ReadonlyUint8Array;
|
|
3331
|
-
collateralA: bigint;
|
|
3332
|
-
collateralB: bigint;
|
|
3333
|
-
borrowA: bigint;
|
|
3334
|
-
borrowB: bigint;
|
|
3335
|
-
minAddedAmountA: bigint;
|
|
3336
|
-
minAddedAmountB: bigint;
|
|
3337
|
-
maxSwapSlippage: number;
|
|
3338
|
-
remainingAccountsInfo: RemainingAccountsInfo;
|
|
3339
|
-
};
|
|
3340
|
-
type IncreaseTunaLpPositionOrcaInstructionDataArgs = {
|
|
3341
|
-
collateralA: number | bigint;
|
|
3342
|
-
collateralB: number | bigint;
|
|
3343
|
-
borrowA: number | bigint;
|
|
3344
|
-
borrowB: number | bigint;
|
|
3345
|
-
minAddedAmountA: number | bigint;
|
|
3346
|
-
minAddedAmountB: number | bigint;
|
|
3347
|
-
maxSwapSlippage: number;
|
|
3348
|
-
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
3349
|
-
};
|
|
3350
|
-
declare function getIncreaseTunaLpPositionOrcaInstructionDataEncoder(): Encoder<IncreaseTunaLpPositionOrcaInstructionDataArgs>;
|
|
3351
|
-
declare function getIncreaseTunaLpPositionOrcaInstructionDataDecoder(): Decoder<IncreaseTunaLpPositionOrcaInstructionData>;
|
|
3352
|
-
declare function getIncreaseTunaLpPositionOrcaInstructionDataCodec(): Codec<IncreaseTunaLpPositionOrcaInstructionDataArgs, IncreaseTunaLpPositionOrcaInstructionData>;
|
|
3353
|
-
type IncreaseTunaLpPositionOrcaInput<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, TAccountTunaPositionOwnerAtaA extends string = string, TAccountTunaPositionOwnerAtaB 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> = {
|
|
3354
|
-
/**
|
|
3355
|
-
*
|
|
3356
|
-
* TUNA accounts
|
|
3357
|
-
*
|
|
3358
|
-
*/
|
|
3359
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
3360
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
3361
|
-
mintA: Address<TAccountMintA>;
|
|
3362
|
-
mintB: Address<TAccountMintB>;
|
|
3363
|
-
market: Address<TAccountMarket>;
|
|
3364
|
-
vaultA: Address<TAccountVaultA>;
|
|
3365
|
-
vaultB: Address<TAccountVaultB>;
|
|
3366
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
3367
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
3368
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
3369
|
-
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
3370
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
3371
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
3372
|
-
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
3373
|
-
tunaPositionOwnerAtaB: Address<TAccountTunaPositionOwnerAtaB>;
|
|
3374
|
-
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
3375
|
-
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
3376
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
3377
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
3378
|
-
/**
|
|
3379
|
-
*
|
|
3380
|
-
* ORCA accounts
|
|
3381
|
-
*
|
|
3382
|
-
*/
|
|
3383
|
-
whirlpoolProgram: Address<TAccountWhirlpoolProgram>;
|
|
3384
|
-
whirlpool: Address<TAccountWhirlpool>;
|
|
3385
|
-
orcaPosition: Address<TAccountOrcaPosition>;
|
|
3386
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
3387
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
3388
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
3389
|
-
collateralA: IncreaseTunaLpPositionOrcaInstructionDataArgs['collateralA'];
|
|
3390
|
-
collateralB: IncreaseTunaLpPositionOrcaInstructionDataArgs['collateralB'];
|
|
3391
|
-
borrowA: IncreaseTunaLpPositionOrcaInstructionDataArgs['borrowA'];
|
|
3392
|
-
borrowB: IncreaseTunaLpPositionOrcaInstructionDataArgs['borrowB'];
|
|
3393
|
-
minAddedAmountA: IncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountA'];
|
|
3394
|
-
minAddedAmountB: IncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountB'];
|
|
3395
|
-
maxSwapSlippage: IncreaseTunaLpPositionOrcaInstructionDataArgs['maxSwapSlippage'];
|
|
3396
|
-
remainingAccountsInfo: IncreaseTunaLpPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
3397
|
-
};
|
|
3398
|
-
declare function getIncreaseTunaLpPositionOrcaInstruction<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, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB 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: IncreaseTunaLpPositionOrcaInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountOrcaPosition, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMemoProgram>, config?: {
|
|
3399
|
-
programAddress?: TProgramAddress;
|
|
3400
|
-
}): IncreaseTunaLpPositionOrcaInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountOrcaPosition, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMemoProgram>;
|
|
3401
|
-
type ParsedIncreaseTunaLpPositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
3402
|
-
programAddress: Address<TProgram>;
|
|
3403
|
-
accounts: {
|
|
3404
|
-
/**
|
|
3405
|
-
*
|
|
3406
|
-
* TUNA accounts
|
|
3407
|
-
*
|
|
3408
|
-
*/
|
|
2433
|
+
accounts: {
|
|
3409
2434
|
authority: TAccountMetas[0];
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
tunaPosition: TAccountMetas[9];
|
|
3419
|
-
tunaPositionAta: TAccountMetas[10];
|
|
3420
|
-
tunaPositionAtaA: TAccountMetas[11];
|
|
3421
|
-
tunaPositionAtaB: TAccountMetas[12];
|
|
3422
|
-
tunaPositionOwnerAtaA: TAccountMetas[13];
|
|
3423
|
-
tunaPositionOwnerAtaB: TAccountMetas[14];
|
|
3424
|
-
feeRecipientAtaA: TAccountMetas[15];
|
|
3425
|
-
feeRecipientAtaB: TAccountMetas[16];
|
|
3426
|
-
pythOraclePriceFeedA: TAccountMetas[17];
|
|
3427
|
-
pythOraclePriceFeedB: TAccountMetas[18];
|
|
3428
|
-
/**
|
|
3429
|
-
*
|
|
3430
|
-
* ORCA accounts
|
|
3431
|
-
*
|
|
3432
|
-
*/
|
|
3433
|
-
whirlpoolProgram: TAccountMetas[19];
|
|
3434
|
-
whirlpool: TAccountMetas[20];
|
|
3435
|
-
orcaPosition: TAccountMetas[21];
|
|
3436
|
-
tokenProgramA: TAccountMetas[22];
|
|
3437
|
-
tokenProgramB: TAccountMetas[23];
|
|
3438
|
-
memoProgram: TAccountMetas[24];
|
|
2435
|
+
mint: TAccountMetas[1];
|
|
2436
|
+
tunaConfig: TAccountMetas[2];
|
|
2437
|
+
lendingPosition: TAccountMetas[3];
|
|
2438
|
+
vault: TAccountMetas[4];
|
|
2439
|
+
vaultAta: TAccountMetas[5];
|
|
2440
|
+
authorityAta: TAccountMetas[6];
|
|
2441
|
+
tokenProgram: TAccountMetas[7];
|
|
2442
|
+
memoProgram: TAccountMetas[8];
|
|
3439
2443
|
};
|
|
3440
|
-
data:
|
|
2444
|
+
data: DepositInstructionData;
|
|
3441
2445
|
};
|
|
3442
|
-
declare function
|
|
2446
|
+
declare function parseDepositInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedDepositInstruction<TProgram, TAccountMetas>;
|
|
3443
2447
|
|
|
3444
2448
|
/**
|
|
3445
2449
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -3449,9 +2453,9 @@ declare function parseIncreaseTunaLpPositionOrcaInstruction<TProgram extends str
|
|
|
3449
2453
|
* @see https://github.com/codama-idl/codama
|
|
3450
2454
|
*/
|
|
3451
2455
|
|
|
3452
|
-
declare const
|
|
3453
|
-
declare function
|
|
3454
|
-
type
|
|
2456
|
+
declare const INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2457
|
+
declare function getIncreaseTunaLpPositionFusionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2458
|
+
type IncreaseTunaLpPositionFusionInstruction<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, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaB 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<[
|
|
3455
2459
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3456
2460
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
3457
2461
|
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
@@ -3464,6 +2468,7 @@ type IncreaseTunaSpotPositionFusionInstruction<TProgram extends string = typeof
|
|
|
3464
2468
|
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
3465
2469
|
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
3466
2470
|
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
2471
|
+
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
3467
2472
|
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
3468
2473
|
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
3469
2474
|
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
@@ -3474,27 +2479,35 @@ type IncreaseTunaSpotPositionFusionInstruction<TProgram extends string = typeof
|
|
|
3474
2479
|
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
3475
2480
|
TAccountFusionammProgram extends string ? ReadonlyAccount<TAccountFusionammProgram> : TAccountFusionammProgram,
|
|
3476
2481
|
TAccountFusionPool extends string ? WritableAccount<TAccountFusionPool> : TAccountFusionPool,
|
|
2482
|
+
TAccountFusionPosition extends string ? WritableAccount<TAccountFusionPosition> : TAccountFusionPosition,
|
|
3477
2483
|
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3478
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3479
2484
|
...TRemainingAccounts
|
|
3480
2485
|
]>;
|
|
3481
|
-
type
|
|
2486
|
+
type IncreaseTunaLpPositionFusionInstructionData = {
|
|
3482
2487
|
discriminator: ReadonlyUint8Array;
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
2488
|
+
collateralA: bigint;
|
|
2489
|
+
collateralB: bigint;
|
|
2490
|
+
borrowA: bigint;
|
|
2491
|
+
borrowB: bigint;
|
|
2492
|
+
minAddedAmountA: bigint;
|
|
2493
|
+
minAddedAmountB: bigint;
|
|
2494
|
+
maxSwapSlippage: number;
|
|
3486
2495
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
3487
2496
|
};
|
|
3488
|
-
type
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
2497
|
+
type IncreaseTunaLpPositionFusionInstructionDataArgs = {
|
|
2498
|
+
collateralA: number | bigint;
|
|
2499
|
+
collateralB: number | bigint;
|
|
2500
|
+
borrowA: number | bigint;
|
|
2501
|
+
borrowB: number | bigint;
|
|
2502
|
+
minAddedAmountA: number | bigint;
|
|
2503
|
+
minAddedAmountB: number | bigint;
|
|
2504
|
+
maxSwapSlippage: number;
|
|
3492
2505
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
3493
2506
|
};
|
|
3494
|
-
declare function
|
|
3495
|
-
declare function
|
|
3496
|
-
declare function
|
|
3497
|
-
type
|
|
2507
|
+
declare function getIncreaseTunaLpPositionFusionInstructionDataEncoder(): Encoder<IncreaseTunaLpPositionFusionInstructionDataArgs>;
|
|
2508
|
+
declare function getIncreaseTunaLpPositionFusionInstructionDataDecoder(): Decoder<IncreaseTunaLpPositionFusionInstructionData>;
|
|
2509
|
+
declare function getIncreaseTunaLpPositionFusionInstructionDataCodec(): Codec<IncreaseTunaLpPositionFusionInstructionDataArgs, IncreaseTunaLpPositionFusionInstructionData>;
|
|
2510
|
+
type IncreaseTunaLpPositionFusionInput<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, TAccountTunaPositionOwnerAtaA extends string = string, TAccountTunaPositionOwnerAtaB 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> = {
|
|
3498
2511
|
/**
|
|
3499
2512
|
*
|
|
3500
2513
|
* TUNA accounts
|
|
@@ -3512,10 +2525,11 @@ type IncreaseTunaSpotPositionFusionInput<TAccountAuthority extends string = stri
|
|
|
3512
2525
|
vaultAAta: Address<TAccountVaultAAta>;
|
|
3513
2526
|
vaultBAta: Address<TAccountVaultBAta>;
|
|
3514
2527
|
tunaPosition: Address<TAccountTunaPosition>;
|
|
2528
|
+
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
3515
2529
|
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
3516
2530
|
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
3517
|
-
tunaPositionOwnerAtaA
|
|
3518
|
-
tunaPositionOwnerAtaB
|
|
2531
|
+
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
2532
|
+
tunaPositionOwnerAtaB: Address<TAccountTunaPositionOwnerAtaB>;
|
|
3519
2533
|
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
3520
2534
|
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
3521
2535
|
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
@@ -3527,173 +2541,21 @@ type IncreaseTunaSpotPositionFusionInput<TAccountAuthority extends string = stri
|
|
|
3527
2541
|
*/
|
|
3528
2542
|
fusionammProgram: Address<TAccountFusionammProgram>;
|
|
3529
2543
|
fusionPool: Address<TAccountFusionPool>;
|
|
2544
|
+
fusionPosition: Address<TAccountFusionPosition>;
|
|
3530
2545
|
memoProgram: Address<TAccountMemoProgram>;
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
minSwapAmountOut: IncreaseTunaSpotPositionFusionInstructionDataArgs['minSwapAmountOut'];
|
|
3540
|
-
remainingAccountsInfo: IncreaseTunaSpotPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
3541
|
-
};
|
|
3542
|
-
declare function getIncreaseTunaSpotPositionFusionInstruction<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, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB extends string, TAccountFeeRecipientAtaA extends string, TAccountFeeRecipientAtaB extends string, TAccountPythOraclePriceFeedA extends string, TAccountPythOraclePriceFeedB extends string, TAccountFusionammProgram extends string, TAccountFusionPool extends string, TAccountMemoProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: IncreaseTunaSpotPositionFusionInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountMemoProgram, TAccountSystemProgram>, config?: {
|
|
3543
|
-
programAddress?: TProgramAddress;
|
|
3544
|
-
}): IncreaseTunaSpotPositionFusionInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountMemoProgram, TAccountSystemProgram>;
|
|
3545
|
-
type ParsedIncreaseTunaSpotPositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
3546
|
-
programAddress: Address<TProgram>;
|
|
3547
|
-
accounts: {
|
|
3548
|
-
/**
|
|
3549
|
-
*
|
|
3550
|
-
* TUNA accounts
|
|
3551
|
-
*
|
|
3552
|
-
*/
|
|
3553
|
-
authority: TAccountMetas[0];
|
|
3554
|
-
tunaConfig: TAccountMetas[1];
|
|
3555
|
-
mintA: TAccountMetas[2];
|
|
3556
|
-
mintB: TAccountMetas[3];
|
|
3557
|
-
tokenProgramA: TAccountMetas[4];
|
|
3558
|
-
tokenProgramB: TAccountMetas[5];
|
|
3559
|
-
market: TAccountMetas[6];
|
|
3560
|
-
vaultA: TAccountMetas[7];
|
|
3561
|
-
vaultB: TAccountMetas[8];
|
|
3562
|
-
vaultAAta: TAccountMetas[9];
|
|
3563
|
-
vaultBAta: TAccountMetas[10];
|
|
3564
|
-
tunaPosition: TAccountMetas[11];
|
|
3565
|
-
tunaPositionAtaA: TAccountMetas[12];
|
|
3566
|
-
tunaPositionAtaB: TAccountMetas[13];
|
|
3567
|
-
tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined;
|
|
3568
|
-
tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined;
|
|
3569
|
-
feeRecipientAtaA: TAccountMetas[16];
|
|
3570
|
-
feeRecipientAtaB: TAccountMetas[17];
|
|
3571
|
-
pythOraclePriceFeedA: TAccountMetas[18];
|
|
3572
|
-
pythOraclePriceFeedB: TAccountMetas[19];
|
|
3573
|
-
/**
|
|
3574
|
-
*
|
|
3575
|
-
* Fusion accounts
|
|
3576
|
-
*
|
|
3577
|
-
*/
|
|
3578
|
-
fusionammProgram: TAccountMetas[20];
|
|
3579
|
-
fusionPool: TAccountMetas[21];
|
|
3580
|
-
memoProgram: TAccountMetas[22];
|
|
3581
|
-
/**
|
|
3582
|
-
*
|
|
3583
|
-
* Other accounts
|
|
3584
|
-
*
|
|
3585
|
-
*/
|
|
3586
|
-
systemProgram: TAccountMetas[23];
|
|
3587
|
-
};
|
|
3588
|
-
data: IncreaseTunaSpotPositionFusionInstructionData;
|
|
3589
|
-
};
|
|
3590
|
-
declare function parseIncreaseTunaSpotPositionFusionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedIncreaseTunaSpotPositionFusionInstruction<TProgram, TAccountMetas>;
|
|
3591
|
-
|
|
3592
|
-
/**
|
|
3593
|
-
* This code was AUTOGENERATED using the codama library.
|
|
3594
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3595
|
-
* to add features, then rerun codama to update it.
|
|
3596
|
-
*
|
|
3597
|
-
* @see https://github.com/codama-idl/codama
|
|
3598
|
-
*/
|
|
3599
|
-
|
|
3600
|
-
declare const INCREASE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3601
|
-
declare function getIncreaseTunaSpotPositionJupiterDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3602
|
-
type IncreaseTunaSpotPositionJupiterInstruction<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, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaB 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, TAccountPool extends string | IAccountMeta<string> = string, TAccountJupiterProgram extends string | IAccountMeta<string> = string, TAccountJupiterEventAuthority extends string | IAccountMeta<string> = string, TAccountJupiterProgramAuthority extends string | IAccountMeta<string> = string, TAccountTokenProgram extends string | IAccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountMemoProgram extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
3603
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3604
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
3605
|
-
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
3606
|
-
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
3607
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
3608
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
3609
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3610
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
3611
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
3612
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
3613
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
3614
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
3615
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
3616
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
3617
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
3618
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
3619
|
-
TAccountFeeRecipientAtaA extends string ? WritableAccount<TAccountFeeRecipientAtaA> : TAccountFeeRecipientAtaA,
|
|
3620
|
-
TAccountFeeRecipientAtaB extends string ? WritableAccount<TAccountFeeRecipientAtaB> : TAccountFeeRecipientAtaB,
|
|
3621
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
3622
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
3623
|
-
TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
|
|
3624
|
-
TAccountJupiterProgram extends string ? ReadonlyAccount<TAccountJupiterProgram> : TAccountJupiterProgram,
|
|
3625
|
-
TAccountJupiterEventAuthority extends string ? ReadonlyAccount<TAccountJupiterEventAuthority> : TAccountJupiterEventAuthority,
|
|
3626
|
-
TAccountJupiterProgramAuthority extends string ? ReadonlyAccount<TAccountJupiterProgramAuthority> : TAccountJupiterProgramAuthority,
|
|
3627
|
-
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3628
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3629
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3630
|
-
...TRemainingAccounts
|
|
3631
|
-
]>;
|
|
3632
|
-
type IncreaseTunaSpotPositionJupiterInstructionData = {
|
|
3633
|
-
discriminator: ReadonlyUint8Array;
|
|
3634
|
-
collateralAmount: bigint;
|
|
3635
|
-
borrowAmount: bigint;
|
|
3636
|
-
routeData: ReadonlyUint8Array;
|
|
3637
|
-
};
|
|
3638
|
-
type IncreaseTunaSpotPositionJupiterInstructionDataArgs = {
|
|
3639
|
-
collateralAmount: number | bigint;
|
|
3640
|
-
borrowAmount: number | bigint;
|
|
3641
|
-
routeData: ReadonlyUint8Array;
|
|
3642
|
-
};
|
|
3643
|
-
declare function getIncreaseTunaSpotPositionJupiterInstructionDataEncoder(): Encoder<IncreaseTunaSpotPositionJupiterInstructionDataArgs>;
|
|
3644
|
-
declare function getIncreaseTunaSpotPositionJupiterInstructionDataDecoder(): Decoder<IncreaseTunaSpotPositionJupiterInstructionData>;
|
|
3645
|
-
declare function getIncreaseTunaSpotPositionJupiterInstructionDataCodec(): Codec<IncreaseTunaSpotPositionJupiterInstructionDataArgs, IncreaseTunaSpotPositionJupiterInstructionData>;
|
|
3646
|
-
type IncreaseTunaSpotPositionJupiterInput<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, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountTunaPositionOwnerAtaA extends string = string, TAccountTunaPositionOwnerAtaB extends string = string, TAccountFeeRecipientAtaA extends string = string, TAccountFeeRecipientAtaB extends string = string, TAccountPythOraclePriceFeedA extends string = string, TAccountPythOraclePriceFeedB extends string = string, TAccountPool extends string = string, TAccountJupiterProgram extends string = string, TAccountJupiterEventAuthority extends string = string, TAccountJupiterProgramAuthority extends string = string, TAccountTokenProgram extends string = string, TAccountMemoProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
3647
|
-
/**
|
|
3648
|
-
*
|
|
3649
|
-
* TUNA accounts
|
|
3650
|
-
*
|
|
3651
|
-
*/
|
|
3652
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
3653
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
3654
|
-
mintA: Address<TAccountMintA>;
|
|
3655
|
-
mintB: Address<TAccountMintB>;
|
|
3656
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
3657
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
3658
|
-
market: Address<TAccountMarket>;
|
|
3659
|
-
vaultA: Address<TAccountVaultA>;
|
|
3660
|
-
vaultB: Address<TAccountVaultB>;
|
|
3661
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
3662
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
3663
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
3664
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
3665
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
3666
|
-
tunaPositionOwnerAtaA?: Address<TAccountTunaPositionOwnerAtaA>;
|
|
3667
|
-
tunaPositionOwnerAtaB?: Address<TAccountTunaPositionOwnerAtaB>;
|
|
3668
|
-
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
3669
|
-
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
3670
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
3671
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
3672
|
-
pool: Address<TAccountPool>;
|
|
3673
|
-
/**
|
|
3674
|
-
*
|
|
3675
|
-
* Jupiter accounts
|
|
3676
|
-
*
|
|
3677
|
-
*/
|
|
3678
|
-
jupiterProgram: Address<TAccountJupiterProgram>;
|
|
3679
|
-
jupiterEventAuthority: Address<TAccountJupiterEventAuthority>;
|
|
3680
|
-
jupiterProgramAuthority: Address<TAccountJupiterProgramAuthority>;
|
|
3681
|
-
/**
|
|
3682
|
-
*
|
|
3683
|
-
* Other accounts
|
|
3684
|
-
*
|
|
3685
|
-
*/
|
|
3686
|
-
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3687
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
3688
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
3689
|
-
collateralAmount: IncreaseTunaSpotPositionJupiterInstructionDataArgs['collateralAmount'];
|
|
3690
|
-
borrowAmount: IncreaseTunaSpotPositionJupiterInstructionDataArgs['borrowAmount'];
|
|
3691
|
-
routeData: IncreaseTunaSpotPositionJupiterInstructionDataArgs['routeData'];
|
|
2546
|
+
collateralA: IncreaseTunaLpPositionFusionInstructionDataArgs['collateralA'];
|
|
2547
|
+
collateralB: IncreaseTunaLpPositionFusionInstructionDataArgs['collateralB'];
|
|
2548
|
+
borrowA: IncreaseTunaLpPositionFusionInstructionDataArgs['borrowA'];
|
|
2549
|
+
borrowB: IncreaseTunaLpPositionFusionInstructionDataArgs['borrowB'];
|
|
2550
|
+
minAddedAmountA: IncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountA'];
|
|
2551
|
+
minAddedAmountB: IncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountB'];
|
|
2552
|
+
maxSwapSlippage: IncreaseTunaLpPositionFusionInstructionDataArgs['maxSwapSlippage'];
|
|
2553
|
+
remainingAccountsInfo: IncreaseTunaLpPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
3692
2554
|
};
|
|
3693
|
-
declare function
|
|
2555
|
+
declare function getIncreaseTunaLpPositionFusionInstruction<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, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB 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: IncreaseTunaLpPositionFusionInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountFusionPosition, TAccountMemoProgram>, config?: {
|
|
3694
2556
|
programAddress?: TProgramAddress;
|
|
3695
|
-
}):
|
|
3696
|
-
type
|
|
2557
|
+
}): IncreaseTunaLpPositionFusionInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountFusionPosition, TAccountMemoProgram>;
|
|
2558
|
+
type ParsedIncreaseTunaLpPositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
3697
2559
|
programAddress: Address<TProgram>;
|
|
3698
2560
|
accounts: {
|
|
3699
2561
|
/**
|
|
@@ -3713,35 +2575,28 @@ type ParsedIncreaseTunaSpotPositionJupiterInstruction<TProgram extends string =
|
|
|
3713
2575
|
vaultAAta: TAccountMetas[9];
|
|
3714
2576
|
vaultBAta: TAccountMetas[10];
|
|
3715
2577
|
tunaPosition: TAccountMetas[11];
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
/**
|
|
3726
|
-
*
|
|
3727
|
-
* Jupiter accounts
|
|
3728
|
-
*
|
|
3729
|
-
*/
|
|
3730
|
-
jupiterProgram: TAccountMetas[21];
|
|
3731
|
-
jupiterEventAuthority: TAccountMetas[22];
|
|
3732
|
-
jupiterProgramAuthority: TAccountMetas[23];
|
|
2578
|
+
tunaPositionAta: TAccountMetas[12];
|
|
2579
|
+
tunaPositionAtaA: TAccountMetas[13];
|
|
2580
|
+
tunaPositionAtaB: TAccountMetas[14];
|
|
2581
|
+
tunaPositionOwnerAtaA: TAccountMetas[15];
|
|
2582
|
+
tunaPositionOwnerAtaB: TAccountMetas[16];
|
|
2583
|
+
feeRecipientAtaA: TAccountMetas[17];
|
|
2584
|
+
feeRecipientAtaB: TAccountMetas[18];
|
|
2585
|
+
pythOraclePriceFeedA: TAccountMetas[19];
|
|
2586
|
+
pythOraclePriceFeedB: TAccountMetas[20];
|
|
3733
2587
|
/**
|
|
3734
2588
|
*
|
|
3735
|
-
*
|
|
2589
|
+
* Fusion accounts
|
|
3736
2590
|
*
|
|
3737
2591
|
*/
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
2592
|
+
fusionammProgram: TAccountMetas[21];
|
|
2593
|
+
fusionPool: TAccountMetas[22];
|
|
2594
|
+
fusionPosition: TAccountMetas[23];
|
|
2595
|
+
memoProgram: TAccountMetas[24];
|
|
3741
2596
|
};
|
|
3742
|
-
data:
|
|
2597
|
+
data: IncreaseTunaLpPositionFusionInstructionData;
|
|
3743
2598
|
};
|
|
3744
|
-
declare function
|
|
2599
|
+
declare function parseIncreaseTunaLpPositionFusionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedIncreaseTunaLpPositionFusionInstruction<TProgram, TAccountMetas>;
|
|
3745
2600
|
|
|
3746
2601
|
/**
|
|
3747
2602
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -3751,21 +2606,20 @@ declare function parseIncreaseTunaSpotPositionJupiterInstruction<TProgram extend
|
|
|
3751
2606
|
* @see https://github.com/codama-idl/codama
|
|
3752
2607
|
*/
|
|
3753
2608
|
|
|
3754
|
-
declare const
|
|
3755
|
-
declare function
|
|
3756
|
-
type
|
|
2609
|
+
declare const INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2610
|
+
declare function getIncreaseTunaLpPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2611
|
+
type IncreaseTunaLpPositionOrcaInstruction<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, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaB 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<[
|
|
3757
2612
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3758
2613
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
3759
2614
|
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
3760
2615
|
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
3761
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
3762
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
3763
2616
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3764
2617
|
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
3765
2618
|
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
3766
2619
|
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
3767
2620
|
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
3768
2621
|
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
2622
|
+
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
3769
2623
|
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
3770
2624
|
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
3771
2625
|
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
@@ -3776,27 +2630,37 @@ type IncreaseTunaSpotPositionOrcaInstruction<TProgram extends string = typeof TU
|
|
|
3776
2630
|
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
3777
2631
|
TAccountWhirlpoolProgram extends string ? ReadonlyAccount<TAccountWhirlpoolProgram> : TAccountWhirlpoolProgram,
|
|
3778
2632
|
TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool,
|
|
2633
|
+
TAccountOrcaPosition extends string ? WritableAccount<TAccountOrcaPosition> : TAccountOrcaPosition,
|
|
2634
|
+
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
2635
|
+
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
3779
2636
|
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3780
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3781
2637
|
...TRemainingAccounts
|
|
3782
2638
|
]>;
|
|
3783
|
-
type
|
|
2639
|
+
type IncreaseTunaLpPositionOrcaInstructionData = {
|
|
3784
2640
|
discriminator: ReadonlyUint8Array;
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
2641
|
+
collateralA: bigint;
|
|
2642
|
+
collateralB: bigint;
|
|
2643
|
+
borrowA: bigint;
|
|
2644
|
+
borrowB: bigint;
|
|
2645
|
+
minAddedAmountA: bigint;
|
|
2646
|
+
minAddedAmountB: bigint;
|
|
2647
|
+
maxSwapSlippage: number;
|
|
3788
2648
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
3789
2649
|
};
|
|
3790
|
-
type
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
2650
|
+
type IncreaseTunaLpPositionOrcaInstructionDataArgs = {
|
|
2651
|
+
collateralA: number | bigint;
|
|
2652
|
+
collateralB: number | bigint;
|
|
2653
|
+
borrowA: number | bigint;
|
|
2654
|
+
borrowB: number | bigint;
|
|
2655
|
+
minAddedAmountA: number | bigint;
|
|
2656
|
+
minAddedAmountB: number | bigint;
|
|
2657
|
+
maxSwapSlippage: number;
|
|
3794
2658
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
3795
2659
|
};
|
|
3796
|
-
declare function
|
|
3797
|
-
declare function
|
|
3798
|
-
declare function
|
|
3799
|
-
type
|
|
2660
|
+
declare function getIncreaseTunaLpPositionOrcaInstructionDataEncoder(): Encoder<IncreaseTunaLpPositionOrcaInstructionDataArgs>;
|
|
2661
|
+
declare function getIncreaseTunaLpPositionOrcaInstructionDataDecoder(): Decoder<IncreaseTunaLpPositionOrcaInstructionData>;
|
|
2662
|
+
declare function getIncreaseTunaLpPositionOrcaInstructionDataCodec(): Codec<IncreaseTunaLpPositionOrcaInstructionDataArgs, IncreaseTunaLpPositionOrcaInstructionData>;
|
|
2663
|
+
type IncreaseTunaLpPositionOrcaInput<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, TAccountTunaPositionOwnerAtaA extends string = string, TAccountTunaPositionOwnerAtaB 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> = {
|
|
3800
2664
|
/**
|
|
3801
2665
|
*
|
|
3802
2666
|
* TUNA accounts
|
|
@@ -3806,45 +2670,45 @@ type IncreaseTunaSpotPositionOrcaInput<TAccountAuthority extends string = string
|
|
|
3806
2670
|
tunaConfig: Address<TAccountTunaConfig>;
|
|
3807
2671
|
mintA: Address<TAccountMintA>;
|
|
3808
2672
|
mintB: Address<TAccountMintB>;
|
|
3809
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
3810
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
3811
2673
|
market: Address<TAccountMarket>;
|
|
3812
2674
|
vaultA: Address<TAccountVaultA>;
|
|
3813
2675
|
vaultB: Address<TAccountVaultB>;
|
|
3814
2676
|
vaultAAta: Address<TAccountVaultAAta>;
|
|
3815
2677
|
vaultBAta: Address<TAccountVaultBAta>;
|
|
3816
2678
|
tunaPosition: Address<TAccountTunaPosition>;
|
|
2679
|
+
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
3817
2680
|
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
3818
2681
|
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
3819
|
-
tunaPositionOwnerAtaA
|
|
3820
|
-
tunaPositionOwnerAtaB
|
|
2682
|
+
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
2683
|
+
tunaPositionOwnerAtaB: Address<TAccountTunaPositionOwnerAtaB>;
|
|
3821
2684
|
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
3822
2685
|
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
3823
2686
|
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
3824
2687
|
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
3825
2688
|
/**
|
|
3826
2689
|
*
|
|
3827
|
-
*
|
|
2690
|
+
* ORCA accounts
|
|
3828
2691
|
*
|
|
3829
2692
|
*/
|
|
3830
2693
|
whirlpoolProgram: Address<TAccountWhirlpoolProgram>;
|
|
3831
2694
|
whirlpool: Address<TAccountWhirlpool>;
|
|
2695
|
+
orcaPosition: Address<TAccountOrcaPosition>;
|
|
2696
|
+
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
2697
|
+
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
3832
2698
|
memoProgram: Address<TAccountMemoProgram>;
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
minSwapAmountOut: IncreaseTunaSpotPositionOrcaInstructionDataArgs['minSwapAmountOut'];
|
|
3842
|
-
remainingAccountsInfo: IncreaseTunaSpotPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
2699
|
+
collateralA: IncreaseTunaLpPositionOrcaInstructionDataArgs['collateralA'];
|
|
2700
|
+
collateralB: IncreaseTunaLpPositionOrcaInstructionDataArgs['collateralB'];
|
|
2701
|
+
borrowA: IncreaseTunaLpPositionOrcaInstructionDataArgs['borrowA'];
|
|
2702
|
+
borrowB: IncreaseTunaLpPositionOrcaInstructionDataArgs['borrowB'];
|
|
2703
|
+
minAddedAmountA: IncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountA'];
|
|
2704
|
+
minAddedAmountB: IncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountB'];
|
|
2705
|
+
maxSwapSlippage: IncreaseTunaLpPositionOrcaInstructionDataArgs['maxSwapSlippage'];
|
|
2706
|
+
remainingAccountsInfo: IncreaseTunaLpPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
3843
2707
|
};
|
|
3844
|
-
declare function
|
|
2708
|
+
declare function getIncreaseTunaLpPositionOrcaInstruction<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, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB 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: IncreaseTunaLpPositionOrcaInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountOrcaPosition, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMemoProgram>, config?: {
|
|
3845
2709
|
programAddress?: TProgramAddress;
|
|
3846
|
-
}):
|
|
3847
|
-
type
|
|
2710
|
+
}): IncreaseTunaLpPositionOrcaInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountOrcaPosition, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMemoProgram>;
|
|
2711
|
+
type ParsedIncreaseTunaLpPositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
3848
2712
|
programAddress: Address<TProgram>;
|
|
3849
2713
|
accounts: {
|
|
3850
2714
|
/**
|
|
@@ -3856,40 +2720,36 @@ type ParsedIncreaseTunaSpotPositionOrcaInstruction<TProgram extends string = typ
|
|
|
3856
2720
|
tunaConfig: TAccountMetas[1];
|
|
3857
2721
|
mintA: TAccountMetas[2];
|
|
3858
2722
|
mintB: TAccountMetas[3];
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
pythOraclePriceFeedB: TAccountMetas[19];
|
|
3875
|
-
/**
|
|
3876
|
-
*
|
|
3877
|
-
* Orca accounts
|
|
3878
|
-
*
|
|
3879
|
-
*/
|
|
3880
|
-
whirlpoolProgram: TAccountMetas[20];
|
|
3881
|
-
whirlpool: TAccountMetas[21];
|
|
3882
|
-
memoProgram: TAccountMetas[22];
|
|
2723
|
+
market: TAccountMetas[4];
|
|
2724
|
+
vaultA: TAccountMetas[5];
|
|
2725
|
+
vaultB: TAccountMetas[6];
|
|
2726
|
+
vaultAAta: TAccountMetas[7];
|
|
2727
|
+
vaultBAta: TAccountMetas[8];
|
|
2728
|
+
tunaPosition: TAccountMetas[9];
|
|
2729
|
+
tunaPositionAta: TAccountMetas[10];
|
|
2730
|
+
tunaPositionAtaA: TAccountMetas[11];
|
|
2731
|
+
tunaPositionAtaB: TAccountMetas[12];
|
|
2732
|
+
tunaPositionOwnerAtaA: TAccountMetas[13];
|
|
2733
|
+
tunaPositionOwnerAtaB: TAccountMetas[14];
|
|
2734
|
+
feeRecipientAtaA: TAccountMetas[15];
|
|
2735
|
+
feeRecipientAtaB: TAccountMetas[16];
|
|
2736
|
+
pythOraclePriceFeedA: TAccountMetas[17];
|
|
2737
|
+
pythOraclePriceFeedB: TAccountMetas[18];
|
|
3883
2738
|
/**
|
|
3884
2739
|
*
|
|
3885
|
-
*
|
|
2740
|
+
* ORCA accounts
|
|
3886
2741
|
*
|
|
3887
2742
|
*/
|
|
3888
|
-
|
|
2743
|
+
whirlpoolProgram: TAccountMetas[19];
|
|
2744
|
+
whirlpool: TAccountMetas[20];
|
|
2745
|
+
orcaPosition: TAccountMetas[21];
|
|
2746
|
+
tokenProgramA: TAccountMetas[22];
|
|
2747
|
+
tokenProgramB: TAccountMetas[23];
|
|
2748
|
+
memoProgram: TAccountMetas[24];
|
|
3889
2749
|
};
|
|
3890
|
-
data:
|
|
2750
|
+
data: IncreaseTunaLpPositionOrcaInstructionData;
|
|
3891
2751
|
};
|
|
3892
|
-
declare function
|
|
2752
|
+
declare function parseIncreaseTunaLpPositionOrcaInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedIncreaseTunaLpPositionOrcaInstruction<TProgram, TAccountMetas>;
|
|
3893
2753
|
|
|
3894
2754
|
/**
|
|
3895
2755
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -3929,11 +2789,11 @@ type LiquidateTunaLpPositionFusionInstruction<TProgram extends string = typeof T
|
|
|
3929
2789
|
]>;
|
|
3930
2790
|
type LiquidateTunaLpPositionFusionInstructionData = {
|
|
3931
2791
|
discriminator: ReadonlyUint8Array;
|
|
3932
|
-
|
|
2792
|
+
decreasePercent: number;
|
|
3933
2793
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
3934
2794
|
};
|
|
3935
2795
|
type LiquidateTunaLpPositionFusionInstructionDataArgs = {
|
|
3936
|
-
|
|
2796
|
+
decreasePercent: number;
|
|
3937
2797
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
3938
2798
|
};
|
|
3939
2799
|
declare function getLiquidateTunaLpPositionFusionInstructionDataEncoder(): Encoder<LiquidateTunaLpPositionFusionInstructionDataArgs>;
|
|
@@ -3973,7 +2833,7 @@ type LiquidateTunaLpPositionFusionInput<TAccountAuthority extends string = strin
|
|
|
3973
2833
|
fusionPool: Address<TAccountFusionPool>;
|
|
3974
2834
|
fusionPosition: Address<TAccountFusionPosition>;
|
|
3975
2835
|
memoProgram: Address<TAccountMemoProgram>;
|
|
3976
|
-
|
|
2836
|
+
decreasePercent: LiquidateTunaLpPositionFusionInstructionDataArgs['decreasePercent'];
|
|
3977
2837
|
remainingAccountsInfo: LiquidateTunaLpPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
3978
2838
|
};
|
|
3979
2839
|
declare function getLiquidateTunaLpPositionFusionInstruction<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: LiquidateTunaLpPositionFusionInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountFusionPosition, TAccountMemoProgram>, config?: {
|
|
@@ -4058,11 +2918,11 @@ type LiquidateTunaLpPositionOrcaInstruction<TProgram extends string = typeof TUN
|
|
|
4058
2918
|
]>;
|
|
4059
2919
|
type LiquidateTunaLpPositionOrcaInstructionData = {
|
|
4060
2920
|
discriminator: ReadonlyUint8Array;
|
|
4061
|
-
|
|
2921
|
+
decreasePercent: number;
|
|
4062
2922
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
4063
2923
|
};
|
|
4064
2924
|
type LiquidateTunaLpPositionOrcaInstructionDataArgs = {
|
|
4065
|
-
|
|
2925
|
+
decreasePercent: number;
|
|
4066
2926
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
4067
2927
|
};
|
|
4068
2928
|
declare function getLiquidateTunaLpPositionOrcaInstructionDataEncoder(): Encoder<LiquidateTunaLpPositionOrcaInstructionDataArgs>;
|
|
@@ -4102,7 +2962,7 @@ type LiquidateTunaLpPositionOrcaInput<TAccountAuthority extends string = string,
|
|
|
4102
2962
|
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
4103
2963
|
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
4104
2964
|
memoProgram: Address<TAccountMemoProgram>;
|
|
4105
|
-
|
|
2965
|
+
decreasePercent: LiquidateTunaLpPositionOrcaInstructionDataArgs['decreasePercent'];
|
|
4106
2966
|
remainingAccountsInfo: LiquidateTunaLpPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
4107
2967
|
};
|
|
4108
2968
|
declare function getLiquidateTunaLpPositionOrcaInstruction<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: LiquidateTunaLpPositionOrcaInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountOrcaPosition, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMemoProgram>, config?: {
|
|
@@ -4189,11 +3049,11 @@ type LiquidateTunaSpotPositionFusionInstruction<TProgram extends string = typeof
|
|
|
4189
3049
|
]>;
|
|
4190
3050
|
type LiquidateTunaSpotPositionFusionInstructionData = {
|
|
4191
3051
|
discriminator: ReadonlyUint8Array;
|
|
4192
|
-
|
|
3052
|
+
decreasePercent: number;
|
|
4193
3053
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
4194
3054
|
};
|
|
4195
3055
|
type LiquidateTunaSpotPositionFusionInstructionDataArgs = {
|
|
4196
|
-
|
|
3056
|
+
decreasePercent: number;
|
|
4197
3057
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
4198
3058
|
};
|
|
4199
3059
|
declare function getLiquidateTunaSpotPositionFusionInstructionDataEncoder(): Encoder<LiquidateTunaSpotPositionFusionInstructionDataArgs>;
|
|
@@ -4240,7 +3100,7 @@ type LiquidateTunaSpotPositionFusionInput<TAccountAuthority extends string = str
|
|
|
4240
3100
|
*
|
|
4241
3101
|
*/
|
|
4242
3102
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4243
|
-
|
|
3103
|
+
decreasePercent: LiquidateTunaSpotPositionFusionInstructionDataArgs['decreasePercent'];
|
|
4244
3104
|
remainingAccountsInfo: LiquidateTunaSpotPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
4245
3105
|
};
|
|
4246
3106
|
declare function getLiquidateTunaSpotPositionFusionInstruction<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, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountFeeRecipientAtaA extends string, TAccountFeeRecipientAtaB extends string, TAccountTunaPositionOwner extends string, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB extends string, TAccountPythOraclePriceFeedA extends string, TAccountPythOraclePriceFeedB extends string, TAccountFusionammProgram extends string, TAccountFusionPool extends string, TAccountMemoProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: LiquidateTunaSpotPositionFusionInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountTunaPositionOwner, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountMemoProgram, TAccountSystemProgram>, config?: {
|
|
@@ -4334,11 +3194,11 @@ type LiquidateTunaSpotPositionOrcaInstruction<TProgram extends string = typeof T
|
|
|
4334
3194
|
]>;
|
|
4335
3195
|
type LiquidateTunaSpotPositionOrcaInstructionData = {
|
|
4336
3196
|
discriminator: ReadonlyUint8Array;
|
|
4337
|
-
|
|
3197
|
+
decreasePercent: number;
|
|
4338
3198
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
4339
3199
|
};
|
|
4340
3200
|
type LiquidateTunaSpotPositionOrcaInstructionDataArgs = {
|
|
4341
|
-
|
|
3201
|
+
decreasePercent: number;
|
|
4342
3202
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
4343
3203
|
};
|
|
4344
3204
|
declare function getLiquidateTunaSpotPositionOrcaInstructionDataEncoder(): Encoder<LiquidateTunaSpotPositionOrcaInstructionDataArgs>;
|
|
@@ -4364,20 +3224,169 @@ type LiquidateTunaSpotPositionOrcaInput<TAccountAuthority extends string = strin
|
|
|
4364
3224
|
tunaPosition: Address<TAccountTunaPosition>;
|
|
4365
3225
|
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
4366
3226
|
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
4367
|
-
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
4368
|
-
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
4369
|
-
tunaPositionOwner: Address<TAccountTunaPositionOwner>;
|
|
3227
|
+
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
3228
|
+
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
3229
|
+
tunaPositionOwner: Address<TAccountTunaPositionOwner>;
|
|
3230
|
+
tunaPositionOwnerAtaA?: Address<TAccountTunaPositionOwnerAtaA>;
|
|
3231
|
+
tunaPositionOwnerAtaB?: Address<TAccountTunaPositionOwnerAtaB>;
|
|
3232
|
+
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
3233
|
+
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
3234
|
+
/**
|
|
3235
|
+
*
|
|
3236
|
+
* Orca accounts
|
|
3237
|
+
*
|
|
3238
|
+
*/
|
|
3239
|
+
whirlpoolProgram: Address<TAccountWhirlpoolProgram>;
|
|
3240
|
+
whirlpool: Address<TAccountWhirlpool>;
|
|
3241
|
+
memoProgram: Address<TAccountMemoProgram>;
|
|
3242
|
+
/**
|
|
3243
|
+
*
|
|
3244
|
+
* Other accounts
|
|
3245
|
+
*
|
|
3246
|
+
*/
|
|
3247
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3248
|
+
decreasePercent: LiquidateTunaSpotPositionOrcaInstructionDataArgs['decreasePercent'];
|
|
3249
|
+
remainingAccountsInfo: LiquidateTunaSpotPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
3250
|
+
};
|
|
3251
|
+
declare function getLiquidateTunaSpotPositionOrcaInstruction<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, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountFeeRecipientAtaA extends string, TAccountFeeRecipientAtaB extends string, TAccountTunaPositionOwner extends string, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB extends string, TAccountPythOraclePriceFeedA extends string, TAccountPythOraclePriceFeedB extends string, TAccountWhirlpoolProgram extends string, TAccountWhirlpool extends string, TAccountMemoProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: LiquidateTunaSpotPositionOrcaInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountTunaPositionOwner, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountMemoProgram, TAccountSystemProgram>, config?: {
|
|
3252
|
+
programAddress?: TProgramAddress;
|
|
3253
|
+
}): LiquidateTunaSpotPositionOrcaInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountTunaPositionOwner, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountMemoProgram, TAccountSystemProgram>;
|
|
3254
|
+
type ParsedLiquidateTunaSpotPositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
3255
|
+
programAddress: Address<TProgram>;
|
|
3256
|
+
accounts: {
|
|
3257
|
+
/**
|
|
3258
|
+
*
|
|
3259
|
+
* TUNA accounts
|
|
3260
|
+
*
|
|
3261
|
+
*/
|
|
3262
|
+
authority: TAccountMetas[0];
|
|
3263
|
+
tunaConfig: TAccountMetas[1];
|
|
3264
|
+
mintA: TAccountMetas[2];
|
|
3265
|
+
mintB: TAccountMetas[3];
|
|
3266
|
+
tokenProgramA: TAccountMetas[4];
|
|
3267
|
+
tokenProgramB: TAccountMetas[5];
|
|
3268
|
+
market: TAccountMetas[6];
|
|
3269
|
+
vaultA: TAccountMetas[7];
|
|
3270
|
+
vaultB: TAccountMetas[8];
|
|
3271
|
+
vaultAAta: TAccountMetas[9];
|
|
3272
|
+
vaultBAta: TAccountMetas[10];
|
|
3273
|
+
tunaPosition: TAccountMetas[11];
|
|
3274
|
+
tunaPositionAtaA: TAccountMetas[12];
|
|
3275
|
+
tunaPositionAtaB: TAccountMetas[13];
|
|
3276
|
+
feeRecipientAtaA: TAccountMetas[14];
|
|
3277
|
+
feeRecipientAtaB: TAccountMetas[15];
|
|
3278
|
+
tunaPositionOwner: TAccountMetas[16];
|
|
3279
|
+
tunaPositionOwnerAtaA?: TAccountMetas[17] | undefined;
|
|
3280
|
+
tunaPositionOwnerAtaB?: TAccountMetas[18] | undefined;
|
|
3281
|
+
pythOraclePriceFeedA: TAccountMetas[19];
|
|
3282
|
+
pythOraclePriceFeedB: TAccountMetas[20];
|
|
3283
|
+
/**
|
|
3284
|
+
*
|
|
3285
|
+
* Orca accounts
|
|
3286
|
+
*
|
|
3287
|
+
*/
|
|
3288
|
+
whirlpoolProgram: TAccountMetas[21];
|
|
3289
|
+
whirlpool: TAccountMetas[22];
|
|
3290
|
+
memoProgram: TAccountMetas[23];
|
|
3291
|
+
/**
|
|
3292
|
+
*
|
|
3293
|
+
* Other accounts
|
|
3294
|
+
*
|
|
3295
|
+
*/
|
|
3296
|
+
systemProgram: TAccountMetas[24];
|
|
3297
|
+
};
|
|
3298
|
+
data: LiquidateTunaSpotPositionOrcaInstructionData;
|
|
3299
|
+
};
|
|
3300
|
+
declare function parseLiquidateTunaSpotPositionOrcaInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedLiquidateTunaSpotPositionOrcaInstruction<TProgram, TAccountMetas>;
|
|
3301
|
+
|
|
3302
|
+
/**
|
|
3303
|
+
* This code was AUTOGENERATED using the codama library.
|
|
3304
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3305
|
+
* to add features, then rerun codama to update it.
|
|
3306
|
+
*
|
|
3307
|
+
* @see https://github.com/codama-idl/codama
|
|
3308
|
+
*/
|
|
3309
|
+
|
|
3310
|
+
declare const MODIFY_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3311
|
+
declare function getModifyTunaSpotPositionFusionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3312
|
+
type ModifyTunaSpotPositionFusionInstruction<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, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaB 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, TAccountMemoProgram extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
3313
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3314
|
+
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
3315
|
+
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
3316
|
+
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
3317
|
+
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
3318
|
+
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
3319
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3320
|
+
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
3321
|
+
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
3322
|
+
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
3323
|
+
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
3324
|
+
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
3325
|
+
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
3326
|
+
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
3327
|
+
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
3328
|
+
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
3329
|
+
TAccountFeeRecipientAtaA extends string ? WritableAccount<TAccountFeeRecipientAtaA> : TAccountFeeRecipientAtaA,
|
|
3330
|
+
TAccountFeeRecipientAtaB extends string ? WritableAccount<TAccountFeeRecipientAtaB> : TAccountFeeRecipientAtaB,
|
|
3331
|
+
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
3332
|
+
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
3333
|
+
TAccountFusionammProgram extends string ? ReadonlyAccount<TAccountFusionammProgram> : TAccountFusionammProgram,
|
|
3334
|
+
TAccountFusionPool extends string ? WritableAccount<TAccountFusionPool> : TAccountFusionPool,
|
|
3335
|
+
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3336
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3337
|
+
...TRemainingAccounts
|
|
3338
|
+
]>;
|
|
3339
|
+
type ModifyTunaSpotPositionFusionInstructionData = {
|
|
3340
|
+
discriminator: ReadonlyUint8Array;
|
|
3341
|
+
decreasePercent: number;
|
|
3342
|
+
collateralAmount: bigint;
|
|
3343
|
+
borrowAmount: bigint;
|
|
3344
|
+
requiredSwapAmount: bigint;
|
|
3345
|
+
remainingAccountsInfo: RemainingAccountsInfo;
|
|
3346
|
+
};
|
|
3347
|
+
type ModifyTunaSpotPositionFusionInstructionDataArgs = {
|
|
3348
|
+
decreasePercent: number;
|
|
3349
|
+
collateralAmount: number | bigint;
|
|
3350
|
+
borrowAmount: number | bigint;
|
|
3351
|
+
requiredSwapAmount: number | bigint;
|
|
3352
|
+
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
3353
|
+
};
|
|
3354
|
+
declare function getModifyTunaSpotPositionFusionInstructionDataEncoder(): Encoder<ModifyTunaSpotPositionFusionInstructionDataArgs>;
|
|
3355
|
+
declare function getModifyTunaSpotPositionFusionInstructionDataDecoder(): Decoder<ModifyTunaSpotPositionFusionInstructionData>;
|
|
3356
|
+
declare function getModifyTunaSpotPositionFusionInstructionDataCodec(): Codec<ModifyTunaSpotPositionFusionInstructionDataArgs, ModifyTunaSpotPositionFusionInstructionData>;
|
|
3357
|
+
type ModifyTunaSpotPositionFusionInput<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, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountTunaPositionOwnerAtaA extends string = string, TAccountTunaPositionOwnerAtaB 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, TAccountMemoProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
3358
|
+
/**
|
|
3359
|
+
*
|
|
3360
|
+
* TUNA accounts
|
|
3361
|
+
*
|
|
3362
|
+
*/
|
|
3363
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3364
|
+
tunaConfig: Address<TAccountTunaConfig>;
|
|
3365
|
+
mintA: Address<TAccountMintA>;
|
|
3366
|
+
mintB: Address<TAccountMintB>;
|
|
3367
|
+
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
3368
|
+
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
3369
|
+
market: Address<TAccountMarket>;
|
|
3370
|
+
vaultA: Address<TAccountVaultA>;
|
|
3371
|
+
vaultB: Address<TAccountVaultB>;
|
|
3372
|
+
vaultAAta: Address<TAccountVaultAAta>;
|
|
3373
|
+
vaultBAta: Address<TAccountVaultBAta>;
|
|
3374
|
+
tunaPosition: Address<TAccountTunaPosition>;
|
|
3375
|
+
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
3376
|
+
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
4370
3377
|
tunaPositionOwnerAtaA?: Address<TAccountTunaPositionOwnerAtaA>;
|
|
4371
3378
|
tunaPositionOwnerAtaB?: Address<TAccountTunaPositionOwnerAtaB>;
|
|
3379
|
+
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
3380
|
+
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
4372
3381
|
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
4373
3382
|
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
4374
3383
|
/**
|
|
4375
3384
|
*
|
|
4376
|
-
*
|
|
3385
|
+
* Fusion accounts
|
|
4377
3386
|
*
|
|
4378
3387
|
*/
|
|
4379
|
-
|
|
4380
|
-
|
|
3388
|
+
fusionammProgram: Address<TAccountFusionammProgram>;
|
|
3389
|
+
fusionPool: Address<TAccountFusionPool>;
|
|
4381
3390
|
memoProgram: Address<TAccountMemoProgram>;
|
|
4382
3391
|
/**
|
|
4383
3392
|
*
|
|
@@ -4385,13 +3394,16 @@ type LiquidateTunaSpotPositionOrcaInput<TAccountAuthority extends string = strin
|
|
|
4385
3394
|
*
|
|
4386
3395
|
*/
|
|
4387
3396
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4388
|
-
|
|
4389
|
-
|
|
3397
|
+
decreasePercent: ModifyTunaSpotPositionFusionInstructionDataArgs['decreasePercent'];
|
|
3398
|
+
collateralAmount: ModifyTunaSpotPositionFusionInstructionDataArgs['collateralAmount'];
|
|
3399
|
+
borrowAmount: ModifyTunaSpotPositionFusionInstructionDataArgs['borrowAmount'];
|
|
3400
|
+
requiredSwapAmount: ModifyTunaSpotPositionFusionInstructionDataArgs['requiredSwapAmount'];
|
|
3401
|
+
remainingAccountsInfo: ModifyTunaSpotPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
4390
3402
|
};
|
|
4391
|
-
declare function
|
|
3403
|
+
declare function getModifyTunaSpotPositionFusionInstruction<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, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB extends string, TAccountFeeRecipientAtaA extends string, TAccountFeeRecipientAtaB extends string, TAccountPythOraclePriceFeedA extends string, TAccountPythOraclePriceFeedB extends string, TAccountFusionammProgram extends string, TAccountFusionPool extends string, TAccountMemoProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: ModifyTunaSpotPositionFusionInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountMemoProgram, TAccountSystemProgram>, config?: {
|
|
4392
3404
|
programAddress?: TProgramAddress;
|
|
4393
|
-
}):
|
|
4394
|
-
type
|
|
3405
|
+
}): ModifyTunaSpotPositionFusionInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountMemoProgram, TAccountSystemProgram>;
|
|
3406
|
+
type ParsedModifyTunaSpotPositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
4395
3407
|
programAddress: Address<TProgram>;
|
|
4396
3408
|
accounts: {
|
|
4397
3409
|
/**
|
|
@@ -4413,31 +3425,30 @@ type ParsedLiquidateTunaSpotPositionOrcaInstruction<TProgram extends string = ty
|
|
|
4413
3425
|
tunaPosition: TAccountMetas[11];
|
|
4414
3426
|
tunaPositionAtaA: TAccountMetas[12];
|
|
4415
3427
|
tunaPositionAtaB: TAccountMetas[13];
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
pythOraclePriceFeedB: TAccountMetas[20];
|
|
3428
|
+
tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined;
|
|
3429
|
+
tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined;
|
|
3430
|
+
feeRecipientAtaA: TAccountMetas[16];
|
|
3431
|
+
feeRecipientAtaB: TAccountMetas[17];
|
|
3432
|
+
pythOraclePriceFeedA: TAccountMetas[18];
|
|
3433
|
+
pythOraclePriceFeedB: TAccountMetas[19];
|
|
4423
3434
|
/**
|
|
4424
3435
|
*
|
|
4425
|
-
*
|
|
3436
|
+
* Fusion accounts
|
|
4426
3437
|
*
|
|
4427
3438
|
*/
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
memoProgram: TAccountMetas[
|
|
3439
|
+
fusionammProgram: TAccountMetas[20];
|
|
3440
|
+
fusionPool: TAccountMetas[21];
|
|
3441
|
+
memoProgram: TAccountMetas[22];
|
|
4431
3442
|
/**
|
|
4432
3443
|
*
|
|
4433
3444
|
* Other accounts
|
|
4434
3445
|
*
|
|
4435
3446
|
*/
|
|
4436
|
-
systemProgram: TAccountMetas[
|
|
3447
|
+
systemProgram: TAccountMetas[23];
|
|
4437
3448
|
};
|
|
4438
|
-
data:
|
|
3449
|
+
data: ModifyTunaSpotPositionFusionInstructionData;
|
|
4439
3450
|
};
|
|
4440
|
-
declare function
|
|
3451
|
+
declare function parseModifyTunaSpotPositionFusionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedModifyTunaSpotPositionFusionInstruction<TProgram, TAccountMetas>;
|
|
4441
3452
|
|
|
4442
3453
|
/**
|
|
4443
3454
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -4447,9 +3458,9 @@ declare function parseLiquidateTunaSpotPositionOrcaInstruction<TProgram extends
|
|
|
4447
3458
|
* @see https://github.com/codama-idl/codama
|
|
4448
3459
|
*/
|
|
4449
3460
|
|
|
4450
|
-
declare const
|
|
4451
|
-
declare function
|
|
4452
|
-
type
|
|
3461
|
+
declare const MODIFY_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3462
|
+
declare function getModifyTunaSpotPositionJupiterDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3463
|
+
type ModifyTunaSpotPositionJupiterInstruction<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, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaB 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, TAccountPool extends string | IAccountMeta<string> = string, TAccountJupiterProgram extends string | IAccountMeta<string> = string, TAccountJupiterEventAuthority extends string | IAccountMeta<string> = string, TAccountJupiterProgramAuthority extends string | IAccountMeta<string> = string, TAccountTokenProgram extends string | IAccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountMemoProgram extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
4453
3464
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
4454
3465
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
4455
3466
|
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
@@ -4462,8 +3473,6 @@ type OpenAndIncreaseTunaLpPositionFusionInstruction<TProgram extends string = ty
|
|
|
4462
3473
|
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
4463
3474
|
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
4464
3475
|
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
4465
|
-
TAccountTunaPositionMint extends string ? WritableSignerAccount<TAccountTunaPositionMint> & IAccountSignerMeta<TAccountTunaPositionMint> : TAccountTunaPositionMint,
|
|
4466
|
-
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
4467
3476
|
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
4468
3477
|
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
4469
3478
|
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
@@ -4472,51 +3481,32 @@ type OpenAndIncreaseTunaLpPositionFusionInstruction<TProgram extends string = ty
|
|
|
4472
3481
|
TAccountFeeRecipientAtaB extends string ? WritableAccount<TAccountFeeRecipientAtaB> : TAccountFeeRecipientAtaB,
|
|
4473
3482
|
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
4474
3483
|
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
3484
|
+
TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
|
|
3485
|
+
TAccountJupiterProgram extends string ? ReadonlyAccount<TAccountJupiterProgram> : TAccountJupiterProgram,
|
|
3486
|
+
TAccountJupiterEventAuthority extends string ? ReadonlyAccount<TAccountJupiterEventAuthority> : TAccountJupiterEventAuthority,
|
|
3487
|
+
TAccountJupiterProgramAuthority extends string ? ReadonlyAccount<TAccountJupiterProgramAuthority> : TAccountJupiterProgramAuthority,
|
|
3488
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
4479
3489
|
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
4480
|
-
TAccountToken2022Program extends string ? ReadonlyAccount<TAccountToken2022Program> : TAccountToken2022Program,
|
|
4481
3490
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
4482
|
-
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
4483
3491
|
...TRemainingAccounts
|
|
4484
3492
|
]>;
|
|
4485
|
-
type
|
|
3493
|
+
type ModifyTunaSpotPositionJupiterInstructionData = {
|
|
4486
3494
|
discriminator: ReadonlyUint8Array;
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
flags: number;
|
|
4492
|
-
collateralA: bigint;
|
|
4493
|
-
collateralB: bigint;
|
|
4494
|
-
borrowA: bigint;
|
|
4495
|
-
borrowB: bigint;
|
|
4496
|
-
minAddedAmountA: bigint;
|
|
4497
|
-
minAddedAmountB: bigint;
|
|
4498
|
-
maxSwapSlippage: number;
|
|
4499
|
-
remainingAccountsInfo: RemainingAccountsInfo;
|
|
3495
|
+
decreasePercent: number;
|
|
3496
|
+
collateralAmount: bigint;
|
|
3497
|
+
borrowAmount: bigint;
|
|
3498
|
+
routeData: ReadonlyUint8Array;
|
|
4500
3499
|
};
|
|
4501
|
-
type
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
flags: number;
|
|
4507
|
-
collateralA: number | bigint;
|
|
4508
|
-
collateralB: number | bigint;
|
|
4509
|
-
borrowA: number | bigint;
|
|
4510
|
-
borrowB: number | bigint;
|
|
4511
|
-
minAddedAmountA: number | bigint;
|
|
4512
|
-
minAddedAmountB: number | bigint;
|
|
4513
|
-
maxSwapSlippage: number;
|
|
4514
|
-
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
3500
|
+
type ModifyTunaSpotPositionJupiterInstructionDataArgs = {
|
|
3501
|
+
decreasePercent: number;
|
|
3502
|
+
collateralAmount: number | bigint;
|
|
3503
|
+
borrowAmount: number | bigint;
|
|
3504
|
+
routeData: ReadonlyUint8Array;
|
|
4515
3505
|
};
|
|
4516
|
-
declare function
|
|
4517
|
-
declare function
|
|
4518
|
-
declare function
|
|
4519
|
-
type
|
|
3506
|
+
declare function getModifyTunaSpotPositionJupiterInstructionDataEncoder(): Encoder<ModifyTunaSpotPositionJupiterInstructionDataArgs>;
|
|
3507
|
+
declare function getModifyTunaSpotPositionJupiterInstructionDataDecoder(): Decoder<ModifyTunaSpotPositionJupiterInstructionData>;
|
|
3508
|
+
declare function getModifyTunaSpotPositionJupiterInstructionDataCodec(): Codec<ModifyTunaSpotPositionJupiterInstructionDataArgs, ModifyTunaSpotPositionJupiterInstructionData>;
|
|
3509
|
+
type ModifyTunaSpotPositionJupiterInput<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, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountTunaPositionOwnerAtaA extends string = string, TAccountTunaPositionOwnerAtaB extends string = string, TAccountFeeRecipientAtaA extends string = string, TAccountFeeRecipientAtaB extends string = string, TAccountPythOraclePriceFeedA extends string = string, TAccountPythOraclePriceFeedB extends string = string, TAccountPool extends string = string, TAccountJupiterProgram extends string = string, TAccountJupiterEventAuthority extends string = string, TAccountJupiterProgramAuthority extends string = string, TAccountTokenProgram extends string = string, TAccountMemoProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
4520
3510
|
/**
|
|
4521
3511
|
*
|
|
4522
3512
|
* TUNA accounts
|
|
@@ -4534,8 +3524,6 @@ type OpenAndIncreaseTunaLpPositionFusionInput<TAccountAuthority extends string =
|
|
|
4534
3524
|
vaultAAta: Address<TAccountVaultAAta>;
|
|
4535
3525
|
vaultBAta: Address<TAccountVaultBAta>;
|
|
4536
3526
|
tunaPosition: Address<TAccountTunaPosition>;
|
|
4537
|
-
tunaPositionMint: TransactionSigner<TAccountTunaPositionMint>;
|
|
4538
|
-
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
4539
3527
|
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
4540
3528
|
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
4541
3529
|
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
@@ -4544,42 +3532,32 @@ type OpenAndIncreaseTunaLpPositionFusionInput<TAccountAuthority extends string =
|
|
|
4544
3532
|
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
4545
3533
|
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
4546
3534
|
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
3535
|
+
pool: Address<TAccountPool>;
|
|
4547
3536
|
/**
|
|
4548
3537
|
*
|
|
4549
|
-
*
|
|
3538
|
+
* Jupiter accounts
|
|
4550
3539
|
*
|
|
4551
3540
|
*/
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
metadataUpdateAuth: Address<TAccountMetadataUpdateAuth>;
|
|
4556
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
3541
|
+
jupiterProgram: Address<TAccountJupiterProgram>;
|
|
3542
|
+
jupiterEventAuthority: Address<TAccountJupiterEventAuthority>;
|
|
3543
|
+
jupiterProgramAuthority: Address<TAccountJupiterProgramAuthority>;
|
|
4557
3544
|
/**
|
|
4558
3545
|
*
|
|
4559
3546
|
* Other accounts
|
|
4560
3547
|
*
|
|
4561
3548
|
*/
|
|
4562
|
-
|
|
3549
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3550
|
+
memoProgram: Address<TAccountMemoProgram>;
|
|
4563
3551
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
upperLimitOrderSqrtPrice: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['upperLimitOrderSqrtPrice'];
|
|
4569
|
-
flags: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['flags'];
|
|
4570
|
-
collateralA: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['collateralA'];
|
|
4571
|
-
collateralB: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['collateralB'];
|
|
4572
|
-
borrowA: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['borrowA'];
|
|
4573
|
-
borrowB: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['borrowB'];
|
|
4574
|
-
minAddedAmountA: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountA'];
|
|
4575
|
-
minAddedAmountB: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountB'];
|
|
4576
|
-
maxSwapSlippage: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['maxSwapSlippage'];
|
|
4577
|
-
remainingAccountsInfo: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
3552
|
+
decreasePercent: ModifyTunaSpotPositionJupiterInstructionDataArgs['decreasePercent'];
|
|
3553
|
+
collateralAmount: ModifyTunaSpotPositionJupiterInstructionDataArgs['collateralAmount'];
|
|
3554
|
+
borrowAmount: ModifyTunaSpotPositionJupiterInstructionDataArgs['borrowAmount'];
|
|
3555
|
+
routeData: ModifyTunaSpotPositionJupiterInstructionDataArgs['routeData'];
|
|
4578
3556
|
};
|
|
4579
|
-
declare function
|
|
3557
|
+
declare function getModifyTunaSpotPositionJupiterInstruction<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, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB extends string, TAccountFeeRecipientAtaA extends string, TAccountFeeRecipientAtaB extends string, TAccountPythOraclePriceFeedA extends string, TAccountPythOraclePriceFeedB extends string, TAccountPool extends string, TAccountJupiterProgram extends string, TAccountJupiterEventAuthority extends string, TAccountJupiterProgramAuthority extends string, TAccountTokenProgram extends string, TAccountMemoProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: ModifyTunaSpotPositionJupiterInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountPool, TAccountJupiterProgram, TAccountJupiterEventAuthority, TAccountJupiterProgramAuthority, TAccountTokenProgram, TAccountMemoProgram, TAccountSystemProgram>, config?: {
|
|
4580
3558
|
programAddress?: TProgramAddress;
|
|
4581
|
-
}):
|
|
4582
|
-
type
|
|
3559
|
+
}): ModifyTunaSpotPositionJupiterInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountPool, TAccountJupiterProgram, TAccountJupiterEventAuthority, TAccountJupiterProgramAuthority, TAccountTokenProgram, TAccountMemoProgram, TAccountSystemProgram>;
|
|
3560
|
+
type ParsedModifyTunaSpotPositionJupiterInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
4583
3561
|
programAddress: Address<TProgram>;
|
|
4584
3562
|
accounts: {
|
|
4585
3563
|
/**
|
|
@@ -4599,38 +3577,35 @@ type ParsedOpenAndIncreaseTunaLpPositionFusionInstruction<TProgram extends strin
|
|
|
4599
3577
|
vaultAAta: TAccountMetas[9];
|
|
4600
3578
|
vaultBAta: TAccountMetas[10];
|
|
4601
3579
|
tunaPosition: TAccountMetas[11];
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
pythOraclePriceFeedB: TAccountMetas[21];
|
|
3580
|
+
tunaPositionAtaA: TAccountMetas[12];
|
|
3581
|
+
tunaPositionAtaB: TAccountMetas[13];
|
|
3582
|
+
tunaPositionOwnerAtaA: TAccountMetas[14];
|
|
3583
|
+
tunaPositionOwnerAtaB: TAccountMetas[15];
|
|
3584
|
+
feeRecipientAtaA: TAccountMetas[16];
|
|
3585
|
+
feeRecipientAtaB: TAccountMetas[17];
|
|
3586
|
+
pythOraclePriceFeedA: TAccountMetas[18];
|
|
3587
|
+
pythOraclePriceFeedB: TAccountMetas[19];
|
|
3588
|
+
pool: TAccountMetas[20];
|
|
4612
3589
|
/**
|
|
4613
3590
|
*
|
|
4614
|
-
*
|
|
3591
|
+
* Jupiter accounts
|
|
4615
3592
|
*
|
|
4616
3593
|
*/
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
metadataUpdateAuth: TAccountMetas[25];
|
|
4621
|
-
memoProgram: TAccountMetas[26];
|
|
3594
|
+
jupiterProgram: TAccountMetas[21];
|
|
3595
|
+
jupiterEventAuthority: TAccountMetas[22];
|
|
3596
|
+
jupiterProgramAuthority: TAccountMetas[23];
|
|
4622
3597
|
/**
|
|
4623
3598
|
*
|
|
4624
3599
|
* Other accounts
|
|
4625
3600
|
*
|
|
4626
3601
|
*/
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
3602
|
+
tokenProgram: TAccountMetas[24];
|
|
3603
|
+
memoProgram: TAccountMetas[25];
|
|
3604
|
+
systemProgram: TAccountMetas[26];
|
|
4630
3605
|
};
|
|
4631
|
-
data:
|
|
3606
|
+
data: ModifyTunaSpotPositionJupiterInstructionData;
|
|
4632
3607
|
};
|
|
4633
|
-
declare function
|
|
3608
|
+
declare function parseModifyTunaSpotPositionJupiterInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedModifyTunaSpotPositionJupiterInstruction<TProgram, TAccountMetas>;
|
|
4634
3609
|
|
|
4635
3610
|
/**
|
|
4636
3611
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -4640,21 +3615,21 @@ declare function parseOpenAndIncreaseTunaLpPositionFusionInstruction<TProgram ex
|
|
|
4640
3615
|
* @see https://github.com/codama-idl/codama
|
|
4641
3616
|
*/
|
|
4642
3617
|
|
|
4643
|
-
declare const
|
|
4644
|
-
declare function
|
|
4645
|
-
type
|
|
3618
|
+
declare const MODIFY_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3619
|
+
declare function getModifyTunaSpotPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3620
|
+
type ModifyTunaSpotPositionOrcaInstruction<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, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaB 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, TAccountMemoProgram extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
4646
3621
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
4647
3622
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
4648
3623
|
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
4649
3624
|
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
3625
|
+
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
3626
|
+
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
4650
3627
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
4651
3628
|
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
4652
3629
|
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
4653
3630
|
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
4654
3631
|
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
4655
3632
|
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
4656
|
-
TAccountTunaPositionMint extends string ? WritableSignerAccount<TAccountTunaPositionMint> & IAccountSignerMeta<TAccountTunaPositionMint> : TAccountTunaPositionMint,
|
|
4657
|
-
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
4658
3633
|
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
4659
3634
|
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
4660
3635
|
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
@@ -4665,51 +3640,29 @@ type OpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram extends string = type
|
|
|
4665
3640
|
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
4666
3641
|
TAccountWhirlpoolProgram extends string ? ReadonlyAccount<TAccountWhirlpoolProgram> : TAccountWhirlpoolProgram,
|
|
4667
3642
|
TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool,
|
|
4668
|
-
TAccountOrcaPosition extends string ? WritableAccount<TAccountOrcaPosition> : TAccountOrcaPosition,
|
|
4669
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
4670
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
4671
|
-
TAccountMetadataUpdateAuth extends string ? ReadonlyAccount<TAccountMetadataUpdateAuth> : TAccountMetadataUpdateAuth,
|
|
4672
3643
|
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
4673
|
-
TAccountToken2022Program extends string ? ReadonlyAccount<TAccountToken2022Program> : TAccountToken2022Program,
|
|
4674
3644
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
4675
|
-
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
4676
3645
|
...TRemainingAccounts
|
|
4677
3646
|
]>;
|
|
4678
|
-
type
|
|
3647
|
+
type ModifyTunaSpotPositionOrcaInstructionData = {
|
|
4679
3648
|
discriminator: ReadonlyUint8Array;
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
flags: number;
|
|
4685
|
-
collateralA: bigint;
|
|
4686
|
-
collateralB: bigint;
|
|
4687
|
-
borrowA: bigint;
|
|
4688
|
-
borrowB: bigint;
|
|
4689
|
-
minAddedAmountA: bigint;
|
|
4690
|
-
minAddedAmountB: bigint;
|
|
4691
|
-
maxSwapSlippage: number;
|
|
3649
|
+
decreasePercent: number;
|
|
3650
|
+
collateralAmount: bigint;
|
|
3651
|
+
borrowAmount: bigint;
|
|
3652
|
+
requiredSwapAmount: bigint;
|
|
4692
3653
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
4693
3654
|
};
|
|
4694
|
-
type
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
flags: number;
|
|
4700
|
-
collateralA: number | bigint;
|
|
4701
|
-
collateralB: number | bigint;
|
|
4702
|
-
borrowA: number | bigint;
|
|
4703
|
-
borrowB: number | bigint;
|
|
4704
|
-
minAddedAmountA: number | bigint;
|
|
4705
|
-
minAddedAmountB: number | bigint;
|
|
4706
|
-
maxSwapSlippage: number;
|
|
3655
|
+
type ModifyTunaSpotPositionOrcaInstructionDataArgs = {
|
|
3656
|
+
decreasePercent: number;
|
|
3657
|
+
collateralAmount: number | bigint;
|
|
3658
|
+
borrowAmount: number | bigint;
|
|
3659
|
+
requiredSwapAmount: number | bigint;
|
|
4707
3660
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
4708
3661
|
};
|
|
4709
|
-
declare function
|
|
4710
|
-
declare function
|
|
4711
|
-
declare function
|
|
4712
|
-
type
|
|
3662
|
+
declare function getModifyTunaSpotPositionOrcaInstructionDataEncoder(): Encoder<ModifyTunaSpotPositionOrcaInstructionDataArgs>;
|
|
3663
|
+
declare function getModifyTunaSpotPositionOrcaInstructionDataDecoder(): Decoder<ModifyTunaSpotPositionOrcaInstructionData>;
|
|
3664
|
+
declare function getModifyTunaSpotPositionOrcaInstructionDataCodec(): Codec<ModifyTunaSpotPositionOrcaInstructionDataArgs, ModifyTunaSpotPositionOrcaInstructionData>;
|
|
3665
|
+
type ModifyTunaSpotPositionOrcaInput<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, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountTunaPositionOwnerAtaA extends string = string, TAccountTunaPositionOwnerAtaB 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, TAccountMemoProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
4713
3666
|
/**
|
|
4714
3667
|
*
|
|
4715
3668
|
* TUNA accounts
|
|
@@ -4719,60 +3672,46 @@ type OpenAndIncreaseTunaLpPositionOrcaInput<TAccountAuthority extends string = s
|
|
|
4719
3672
|
tunaConfig: Address<TAccountTunaConfig>;
|
|
4720
3673
|
mintA: Address<TAccountMintA>;
|
|
4721
3674
|
mintB: Address<TAccountMintB>;
|
|
3675
|
+
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
3676
|
+
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
4722
3677
|
market: Address<TAccountMarket>;
|
|
4723
3678
|
vaultA: Address<TAccountVaultA>;
|
|
4724
3679
|
vaultB: Address<TAccountVaultB>;
|
|
4725
3680
|
vaultAAta: Address<TAccountVaultAAta>;
|
|
4726
3681
|
vaultBAta: Address<TAccountVaultBAta>;
|
|
4727
3682
|
tunaPosition: Address<TAccountTunaPosition>;
|
|
4728
|
-
tunaPositionMint: TransactionSigner<TAccountTunaPositionMint>;
|
|
4729
|
-
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
4730
3683
|
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
4731
3684
|
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
4732
|
-
tunaPositionOwnerAtaA
|
|
4733
|
-
tunaPositionOwnerAtaB
|
|
3685
|
+
tunaPositionOwnerAtaA?: Address<TAccountTunaPositionOwnerAtaA>;
|
|
3686
|
+
tunaPositionOwnerAtaB?: Address<TAccountTunaPositionOwnerAtaB>;
|
|
4734
3687
|
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
4735
3688
|
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
4736
3689
|
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
4737
3690
|
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
4738
3691
|
/**
|
|
4739
3692
|
*
|
|
4740
|
-
*
|
|
3693
|
+
* Orca accounts
|
|
4741
3694
|
*
|
|
4742
3695
|
*/
|
|
4743
3696
|
whirlpoolProgram: Address<TAccountWhirlpoolProgram>;
|
|
4744
3697
|
whirlpool: Address<TAccountWhirlpool>;
|
|
4745
|
-
orcaPosition: Address<TAccountOrcaPosition>;
|
|
4746
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
4747
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
4748
|
-
metadataUpdateAuth: Address<TAccountMetadataUpdateAuth>;
|
|
4749
3698
|
memoProgram: Address<TAccountMemoProgram>;
|
|
4750
3699
|
/**
|
|
4751
3700
|
*
|
|
4752
3701
|
* Other accounts
|
|
4753
3702
|
*
|
|
4754
3703
|
*/
|
|
4755
|
-
token2022Program: Address<TAccountToken2022Program>;
|
|
4756
3704
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
flags: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['flags'];
|
|
4763
|
-
collateralA: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['collateralA'];
|
|
4764
|
-
collateralB: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['collateralB'];
|
|
4765
|
-
borrowA: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['borrowA'];
|
|
4766
|
-
borrowB: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['borrowB'];
|
|
4767
|
-
minAddedAmountA: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountA'];
|
|
4768
|
-
minAddedAmountB: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountB'];
|
|
4769
|
-
maxSwapSlippage: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['maxSwapSlippage'];
|
|
4770
|
-
remainingAccountsInfo: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
3705
|
+
decreasePercent: ModifyTunaSpotPositionOrcaInstructionDataArgs['decreasePercent'];
|
|
3706
|
+
collateralAmount: ModifyTunaSpotPositionOrcaInstructionDataArgs['collateralAmount'];
|
|
3707
|
+
borrowAmount: ModifyTunaSpotPositionOrcaInstructionDataArgs['borrowAmount'];
|
|
3708
|
+
requiredSwapAmount: ModifyTunaSpotPositionOrcaInstructionDataArgs['requiredSwapAmount'];
|
|
3709
|
+
remainingAccountsInfo: ModifyTunaSpotPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
4771
3710
|
};
|
|
4772
|
-
declare function
|
|
3711
|
+
declare function getModifyTunaSpotPositionOrcaInstruction<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, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB extends string, TAccountFeeRecipientAtaA extends string, TAccountFeeRecipientAtaB extends string, TAccountPythOraclePriceFeedA extends string, TAccountPythOraclePriceFeedB extends string, TAccountWhirlpoolProgram extends string, TAccountWhirlpool extends string, TAccountMemoProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: ModifyTunaSpotPositionOrcaInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountMemoProgram, TAccountSystemProgram>, config?: {
|
|
4773
3712
|
programAddress?: TProgramAddress;
|
|
4774
|
-
}):
|
|
4775
|
-
type
|
|
3713
|
+
}): ModifyTunaSpotPositionOrcaInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountMemoProgram, TAccountSystemProgram>;
|
|
3714
|
+
type ParsedModifyTunaSpotPositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
4776
3715
|
programAddress: Address<TProgram>;
|
|
4777
3716
|
accounts: {
|
|
4778
3717
|
/**
|
|
@@ -4782,48 +3721,42 @@ type ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram extends string
|
|
|
4782
3721
|
*/
|
|
4783
3722
|
authority: TAccountMetas[0];
|
|
4784
3723
|
tunaConfig: TAccountMetas[1];
|
|
4785
|
-
mintA: TAccountMetas[2];
|
|
4786
|
-
mintB: TAccountMetas[3];
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
3724
|
+
mintA: TAccountMetas[2];
|
|
3725
|
+
mintB: TAccountMetas[3];
|
|
3726
|
+
tokenProgramA: TAccountMetas[4];
|
|
3727
|
+
tokenProgramB: TAccountMetas[5];
|
|
3728
|
+
market: TAccountMetas[6];
|
|
3729
|
+
vaultA: TAccountMetas[7];
|
|
3730
|
+
vaultB: TAccountMetas[8];
|
|
3731
|
+
vaultAAta: TAccountMetas[9];
|
|
3732
|
+
vaultBAta: TAccountMetas[10];
|
|
3733
|
+
tunaPosition: TAccountMetas[11];
|
|
4795
3734
|
tunaPositionAtaA: TAccountMetas[12];
|
|
4796
3735
|
tunaPositionAtaB: TAccountMetas[13];
|
|
4797
|
-
tunaPositionOwnerAtaA
|
|
4798
|
-
tunaPositionOwnerAtaB
|
|
3736
|
+
tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined;
|
|
3737
|
+
tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined;
|
|
4799
3738
|
feeRecipientAtaA: TAccountMetas[16];
|
|
4800
3739
|
feeRecipientAtaB: TAccountMetas[17];
|
|
4801
3740
|
pythOraclePriceFeedA: TAccountMetas[18];
|
|
4802
3741
|
pythOraclePriceFeedB: TAccountMetas[19];
|
|
4803
3742
|
/**
|
|
4804
3743
|
*
|
|
4805
|
-
*
|
|
3744
|
+
* Orca accounts
|
|
4806
3745
|
*
|
|
4807
3746
|
*/
|
|
4808
3747
|
whirlpoolProgram: TAccountMetas[20];
|
|
4809
3748
|
whirlpool: TAccountMetas[21];
|
|
4810
|
-
|
|
4811
|
-
tokenProgramA: TAccountMetas[23];
|
|
4812
|
-
tokenProgramB: TAccountMetas[24];
|
|
4813
|
-
metadataUpdateAuth: TAccountMetas[25];
|
|
4814
|
-
memoProgram: TAccountMetas[26];
|
|
3749
|
+
memoProgram: TAccountMetas[22];
|
|
4815
3750
|
/**
|
|
4816
3751
|
*
|
|
4817
3752
|
* Other accounts
|
|
4818
3753
|
*
|
|
4819
3754
|
*/
|
|
4820
|
-
|
|
4821
|
-
systemProgram: TAccountMetas[28];
|
|
4822
|
-
associatedTokenProgram: TAccountMetas[29];
|
|
3755
|
+
systemProgram: TAccountMetas[23];
|
|
4823
3756
|
};
|
|
4824
|
-
data:
|
|
3757
|
+
data: ModifyTunaSpotPositionOrcaInstructionData;
|
|
4825
3758
|
};
|
|
4826
|
-
declare function
|
|
3759
|
+
declare function parseModifyTunaSpotPositionOrcaInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedModifyTunaSpotPositionOrcaInstruction<TProgram, TAccountMetas>;
|
|
4827
3760
|
|
|
4828
3761
|
/**
|
|
4829
3762
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -4833,9 +3766,9 @@ declare function parseOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram exte
|
|
|
4833
3766
|
* @see https://github.com/codama-idl/codama
|
|
4834
3767
|
*/
|
|
4835
3768
|
|
|
4836
|
-
declare const
|
|
4837
|
-
declare function
|
|
4838
|
-
type
|
|
3769
|
+
declare const OPEN_AND_INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3770
|
+
declare function getOpenAndIncreaseTunaLpPositionFusionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3771
|
+
type OpenAndIncreaseTunaLpPositionFusionInstruction<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, TAccountTunaPositionMint extends string | IAccountMeta<string> = string, TAccountTunaPositionAta extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaB 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, TAccountMetadataUpdateAuth extends string | IAccountMeta<string> = string, TAccountMemoProgram extends string | IAccountMeta<string> = string, TAccountToken2022Program extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TAccountAssociatedTokenProgram extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
4839
3772
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
4840
3773
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
4841
3774
|
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
@@ -4848,6 +3781,8 @@ type OpenAndIncreaseTunaSpotPositionFusionInstruction<TProgram extends string =
|
|
|
4848
3781
|
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
4849
3782
|
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
4850
3783
|
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
3784
|
+
TAccountTunaPositionMint extends string ? WritableSignerAccount<TAccountTunaPositionMint> & IAccountSignerMeta<TAccountTunaPositionMint> : TAccountTunaPositionMint,
|
|
3785
|
+
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
4851
3786
|
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
4852
3787
|
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
4853
3788
|
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
@@ -4858,32 +3793,49 @@ type OpenAndIncreaseTunaSpotPositionFusionInstruction<TProgram extends string =
|
|
|
4858
3793
|
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
4859
3794
|
TAccountFusionammProgram extends string ? ReadonlyAccount<TAccountFusionammProgram> : TAccountFusionammProgram,
|
|
4860
3795
|
TAccountFusionPool extends string ? WritableAccount<TAccountFusionPool> : TAccountFusionPool,
|
|
3796
|
+
TAccountFusionPosition extends string ? WritableAccount<TAccountFusionPosition> : TAccountFusionPosition,
|
|
3797
|
+
TAccountMetadataUpdateAuth extends string ? ReadonlyAccount<TAccountMetadataUpdateAuth> : TAccountMetadataUpdateAuth,
|
|
4861
3798
|
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3799
|
+
TAccountToken2022Program extends string ? ReadonlyAccount<TAccountToken2022Program> : TAccountToken2022Program,
|
|
4862
3800
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
4863
3801
|
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
4864
3802
|
...TRemainingAccounts
|
|
4865
3803
|
]>;
|
|
4866
|
-
type
|
|
3804
|
+
type OpenAndIncreaseTunaLpPositionFusionInstructionData = {
|
|
4867
3805
|
discriminator: ReadonlyUint8Array;
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
3806
|
+
tickLowerIndex: number;
|
|
3807
|
+
tickUpperIndex: number;
|
|
3808
|
+
lowerLimitOrderSqrtPrice: bigint;
|
|
3809
|
+
upperLimitOrderSqrtPrice: bigint;
|
|
3810
|
+
flags: number;
|
|
3811
|
+
collateralA: bigint;
|
|
3812
|
+
collateralB: bigint;
|
|
3813
|
+
borrowA: bigint;
|
|
3814
|
+
borrowB: bigint;
|
|
3815
|
+
minAddedAmountA: bigint;
|
|
3816
|
+
minAddedAmountB: bigint;
|
|
3817
|
+
maxSwapSlippage: number;
|
|
4873
3818
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
4874
3819
|
};
|
|
4875
|
-
type
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
3820
|
+
type OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs = {
|
|
3821
|
+
tickLowerIndex: number;
|
|
3822
|
+
tickUpperIndex: number;
|
|
3823
|
+
lowerLimitOrderSqrtPrice: number | bigint;
|
|
3824
|
+
upperLimitOrderSqrtPrice: number | bigint;
|
|
3825
|
+
flags: number;
|
|
3826
|
+
collateralA: number | bigint;
|
|
3827
|
+
collateralB: number | bigint;
|
|
3828
|
+
borrowA: number | bigint;
|
|
3829
|
+
borrowB: number | bigint;
|
|
3830
|
+
minAddedAmountA: number | bigint;
|
|
3831
|
+
minAddedAmountB: number | bigint;
|
|
3832
|
+
maxSwapSlippage: number;
|
|
4881
3833
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
4882
3834
|
};
|
|
4883
|
-
declare function
|
|
4884
|
-
declare function
|
|
4885
|
-
declare function
|
|
4886
|
-
type
|
|
3835
|
+
declare function getOpenAndIncreaseTunaLpPositionFusionInstructionDataEncoder(): Encoder<OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs>;
|
|
3836
|
+
declare function getOpenAndIncreaseTunaLpPositionFusionInstructionDataDecoder(): Decoder<OpenAndIncreaseTunaLpPositionFusionInstructionData>;
|
|
3837
|
+
declare function getOpenAndIncreaseTunaLpPositionFusionInstructionDataCodec(): Codec<OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs, OpenAndIncreaseTunaLpPositionFusionInstructionData>;
|
|
3838
|
+
type OpenAndIncreaseTunaLpPositionFusionInput<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, TAccountTunaPositionMint extends string = string, TAccountTunaPositionAta extends string = string, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountTunaPositionOwnerAtaA extends string = string, TAccountTunaPositionOwnerAtaB 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, TAccountMetadataUpdateAuth extends string = string, TAccountMemoProgram extends string = string, TAccountToken2022Program extends string = string, TAccountSystemProgram extends string = string, TAccountAssociatedTokenProgram extends string = string> = {
|
|
4887
3839
|
/**
|
|
4888
3840
|
*
|
|
4889
3841
|
* TUNA accounts
|
|
@@ -4901,10 +3853,12 @@ type OpenAndIncreaseTunaSpotPositionFusionInput<TAccountAuthority extends string
|
|
|
4901
3853
|
vaultAAta: Address<TAccountVaultAAta>;
|
|
4902
3854
|
vaultBAta: Address<TAccountVaultBAta>;
|
|
4903
3855
|
tunaPosition: Address<TAccountTunaPosition>;
|
|
3856
|
+
tunaPositionMint: TransactionSigner<TAccountTunaPositionMint>;
|
|
3857
|
+
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
4904
3858
|
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
4905
3859
|
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
4906
|
-
tunaPositionOwnerAtaA
|
|
4907
|
-
tunaPositionOwnerAtaB
|
|
3860
|
+
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
3861
|
+
tunaPositionOwnerAtaB: Address<TAccountTunaPositionOwnerAtaB>;
|
|
4908
3862
|
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
4909
3863
|
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
4910
3864
|
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
@@ -4916,25 +3870,35 @@ type OpenAndIncreaseTunaSpotPositionFusionInput<TAccountAuthority extends string
|
|
|
4916
3870
|
*/
|
|
4917
3871
|
fusionammProgram: Address<TAccountFusionammProgram>;
|
|
4918
3872
|
fusionPool: Address<TAccountFusionPool>;
|
|
3873
|
+
fusionPosition: Address<TAccountFusionPosition>;
|
|
3874
|
+
metadataUpdateAuth: Address<TAccountMetadataUpdateAuth>;
|
|
4919
3875
|
memoProgram: Address<TAccountMemoProgram>;
|
|
4920
3876
|
/**
|
|
4921
3877
|
*
|
|
4922
3878
|
* Other accounts
|
|
4923
3879
|
*
|
|
4924
3880
|
*/
|
|
3881
|
+
token2022Program: Address<TAccountToken2022Program>;
|
|
4925
3882
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4926
3883
|
associatedTokenProgram: Address<TAccountAssociatedTokenProgram>;
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
3884
|
+
tickLowerIndex: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['tickLowerIndex'];
|
|
3885
|
+
tickUpperIndex: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['tickUpperIndex'];
|
|
3886
|
+
lowerLimitOrderSqrtPrice: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['lowerLimitOrderSqrtPrice'];
|
|
3887
|
+
upperLimitOrderSqrtPrice: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['upperLimitOrderSqrtPrice'];
|
|
3888
|
+
flags: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['flags'];
|
|
3889
|
+
collateralA: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['collateralA'];
|
|
3890
|
+
collateralB: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['collateralB'];
|
|
3891
|
+
borrowA: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['borrowA'];
|
|
3892
|
+
borrowB: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['borrowB'];
|
|
3893
|
+
minAddedAmountA: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountA'];
|
|
3894
|
+
minAddedAmountB: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountB'];
|
|
3895
|
+
maxSwapSlippage: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['maxSwapSlippage'];
|
|
3896
|
+
remainingAccountsInfo: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
3897
|
+
};
|
|
3898
|
+
declare function getOpenAndIncreaseTunaLpPositionFusionInstruction<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, TAccountTunaPositionMint extends string, TAccountTunaPositionAta extends string, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB extends string, TAccountFeeRecipientAtaA extends string, TAccountFeeRecipientAtaB extends string, TAccountPythOraclePriceFeedA extends string, TAccountPythOraclePriceFeedB extends string, TAccountFusionammProgram extends string, TAccountFusionPool extends string, TAccountFusionPosition extends string, TAccountMetadataUpdateAuth extends string, TAccountMemoProgram extends string, TAccountToken2022Program extends string, TAccountSystemProgram extends string, TAccountAssociatedTokenProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: OpenAndIncreaseTunaLpPositionFusionInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionMint, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountFusionPosition, TAccountMetadataUpdateAuth, TAccountMemoProgram, TAccountToken2022Program, TAccountSystemProgram, TAccountAssociatedTokenProgram>, config?: {
|
|
4935
3899
|
programAddress?: TProgramAddress;
|
|
4936
|
-
}):
|
|
4937
|
-
type
|
|
3900
|
+
}): OpenAndIncreaseTunaLpPositionFusionInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionMint, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountFusionPosition, TAccountMetadataUpdateAuth, TAccountMemoProgram, TAccountToken2022Program, TAccountSystemProgram, TAccountAssociatedTokenProgram>;
|
|
3901
|
+
type ParsedOpenAndIncreaseTunaLpPositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
4938
3902
|
programAddress: Address<TProgram>;
|
|
4939
3903
|
accounts: {
|
|
4940
3904
|
/**
|
|
@@ -4954,33 +3918,38 @@ type ParsedOpenAndIncreaseTunaSpotPositionFusionInstruction<TProgram extends str
|
|
|
4954
3918
|
vaultAAta: TAccountMetas[9];
|
|
4955
3919
|
vaultBAta: TAccountMetas[10];
|
|
4956
3920
|
tunaPosition: TAccountMetas[11];
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
3921
|
+
tunaPositionMint: TAccountMetas[12];
|
|
3922
|
+
tunaPositionAta: TAccountMetas[13];
|
|
3923
|
+
tunaPositionAtaA: TAccountMetas[14];
|
|
3924
|
+
tunaPositionAtaB: TAccountMetas[15];
|
|
3925
|
+
tunaPositionOwnerAtaA: TAccountMetas[16];
|
|
3926
|
+
tunaPositionOwnerAtaB: TAccountMetas[17];
|
|
3927
|
+
feeRecipientAtaA: TAccountMetas[18];
|
|
3928
|
+
feeRecipientAtaB: TAccountMetas[19];
|
|
3929
|
+
pythOraclePriceFeedA: TAccountMetas[20];
|
|
3930
|
+
pythOraclePriceFeedB: TAccountMetas[21];
|
|
4965
3931
|
/**
|
|
4966
3932
|
*
|
|
4967
3933
|
* Fusion accounts
|
|
4968
3934
|
*
|
|
4969
3935
|
*/
|
|
4970
|
-
fusionammProgram: TAccountMetas[
|
|
4971
|
-
fusionPool: TAccountMetas[
|
|
4972
|
-
|
|
3936
|
+
fusionammProgram: TAccountMetas[22];
|
|
3937
|
+
fusionPool: TAccountMetas[23];
|
|
3938
|
+
fusionPosition: TAccountMetas[24];
|
|
3939
|
+
metadataUpdateAuth: TAccountMetas[25];
|
|
3940
|
+
memoProgram: TAccountMetas[26];
|
|
4973
3941
|
/**
|
|
4974
3942
|
*
|
|
4975
3943
|
* Other accounts
|
|
4976
3944
|
*
|
|
4977
3945
|
*/
|
|
4978
|
-
|
|
4979
|
-
|
|
3946
|
+
token2022Program: TAccountMetas[27];
|
|
3947
|
+
systemProgram: TAccountMetas[28];
|
|
3948
|
+
associatedTokenProgram: TAccountMetas[29];
|
|
4980
3949
|
};
|
|
4981
|
-
data:
|
|
3950
|
+
data: OpenAndIncreaseTunaLpPositionFusionInstructionData;
|
|
4982
3951
|
};
|
|
4983
|
-
declare function
|
|
3952
|
+
declare function parseOpenAndIncreaseTunaLpPositionFusionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedOpenAndIncreaseTunaLpPositionFusionInstruction<TProgram, TAccountMetas>;
|
|
4984
3953
|
|
|
4985
3954
|
/**
|
|
4986
3955
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -4990,21 +3959,21 @@ declare function parseOpenAndIncreaseTunaSpotPositionFusionInstruction<TProgram
|
|
|
4990
3959
|
* @see https://github.com/codama-idl/codama
|
|
4991
3960
|
*/
|
|
4992
3961
|
|
|
4993
|
-
declare const
|
|
4994
|
-
declare function
|
|
4995
|
-
type
|
|
3962
|
+
declare const OPEN_AND_INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3963
|
+
declare function getOpenAndIncreaseTunaLpPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3964
|
+
type OpenAndIncreaseTunaLpPositionOrcaInstruction<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, TAccountTunaPositionMint extends string | IAccountMeta<string> = string, TAccountTunaPositionAta extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionOwnerAtaB 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, TAccountMetadataUpdateAuth extends string | IAccountMeta<string> = string, TAccountMemoProgram extends string | IAccountMeta<string> = string, TAccountToken2022Program extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TAccountAssociatedTokenProgram extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
4996
3965
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
4997
3966
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
4998
3967
|
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
4999
3968
|
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
5000
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
5001
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
5002
3969
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
5003
3970
|
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
5004
3971
|
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
5005
3972
|
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
5006
3973
|
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
5007
3974
|
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
3975
|
+
TAccountTunaPositionMint extends string ? WritableSignerAccount<TAccountTunaPositionMint> & IAccountSignerMeta<TAccountTunaPositionMint> : TAccountTunaPositionMint,
|
|
3976
|
+
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
5008
3977
|
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
5009
3978
|
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
5010
3979
|
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
@@ -5015,32 +3984,51 @@ type OpenAndIncreaseTunaSpotPositionOrcaInstruction<TProgram extends string = ty
|
|
|
5015
3984
|
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
5016
3985
|
TAccountWhirlpoolProgram extends string ? ReadonlyAccount<TAccountWhirlpoolProgram> : TAccountWhirlpoolProgram,
|
|
5017
3986
|
TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool,
|
|
3987
|
+
TAccountOrcaPosition extends string ? WritableAccount<TAccountOrcaPosition> : TAccountOrcaPosition,
|
|
3988
|
+
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
3989
|
+
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
3990
|
+
TAccountMetadataUpdateAuth extends string ? ReadonlyAccount<TAccountMetadataUpdateAuth> : TAccountMetadataUpdateAuth,
|
|
5018
3991
|
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3992
|
+
TAccountToken2022Program extends string ? ReadonlyAccount<TAccountToken2022Program> : TAccountToken2022Program,
|
|
5019
3993
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
5020
3994
|
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
5021
3995
|
...TRemainingAccounts
|
|
5022
3996
|
]>;
|
|
5023
|
-
type
|
|
3997
|
+
type OpenAndIncreaseTunaLpPositionOrcaInstructionData = {
|
|
5024
3998
|
discriminator: ReadonlyUint8Array;
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
3999
|
+
tickLowerIndex: number;
|
|
4000
|
+
tickUpperIndex: number;
|
|
4001
|
+
lowerLimitOrderSqrtPrice: bigint;
|
|
4002
|
+
upperLimitOrderSqrtPrice: bigint;
|
|
4003
|
+
flags: number;
|
|
4004
|
+
collateralA: bigint;
|
|
4005
|
+
collateralB: bigint;
|
|
4006
|
+
borrowA: bigint;
|
|
4007
|
+
borrowB: bigint;
|
|
4008
|
+
minAddedAmountA: bigint;
|
|
4009
|
+
minAddedAmountB: bigint;
|
|
4010
|
+
maxSwapSlippage: number;
|
|
5030
4011
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
5031
4012
|
};
|
|
5032
|
-
type
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
4013
|
+
type OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs = {
|
|
4014
|
+
tickLowerIndex: number;
|
|
4015
|
+
tickUpperIndex: number;
|
|
4016
|
+
lowerLimitOrderSqrtPrice: number | bigint;
|
|
4017
|
+
upperLimitOrderSqrtPrice: number | bigint;
|
|
4018
|
+
flags: number;
|
|
4019
|
+
collateralA: number | bigint;
|
|
4020
|
+
collateralB: number | bigint;
|
|
4021
|
+
borrowA: number | bigint;
|
|
4022
|
+
borrowB: number | bigint;
|
|
4023
|
+
minAddedAmountA: number | bigint;
|
|
4024
|
+
minAddedAmountB: number | bigint;
|
|
4025
|
+
maxSwapSlippage: number;
|
|
5038
4026
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
5039
4027
|
};
|
|
5040
|
-
declare function
|
|
5041
|
-
declare function
|
|
5042
|
-
declare function
|
|
5043
|
-
type
|
|
4028
|
+
declare function getOpenAndIncreaseTunaLpPositionOrcaInstructionDataEncoder(): Encoder<OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs>;
|
|
4029
|
+
declare function getOpenAndIncreaseTunaLpPositionOrcaInstructionDataDecoder(): Decoder<OpenAndIncreaseTunaLpPositionOrcaInstructionData>;
|
|
4030
|
+
declare function getOpenAndIncreaseTunaLpPositionOrcaInstructionDataCodec(): Codec<OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs, OpenAndIncreaseTunaLpPositionOrcaInstructionData>;
|
|
4031
|
+
type OpenAndIncreaseTunaLpPositionOrcaInput<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, TAccountTunaPositionMint extends string = string, TAccountTunaPositionAta extends string = string, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountTunaPositionOwnerAtaA extends string = string, TAccountTunaPositionOwnerAtaB 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, TAccountMetadataUpdateAuth extends string = string, TAccountMemoProgram extends string = string, TAccountToken2022Program extends string = string, TAccountSystemProgram extends string = string, TAccountAssociatedTokenProgram extends string = string> = {
|
|
5044
4032
|
/**
|
|
5045
4033
|
*
|
|
5046
4034
|
* TUNA accounts
|
|
@@ -5050,48 +4038,60 @@ type OpenAndIncreaseTunaSpotPositionOrcaInput<TAccountAuthority extends string =
|
|
|
5050
4038
|
tunaConfig: Address<TAccountTunaConfig>;
|
|
5051
4039
|
mintA: Address<TAccountMintA>;
|
|
5052
4040
|
mintB: Address<TAccountMintB>;
|
|
5053
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
5054
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
5055
4041
|
market: Address<TAccountMarket>;
|
|
5056
4042
|
vaultA: Address<TAccountVaultA>;
|
|
5057
4043
|
vaultB: Address<TAccountVaultB>;
|
|
5058
4044
|
vaultAAta: Address<TAccountVaultAAta>;
|
|
5059
4045
|
vaultBAta: Address<TAccountVaultBAta>;
|
|
5060
4046
|
tunaPosition: Address<TAccountTunaPosition>;
|
|
4047
|
+
tunaPositionMint: TransactionSigner<TAccountTunaPositionMint>;
|
|
4048
|
+
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
5061
4049
|
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
5062
4050
|
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
5063
|
-
tunaPositionOwnerAtaA
|
|
5064
|
-
tunaPositionOwnerAtaB
|
|
4051
|
+
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
4052
|
+
tunaPositionOwnerAtaB: Address<TAccountTunaPositionOwnerAtaB>;
|
|
5065
4053
|
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
5066
4054
|
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
5067
4055
|
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
5068
4056
|
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
5069
4057
|
/**
|
|
5070
4058
|
*
|
|
5071
|
-
*
|
|
4059
|
+
* ORCA accounts
|
|
5072
4060
|
*
|
|
5073
4061
|
*/
|
|
5074
4062
|
whirlpoolProgram: Address<TAccountWhirlpoolProgram>;
|
|
5075
4063
|
whirlpool: Address<TAccountWhirlpool>;
|
|
4064
|
+
orcaPosition: Address<TAccountOrcaPosition>;
|
|
4065
|
+
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
4066
|
+
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
4067
|
+
metadataUpdateAuth: Address<TAccountMetadataUpdateAuth>;
|
|
5076
4068
|
memoProgram: Address<TAccountMemoProgram>;
|
|
5077
4069
|
/**
|
|
5078
4070
|
*
|
|
5079
4071
|
* Other accounts
|
|
5080
4072
|
*
|
|
5081
4073
|
*/
|
|
4074
|
+
token2022Program: Address<TAccountToken2022Program>;
|
|
5082
4075
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
5083
4076
|
associatedTokenProgram: Address<TAccountAssociatedTokenProgram>;
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
4077
|
+
tickLowerIndex: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['tickLowerIndex'];
|
|
4078
|
+
tickUpperIndex: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['tickUpperIndex'];
|
|
4079
|
+
lowerLimitOrderSqrtPrice: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['lowerLimitOrderSqrtPrice'];
|
|
4080
|
+
upperLimitOrderSqrtPrice: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['upperLimitOrderSqrtPrice'];
|
|
4081
|
+
flags: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['flags'];
|
|
4082
|
+
collateralA: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['collateralA'];
|
|
4083
|
+
collateralB: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['collateralB'];
|
|
4084
|
+
borrowA: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['borrowA'];
|
|
4085
|
+
borrowB: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['borrowB'];
|
|
4086
|
+
minAddedAmountA: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountA'];
|
|
4087
|
+
minAddedAmountB: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountB'];
|
|
4088
|
+
maxSwapSlippage: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['maxSwapSlippage'];
|
|
4089
|
+
remainingAccountsInfo: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
4090
|
+
};
|
|
4091
|
+
declare function getOpenAndIncreaseTunaLpPositionOrcaInstruction<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, TAccountTunaPositionMint extends string, TAccountTunaPositionAta extends string, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountTunaPositionOwnerAtaA extends string, TAccountTunaPositionOwnerAtaB 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, TAccountMetadataUpdateAuth extends string, TAccountMemoProgram extends string, TAccountToken2022Program extends string, TAccountSystemProgram extends string, TAccountAssociatedTokenProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: OpenAndIncreaseTunaLpPositionOrcaInput<TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionMint, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountOrcaPosition, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMetadataUpdateAuth, TAccountMemoProgram, TAccountToken2022Program, TAccountSystemProgram, TAccountAssociatedTokenProgram>, config?: {
|
|
5092
4092
|
programAddress?: TProgramAddress;
|
|
5093
|
-
}):
|
|
5094
|
-
type
|
|
4093
|
+
}): OpenAndIncreaseTunaLpPositionOrcaInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionMint, TAccountTunaPositionAta, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountFeeRecipientAtaA, TAccountFeeRecipientAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountOrcaPosition, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMetadataUpdateAuth, TAccountMemoProgram, TAccountToken2022Program, TAccountSystemProgram, TAccountAssociatedTokenProgram>;
|
|
4094
|
+
type ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
5095
4095
|
programAddress: Address<TProgram>;
|
|
5096
4096
|
accounts: {
|
|
5097
4097
|
/**
|
|
@@ -5103,41 +4103,46 @@ type ParsedOpenAndIncreaseTunaSpotPositionOrcaInstruction<TProgram extends strin
|
|
|
5103
4103
|
tunaConfig: TAccountMetas[1];
|
|
5104
4104
|
mintA: TAccountMetas[2];
|
|
5105
4105
|
mintB: TAccountMetas[3];
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
4106
|
+
market: TAccountMetas[4];
|
|
4107
|
+
vaultA: TAccountMetas[5];
|
|
4108
|
+
vaultB: TAccountMetas[6];
|
|
4109
|
+
vaultAAta: TAccountMetas[7];
|
|
4110
|
+
vaultBAta: TAccountMetas[8];
|
|
4111
|
+
tunaPosition: TAccountMetas[9];
|
|
4112
|
+
tunaPositionMint: TAccountMetas[10];
|
|
4113
|
+
tunaPositionAta: TAccountMetas[11];
|
|
5114
4114
|
tunaPositionAtaA: TAccountMetas[12];
|
|
5115
4115
|
tunaPositionAtaB: TAccountMetas[13];
|
|
5116
|
-
tunaPositionOwnerAtaA
|
|
5117
|
-
tunaPositionOwnerAtaB
|
|
4116
|
+
tunaPositionOwnerAtaA: TAccountMetas[14];
|
|
4117
|
+
tunaPositionOwnerAtaB: TAccountMetas[15];
|
|
5118
4118
|
feeRecipientAtaA: TAccountMetas[16];
|
|
5119
4119
|
feeRecipientAtaB: TAccountMetas[17];
|
|
5120
4120
|
pythOraclePriceFeedA: TAccountMetas[18];
|
|
5121
4121
|
pythOraclePriceFeedB: TAccountMetas[19];
|
|
5122
4122
|
/**
|
|
5123
4123
|
*
|
|
5124
|
-
*
|
|
4124
|
+
* ORCA accounts
|
|
5125
4125
|
*
|
|
5126
4126
|
*/
|
|
5127
4127
|
whirlpoolProgram: TAccountMetas[20];
|
|
5128
4128
|
whirlpool: TAccountMetas[21];
|
|
5129
|
-
|
|
4129
|
+
orcaPosition: TAccountMetas[22];
|
|
4130
|
+
tokenProgramA: TAccountMetas[23];
|
|
4131
|
+
tokenProgramB: TAccountMetas[24];
|
|
4132
|
+
metadataUpdateAuth: TAccountMetas[25];
|
|
4133
|
+
memoProgram: TAccountMetas[26];
|
|
5130
4134
|
/**
|
|
5131
4135
|
*
|
|
5132
4136
|
* Other accounts
|
|
5133
4137
|
*
|
|
5134
4138
|
*/
|
|
5135
|
-
|
|
5136
|
-
|
|
4139
|
+
token2022Program: TAccountMetas[27];
|
|
4140
|
+
systemProgram: TAccountMetas[28];
|
|
4141
|
+
associatedTokenProgram: TAccountMetas[29];
|
|
5137
4142
|
};
|
|
5138
|
-
data:
|
|
4143
|
+
data: OpenAndIncreaseTunaLpPositionOrcaInstructionData;
|
|
5139
4144
|
};
|
|
5140
|
-
declare function
|
|
4145
|
+
declare function parseOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram, TAccountMetas>;
|
|
5141
4146
|
|
|
5142
4147
|
/**
|
|
5143
4148
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -6941,37 +5946,13 @@ type CloseActiveTunaLpPositionInstructionArgs = {
|
|
|
6941
5946
|
};
|
|
6942
5947
|
declare function closeActiveTunaLpPositionFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, positionMint: Address, args: CloseActiveTunaLpPositionInstructionArgs): Promise<IInstruction[]>;
|
|
6943
5948
|
|
|
6944
|
-
type
|
|
6945
|
-
declare function
|
|
6946
|
-
declare function
|
|
5949
|
+
type ModifyTunaSpotPositionOrcaInstructionsArgs = Omit<ModifyTunaSpotPositionOrcaInstructionDataArgs, "remainingAccountsInfo">;
|
|
5950
|
+
declare function modifyTunaSpotPositionOrcaInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, poolAddress: Address, collateralToken: PoolToken | undefined, args: ModifyTunaSpotPositionOrcaInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
5951
|
+
declare function modifyTunaSpotPositionOrcaInstruction(authority: TransactionSigner, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, pool: Account<Whirlpool>, setTunaPositionOwnerAtaA: boolean, setTunaPositionOwnerAtaB: boolean, args: ModifyTunaSpotPositionOrcaInstructionsArgs): Promise<IInstruction>;
|
|
6947
5952
|
|
|
6948
|
-
type
|
|
6949
|
-
declare function
|
|
6950
|
-
declare function
|
|
6951
|
-
|
|
6952
|
-
type IncreaseTunaSpotPositionOrcaInstructionsArgs = Omit<IncreaseTunaSpotPositionOrcaInstructionDataArgs, "remainingAccountsInfo">;
|
|
6953
|
-
declare function increaseTunaSpotPositionOrcaInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, whirlpoolAddress: Address, args: IncreaseTunaSpotPositionOrcaInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
6954
|
-
declare function increaseTunaSpotPositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, args: IncreaseTunaSpotPositionOrcaInstructionsArgs): Promise<IInstruction>;
|
|
6955
|
-
|
|
6956
|
-
type IncreaseTunaSpotPositionFusionInstructionsArgs = Omit<IncreaseTunaSpotPositionFusionInstructionDataArgs, "remainingAccountsInfo">;
|
|
6957
|
-
declare function increaseTunaSpotPositionFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, fusionPoolAddress: Address, args: IncreaseTunaSpotPositionFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
6958
|
-
declare function increaseTunaSpotPositionFusionInstruction(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>, args: IncreaseTunaSpotPositionFusionInstructionsArgs): Promise<IInstruction>;
|
|
6959
|
-
|
|
6960
|
-
type IncreaseTunaSpotPositionJupiterInstructionsArgs = Omit<IncreaseTunaSpotPositionJupiterInstructionDataArgs, "remainingAccountsInfo">;
|
|
6961
|
-
declare function increaseTunaSpotPositionJupiterInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, poolAddress: Address, remainingAccounts: IAccountMeta[], openArgs: OpenTunaSpotPositionInstructionDataArgs | undefined, increaseArgs: IncreaseTunaSpotPositionJupiterInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
6962
|
-
declare function increaseTunaSpotPositionJupiterInstruction(authority: TransactionSigner, poolAddress: Address, collateralToken: PoolToken, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, remainingAccounts: IAccountMeta[], args: IncreaseTunaSpotPositionJupiterInstructionsArgs): Promise<IInstruction>;
|
|
6963
|
-
|
|
6964
|
-
type DecreaseTunaSpotPositionOrcaInstructionsArgs = Omit<DecreaseTunaSpotPositionOrcaInstructionDataArgs, "remainingAccountsInfo">;
|
|
6965
|
-
declare function decreaseTunaSpotPositionOrcaInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, whirlpoolAddress: Address, args: DecreaseTunaSpotPositionOrcaInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
6966
|
-
declare function decreaseTunaSpotPositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, setTunaPositionOwnerAtaA: boolean, setTunaPositionOwnerAtaB: boolean, args: DecreaseTunaSpotPositionOrcaInstructionsArgs): Promise<IInstruction>;
|
|
6967
|
-
|
|
6968
|
-
type DecreaseTunaSpotPositionFusionInstructionsArgs = Omit<DecreaseTunaSpotPositionFusionInstructionDataArgs, "remainingAccountsInfo">;
|
|
6969
|
-
declare function decreaseTunaSpotPositionFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, fusionPoolAddress: Address, args: DecreaseTunaSpotPositionFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
6970
|
-
declare function decreaseTunaSpotPositionFusionInstruction(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>, setTunaPositionOwnerAtaA: boolean, setTunaPositionOwnerAtaB: boolean, args: DecreaseTunaSpotPositionFusionInstructionsArgs): Promise<IInstruction>;
|
|
6971
|
-
|
|
6972
|
-
type DecreaseTunaSpotPositionJupiterInstructionsArgs = Omit<DecreaseTunaSpotPositionJupiterInstructionDataArgs, "remainingAccountsInfo">;
|
|
6973
|
-
declare function decreaseTunaSpotPositionJupiterInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, poolAddress: Address, remainingAccounts: IAccountMeta[], args: DecreaseTunaSpotPositionJupiterInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
6974
|
-
declare function decreaseTunaSpotPositionJupiterInstruction(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, remainingAccounts: IAccountMeta[], args: DecreaseTunaSpotPositionJupiterInstructionsArgs): Promise<IInstruction>;
|
|
5953
|
+
type ModifyTunaSpotPositionFusionInstructionsArgs = Omit<ModifyTunaSpotPositionFusionInstructionDataArgs, "remainingAccountsInfo">;
|
|
5954
|
+
declare function modifyTunaSpotPositionFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, poolAddress: Address, collateralToken: PoolToken | undefined, args: ModifyTunaSpotPositionFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
5955
|
+
declare function modifyTunaSpotPositionFusionInstruction(authority: TransactionSigner, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, pool: Account<FusionPool>, setTunaPositionOwnerAtaA: boolean, setTunaPositionOwnerAtaB: boolean, args: ModifyTunaSpotPositionFusionInstructionsArgs): Promise<IInstruction>;
|
|
6975
5956
|
|
|
6976
5957
|
declare function closeTunaSpotPositionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, poolAddress: Address): Promise<IInstruction[]>;
|
|
6977
5958
|
declare function closeTunaSpotPositionInstruction(authority: TransactionSigner, poolAddress: Address, mintA: Account<Mint>, mintB: Account<Mint>): Promise<IInstruction>;
|
|
@@ -6985,17 +5966,17 @@ declare function createVaultInstructions(authority: TransactionSigner, mint: Acc
|
|
|
6985
5966
|
declare function depositInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, mintAddress: Address, amount: bigint): Promise<IInstruction[]>;
|
|
6986
5967
|
declare function depositInstruction(authority: TransactionSigner, mint: Account<Mint>, amount: bigint): Promise<IInstruction>;
|
|
6987
5968
|
|
|
6988
|
-
declare function liquidateTunaLpPositionOrcaInstructions(authority: TransactionSigner, tunaPosition: Account<TunaLpPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>,
|
|
6989
|
-
declare function liquidateTunaLpPositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account<TunaLpPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>,
|
|
5969
|
+
declare function liquidateTunaLpPositionOrcaInstructions(authority: TransactionSigner, tunaPosition: Account<TunaLpPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, decreasePercent: number): Promise<IInstruction[]>;
|
|
5970
|
+
declare function liquidateTunaLpPositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account<TunaLpPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, decreasePercent: number): Promise<IInstruction>;
|
|
6990
5971
|
|
|
6991
|
-
declare function liquidateTunaLpPositionFusionInstructions(authority: TransactionSigner, tunaPosition: Account<TunaLpPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<FusionPool>,
|
|
6992
|
-
declare function liquidateTunaLpPositionFusionInstruction(authority: TransactionSigner, tunaPosition: Account<TunaLpPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>,
|
|
5972
|
+
declare function liquidateTunaLpPositionFusionInstructions(authority: TransactionSigner, tunaPosition: Account<TunaLpPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<FusionPool>, decreasePercent: number): Promise<IInstruction[]>;
|
|
5973
|
+
declare function liquidateTunaLpPositionFusionInstruction(authority: TransactionSigner, tunaPosition: Account<TunaLpPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>, decreasePercent: number): Promise<IInstruction>;
|
|
6993
5974
|
|
|
6994
|
-
declare function liquidateTunaSpotPositionFusionInstructions(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>, createTunaPositionOwnerAta: boolean,
|
|
6995
|
-
declare function liquidateTunaSpotPositionFusionInstruction(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>,
|
|
5975
|
+
declare function liquidateTunaSpotPositionFusionInstructions(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>, createTunaPositionOwnerAta: boolean, decreasePercent: number): Promise<IInstruction[]>;
|
|
5976
|
+
declare function liquidateTunaSpotPositionFusionInstruction(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>, decreasePercent: number): Promise<IInstruction>;
|
|
6996
5977
|
|
|
6997
|
-
declare function liquidateTunaSpotPositionOrcaInstructions(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, createTunaPositionOwnerAta: boolean,
|
|
6998
|
-
declare function liquidateTunaSpotPositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>,
|
|
5978
|
+
declare function liquidateTunaSpotPositionOrcaInstructions(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, createTunaPositionOwnerAta: boolean, decreasePercent: number): Promise<IInstruction[]>;
|
|
5979
|
+
declare function liquidateTunaSpotPositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, decreasePercent: number): Promise<IInstruction>;
|
|
6999
5980
|
|
|
7000
5981
|
declare function openTunaLpPositionOrcaInstruction(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, positionMint: TransactionSigner, whirlpoolAddress: Address, args: OpenTunaLpPositionOrcaInstructionDataArgs): Promise<IInstruction>;
|
|
7001
5982
|
|
|
@@ -7029,14 +6010,6 @@ type OpenAndIncreaseTunaLpPositionFusionInstructionsArgs = Omit<OpenAndIncreaseT
|
|
|
7029
6010
|
declare function openAndIncreaseTunaLpPositionFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, fusionPoolAddress: Address, args: OpenAndIncreaseTunaLpPositionFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<OpenAndIncreaseTunaLpPositionFusion>;
|
|
7030
6011
|
declare function openAndIncreaseTunaLpPositionFusionInstruction(authority: TransactionSigner, positionMint: TransactionSigner, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>, args: Omit<OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs, "remainingAccountsInfo">): Promise<IInstruction>;
|
|
7031
6012
|
|
|
7032
|
-
type OpenAndIncreaseTunaSpotPositionFusionInstructionsArgs = Omit<OpenAndIncreaseTunaSpotPositionFusionInstructionDataArgs, "remainingAccountsInfo">;
|
|
7033
|
-
declare function openAndIncreaseTunaSpotPositionFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, fusionPoolAddress: Address, args: OpenAndIncreaseTunaSpotPositionFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
7034
|
-
declare function openAndIncreaseTunaSpotPositionFusionInstruction(authority: TransactionSigner, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>, args: Omit<OpenAndIncreaseTunaSpotPositionFusionInstructionDataArgs, "remainingAccountsInfo">): Promise<IInstruction>;
|
|
7035
|
-
|
|
7036
|
-
type OpenAndIncreaseTunaSpotPositionOrcaInstructionsArgs = Omit<OpenAndIncreaseTunaSpotPositionOrcaInstructionDataArgs, "remainingAccountsInfo">;
|
|
7037
|
-
declare function openAndIncreaseTunaSpotPositionOrcaInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, whirlpoolAddress: Address, args: OpenAndIncreaseTunaSpotPositionOrcaInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
7038
|
-
declare function openAndIncreaseTunaSpotPositionOrcaInstruction(authority: TransactionSigner, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, args: Omit<OpenAndIncreaseTunaSpotPositionOrcaInstructionDataArgs, "remainingAccountsInfo">): Promise<IInstruction>;
|
|
7039
|
-
|
|
7040
6013
|
declare function openTunaSpotPositionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, poolAddress: Address, args: OpenTunaSpotPositionInstructionDataArgs): Promise<IInstruction[]>;
|
|
7041
6014
|
declare function openTunaSpotPositionInstruction(authority: TransactionSigner, mintA: Account<Mint>, mintB: Account<Mint>, poolAddress: Address, args: OpenTunaSpotPositionInstructionDataArgs): Promise<IInstruction>;
|
|
7042
6015
|
|
|
@@ -7119,4 +6092,4 @@ declare const JUPITER_PROGRAM_AUTHORITY: _solana_kit.Address<"9nnLbotNTcUhvbrsA6
|
|
|
7119
6092
|
declare const MIN_SQRT_PRICE = 4295048016n;
|
|
7120
6093
|
declare const MAX_SQRT_PRICE = 79226673515401279992447579055n;
|
|
7121
6094
|
|
|
7122
|
-
export { AccountsType, type AccountsTypeArgs, CLOSE_ACTIVE_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR, CLOSE_ACTIVE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR, CLOSE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, CLOSE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, CLOSE_TUNA_SPOT_POSITION_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 CloseActiveTunaLpPositionInstructionArgs, type CloseActiveTunaSpotPositionFusionInput, type CloseActiveTunaSpotPositionFusionInstruction, type CloseActiveTunaSpotPositionFusionInstructionData, type CloseActiveTunaSpotPositionFusionInstructionDataArgs, type CloseActiveTunaSpotPositionFusionInstructionsArgs, type CloseActiveTunaSpotPositionOrcaInput, type CloseActiveTunaSpotPositionOrcaInstruction, type CloseActiveTunaSpotPositionOrcaInstructionData, type CloseActiveTunaSpotPositionOrcaInstructionDataArgs, type CloseActiveTunaSpotPositionOrcaInstructionsArgs, type CloseTunaLpPositionFusionInput, type CloseTunaLpPositionFusionInstruction, type CloseTunaLpPositionFusionInstructionData, type CloseTunaLpPositionFusionInstructionDataArgs, type CloseTunaLpPositionOrcaInput, type CloseTunaLpPositionOrcaInstruction, type CloseTunaLpPositionOrcaInstructionData, type CloseTunaLpPositionOrcaInstructionDataArgs, type CloseTunaSpotPositionInput, type CloseTunaSpotPositionInstruction, type CloseTunaSpotPositionInstructionData, type CloseTunaSpotPositionInstructionDataArgs, 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, DECREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, DECREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, DECREASE_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR, DECREASE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR, DECREASE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR, DEFAULT_ADDRESS, DEFAULT_MAX_SWAP_SLIPPAGE, DEFAULT_PUSH_ORACLE_PROGRAM_ID, DEPOSIT_DISCRIMINATOR, type DecreaseTunaLpPositionFusionInput, type DecreaseTunaLpPositionFusionInstruction, type DecreaseTunaLpPositionFusionInstructionData, type DecreaseTunaLpPositionFusionInstructionDataArgs, type DecreaseTunaLpPositionFusionInstructionsArgs, type DecreaseTunaLpPositionOrcaInput, type DecreaseTunaLpPositionOrcaInstruction, type DecreaseTunaLpPositionOrcaInstructionData, type DecreaseTunaLpPositionOrcaInstructionDataArgs, type DecreaseTunaLpPositionOrcaInstructionsArgs, type DecreaseTunaSpotPositionFusionInput, type DecreaseTunaSpotPositionFusionInstruction, type DecreaseTunaSpotPositionFusionInstructionData, type DecreaseTunaSpotPositionFusionInstructionDataArgs, type DecreaseTunaSpotPositionFusionInstructionsArgs, type DecreaseTunaSpotPositionJupiterInput, type DecreaseTunaSpotPositionJupiterInstruction, type DecreaseTunaSpotPositionJupiterInstructionData, type DecreaseTunaSpotPositionJupiterInstructionDataArgs, type DecreaseTunaSpotPositionJupiterInstructionsArgs, type DecreaseTunaSpotPositionOrcaInput, type DecreaseTunaSpotPositionOrcaInstruction, type DecreaseTunaSpotPositionOrcaInstructionData, type DecreaseTunaSpotPositionOrcaInstructionDataArgs, type DecreaseTunaSpotPositionOrcaInstructionsArgs, type DepositInput, type DepositInstruction, type DepositInstructionData, type DepositInstructionDataArgs, FusionUtils, HUNDRED_PERCENT, HUNDRED_PERCENTn, INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, INCREASE_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR, INCREASE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR, INCREASE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR, type IncreaseLpPositionQuoteArgs, type IncreaseLpPositionQuoteResult, type IncreaseTunaLpPositionFusionInput, type IncreaseTunaLpPositionFusionInstruction, type IncreaseTunaLpPositionFusionInstructionData, type IncreaseTunaLpPositionFusionInstructionDataArgs, type IncreaseTunaLpPositionFusionInstructionsArgs, type IncreaseTunaLpPositionOrcaInput, type IncreaseTunaLpPositionOrcaInstruction, type IncreaseTunaLpPositionOrcaInstructionData, type IncreaseTunaLpPositionOrcaInstructionDataArgs, type IncreaseTunaLpPositionOrcaInstructionsArgs, type IncreaseTunaSpotPositionFusionInput, type IncreaseTunaSpotPositionFusionInstruction, type IncreaseTunaSpotPositionFusionInstructionData, type IncreaseTunaSpotPositionFusionInstructionDataArgs, type IncreaseTunaSpotPositionFusionInstructionsArgs, type IncreaseTunaSpotPositionJupiterInput, type IncreaseTunaSpotPositionJupiterInstruction, type IncreaseTunaSpotPositionJupiterInstructionData, type IncreaseTunaSpotPositionJupiterInstructionDataArgs, type IncreaseTunaSpotPositionJupiterInstructionsArgs, type IncreaseTunaSpotPositionOrcaInput, type IncreaseTunaSpotPositionOrcaInstruction, type IncreaseTunaSpotPositionOrcaInstructionData, type IncreaseTunaSpotPositionOrcaInstructionDataArgs, type IncreaseTunaSpotPositionOrcaInstructionsArgs, JUPITER_EVENT_AUTHORITY, JUPITER_PROGRAM_AUTHORITY, LENDING_POSITION_DISCRIMINATOR, LEVERAGE_ONE, LIQUIDATE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, LIQUIDATE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, LIQUIDATE_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR, LIQUIDATE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR, type LendingPosition, type LendingPositionArgs, type LiquidateTunaLpPositionFusionInput, type LiquidateTunaLpPositionFusionInstruction, type LiquidateTunaLpPositionFusionInstructionData, type LiquidateTunaLpPositionFusionInstructionDataArgs, type LiquidateTunaLpPositionOrcaInput, type LiquidateTunaLpPositionOrcaInstruction, type LiquidateTunaLpPositionOrcaInstructionData, type LiquidateTunaLpPositionOrcaInstructionDataArgs, type LiquidateTunaSpotPositionFusionInput, type LiquidateTunaSpotPositionFusionInstruction, type LiquidateTunaSpotPositionFusionInstructionData, type LiquidateTunaSpotPositionFusionInstructionDataArgs, type LiquidateTunaSpotPositionOrcaInput, type LiquidateTunaSpotPositionOrcaInstruction, type LiquidateTunaSpotPositionOrcaInstructionData, type LiquidateTunaSpotPositionOrcaInstructionDataArgs, MARKET_DISCRIMINATOR, MAX_LEVERAGE, MAX_LIMIT_ORDER_EXECUTION_FEE, MAX_LIQUIDATION_FEE, MAX_LIQUIDATION_THRESHOLD, MAX_PROTOCOL_FEE, MAX_SQRT_PRICE, MIN_SQRT_PRICE, type Market, type MarketArgs, MarketMaker, type MarketMakerArgs, NATIVE_MINT, NO_LOWER_LIMIT_ORDER, NO_UPPER_LIMIT_ORDER, OPEN_AND_INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, OPEN_AND_INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, OPEN_AND_INCREASE_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR, OPEN_AND_INCREASE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR, OPEN_LENDING_POSITION_DISCRIMINATOR, OPEN_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, OPEN_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, OPEN_TUNA_SPOT_POSITION_DISCRIMINATOR, type OpenAndIncreaseTunaLpPositionFusion, type OpenAndIncreaseTunaLpPositionFusionInput, type OpenAndIncreaseTunaLpPositionFusionInstruction, type OpenAndIncreaseTunaLpPositionFusionInstructionData, type OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs, type OpenAndIncreaseTunaLpPositionFusionInstructionsArgs, type OpenAndIncreaseTunaLpPositionOrca, type OpenAndIncreaseTunaLpPositionOrcaInput, type OpenAndIncreaseTunaLpPositionOrcaInstruction, type OpenAndIncreaseTunaLpPositionOrcaInstructionData, type OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs, type OpenAndIncreaseTunaLpPositionOrcaInstructionsArgs, type OpenAndIncreaseTunaSpotPositionFusionInput, type OpenAndIncreaseTunaSpotPositionFusionInstruction, type OpenAndIncreaseTunaSpotPositionFusionInstructionData, type OpenAndIncreaseTunaSpotPositionFusionInstructionDataArgs, type OpenAndIncreaseTunaSpotPositionFusionInstructionsArgs, type OpenAndIncreaseTunaSpotPositionOrcaInput, type OpenAndIncreaseTunaSpotPositionOrcaInstruction, type OpenAndIncreaseTunaSpotPositionOrcaInstructionData, type OpenAndIncreaseTunaSpotPositionOrcaInstructionDataArgs, type OpenAndIncreaseTunaSpotPositionOrcaInstructionsArgs, type OpenLendingPositionInput, type OpenLendingPositionInstruction, type OpenLendingPositionInstructionData, type OpenLendingPositionInstructionDataArgs, type OpenTunaLpPositionFusionInput, type OpenTunaLpPositionFusionInstruction, type OpenTunaLpPositionFusionInstructionData, type OpenTunaLpPositionFusionInstructionDataArgs, type OpenTunaLpPositionOrcaInput, type OpenTunaLpPositionOrcaInstruction, type OpenTunaLpPositionOrcaInstructionData, type OpenTunaLpPositionOrcaInstructionDataArgs, type OpenTunaSpotPositionInput, type OpenTunaSpotPositionInstruction, type OpenTunaSpotPositionInstructionData, type OpenTunaSpotPositionInstructionDataArgs, OrcaUtils, type ParsedCloseActiveTunaSpotPositionFusionInstruction, type ParsedCloseActiveTunaSpotPositionOrcaInstruction, type ParsedCloseTunaLpPositionFusionInstruction, type ParsedCloseTunaLpPositionOrcaInstruction, type ParsedCloseTunaSpotPositionInstruction, type ParsedCollectAndCompoundFeesFusionInstruction, type ParsedCollectAndCompoundFeesOrcaInstruction, type ParsedCollectFeesFusionInstruction, type ParsedCollectFeesOrcaInstruction, type ParsedCollectRewardOrcaInstruction, type ParsedCreateMarketInstruction, type ParsedCreateTunaConfigInstruction, type ParsedCreateVaultInstruction, type ParsedDecreaseTunaLpPositionFusionInstruction, type ParsedDecreaseTunaLpPositionOrcaInstruction, type ParsedDecreaseTunaSpotPositionFusionInstruction, type ParsedDecreaseTunaSpotPositionJupiterInstruction, type ParsedDecreaseTunaSpotPositionOrcaInstruction, type ParsedDepositInstruction, type ParsedIncreaseTunaLpPositionFusionInstruction, type ParsedIncreaseTunaLpPositionOrcaInstruction, type ParsedIncreaseTunaSpotPositionFusionInstruction, type ParsedIncreaseTunaSpotPositionJupiterInstruction, type ParsedIncreaseTunaSpotPositionOrcaInstruction, type ParsedLiquidateTunaLpPositionFusionInstruction, type ParsedLiquidateTunaLpPositionOrcaInstruction, type ParsedLiquidateTunaSpotPositionFusionInstruction, type ParsedLiquidateTunaSpotPositionOrcaInstruction, type ParsedOpenAndIncreaseTunaLpPositionFusionInstruction, type ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction, type ParsedOpenAndIncreaseTunaSpotPositionFusionInstruction, type ParsedOpenAndIncreaseTunaSpotPositionOrcaInstruction, type ParsedOpenLendingPositionInstruction, type ParsedOpenTunaLpPositionFusionInstruction, type ParsedOpenTunaLpPositionOrcaInstruction, type ParsedOpenTunaSpotPositionInstruction, type ParsedRebalanceTunaLpPositionFusionInstruction, type ParsedRebalanceTunaLpPositionOrcaInstruction, type ParsedRepayBadDebtInstruction, type ParsedRepayTunaLpPositionDebtInstruction, type ParsedResetTunaSpotPositionInstruction, type ParsedSetAdminAuthorityInstruction, type ParsedSetDefaultMaxPercentageOfLeftoversInstruction, type ParsedSetDefaultMaxSwapSlippageInstruction, type ParsedSetDefaultOraclePriceDeviationThresholdInstruction, type ParsedSetFeeRecipientInstruction, type ParsedSetLiquidatorAuthorityInstruction, type ParsedSetOwnerAuthorityInstruction, type ParsedSetSuspendedStateInstruction, type ParsedSetTunaLpPositionFlagsInstruction, type ParsedSetTunaLpPositionLimitOrdersInstruction, type ParsedSetTunaLpPositionRebalanceThresholdInstruction, type ParsedSetTunaSpotPositionLimitOrdersInstruction, type ParsedTunaInstruction, type ParsedUpdateMarketInstruction, type ParsedUpdateVaultInstruction, type ParsedWithdrawInstruction, PoolToken, type PoolTokenArgs, REBALANCE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, REBALANCE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, REPAY_BAD_DEBT_DISCRIMINATOR, REPAY_TUNA_LP_POSITION_DEBT_DISCRIMINATOR, RESET_TUNA_SPOT_POSITION_DISCRIMINATOR, type RebalanceTunaLpPositionFusion, type RebalanceTunaLpPositionFusionInput, type RebalanceTunaLpPositionFusionInstruction, type RebalanceTunaLpPositionFusionInstructionData, type RebalanceTunaLpPositionFusionInstructionDataArgs, type RebalanceTunaLpPositionOrca, type RebalanceTunaLpPositionOrcaInput, type RebalanceTunaLpPositionOrcaInstruction, type RebalanceTunaLpPositionOrcaInstructionData, type RebalanceTunaLpPositionOrcaInstructionDataArgs, type RemainingAccountsInfo, type RemainingAccountsInfoArgs, type RemainingAccountsSlice, type RemainingAccountsSliceArgs, type RepayBadDebtInput, type RepayBadDebtInstruction, type RepayBadDebtInstructionData, type RepayBadDebtInstructionDataArgs, type RepayTunaLpPositionDebtInput, type RepayTunaLpPositionDebtInstruction, type RepayTunaLpPositionDebtInstructionData, type RepayTunaLpPositionDebtInstructionDataArgs, type ResetTunaSpotPositionInput, type ResetTunaSpotPositionInstruction, type ResetTunaSpotPositionInstructionData, type ResetTunaSpotPositionInstructionDataArgs, 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_LIQUIDATOR_AUTHORITY_DISCRIMINATOR, SET_OWNER_AUTHORITY_DISCRIMINATOR, SET_SUSPENDED_STATE_DISCRIMINATOR, SET_TUNA_LP_POSITION_FLAGS_DISCRIMINATOR, SET_TUNA_LP_POSITION_LIMIT_ORDERS_DISCRIMINATOR, SET_TUNA_LP_POSITION_REBALANCE_THRESHOLD_DISCRIMINATOR, SET_TUNA_SPOT_POSITION_LIMIT_ORDERS_DISCRIMINATOR, 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 SetLiquidatorAuthorityInput, type SetLiquidatorAuthorityInstruction, type SetLiquidatorAuthorityInstructionData, type SetLiquidatorAuthorityInstructionDataArgs, type SetOwnerAuthorityInput, type SetOwnerAuthorityInstruction, type SetOwnerAuthorityInstructionData, type SetOwnerAuthorityInstructionDataArgs, type SetSuspendedStateInput, type SetSuspendedStateInstruction, type SetSuspendedStateInstructionData, type SetSuspendedStateInstructionDataArgs, type SetTunaLpPositionFlagsInput, type SetTunaLpPositionFlagsInstruction, type SetTunaLpPositionFlagsInstructionData, type SetTunaLpPositionFlagsInstructionDataArgs, type SetTunaLpPositionLimitOrdersInput, type SetTunaLpPositionLimitOrdersInstruction, type SetTunaLpPositionLimitOrdersInstructionData, type SetTunaLpPositionLimitOrdersInstructionDataArgs, type SetTunaLpPositionRebalanceThresholdInput, type SetTunaLpPositionRebalanceThresholdInstruction, type SetTunaLpPositionRebalanceThresholdInstructionData, type SetTunaLpPositionRebalanceThresholdInstructionDataArgs, type SetTunaSpotPositionLimitOrdersInput, type SetTunaSpotPositionLimitOrdersInstruction, type SetTunaSpotPositionLimitOrdersInstructionData, type SetTunaSpotPositionLimitOrdersInstructionDataArgs, TUNA_CONFIG_DISCRIMINATOR, TUNA_ERROR__ACCOUNT_NOT_INITIALIZED, TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED, TUNA_ERROR__BAD_DEBT, TUNA_ERROR__INCORRECT_POSITION_DIRECTION, TUNA_ERROR__INCORRECT_SWAP_INPUT_AMOUNT, TUNA_ERROR__INSUFFICIENT_LIQUIDITY, TUNA_ERROR__INSUFFICIENT_SWAP_OUTPUT_AMOUNT, TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE, TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR, TUNA_ERROR__INVALID_ACCOUNT_OWNER, TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS, TUNA_ERROR__INVALID_JUPITER_ROUTE, TUNA_ERROR__INVALID_MARKET_MAKER, TUNA_ERROR__INVALID_POOL, 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__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED, TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE, TUNA_ERROR__ORACLE_STALE_PRICE, TUNA_ERROR__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__POSITION_SIZE_LIMIT_EXCEEDED, TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET, TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET, TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE, TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH, TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED, TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT, TUNA_ERROR__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_AMOUNT, TUNA_ERROR__ZERO_PRICE_RANGE, TUNA_ERROR__ZERO_TRADABLE_AMOUNT, TUNA_ERROR__ZERO_YIELD, TUNA_LP_POSITION_DISCRIMINATOR, TUNA_POSITION_FLAGS_ALLOW_REBALANCING, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD_WITH_LEVERAGE, TUNA_POSITION_FLAGS_LOWER_LIMIT_ORDER_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_LOWER_LIMIT_ORDER_SWAP_TO_TOKEN_B, TUNA_POSITION_FLAGS_UPPER_LIMIT_ORDER_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_UPPER_LIMIT_ORDER_SWAP_TO_TOKEN_B, TUNA_PROGRAM_ADDRESS, TUNA_SPOT_POSITION_DISCRIMINATOR, TunaAccount, type TunaConfig, type TunaConfigArgs, type TunaError, TunaInstruction, type TunaLpPosition, type TunaLpPositionArgs, TunaPositionState, type TunaPositionStateArgs, type TunaSpotPosition, type TunaSpotPositionArgs, UNLIMITED_SUPPLY_LIMIT, 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, closeActiveTunaLpPositionFusionInstructions, closeActiveTunaLpPositionOrcaInstructions, closeActiveTunaSpotPositionFusionInstruction, closeActiveTunaSpotPositionFusionInstructions, closeActiveTunaSpotPositionOrcaInstruction, closeActiveTunaSpotPositionOrcaInstructions, closeTunaLpPositionFusionInstruction, closeTunaLpPositionOrcaInstruction, closeTunaSpotPositionInstruction, closeTunaSpotPositionInstructions, collectAndCompoundFeesFusionInstruction, collectAndCompoundFeesFusionInstructions, collectAndCompoundFeesOrcaInstruction, collectAndCompoundFeesOrcaInstructions, collectFeesFusionInstruction, collectFeesFusionInstructions, collectFeesOrcaInstruction, collectFeesOrcaInstructions, createAddressLookupTableForMarketInstructions, createAddressLookupTableInstructions, createMarketInstruction, createTunaConfigInstruction, createVaultInstructions, decodeLendingPosition, decodeMarket, decodeTunaConfig, decodeTunaLpPosition, decodeTunaSpotPosition, decodeVault, decreaseTunaLpPositionFusionInstruction, decreaseTunaLpPositionFusionInstructions, decreaseTunaLpPositionOrcaInstruction, decreaseTunaLpPositionOrcaInstructions, decreaseTunaSpotPositionFusionInstruction, decreaseTunaSpotPositionFusionInstructions, decreaseTunaSpotPositionJupiterInstruction, decreaseTunaSpotPositionJupiterInstructions, decreaseTunaSpotPositionOrcaInstruction, decreaseTunaSpotPositionOrcaInstructions, depositInstruction, depositInstructions, extendAddressLookupTableForMarketInstructions, fetchAllLendingPosition, fetchAllLendingPositionWithFilter, fetchAllMarket, fetchAllMarketWithFilter, fetchAllMaybeLendingPosition, fetchAllMaybeMarket, fetchAllMaybeTunaConfig, fetchAllMaybeTunaLpPosition, fetchAllMaybeTunaSpotPosition, fetchAllMaybeVault, fetchAllTunaConfig, fetchAllTunaLpPosition, fetchAllTunaLpPositionWithFilter, fetchAllTunaSpotPosition, fetchAllTunaSpotPositionWithFilter, fetchAllVault, fetchLendingPosition, fetchMarket, fetchMaybeLendingPosition, fetchMaybeMarket, fetchMaybeTunaConfig, fetchMaybeTunaLpPosition, fetchMaybeTunaSpotPosition, fetchMaybeVault, fetchTunaConfig, fetchTunaLpPosition, fetchTunaSpotPosition, fetchVault, fundsToShares, getAccountsTypeCodec, getAccountsTypeDecoder, getAccountsTypeEncoder, getCloseActiveTunaSpotPositionFusionDiscriminatorBytes, getCloseActiveTunaSpotPositionFusionInstruction, getCloseActiveTunaSpotPositionFusionInstructionDataCodec, getCloseActiveTunaSpotPositionFusionInstructionDataDecoder, getCloseActiveTunaSpotPositionFusionInstructionDataEncoder, getCloseActiveTunaSpotPositionOrcaDiscriminatorBytes, getCloseActiveTunaSpotPositionOrcaInstruction, getCloseActiveTunaSpotPositionOrcaInstructionDataCodec, getCloseActiveTunaSpotPositionOrcaInstructionDataDecoder, getCloseActiveTunaSpotPositionOrcaInstructionDataEncoder, getCloseTunaLpPositionFusionDiscriminatorBytes, getCloseTunaLpPositionFusionInstruction, getCloseTunaLpPositionFusionInstructionDataCodec, getCloseTunaLpPositionFusionInstructionDataDecoder, getCloseTunaLpPositionFusionInstructionDataEncoder, getCloseTunaLpPositionOrcaDiscriminatorBytes, getCloseTunaLpPositionOrcaInstruction, getCloseTunaLpPositionOrcaInstructionDataCodec, getCloseTunaLpPositionOrcaInstructionDataDecoder, getCloseTunaLpPositionOrcaInstructionDataEncoder, getCloseTunaSpotPositionDiscriminatorBytes, getCloseTunaSpotPositionInstruction, getCloseTunaSpotPositionInstructionDataCodec, getCloseTunaSpotPositionInstructionDataDecoder, getCloseTunaSpotPositionInstructionDataEncoder, 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, getDecreaseTunaLpPositionFusionDiscriminatorBytes, getDecreaseTunaLpPositionFusionInstruction, getDecreaseTunaLpPositionFusionInstructionDataCodec, getDecreaseTunaLpPositionFusionInstructionDataDecoder, getDecreaseTunaLpPositionFusionInstructionDataEncoder, getDecreaseTunaLpPositionOrcaDiscriminatorBytes, getDecreaseTunaLpPositionOrcaInstruction, getDecreaseTunaLpPositionOrcaInstructionDataCodec, getDecreaseTunaLpPositionOrcaInstructionDataDecoder, getDecreaseTunaLpPositionOrcaInstructionDataEncoder, getDecreaseTunaSpotPositionFusionDiscriminatorBytes, getDecreaseTunaSpotPositionFusionInstruction, getDecreaseTunaSpotPositionFusionInstructionDataCodec, getDecreaseTunaSpotPositionFusionInstructionDataDecoder, getDecreaseTunaSpotPositionFusionInstructionDataEncoder, getDecreaseTunaSpotPositionJupiterDiscriminatorBytes, getDecreaseTunaSpotPositionJupiterInstruction, getDecreaseTunaSpotPositionJupiterInstructionDataCodec, getDecreaseTunaSpotPositionJupiterInstructionDataDecoder, getDecreaseTunaSpotPositionJupiterInstructionDataEncoder, getDecreaseTunaSpotPositionOrcaDiscriminatorBytes, getDecreaseTunaSpotPositionOrcaInstruction, getDecreaseTunaSpotPositionOrcaInstructionDataCodec, getDecreaseTunaSpotPositionOrcaInstructionDataDecoder, getDecreaseTunaSpotPositionOrcaInstructionDataEncoder, getDepositDiscriminatorBytes, getDepositInstruction, getDepositInstructionDataCodec, getDepositInstructionDataDecoder, getDepositInstructionDataEncoder, getIncreaseLpPositionQuote, getIncreaseTunaLpPositionFusionDiscriminatorBytes, getIncreaseTunaLpPositionFusionInstruction, getIncreaseTunaLpPositionFusionInstructionDataCodec, getIncreaseTunaLpPositionFusionInstructionDataDecoder, getIncreaseTunaLpPositionFusionInstructionDataEncoder, getIncreaseTunaLpPositionOrcaDiscriminatorBytes, getIncreaseTunaLpPositionOrcaInstruction, getIncreaseTunaLpPositionOrcaInstructionDataCodec, getIncreaseTunaLpPositionOrcaInstructionDataDecoder, getIncreaseTunaLpPositionOrcaInstructionDataEncoder, getIncreaseTunaSpotPositionFusionDiscriminatorBytes, getIncreaseTunaSpotPositionFusionInstruction, getIncreaseTunaSpotPositionFusionInstructionDataCodec, getIncreaseTunaSpotPositionFusionInstructionDataDecoder, getIncreaseTunaSpotPositionFusionInstructionDataEncoder, getIncreaseTunaSpotPositionJupiterDiscriminatorBytes, getIncreaseTunaSpotPositionJupiterInstruction, getIncreaseTunaSpotPositionJupiterInstructionDataCodec, getIncreaseTunaSpotPositionJupiterInstructionDataDecoder, getIncreaseTunaSpotPositionJupiterInstructionDataEncoder, getIncreaseTunaSpotPositionOrcaDiscriminatorBytes, getIncreaseTunaSpotPositionOrcaInstruction, getIncreaseTunaSpotPositionOrcaInstructionDataCodec, getIncreaseTunaSpotPositionOrcaInstructionDataDecoder, getIncreaseTunaSpotPositionOrcaInstructionDataEncoder, getLendingPositionAddress, getLendingPositionCodec, getLendingPositionDecoder, getLendingPositionDiscriminatorBytes, getLendingPositionEncoder, getLendingPositionSize, getLendingVaultAddress, getLiquidateTunaLpPositionFusionDiscriminatorBytes, getLiquidateTunaLpPositionFusionInstruction, getLiquidateTunaLpPositionFusionInstructionDataCodec, getLiquidateTunaLpPositionFusionInstructionDataDecoder, getLiquidateTunaLpPositionFusionInstructionDataEncoder, getLiquidateTunaLpPositionOrcaDiscriminatorBytes, getLiquidateTunaLpPositionOrcaInstruction, getLiquidateTunaLpPositionOrcaInstructionDataCodec, getLiquidateTunaLpPositionOrcaInstructionDataDecoder, getLiquidateTunaLpPositionOrcaInstructionDataEncoder, getLiquidateTunaSpotPositionFusionDiscriminatorBytes, getLiquidateTunaSpotPositionFusionInstruction, getLiquidateTunaSpotPositionFusionInstructionDataCodec, getLiquidateTunaSpotPositionFusionInstructionDataDecoder, getLiquidateTunaSpotPositionFusionInstructionDataEncoder, getLiquidateTunaSpotPositionOrcaDiscriminatorBytes, getLiquidateTunaSpotPositionOrcaInstruction, getLiquidateTunaSpotPositionOrcaInstructionDataCodec, getLiquidateTunaSpotPositionOrcaInstructionDataDecoder, getLiquidateTunaSpotPositionOrcaInstructionDataEncoder, getMarketAddress, getMarketCodec, getMarketDecoder, getMarketDiscriminatorBytes, getMarketEncoder, getMarketMakerCodec, getMarketMakerDecoder, getMarketMakerEncoder, getMarketSize, getOpenAndIncreaseTunaLpPositionFusionDiscriminatorBytes, getOpenAndIncreaseTunaLpPositionFusionInstruction, getOpenAndIncreaseTunaLpPositionFusionInstructionDataCodec, getOpenAndIncreaseTunaLpPositionFusionInstructionDataDecoder, getOpenAndIncreaseTunaLpPositionFusionInstructionDataEncoder, getOpenAndIncreaseTunaLpPositionOrcaDiscriminatorBytes, getOpenAndIncreaseTunaLpPositionOrcaInstruction, getOpenAndIncreaseTunaLpPositionOrcaInstructionDataCodec, getOpenAndIncreaseTunaLpPositionOrcaInstructionDataDecoder, getOpenAndIncreaseTunaLpPositionOrcaInstructionDataEncoder, getOpenAndIncreaseTunaSpotPositionFusionDiscriminatorBytes, getOpenAndIncreaseTunaSpotPositionFusionInstruction, getOpenAndIncreaseTunaSpotPositionFusionInstructionDataCodec, getOpenAndIncreaseTunaSpotPositionFusionInstructionDataDecoder, getOpenAndIncreaseTunaSpotPositionFusionInstructionDataEncoder, getOpenAndIncreaseTunaSpotPositionOrcaDiscriminatorBytes, getOpenAndIncreaseTunaSpotPositionOrcaInstruction, getOpenAndIncreaseTunaSpotPositionOrcaInstructionDataCodec, getOpenAndIncreaseTunaSpotPositionOrcaInstructionDataDecoder, getOpenAndIncreaseTunaSpotPositionOrcaInstructionDataEncoder, getOpenLendingPositionDiscriminatorBytes, getOpenLendingPositionInstruction, getOpenLendingPositionInstructionDataCodec, getOpenLendingPositionInstructionDataDecoder, getOpenLendingPositionInstructionDataEncoder, getOpenTunaLpPositionFusionDiscriminatorBytes, getOpenTunaLpPositionFusionInstruction, getOpenTunaLpPositionFusionInstructionDataCodec, getOpenTunaLpPositionFusionInstructionDataDecoder, getOpenTunaLpPositionFusionInstructionDataEncoder, getOpenTunaLpPositionOrcaDiscriminatorBytes, getOpenTunaLpPositionOrcaInstruction, getOpenTunaLpPositionOrcaInstructionDataCodec, getOpenTunaLpPositionOrcaInstructionDataDecoder, getOpenTunaLpPositionOrcaInstructionDataEncoder, getOpenTunaSpotPositionDiscriminatorBytes, getOpenTunaSpotPositionInstruction, getOpenTunaSpotPositionInstructionDataCodec, getOpenTunaSpotPositionInstructionDataDecoder, getOpenTunaSpotPositionInstructionDataEncoder, getPoolTokenCodec, getPoolTokenDecoder, getPoolTokenEncoder, getPythPriceUpdateAccountAddress, getRebalanceTunaLpPositionFusionDiscriminatorBytes, getRebalanceTunaLpPositionFusionInstruction, getRebalanceTunaLpPositionFusionInstructionDataCodec, getRebalanceTunaLpPositionFusionInstructionDataDecoder, getRebalanceTunaLpPositionFusionInstructionDataEncoder, getRebalanceTunaLpPositionOrcaDiscriminatorBytes, getRebalanceTunaLpPositionOrcaInstruction, getRebalanceTunaLpPositionOrcaInstructionDataCodec, getRebalanceTunaLpPositionOrcaInstructionDataDecoder, getRebalanceTunaLpPositionOrcaInstructionDataEncoder, getRemainingAccountsInfoCodec, getRemainingAccountsInfoDecoder, getRemainingAccountsInfoEncoder, getRemainingAccountsSliceCodec, getRemainingAccountsSliceDecoder, getRemainingAccountsSliceEncoder, getRepayBadDebtDiscriminatorBytes, getRepayBadDebtInstruction, getRepayBadDebtInstructionDataCodec, getRepayBadDebtInstructionDataDecoder, getRepayBadDebtInstructionDataEncoder, getRepayTunaLpPositionDebtDiscriminatorBytes, getRepayTunaLpPositionDebtInstruction, getRepayTunaLpPositionDebtInstructionDataCodec, getRepayTunaLpPositionDebtInstructionDataDecoder, getRepayTunaLpPositionDebtInstructionDataEncoder, getResetTunaSpotPositionDiscriminatorBytes, getResetTunaSpotPositionInstruction, getResetTunaSpotPositionInstructionDataCodec, getResetTunaSpotPositionInstructionDataDecoder, getResetTunaSpotPositionInstructionDataEncoder, 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, getSetLiquidatorAuthorityDiscriminatorBytes, getSetLiquidatorAuthorityInstruction, getSetLiquidatorAuthorityInstructionDataCodec, getSetLiquidatorAuthorityInstructionDataDecoder, getSetLiquidatorAuthorityInstructionDataEncoder, getSetOwnerAuthorityDiscriminatorBytes, getSetOwnerAuthorityInstruction, getSetOwnerAuthorityInstructionDataCodec, getSetOwnerAuthorityInstructionDataDecoder, getSetOwnerAuthorityInstructionDataEncoder, getSetSuspendedStateDiscriminatorBytes, getSetSuspendedStateInstruction, getSetSuspendedStateInstructionDataCodec, getSetSuspendedStateInstructionDataDecoder, getSetSuspendedStateInstructionDataEncoder, getSetTunaLpPositionFlagsDiscriminatorBytes, getSetTunaLpPositionFlagsInstruction, getSetTunaLpPositionFlagsInstructionDataCodec, getSetTunaLpPositionFlagsInstructionDataDecoder, getSetTunaLpPositionFlagsInstructionDataEncoder, getSetTunaLpPositionLimitOrdersDiscriminatorBytes, getSetTunaLpPositionLimitOrdersInstruction, getSetTunaLpPositionLimitOrdersInstructionDataCodec, getSetTunaLpPositionLimitOrdersInstructionDataDecoder, getSetTunaLpPositionLimitOrdersInstructionDataEncoder, getSetTunaLpPositionRebalanceThresholdDiscriminatorBytes, getSetTunaLpPositionRebalanceThresholdInstruction, getSetTunaLpPositionRebalanceThresholdInstructionDataCodec, getSetTunaLpPositionRebalanceThresholdInstructionDataDecoder, getSetTunaLpPositionRebalanceThresholdInstructionDataEncoder, getSetTunaSpotPositionLimitOrdersDiscriminatorBytes, getSetTunaSpotPositionLimitOrdersInstruction, getSetTunaSpotPositionLimitOrdersInstructionDataCodec, getSetTunaSpotPositionLimitOrdersInstructionDataDecoder, getSetTunaSpotPositionLimitOrdersInstructionDataEncoder, getTunaConfigAddress, getTunaConfigCodec, getTunaConfigDecoder, getTunaConfigDiscriminatorBytes, getTunaConfigEncoder, getTunaConfigSize, getTunaErrorMessage, getTunaLpPositionAddress, getTunaLpPositionCodec, getTunaLpPositionDecoder, getTunaLpPositionDiscriminatorBytes, getTunaLpPositionEncoder, getTunaLpPositionSize, getTunaPositionStateCodec, getTunaPositionStateDecoder, getTunaPositionStateEncoder, getTunaSpotPositionAddress, getTunaSpotPositionCodec, getTunaSpotPositionDecoder, getTunaSpotPositionDiscriminatorBytes, getTunaSpotPositionEncoder, getTunaSpotPositionSize, getUpdateMarketDiscriminatorBytes, getUpdateMarketInstruction, getUpdateMarketInstructionDataCodec, getUpdateMarketInstructionDataDecoder, getUpdateMarketInstructionDataEncoder, getUpdateVaultDiscriminatorBytes, getUpdateVaultInstruction, getUpdateVaultInstructionDataCodec, getUpdateVaultInstructionDataDecoder, getUpdateVaultInstructionDataEncoder, getVaultCodec, getVaultDecoder, getVaultDiscriminatorBytes, getVaultEncoder, getVaultSize, getWithdrawDiscriminatorBytes, getWithdrawInstruction, getWithdrawInstructionDataCodec, getWithdrawInstructionDataDecoder, getWithdrawInstructionDataEncoder, identifyTunaAccount, identifyTunaInstruction, increaseTunaLpPositionFusionInstruction, increaseTunaLpPositionFusionInstructions, increaseTunaLpPositionOrcaInstruction, increaseTunaLpPositionOrcaInstructions, increaseTunaSpotPositionFusionInstruction, increaseTunaSpotPositionFusionInstructions, increaseTunaSpotPositionJupiterInstruction, increaseTunaSpotPositionJupiterInstructions, increaseTunaSpotPositionOrcaInstruction, increaseTunaSpotPositionOrcaInstructions, isTunaError, lendingPositionAuthorityFilter, lendingPositionMintFilter, liquidateTunaLpPositionFusionInstruction, liquidateTunaLpPositionFusionInstructions, liquidateTunaLpPositionOrcaInstruction, liquidateTunaLpPositionOrcaInstructions, liquidateTunaSpotPositionFusionInstruction, liquidateTunaSpotPositionFusionInstructions, liquidateTunaSpotPositionOrcaInstruction, liquidateTunaSpotPositionOrcaInstructions, mulDiv, openAndIncreaseTunaLpPositionFusionInstruction, openAndIncreaseTunaLpPositionFusionInstructions, openAndIncreaseTunaLpPositionOrcaInstruction, openAndIncreaseTunaLpPositionOrcaInstructions, openAndIncreaseTunaSpotPositionFusionInstruction, openAndIncreaseTunaSpotPositionFusionInstructions, openAndIncreaseTunaSpotPositionOrcaInstruction, openAndIncreaseTunaSpotPositionOrcaInstructions, openLendingPositionAndDepositInstructions, openLendingPositionInstruction, openTunaLpPositionFusionInstruction, openTunaLpPositionOrcaInstruction, openTunaSpotPositionInstruction, openTunaSpotPositionInstructions, parseCloseActiveTunaSpotPositionFusionInstruction, parseCloseActiveTunaSpotPositionOrcaInstruction, parseCloseTunaLpPositionFusionInstruction, parseCloseTunaLpPositionOrcaInstruction, parseCloseTunaSpotPositionInstruction, parseCollectAndCompoundFeesFusionInstruction, parseCollectAndCompoundFeesOrcaInstruction, parseCollectFeesFusionInstruction, parseCollectFeesOrcaInstruction, parseCollectRewardOrcaInstruction, parseCreateMarketInstruction, parseCreateTunaConfigInstruction, parseCreateVaultInstruction, parseDecreaseTunaLpPositionFusionInstruction, parseDecreaseTunaLpPositionOrcaInstruction, parseDecreaseTunaSpotPositionFusionInstruction, parseDecreaseTunaSpotPositionJupiterInstruction, parseDecreaseTunaSpotPositionOrcaInstruction, parseDepositInstruction, parseIncreaseTunaLpPositionFusionInstruction, parseIncreaseTunaLpPositionOrcaInstruction, parseIncreaseTunaSpotPositionFusionInstruction, parseIncreaseTunaSpotPositionJupiterInstruction, parseIncreaseTunaSpotPositionOrcaInstruction, parseLiquidateTunaLpPositionFusionInstruction, parseLiquidateTunaLpPositionOrcaInstruction, parseLiquidateTunaSpotPositionFusionInstruction, parseLiquidateTunaSpotPositionOrcaInstruction, parseOpenAndIncreaseTunaLpPositionFusionInstruction, parseOpenAndIncreaseTunaLpPositionOrcaInstruction, parseOpenAndIncreaseTunaSpotPositionFusionInstruction, parseOpenAndIncreaseTunaSpotPositionOrcaInstruction, parseOpenLendingPositionInstruction, parseOpenTunaLpPositionFusionInstruction, parseOpenTunaLpPositionOrcaInstruction, parseOpenTunaSpotPositionInstruction, parseRebalanceTunaLpPositionFusionInstruction, parseRebalanceTunaLpPositionOrcaInstruction, parseRepayBadDebtInstruction, parseRepayTunaLpPositionDebtInstruction, parseResetTunaSpotPositionInstruction, parseSetAdminAuthorityInstruction, parseSetDefaultMaxPercentageOfLeftoversInstruction, parseSetDefaultMaxSwapSlippageInstruction, parseSetDefaultOraclePriceDeviationThresholdInstruction, parseSetFeeRecipientInstruction, parseSetLiquidatorAuthorityInstruction, parseSetOwnerAuthorityInstruction, parseSetSuspendedStateInstruction, parseSetTunaLpPositionFlagsInstruction, parseSetTunaLpPositionLimitOrdersInstruction, parseSetTunaLpPositionRebalanceThresholdInstruction, parseSetTunaSpotPositionLimitOrdersInstruction, parseUpdateMarketInstruction, parseUpdateVaultInstruction, parseWithdrawInstruction, rebalanceTunaLpPositionFusionInstruction, rebalanceTunaLpPositionFusionInstructions, rebalanceTunaLpPositionOrcaInstruction, rebalanceTunaLpPositionOrcaInstructions, repayBadDebtInstruction, repayTunaLpPositionDebtInstruction, repayTunaLpPositionDebtInstructions, resetTunaSpotPositionInstruction, setTunaLpPositionLimitOrdersInstruction, setTunaSpotPositionLimitOrdersInstruction, sharesToFunds, tunaLpPositionAuthorityFilter, tunaLpPositionMarketMakerFilter, tunaLpPositionMintAFilter, tunaLpPositionMintBFilter, tunaLpPositionMintFilter, tunaLpPositionPoolFilter, tunaSpotPositionAuthorityFilter, tunaSpotPositionMintAFilter, tunaSpotPositionMintBFilter, tunaSpotPositionPoolFilter, updateMarketInstruction, updateVaultInstruction, withdrawInstruction, withdrawInstructions };
|
|
6095
|
+
export { AccountsType, type AccountsTypeArgs, CLOSE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, CLOSE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, CLOSE_TUNA_SPOT_POSITION_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 CloseActiveTunaLpPositionInstructionArgs, type CloseTunaLpPositionFusionInput, type CloseTunaLpPositionFusionInstruction, type CloseTunaLpPositionFusionInstructionData, type CloseTunaLpPositionFusionInstructionDataArgs, type CloseTunaLpPositionOrcaInput, type CloseTunaLpPositionOrcaInstruction, type CloseTunaLpPositionOrcaInstructionData, type CloseTunaLpPositionOrcaInstructionDataArgs, type CloseTunaSpotPositionInput, type CloseTunaSpotPositionInstruction, type CloseTunaSpotPositionInstructionData, type CloseTunaSpotPositionInstructionDataArgs, 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, DECREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, DECREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, DEFAULT_ADDRESS, DEFAULT_MAX_SWAP_SLIPPAGE, DEFAULT_PUSH_ORACLE_PROGRAM_ID, DEPOSIT_DISCRIMINATOR, type DecreaseTunaLpPositionFusionInput, type DecreaseTunaLpPositionFusionInstruction, type DecreaseTunaLpPositionFusionInstructionData, type DecreaseTunaLpPositionFusionInstructionDataArgs, type DecreaseTunaLpPositionFusionInstructionsArgs, type DecreaseTunaLpPositionOrcaInput, type DecreaseTunaLpPositionOrcaInstruction, type DecreaseTunaLpPositionOrcaInstructionData, type DecreaseTunaLpPositionOrcaInstructionDataArgs, type DecreaseTunaLpPositionOrcaInstructionsArgs, type DepositInput, type DepositInstruction, type DepositInstructionData, type DepositInstructionDataArgs, FusionUtils, HUNDRED_PERCENT, HUNDRED_PERCENTn, INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, type IncreaseLpPositionQuoteArgs, type IncreaseLpPositionQuoteResult, type IncreaseTunaLpPositionFusionInput, type IncreaseTunaLpPositionFusionInstruction, type IncreaseTunaLpPositionFusionInstructionData, type IncreaseTunaLpPositionFusionInstructionDataArgs, type IncreaseTunaLpPositionFusionInstructionsArgs, type IncreaseTunaLpPositionOrcaInput, type IncreaseTunaLpPositionOrcaInstruction, type IncreaseTunaLpPositionOrcaInstructionData, type IncreaseTunaLpPositionOrcaInstructionDataArgs, type IncreaseTunaLpPositionOrcaInstructionsArgs, JUPITER_EVENT_AUTHORITY, JUPITER_PROGRAM_AUTHORITY, LENDING_POSITION_DISCRIMINATOR, LEVERAGE_ONE, LIQUIDATE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, LIQUIDATE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, LIQUIDATE_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR, LIQUIDATE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR, type LendingPosition, type LendingPositionArgs, type LiquidateTunaLpPositionFusionInput, type LiquidateTunaLpPositionFusionInstruction, type LiquidateTunaLpPositionFusionInstructionData, type LiquidateTunaLpPositionFusionInstructionDataArgs, type LiquidateTunaLpPositionOrcaInput, type LiquidateTunaLpPositionOrcaInstruction, type LiquidateTunaLpPositionOrcaInstructionData, type LiquidateTunaLpPositionOrcaInstructionDataArgs, type LiquidateTunaSpotPositionFusionInput, type LiquidateTunaSpotPositionFusionInstruction, type LiquidateTunaSpotPositionFusionInstructionData, type LiquidateTunaSpotPositionFusionInstructionDataArgs, type LiquidateTunaSpotPositionOrcaInput, type LiquidateTunaSpotPositionOrcaInstruction, type LiquidateTunaSpotPositionOrcaInstructionData, type LiquidateTunaSpotPositionOrcaInstructionDataArgs, MARKET_DISCRIMINATOR, MAX_LEVERAGE, MAX_LIMIT_ORDER_EXECUTION_FEE, MAX_LIQUIDATION_FEE, MAX_LIQUIDATION_THRESHOLD, MAX_PROTOCOL_FEE, MAX_SQRT_PRICE, MIN_SQRT_PRICE, MODIFY_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR, MODIFY_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR, MODIFY_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR, type Market, type MarketArgs, MarketMaker, type MarketMakerArgs, type ModifyTunaSpotPositionFusionInput, type ModifyTunaSpotPositionFusionInstruction, type ModifyTunaSpotPositionFusionInstructionData, type ModifyTunaSpotPositionFusionInstructionDataArgs, type ModifyTunaSpotPositionFusionInstructionsArgs, type ModifyTunaSpotPositionJupiterInput, type ModifyTunaSpotPositionJupiterInstruction, type ModifyTunaSpotPositionJupiterInstructionData, type ModifyTunaSpotPositionJupiterInstructionDataArgs, type ModifyTunaSpotPositionOrcaInput, type ModifyTunaSpotPositionOrcaInstruction, type ModifyTunaSpotPositionOrcaInstructionData, type ModifyTunaSpotPositionOrcaInstructionDataArgs, type ModifyTunaSpotPositionOrcaInstructionsArgs, NATIVE_MINT, NO_LOWER_LIMIT_ORDER, NO_UPPER_LIMIT_ORDER, OPEN_AND_INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, OPEN_AND_INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, OPEN_LENDING_POSITION_DISCRIMINATOR, OPEN_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, OPEN_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, OPEN_TUNA_SPOT_POSITION_DISCRIMINATOR, type OpenAndIncreaseTunaLpPositionFusion, type OpenAndIncreaseTunaLpPositionFusionInput, type OpenAndIncreaseTunaLpPositionFusionInstruction, type OpenAndIncreaseTunaLpPositionFusionInstructionData, type OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs, type OpenAndIncreaseTunaLpPositionFusionInstructionsArgs, type OpenAndIncreaseTunaLpPositionOrca, type OpenAndIncreaseTunaLpPositionOrcaInput, type OpenAndIncreaseTunaLpPositionOrcaInstruction, type OpenAndIncreaseTunaLpPositionOrcaInstructionData, type OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs, type OpenAndIncreaseTunaLpPositionOrcaInstructionsArgs, type OpenLendingPositionInput, type OpenLendingPositionInstruction, type OpenLendingPositionInstructionData, type OpenLendingPositionInstructionDataArgs, type OpenTunaLpPositionFusionInput, type OpenTunaLpPositionFusionInstruction, type OpenTunaLpPositionFusionInstructionData, type OpenTunaLpPositionFusionInstructionDataArgs, type OpenTunaLpPositionOrcaInput, type OpenTunaLpPositionOrcaInstruction, type OpenTunaLpPositionOrcaInstructionData, type OpenTunaLpPositionOrcaInstructionDataArgs, type OpenTunaSpotPositionInput, type OpenTunaSpotPositionInstruction, type OpenTunaSpotPositionInstructionData, type OpenTunaSpotPositionInstructionDataArgs, OrcaUtils, type ParsedCloseTunaLpPositionFusionInstruction, type ParsedCloseTunaLpPositionOrcaInstruction, type ParsedCloseTunaSpotPositionInstruction, type ParsedCollectAndCompoundFeesFusionInstruction, type ParsedCollectAndCompoundFeesOrcaInstruction, type ParsedCollectFeesFusionInstruction, type ParsedCollectFeesOrcaInstruction, type ParsedCollectRewardOrcaInstruction, type ParsedCreateMarketInstruction, type ParsedCreateTunaConfigInstruction, type ParsedCreateVaultInstruction, type ParsedDecreaseTunaLpPositionFusionInstruction, type ParsedDecreaseTunaLpPositionOrcaInstruction, type ParsedDepositInstruction, type ParsedIncreaseTunaLpPositionFusionInstruction, type ParsedIncreaseTunaLpPositionOrcaInstruction, type ParsedLiquidateTunaLpPositionFusionInstruction, type ParsedLiquidateTunaLpPositionOrcaInstruction, type ParsedLiquidateTunaSpotPositionFusionInstruction, type ParsedLiquidateTunaSpotPositionOrcaInstruction, type ParsedModifyTunaSpotPositionFusionInstruction, type ParsedModifyTunaSpotPositionJupiterInstruction, type ParsedModifyTunaSpotPositionOrcaInstruction, type ParsedOpenAndIncreaseTunaLpPositionFusionInstruction, type ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction, type ParsedOpenLendingPositionInstruction, type ParsedOpenTunaLpPositionFusionInstruction, type ParsedOpenTunaLpPositionOrcaInstruction, type ParsedOpenTunaSpotPositionInstruction, type ParsedRebalanceTunaLpPositionFusionInstruction, type ParsedRebalanceTunaLpPositionOrcaInstruction, type ParsedRepayBadDebtInstruction, type ParsedRepayTunaLpPositionDebtInstruction, type ParsedResetTunaSpotPositionInstruction, type ParsedSetAdminAuthorityInstruction, type ParsedSetDefaultMaxPercentageOfLeftoversInstruction, type ParsedSetDefaultMaxSwapSlippageInstruction, type ParsedSetDefaultOraclePriceDeviationThresholdInstruction, type ParsedSetFeeRecipientInstruction, type ParsedSetLiquidatorAuthorityInstruction, type ParsedSetOwnerAuthorityInstruction, type ParsedSetSuspendedStateInstruction, type ParsedSetTunaLpPositionFlagsInstruction, type ParsedSetTunaLpPositionLimitOrdersInstruction, type ParsedSetTunaLpPositionRebalanceThresholdInstruction, type ParsedSetTunaSpotPositionLimitOrdersInstruction, type ParsedTunaInstruction, type ParsedUpdateMarketInstruction, type ParsedUpdateVaultInstruction, type ParsedWithdrawInstruction, PoolToken, type PoolTokenArgs, REBALANCE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, REBALANCE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, REPAY_BAD_DEBT_DISCRIMINATOR, REPAY_TUNA_LP_POSITION_DEBT_DISCRIMINATOR, RESET_TUNA_SPOT_POSITION_DISCRIMINATOR, type RebalanceTunaLpPositionFusion, type RebalanceTunaLpPositionFusionInput, type RebalanceTunaLpPositionFusionInstruction, type RebalanceTunaLpPositionFusionInstructionData, type RebalanceTunaLpPositionFusionInstructionDataArgs, type RebalanceTunaLpPositionOrca, type RebalanceTunaLpPositionOrcaInput, type RebalanceTunaLpPositionOrcaInstruction, type RebalanceTunaLpPositionOrcaInstructionData, type RebalanceTunaLpPositionOrcaInstructionDataArgs, type RemainingAccountsInfo, type RemainingAccountsInfoArgs, type RemainingAccountsSlice, type RemainingAccountsSliceArgs, type RepayBadDebtInput, type RepayBadDebtInstruction, type RepayBadDebtInstructionData, type RepayBadDebtInstructionDataArgs, type RepayTunaLpPositionDebtInput, type RepayTunaLpPositionDebtInstruction, type RepayTunaLpPositionDebtInstructionData, type RepayTunaLpPositionDebtInstructionDataArgs, type ResetTunaSpotPositionInput, type ResetTunaSpotPositionInstruction, type ResetTunaSpotPositionInstructionData, type ResetTunaSpotPositionInstructionDataArgs, 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_LIQUIDATOR_AUTHORITY_DISCRIMINATOR, SET_OWNER_AUTHORITY_DISCRIMINATOR, SET_SUSPENDED_STATE_DISCRIMINATOR, SET_TUNA_LP_POSITION_FLAGS_DISCRIMINATOR, SET_TUNA_LP_POSITION_LIMIT_ORDERS_DISCRIMINATOR, SET_TUNA_LP_POSITION_REBALANCE_THRESHOLD_DISCRIMINATOR, SET_TUNA_SPOT_POSITION_LIMIT_ORDERS_DISCRIMINATOR, 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 SetLiquidatorAuthorityInput, type SetLiquidatorAuthorityInstruction, type SetLiquidatorAuthorityInstructionData, type SetLiquidatorAuthorityInstructionDataArgs, type SetOwnerAuthorityInput, type SetOwnerAuthorityInstruction, type SetOwnerAuthorityInstructionData, type SetOwnerAuthorityInstructionDataArgs, type SetSuspendedStateInput, type SetSuspendedStateInstruction, type SetSuspendedStateInstructionData, type SetSuspendedStateInstructionDataArgs, type SetTunaLpPositionFlagsInput, type SetTunaLpPositionFlagsInstruction, type SetTunaLpPositionFlagsInstructionData, type SetTunaLpPositionFlagsInstructionDataArgs, type SetTunaLpPositionLimitOrdersInput, type SetTunaLpPositionLimitOrdersInstruction, type SetTunaLpPositionLimitOrdersInstructionData, type SetTunaLpPositionLimitOrdersInstructionDataArgs, type SetTunaLpPositionRebalanceThresholdInput, type SetTunaLpPositionRebalanceThresholdInstruction, type SetTunaLpPositionRebalanceThresholdInstructionData, type SetTunaLpPositionRebalanceThresholdInstructionDataArgs, type SetTunaSpotPositionLimitOrdersInput, type SetTunaSpotPositionLimitOrdersInstruction, type SetTunaSpotPositionLimitOrdersInstructionData, type SetTunaSpotPositionLimitOrdersInstructionDataArgs, TUNA_CONFIG_DISCRIMINATOR, TUNA_ERROR__ACCOUNT_NOT_INITIALIZED, TUNA_ERROR__AMOUNT_SLIPPAGE_EXCEEDED, TUNA_ERROR__BAD_DEBT, TUNA_ERROR__INCORRECT_POSITION_DIRECTION, TUNA_ERROR__INSUFFICIENT_LIQUIDITY, TUNA_ERROR__INSUFFICIENT_SWAP_OUTPUT_AMOUNT, TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE, TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR, TUNA_ERROR__INVALID_ACCOUNT_OWNER, TUNA_ERROR__INVALID_INSTRUCTION_ARGUMENTS, TUNA_ERROR__INVALID_JUPITER_ROUTE, TUNA_ERROR__INVALID_MARKET_MAKER, TUNA_ERROR__INVALID_POOL, 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__M_A_PRICE_DEVIATION_THRESHOLD_EXCEEDED, TUNA_ERROR__NO_EXTRA_ACCOUNTS_FOR_TRANSFER_HOOK, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_EXCEEDED, TUNA_ERROR__ORACLE_PRICE_DEVIATION_THRESHOLD_OUT_OF_RANGE, TUNA_ERROR__ORACLE_STALE_PRICE, TUNA_ERROR__PARTIAL_FILL_ERROR, TUNA_ERROR__POSITION_IS_AUTO_REBALANCEABLE, TUNA_ERROR__POSITION_IS_EMPTY, TUNA_ERROR__POSITION_IS_HEALTHY, TUNA_ERROR__POSITION_IS_LIQUIDATED, TUNA_ERROR__POSITION_IS_UNHEALTHY, TUNA_ERROR__POSITION_NOT_EMPTY, TUNA_ERROR__POSITION_SIZE_LIMIT_EXCEEDED, TUNA_ERROR__PROTOCOL_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__REBALANCE_CONDITIONS_NOT_MET, TUNA_ERROR__RECIPIENT_ACCOUNT_IS_NOT_SET, TUNA_ERROR__REMAINING_ACCOUNTS_DUPLICATED_ACCOUNTS_TYPE, TUNA_ERROR__REMAINING_ACCOUNTS_INSUFFICIENT, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE, TUNA_ERROR__REMAINING_ACCOUNTS_INVALID_SLICE_LENGTH, TUNA_ERROR__REQUIRED_REMAINING_ACCOUNT_NOT_PROVIDED, TUNA_ERROR__SOLVER_FAILED_TO_FIND_ROOT, TUNA_ERROR__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_AMOUNT, TUNA_ERROR__ZERO_PRICE_RANGE, TUNA_ERROR__ZERO_TRADABLE_AMOUNT, TUNA_ERROR__ZERO_YIELD, TUNA_LP_POSITION_DISCRIMINATOR, TUNA_POSITION_FLAGS_ALLOW_REBALANCING, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD, TUNA_POSITION_FLAGS_AUTO_COMPOUND_YIELD_WITH_LEVERAGE, TUNA_POSITION_FLAGS_LOWER_LIMIT_ORDER_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_LOWER_LIMIT_ORDER_SWAP_TO_TOKEN_B, TUNA_POSITION_FLAGS_UPPER_LIMIT_ORDER_SWAP_TO_TOKEN_A, TUNA_POSITION_FLAGS_UPPER_LIMIT_ORDER_SWAP_TO_TOKEN_B, TUNA_PROGRAM_ADDRESS, TUNA_SPOT_POSITION_DISCRIMINATOR, TunaAccount, type TunaConfig, type TunaConfigArgs, type TunaError, TunaInstruction, type TunaLpPosition, type TunaLpPositionArgs, TunaPositionState, type TunaPositionStateArgs, type TunaSpotPosition, type TunaSpotPositionArgs, UNLIMITED_SUPPLY_LIMIT, 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, closeActiveTunaLpPositionFusionInstructions, closeActiveTunaLpPositionOrcaInstructions, closeTunaLpPositionFusionInstruction, closeTunaLpPositionOrcaInstruction, closeTunaSpotPositionInstruction, closeTunaSpotPositionInstructions, collectAndCompoundFeesFusionInstruction, collectAndCompoundFeesFusionInstructions, collectAndCompoundFeesOrcaInstruction, collectAndCompoundFeesOrcaInstructions, collectFeesFusionInstruction, collectFeesFusionInstructions, collectFeesOrcaInstruction, collectFeesOrcaInstructions, createAddressLookupTableForMarketInstructions, createAddressLookupTableInstructions, createMarketInstruction, createTunaConfigInstruction, createVaultInstructions, decodeLendingPosition, decodeMarket, decodeTunaConfig, decodeTunaLpPosition, decodeTunaSpotPosition, decodeVault, decreaseTunaLpPositionFusionInstruction, decreaseTunaLpPositionFusionInstructions, decreaseTunaLpPositionOrcaInstruction, decreaseTunaLpPositionOrcaInstructions, depositInstruction, depositInstructions, extendAddressLookupTableForMarketInstructions, fetchAllLendingPosition, fetchAllLendingPositionWithFilter, fetchAllMarket, fetchAllMarketWithFilter, fetchAllMaybeLendingPosition, fetchAllMaybeMarket, fetchAllMaybeTunaConfig, fetchAllMaybeTunaLpPosition, fetchAllMaybeTunaSpotPosition, fetchAllMaybeVault, fetchAllTunaConfig, fetchAllTunaLpPosition, fetchAllTunaLpPositionWithFilter, fetchAllTunaSpotPosition, fetchAllTunaSpotPositionWithFilter, fetchAllVault, fetchLendingPosition, fetchMarket, fetchMaybeLendingPosition, fetchMaybeMarket, fetchMaybeTunaConfig, fetchMaybeTunaLpPosition, fetchMaybeTunaSpotPosition, fetchMaybeVault, fetchTunaConfig, fetchTunaLpPosition, fetchTunaSpotPosition, fetchVault, fundsToShares, getAccountsTypeCodec, getAccountsTypeDecoder, getAccountsTypeEncoder, getCloseTunaLpPositionFusionDiscriminatorBytes, getCloseTunaLpPositionFusionInstruction, getCloseTunaLpPositionFusionInstructionDataCodec, getCloseTunaLpPositionFusionInstructionDataDecoder, getCloseTunaLpPositionFusionInstructionDataEncoder, getCloseTunaLpPositionOrcaDiscriminatorBytes, getCloseTunaLpPositionOrcaInstruction, getCloseTunaLpPositionOrcaInstructionDataCodec, getCloseTunaLpPositionOrcaInstructionDataDecoder, getCloseTunaLpPositionOrcaInstructionDataEncoder, getCloseTunaSpotPositionDiscriminatorBytes, getCloseTunaSpotPositionInstruction, getCloseTunaSpotPositionInstructionDataCodec, getCloseTunaSpotPositionInstructionDataDecoder, getCloseTunaSpotPositionInstructionDataEncoder, 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, getDecreaseTunaLpPositionFusionDiscriminatorBytes, getDecreaseTunaLpPositionFusionInstruction, getDecreaseTunaLpPositionFusionInstructionDataCodec, getDecreaseTunaLpPositionFusionInstructionDataDecoder, getDecreaseTunaLpPositionFusionInstructionDataEncoder, getDecreaseTunaLpPositionOrcaDiscriminatorBytes, getDecreaseTunaLpPositionOrcaInstruction, getDecreaseTunaLpPositionOrcaInstructionDataCodec, getDecreaseTunaLpPositionOrcaInstructionDataDecoder, getDecreaseTunaLpPositionOrcaInstructionDataEncoder, getDepositDiscriminatorBytes, getDepositInstruction, getDepositInstructionDataCodec, getDepositInstructionDataDecoder, getDepositInstructionDataEncoder, getIncreaseLpPositionQuote, getIncreaseTunaLpPositionFusionDiscriminatorBytes, getIncreaseTunaLpPositionFusionInstruction, getIncreaseTunaLpPositionFusionInstructionDataCodec, getIncreaseTunaLpPositionFusionInstructionDataDecoder, getIncreaseTunaLpPositionFusionInstructionDataEncoder, getIncreaseTunaLpPositionOrcaDiscriminatorBytes, getIncreaseTunaLpPositionOrcaInstruction, getIncreaseTunaLpPositionOrcaInstructionDataCodec, getIncreaseTunaLpPositionOrcaInstructionDataDecoder, getIncreaseTunaLpPositionOrcaInstructionDataEncoder, getLendingPositionAddress, getLendingPositionCodec, getLendingPositionDecoder, getLendingPositionDiscriminatorBytes, getLendingPositionEncoder, getLendingPositionSize, getLendingVaultAddress, getLiquidateTunaLpPositionFusionDiscriminatorBytes, getLiquidateTunaLpPositionFusionInstruction, getLiquidateTunaLpPositionFusionInstructionDataCodec, getLiquidateTunaLpPositionFusionInstructionDataDecoder, getLiquidateTunaLpPositionFusionInstructionDataEncoder, getLiquidateTunaLpPositionOrcaDiscriminatorBytes, getLiquidateTunaLpPositionOrcaInstruction, getLiquidateTunaLpPositionOrcaInstructionDataCodec, getLiquidateTunaLpPositionOrcaInstructionDataDecoder, getLiquidateTunaLpPositionOrcaInstructionDataEncoder, getLiquidateTunaSpotPositionFusionDiscriminatorBytes, getLiquidateTunaSpotPositionFusionInstruction, getLiquidateTunaSpotPositionFusionInstructionDataCodec, getLiquidateTunaSpotPositionFusionInstructionDataDecoder, getLiquidateTunaSpotPositionFusionInstructionDataEncoder, getLiquidateTunaSpotPositionOrcaDiscriminatorBytes, getLiquidateTunaSpotPositionOrcaInstruction, getLiquidateTunaSpotPositionOrcaInstructionDataCodec, getLiquidateTunaSpotPositionOrcaInstructionDataDecoder, getLiquidateTunaSpotPositionOrcaInstructionDataEncoder, getMarketAddress, getMarketCodec, getMarketDecoder, getMarketDiscriminatorBytes, getMarketEncoder, getMarketMakerCodec, getMarketMakerDecoder, getMarketMakerEncoder, getMarketSize, getModifyTunaSpotPositionFusionDiscriminatorBytes, getModifyTunaSpotPositionFusionInstruction, getModifyTunaSpotPositionFusionInstructionDataCodec, getModifyTunaSpotPositionFusionInstructionDataDecoder, getModifyTunaSpotPositionFusionInstructionDataEncoder, getModifyTunaSpotPositionJupiterDiscriminatorBytes, getModifyTunaSpotPositionJupiterInstruction, getModifyTunaSpotPositionJupiterInstructionDataCodec, getModifyTunaSpotPositionJupiterInstructionDataDecoder, getModifyTunaSpotPositionJupiterInstructionDataEncoder, getModifyTunaSpotPositionOrcaDiscriminatorBytes, getModifyTunaSpotPositionOrcaInstruction, getModifyTunaSpotPositionOrcaInstructionDataCodec, getModifyTunaSpotPositionOrcaInstructionDataDecoder, getModifyTunaSpotPositionOrcaInstructionDataEncoder, getOpenAndIncreaseTunaLpPositionFusionDiscriminatorBytes, getOpenAndIncreaseTunaLpPositionFusionInstruction, getOpenAndIncreaseTunaLpPositionFusionInstructionDataCodec, getOpenAndIncreaseTunaLpPositionFusionInstructionDataDecoder, getOpenAndIncreaseTunaLpPositionFusionInstructionDataEncoder, getOpenAndIncreaseTunaLpPositionOrcaDiscriminatorBytes, getOpenAndIncreaseTunaLpPositionOrcaInstruction, getOpenAndIncreaseTunaLpPositionOrcaInstructionDataCodec, getOpenAndIncreaseTunaLpPositionOrcaInstructionDataDecoder, getOpenAndIncreaseTunaLpPositionOrcaInstructionDataEncoder, getOpenLendingPositionDiscriminatorBytes, getOpenLendingPositionInstruction, getOpenLendingPositionInstructionDataCodec, getOpenLendingPositionInstructionDataDecoder, getOpenLendingPositionInstructionDataEncoder, getOpenTunaLpPositionFusionDiscriminatorBytes, getOpenTunaLpPositionFusionInstruction, getOpenTunaLpPositionFusionInstructionDataCodec, getOpenTunaLpPositionFusionInstructionDataDecoder, getOpenTunaLpPositionFusionInstructionDataEncoder, getOpenTunaLpPositionOrcaDiscriminatorBytes, getOpenTunaLpPositionOrcaInstruction, getOpenTunaLpPositionOrcaInstructionDataCodec, getOpenTunaLpPositionOrcaInstructionDataDecoder, getOpenTunaLpPositionOrcaInstructionDataEncoder, getOpenTunaSpotPositionDiscriminatorBytes, getOpenTunaSpotPositionInstruction, getOpenTunaSpotPositionInstructionDataCodec, getOpenTunaSpotPositionInstructionDataDecoder, getOpenTunaSpotPositionInstructionDataEncoder, getPoolTokenCodec, getPoolTokenDecoder, getPoolTokenEncoder, getPythPriceUpdateAccountAddress, getRebalanceTunaLpPositionFusionDiscriminatorBytes, getRebalanceTunaLpPositionFusionInstruction, getRebalanceTunaLpPositionFusionInstructionDataCodec, getRebalanceTunaLpPositionFusionInstructionDataDecoder, getRebalanceTunaLpPositionFusionInstructionDataEncoder, getRebalanceTunaLpPositionOrcaDiscriminatorBytes, getRebalanceTunaLpPositionOrcaInstruction, getRebalanceTunaLpPositionOrcaInstructionDataCodec, getRebalanceTunaLpPositionOrcaInstructionDataDecoder, getRebalanceTunaLpPositionOrcaInstructionDataEncoder, getRemainingAccountsInfoCodec, getRemainingAccountsInfoDecoder, getRemainingAccountsInfoEncoder, getRemainingAccountsSliceCodec, getRemainingAccountsSliceDecoder, getRemainingAccountsSliceEncoder, getRepayBadDebtDiscriminatorBytes, getRepayBadDebtInstruction, getRepayBadDebtInstructionDataCodec, getRepayBadDebtInstructionDataDecoder, getRepayBadDebtInstructionDataEncoder, getRepayTunaLpPositionDebtDiscriminatorBytes, getRepayTunaLpPositionDebtInstruction, getRepayTunaLpPositionDebtInstructionDataCodec, getRepayTunaLpPositionDebtInstructionDataDecoder, getRepayTunaLpPositionDebtInstructionDataEncoder, getResetTunaSpotPositionDiscriminatorBytes, getResetTunaSpotPositionInstruction, getResetTunaSpotPositionInstructionDataCodec, getResetTunaSpotPositionInstructionDataDecoder, getResetTunaSpotPositionInstructionDataEncoder, 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, getSetLiquidatorAuthorityDiscriminatorBytes, getSetLiquidatorAuthorityInstruction, getSetLiquidatorAuthorityInstructionDataCodec, getSetLiquidatorAuthorityInstructionDataDecoder, getSetLiquidatorAuthorityInstructionDataEncoder, getSetOwnerAuthorityDiscriminatorBytes, getSetOwnerAuthorityInstruction, getSetOwnerAuthorityInstructionDataCodec, getSetOwnerAuthorityInstructionDataDecoder, getSetOwnerAuthorityInstructionDataEncoder, getSetSuspendedStateDiscriminatorBytes, getSetSuspendedStateInstruction, getSetSuspendedStateInstructionDataCodec, getSetSuspendedStateInstructionDataDecoder, getSetSuspendedStateInstructionDataEncoder, getSetTunaLpPositionFlagsDiscriminatorBytes, getSetTunaLpPositionFlagsInstruction, getSetTunaLpPositionFlagsInstructionDataCodec, getSetTunaLpPositionFlagsInstructionDataDecoder, getSetTunaLpPositionFlagsInstructionDataEncoder, getSetTunaLpPositionLimitOrdersDiscriminatorBytes, getSetTunaLpPositionLimitOrdersInstruction, getSetTunaLpPositionLimitOrdersInstructionDataCodec, getSetTunaLpPositionLimitOrdersInstructionDataDecoder, getSetTunaLpPositionLimitOrdersInstructionDataEncoder, getSetTunaLpPositionRebalanceThresholdDiscriminatorBytes, getSetTunaLpPositionRebalanceThresholdInstruction, getSetTunaLpPositionRebalanceThresholdInstructionDataCodec, getSetTunaLpPositionRebalanceThresholdInstructionDataDecoder, getSetTunaLpPositionRebalanceThresholdInstructionDataEncoder, getSetTunaSpotPositionLimitOrdersDiscriminatorBytes, getSetTunaSpotPositionLimitOrdersInstruction, getSetTunaSpotPositionLimitOrdersInstructionDataCodec, getSetTunaSpotPositionLimitOrdersInstructionDataDecoder, getSetTunaSpotPositionLimitOrdersInstructionDataEncoder, getTunaConfigAddress, getTunaConfigCodec, getTunaConfigDecoder, getTunaConfigDiscriminatorBytes, getTunaConfigEncoder, getTunaConfigSize, getTunaErrorMessage, getTunaLpPositionAddress, getTunaLpPositionCodec, getTunaLpPositionDecoder, getTunaLpPositionDiscriminatorBytes, getTunaLpPositionEncoder, getTunaLpPositionSize, getTunaPositionStateCodec, getTunaPositionStateDecoder, getTunaPositionStateEncoder, getTunaSpotPositionAddress, getTunaSpotPositionCodec, getTunaSpotPositionDecoder, getTunaSpotPositionDiscriminatorBytes, getTunaSpotPositionEncoder, getTunaSpotPositionSize, getUpdateMarketDiscriminatorBytes, getUpdateMarketInstruction, getUpdateMarketInstructionDataCodec, getUpdateMarketInstructionDataDecoder, getUpdateMarketInstructionDataEncoder, getUpdateVaultDiscriminatorBytes, getUpdateVaultInstruction, getUpdateVaultInstructionDataCodec, getUpdateVaultInstructionDataDecoder, getUpdateVaultInstructionDataEncoder, getVaultCodec, getVaultDecoder, getVaultDiscriminatorBytes, getVaultEncoder, getVaultSize, getWithdrawDiscriminatorBytes, getWithdrawInstruction, getWithdrawInstructionDataCodec, getWithdrawInstructionDataDecoder, getWithdrawInstructionDataEncoder, identifyTunaAccount, identifyTunaInstruction, increaseTunaLpPositionFusionInstruction, increaseTunaLpPositionFusionInstructions, increaseTunaLpPositionOrcaInstruction, increaseTunaLpPositionOrcaInstructions, isTunaError, lendingPositionAuthorityFilter, lendingPositionMintFilter, liquidateTunaLpPositionFusionInstruction, liquidateTunaLpPositionFusionInstructions, liquidateTunaLpPositionOrcaInstruction, liquidateTunaLpPositionOrcaInstructions, liquidateTunaSpotPositionFusionInstruction, liquidateTunaSpotPositionFusionInstructions, liquidateTunaSpotPositionOrcaInstruction, liquidateTunaSpotPositionOrcaInstructions, modifyTunaSpotPositionFusionInstruction, modifyTunaSpotPositionFusionInstructions, modifyTunaSpotPositionOrcaInstruction, modifyTunaSpotPositionOrcaInstructions, mulDiv, openAndIncreaseTunaLpPositionFusionInstruction, openAndIncreaseTunaLpPositionFusionInstructions, openAndIncreaseTunaLpPositionOrcaInstruction, openAndIncreaseTunaLpPositionOrcaInstructions, openLendingPositionAndDepositInstructions, openLendingPositionInstruction, openTunaLpPositionFusionInstruction, openTunaLpPositionOrcaInstruction, openTunaSpotPositionInstruction, openTunaSpotPositionInstructions, parseCloseTunaLpPositionFusionInstruction, parseCloseTunaLpPositionOrcaInstruction, parseCloseTunaSpotPositionInstruction, parseCollectAndCompoundFeesFusionInstruction, parseCollectAndCompoundFeesOrcaInstruction, parseCollectFeesFusionInstruction, parseCollectFeesOrcaInstruction, parseCollectRewardOrcaInstruction, parseCreateMarketInstruction, parseCreateTunaConfigInstruction, parseCreateVaultInstruction, parseDecreaseTunaLpPositionFusionInstruction, parseDecreaseTunaLpPositionOrcaInstruction, parseDepositInstruction, parseIncreaseTunaLpPositionFusionInstruction, parseIncreaseTunaLpPositionOrcaInstruction, parseLiquidateTunaLpPositionFusionInstruction, parseLiquidateTunaLpPositionOrcaInstruction, parseLiquidateTunaSpotPositionFusionInstruction, parseLiquidateTunaSpotPositionOrcaInstruction, parseModifyTunaSpotPositionFusionInstruction, parseModifyTunaSpotPositionJupiterInstruction, parseModifyTunaSpotPositionOrcaInstruction, parseOpenAndIncreaseTunaLpPositionFusionInstruction, parseOpenAndIncreaseTunaLpPositionOrcaInstruction, parseOpenLendingPositionInstruction, parseOpenTunaLpPositionFusionInstruction, parseOpenTunaLpPositionOrcaInstruction, parseOpenTunaSpotPositionInstruction, parseRebalanceTunaLpPositionFusionInstruction, parseRebalanceTunaLpPositionOrcaInstruction, parseRepayBadDebtInstruction, parseRepayTunaLpPositionDebtInstruction, parseResetTunaSpotPositionInstruction, parseSetAdminAuthorityInstruction, parseSetDefaultMaxPercentageOfLeftoversInstruction, parseSetDefaultMaxSwapSlippageInstruction, parseSetDefaultOraclePriceDeviationThresholdInstruction, parseSetFeeRecipientInstruction, parseSetLiquidatorAuthorityInstruction, parseSetOwnerAuthorityInstruction, parseSetSuspendedStateInstruction, parseSetTunaLpPositionFlagsInstruction, parseSetTunaLpPositionLimitOrdersInstruction, parseSetTunaLpPositionRebalanceThresholdInstruction, parseSetTunaSpotPositionLimitOrdersInstruction, parseUpdateMarketInstruction, parseUpdateVaultInstruction, parseWithdrawInstruction, rebalanceTunaLpPositionFusionInstruction, rebalanceTunaLpPositionFusionInstructions, rebalanceTunaLpPositionOrcaInstruction, rebalanceTunaLpPositionOrcaInstructions, repayBadDebtInstruction, repayTunaLpPositionDebtInstruction, repayTunaLpPositionDebtInstructions, resetTunaSpotPositionInstruction, setTunaLpPositionLimitOrdersInstruction, setTunaSpotPositionLimitOrdersInstruction, sharesToFunds, tunaLpPositionAuthorityFilter, tunaLpPositionMarketMakerFilter, tunaLpPositionMintAFilter, tunaLpPositionMintBFilter, tunaLpPositionMintFilter, tunaLpPositionPoolFilter, tunaSpotPositionAuthorityFilter, tunaSpotPositionMintAFilter, tunaSpotPositionMintBFilter, tunaSpotPositionPoolFilter, updateMarketInstruction, updateVaultInstruction, withdrawInstruction, withdrawInstructions };
|