@crypticdot/defituna-client 3.2.6 → 3.3.0
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 +704 -1832
- package/dist/index.d.ts +704 -1832
- package/dist/index.js +5036 -7983
- package/dist/index.mjs +5197 -8557
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -840,15 +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 =
|
|
851
|
-
|
|
848
|
+
declare const TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR = 6065;
|
|
849
|
+
/** InvalidPool: Invalid Fusion or Orca pool */
|
|
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;
|
|
852
854
|
declare function getTunaErrorMessage(code: TunaError): string;
|
|
853
855
|
declare function isTunaError<TProgramErrorCode extends TunaError>(error: unknown, transactionMessage: {
|
|
854
856
|
instructions: Record<number, {
|
|
@@ -881,72 +883,60 @@ declare function identifyTunaAccount(account: {
|
|
|
881
883
|
data: ReadonlyUint8Array;
|
|
882
884
|
} | ReadonlyUint8Array): TunaAccount;
|
|
883
885
|
declare enum TunaInstruction {
|
|
884
|
-
|
|
885
|
-
|
|
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
|
-
SetSuspendedState = 49,
|
|
934
|
-
SetTunaLpPositionFlags = 50,
|
|
935
|
-
SetTunaLpPositionLimitOrders = 51,
|
|
936
|
-
SetTunaLpPositionRebalanceThreshold = 52,
|
|
937
|
-
SetTunaSpotPositionLimitOrders = 53,
|
|
938
|
-
UpdateMarket = 54,
|
|
939
|
-
UpdateVault = 55,
|
|
940
|
-
Withdraw = 56
|
|
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
|
|
941
935
|
}
|
|
942
936
|
declare function identifyTunaInstruction(instruction: {
|
|
943
937
|
data: ReadonlyUint8Array;
|
|
944
938
|
} | ReadonlyUint8Array): TunaInstruction;
|
|
945
939
|
type ParsedTunaInstruction<TProgram extends string = 'tuna4uSQZncNeeiAMKbstuxA9CUkHH6HmC64wgmnogD'> = ({
|
|
946
|
-
instructionType: TunaInstruction.CloseActiveTunaSpotPositionFusion;
|
|
947
|
-
} & ParsedCloseActiveTunaSpotPositionFusionInstruction<TProgram>) | ({
|
|
948
|
-
instructionType: TunaInstruction.CloseActiveTunaSpotPositionOrca;
|
|
949
|
-
} & ParsedCloseActiveTunaSpotPositionOrcaInstruction<TProgram>) | ({
|
|
950
940
|
instructionType: TunaInstruction.CloseTunaLpPositionFusion;
|
|
951
941
|
} & ParsedCloseTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
952
942
|
instructionType: TunaInstruction.CloseTunaLpPositionOrca;
|
|
@@ -973,24 +963,12 @@ type ParsedTunaInstruction<TProgram extends string = 'tuna4uSQZncNeeiAMKbstuxA9C
|
|
|
973
963
|
} & ParsedDecreaseTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
974
964
|
instructionType: TunaInstruction.DecreaseTunaLpPositionOrca;
|
|
975
965
|
} & ParsedDecreaseTunaLpPositionOrcaInstruction<TProgram>) | ({
|
|
976
|
-
instructionType: TunaInstruction.DecreaseTunaSpotPositionFusion;
|
|
977
|
-
} & ParsedDecreaseTunaSpotPositionFusionInstruction<TProgram>) | ({
|
|
978
|
-
instructionType: TunaInstruction.DecreaseTunaSpotPositionJupiter;
|
|
979
|
-
} & ParsedDecreaseTunaSpotPositionJupiterInstruction<TProgram>) | ({
|
|
980
|
-
instructionType: TunaInstruction.DecreaseTunaSpotPositionOrca;
|
|
981
|
-
} & ParsedDecreaseTunaSpotPositionOrcaInstruction<TProgram>) | ({
|
|
982
966
|
instructionType: TunaInstruction.Deposit;
|
|
983
967
|
} & ParsedDepositInstruction<TProgram>) | ({
|
|
984
968
|
instructionType: TunaInstruction.IncreaseTunaLpPositionFusion;
|
|
985
969
|
} & ParsedIncreaseTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
986
970
|
instructionType: TunaInstruction.IncreaseTunaLpPositionOrca;
|
|
987
971
|
} & ParsedIncreaseTunaLpPositionOrcaInstruction<TProgram>) | ({
|
|
988
|
-
instructionType: TunaInstruction.IncreaseTunaSpotPositionFusion;
|
|
989
|
-
} & ParsedIncreaseTunaSpotPositionFusionInstruction<TProgram>) | ({
|
|
990
|
-
instructionType: TunaInstruction.IncreaseTunaSpotPositionJupiter;
|
|
991
|
-
} & ParsedIncreaseTunaSpotPositionJupiterInstruction<TProgram>) | ({
|
|
992
|
-
instructionType: TunaInstruction.IncreaseTunaSpotPositionOrca;
|
|
993
|
-
} & ParsedIncreaseTunaSpotPositionOrcaInstruction<TProgram>) | ({
|
|
994
972
|
instructionType: TunaInstruction.LiquidateTunaLpPositionFusion;
|
|
995
973
|
} & ParsedLiquidateTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
996
974
|
instructionType: TunaInstruction.LiquidateTunaLpPositionOrca;
|
|
@@ -999,24 +977,24 @@ type ParsedTunaInstruction<TProgram extends string = 'tuna4uSQZncNeeiAMKbstuxA9C
|
|
|
999
977
|
} & ParsedLiquidateTunaSpotPositionFusionInstruction<TProgram>) | ({
|
|
1000
978
|
instructionType: TunaInstruction.LiquidateTunaSpotPositionOrca;
|
|
1001
979
|
} & ParsedLiquidateTunaSpotPositionOrcaInstruction<TProgram>) | ({
|
|
980
|
+
instructionType: TunaInstruction.ModifyTunaSpotPositionFusion;
|
|
981
|
+
} & ParsedModifyTunaSpotPositionFusionInstruction<TProgram>) | ({
|
|
982
|
+
instructionType: TunaInstruction.ModifyTunaSpotPositionJupiter;
|
|
983
|
+
} & ParsedModifyTunaSpotPositionJupiterInstruction<TProgram>) | ({
|
|
984
|
+
instructionType: TunaInstruction.ModifyTunaSpotPositionOrca;
|
|
985
|
+
} & ParsedModifyTunaSpotPositionOrcaInstruction<TProgram>) | ({
|
|
1002
986
|
instructionType: TunaInstruction.OpenAndIncreaseTunaLpPositionFusion;
|
|
1003
987
|
} & ParsedOpenAndIncreaseTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
1004
988
|
instructionType: TunaInstruction.OpenAndIncreaseTunaLpPositionOrca;
|
|
1005
989
|
} & ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram>) | ({
|
|
1006
|
-
instructionType: TunaInstruction.OpenAndIncreaseTunaSpotPositionFusion;
|
|
1007
|
-
} & ParsedOpenAndIncreaseTunaSpotPositionFusionInstruction<TProgram>) | ({
|
|
1008
|
-
instructionType: TunaInstruction.OpenAndIncreaseTunaSpotPositionOrca;
|
|
1009
|
-
} & ParsedOpenAndIncreaseTunaSpotPositionOrcaInstruction<TProgram>) | ({
|
|
1010
990
|
instructionType: TunaInstruction.OpenLendingPosition;
|
|
1011
991
|
} & ParsedOpenLendingPositionInstruction<TProgram>) | ({
|
|
1012
992
|
instructionType: TunaInstruction.OpenTunaLpPositionFusion;
|
|
1013
993
|
} & ParsedOpenTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
1014
994
|
instructionType: TunaInstruction.OpenTunaLpPositionOrca;
|
|
1015
995
|
} & ParsedOpenTunaLpPositionOrcaInstruction<TProgram>) | ({
|
|
1016
|
-
instructionType: TunaInstruction.
|
|
1017
|
-
} &
|
|
1018
|
-
instructionType: TunaInstruction.OpenTunaSpotPositionOrca;
|
|
1019
|
-
} & ParsedOpenTunaSpotPositionOrcaInstruction<TProgram>) | ({
|
|
996
|
+
instructionType: TunaInstruction.OpenTunaSpotPosition;
|
|
997
|
+
} & ParsedOpenTunaSpotPositionInstruction<TProgram>) | ({
|
|
1020
998
|
instructionType: TunaInstruction.RebalanceTunaLpPositionFusion;
|
|
1021
999
|
} & ParsedRebalanceTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
1022
1000
|
instructionType: TunaInstruction.RebalanceTunaLpPositionOrca;
|
|
@@ -1058,252 +1036,6 @@ type ParsedTunaInstruction<TProgram extends string = 'tuna4uSQZncNeeiAMKbstuxA9C
|
|
|
1058
1036
|
instructionType: TunaInstruction.Withdraw;
|
|
1059
1037
|
} & ParsedWithdrawInstruction<TProgram>);
|
|
1060
1038
|
|
|
1061
|
-
/**
|
|
1062
|
-
* This code was AUTOGENERATED using the codama library.
|
|
1063
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1064
|
-
* to add features, then rerun codama to update it.
|
|
1065
|
-
*
|
|
1066
|
-
* @see https://github.com/codama-idl/codama
|
|
1067
|
-
*/
|
|
1068
|
-
|
|
1069
|
-
declare const CLOSE_ACTIVE_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1070
|
-
declare function getCloseActiveTunaSpotPositionFusionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1071
|
-
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<[
|
|
1072
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
1073
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
1074
|
-
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
1075
|
-
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
1076
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
1077
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
1078
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
1079
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
1080
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
1081
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
1082
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
1083
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
1084
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
1085
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
1086
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
1087
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
1088
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
1089
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
1090
|
-
TAccountFusionammProgram extends string ? ReadonlyAccount<TAccountFusionammProgram> : TAccountFusionammProgram,
|
|
1091
|
-
TAccountFusionPool extends string ? WritableAccount<TAccountFusionPool> : TAccountFusionPool,
|
|
1092
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
1093
|
-
...TRemainingAccounts
|
|
1094
|
-
]>;
|
|
1095
|
-
type CloseActiveTunaSpotPositionFusionInstructionData = {
|
|
1096
|
-
discriminator: ReadonlyUint8Array;
|
|
1097
|
-
acceptableSwapAmount: bigint;
|
|
1098
|
-
remainingAccountsInfo: RemainingAccountsInfo;
|
|
1099
|
-
};
|
|
1100
|
-
type CloseActiveTunaSpotPositionFusionInstructionDataArgs = {
|
|
1101
|
-
acceptableSwapAmount: number | bigint;
|
|
1102
|
-
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
1103
|
-
};
|
|
1104
|
-
declare function getCloseActiveTunaSpotPositionFusionInstructionDataEncoder(): Encoder<CloseActiveTunaSpotPositionFusionInstructionDataArgs>;
|
|
1105
|
-
declare function getCloseActiveTunaSpotPositionFusionInstructionDataDecoder(): Decoder<CloseActiveTunaSpotPositionFusionInstructionData>;
|
|
1106
|
-
declare function getCloseActiveTunaSpotPositionFusionInstructionDataCodec(): Codec<CloseActiveTunaSpotPositionFusionInstructionDataArgs, CloseActiveTunaSpotPositionFusionInstructionData>;
|
|
1107
|
-
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> = {
|
|
1108
|
-
/**
|
|
1109
|
-
*
|
|
1110
|
-
* TUNA accounts
|
|
1111
|
-
*
|
|
1112
|
-
*/
|
|
1113
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
1114
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
1115
|
-
mintA: Address<TAccountMintA>;
|
|
1116
|
-
mintB: Address<TAccountMintB>;
|
|
1117
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
1118
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
1119
|
-
market: Address<TAccountMarket>;
|
|
1120
|
-
vaultA: Address<TAccountVaultA>;
|
|
1121
|
-
vaultB: Address<TAccountVaultB>;
|
|
1122
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
1123
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
1124
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
1125
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
1126
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
1127
|
-
tunaPositionOwnerAtaA?: Address<TAccountTunaPositionOwnerAtaA>;
|
|
1128
|
-
tunaPositionOwnerAtaB?: Address<TAccountTunaPositionOwnerAtaB>;
|
|
1129
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
1130
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
1131
|
-
/**
|
|
1132
|
-
*
|
|
1133
|
-
* Fusion accounts
|
|
1134
|
-
*
|
|
1135
|
-
*/
|
|
1136
|
-
fusionammProgram: Address<TAccountFusionammProgram>;
|
|
1137
|
-
fusionPool: Address<TAccountFusionPool>;
|
|
1138
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
1139
|
-
acceptableSwapAmount: CloseActiveTunaSpotPositionFusionInstructionDataArgs['acceptableSwapAmount'];
|
|
1140
|
-
remainingAccountsInfo: CloseActiveTunaSpotPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
1141
|
-
};
|
|
1142
|
-
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?: {
|
|
1143
|
-
programAddress?: TProgramAddress;
|
|
1144
|
-
}): CloseActiveTunaSpotPositionFusionInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountMemoProgram>;
|
|
1145
|
-
type ParsedCloseActiveTunaSpotPositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
1146
|
-
programAddress: Address<TProgram>;
|
|
1147
|
-
accounts: {
|
|
1148
|
-
/**
|
|
1149
|
-
*
|
|
1150
|
-
* TUNA accounts
|
|
1151
|
-
*
|
|
1152
|
-
*/
|
|
1153
|
-
authority: TAccountMetas[0];
|
|
1154
|
-
tunaConfig: TAccountMetas[1];
|
|
1155
|
-
mintA: TAccountMetas[2];
|
|
1156
|
-
mintB: TAccountMetas[3];
|
|
1157
|
-
tokenProgramA: TAccountMetas[4];
|
|
1158
|
-
tokenProgramB: TAccountMetas[5];
|
|
1159
|
-
market: TAccountMetas[6];
|
|
1160
|
-
vaultA: TAccountMetas[7];
|
|
1161
|
-
vaultB: TAccountMetas[8];
|
|
1162
|
-
vaultAAta: TAccountMetas[9];
|
|
1163
|
-
vaultBAta: TAccountMetas[10];
|
|
1164
|
-
tunaPosition: TAccountMetas[11];
|
|
1165
|
-
tunaPositionAtaA: TAccountMetas[12];
|
|
1166
|
-
tunaPositionAtaB: TAccountMetas[13];
|
|
1167
|
-
tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined;
|
|
1168
|
-
tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined;
|
|
1169
|
-
pythOraclePriceFeedA: TAccountMetas[16];
|
|
1170
|
-
pythOraclePriceFeedB: TAccountMetas[17];
|
|
1171
|
-
/**
|
|
1172
|
-
*
|
|
1173
|
-
* Fusion accounts
|
|
1174
|
-
*
|
|
1175
|
-
*/
|
|
1176
|
-
fusionammProgram: TAccountMetas[18];
|
|
1177
|
-
fusionPool: TAccountMetas[19];
|
|
1178
|
-
memoProgram: TAccountMetas[20];
|
|
1179
|
-
};
|
|
1180
|
-
data: CloseActiveTunaSpotPositionFusionInstructionData;
|
|
1181
|
-
};
|
|
1182
|
-
declare function parseCloseActiveTunaSpotPositionFusionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCloseActiveTunaSpotPositionFusionInstruction<TProgram, TAccountMetas>;
|
|
1183
|
-
|
|
1184
|
-
/**
|
|
1185
|
-
* This code was AUTOGENERATED using the codama library.
|
|
1186
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1187
|
-
* to add features, then rerun codama to update it.
|
|
1188
|
-
*
|
|
1189
|
-
* @see https://github.com/codama-idl/codama
|
|
1190
|
-
*/
|
|
1191
|
-
|
|
1192
|
-
declare const CLOSE_ACTIVE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1193
|
-
declare function getCloseActiveTunaSpotPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1194
|
-
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<[
|
|
1195
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
1196
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
1197
|
-
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
1198
|
-
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
1199
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
1200
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
1201
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
1202
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
1203
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
1204
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
1205
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
1206
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
1207
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
1208
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
1209
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
1210
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
1211
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
1212
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
1213
|
-
TAccountWhirlpoolProgram extends string ? ReadonlyAccount<TAccountWhirlpoolProgram> : TAccountWhirlpoolProgram,
|
|
1214
|
-
TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool,
|
|
1215
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
1216
|
-
...TRemainingAccounts
|
|
1217
|
-
]>;
|
|
1218
|
-
type CloseActiveTunaSpotPositionOrcaInstructionData = {
|
|
1219
|
-
discriminator: ReadonlyUint8Array;
|
|
1220
|
-
acceptableSwapAmount: bigint;
|
|
1221
|
-
remainingAccountsInfo: RemainingAccountsInfo;
|
|
1222
|
-
};
|
|
1223
|
-
type CloseActiveTunaSpotPositionOrcaInstructionDataArgs = {
|
|
1224
|
-
acceptableSwapAmount: number | bigint;
|
|
1225
|
-
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
1226
|
-
};
|
|
1227
|
-
declare function getCloseActiveTunaSpotPositionOrcaInstructionDataEncoder(): Encoder<CloseActiveTunaSpotPositionOrcaInstructionDataArgs>;
|
|
1228
|
-
declare function getCloseActiveTunaSpotPositionOrcaInstructionDataDecoder(): Decoder<CloseActiveTunaSpotPositionOrcaInstructionData>;
|
|
1229
|
-
declare function getCloseActiveTunaSpotPositionOrcaInstructionDataCodec(): Codec<CloseActiveTunaSpotPositionOrcaInstructionDataArgs, CloseActiveTunaSpotPositionOrcaInstructionData>;
|
|
1230
|
-
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> = {
|
|
1231
|
-
/**
|
|
1232
|
-
*
|
|
1233
|
-
* TUNA accounts
|
|
1234
|
-
*
|
|
1235
|
-
*/
|
|
1236
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
1237
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
1238
|
-
mintA: Address<TAccountMintA>;
|
|
1239
|
-
mintB: Address<TAccountMintB>;
|
|
1240
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
1241
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
1242
|
-
market: Address<TAccountMarket>;
|
|
1243
|
-
vaultA: Address<TAccountVaultA>;
|
|
1244
|
-
vaultB: Address<TAccountVaultB>;
|
|
1245
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
1246
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
1247
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
1248
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
1249
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
1250
|
-
tunaPositionOwnerAtaA?: Address<TAccountTunaPositionOwnerAtaA>;
|
|
1251
|
-
tunaPositionOwnerAtaB?: Address<TAccountTunaPositionOwnerAtaB>;
|
|
1252
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
1253
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
1254
|
-
/**
|
|
1255
|
-
*
|
|
1256
|
-
* Orca accounts
|
|
1257
|
-
*
|
|
1258
|
-
*/
|
|
1259
|
-
whirlpoolProgram: Address<TAccountWhirlpoolProgram>;
|
|
1260
|
-
whirlpool: Address<TAccountWhirlpool>;
|
|
1261
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
1262
|
-
acceptableSwapAmount: CloseActiveTunaSpotPositionOrcaInstructionDataArgs['acceptableSwapAmount'];
|
|
1263
|
-
remainingAccountsInfo: CloseActiveTunaSpotPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
1264
|
-
};
|
|
1265
|
-
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?: {
|
|
1266
|
-
programAddress?: TProgramAddress;
|
|
1267
|
-
}): CloseActiveTunaSpotPositionOrcaInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountMemoProgram>;
|
|
1268
|
-
type ParsedCloseActiveTunaSpotPositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
1269
|
-
programAddress: Address<TProgram>;
|
|
1270
|
-
accounts: {
|
|
1271
|
-
/**
|
|
1272
|
-
*
|
|
1273
|
-
* TUNA accounts
|
|
1274
|
-
*
|
|
1275
|
-
*/
|
|
1276
|
-
authority: TAccountMetas[0];
|
|
1277
|
-
tunaConfig: TAccountMetas[1];
|
|
1278
|
-
mintA: TAccountMetas[2];
|
|
1279
|
-
mintB: TAccountMetas[3];
|
|
1280
|
-
tokenProgramA: TAccountMetas[4];
|
|
1281
|
-
tokenProgramB: TAccountMetas[5];
|
|
1282
|
-
market: TAccountMetas[6];
|
|
1283
|
-
vaultA: TAccountMetas[7];
|
|
1284
|
-
vaultB: TAccountMetas[8];
|
|
1285
|
-
vaultAAta: TAccountMetas[9];
|
|
1286
|
-
vaultBAta: TAccountMetas[10];
|
|
1287
|
-
tunaPosition: TAccountMetas[11];
|
|
1288
|
-
tunaPositionAtaA: TAccountMetas[12];
|
|
1289
|
-
tunaPositionAtaB: TAccountMetas[13];
|
|
1290
|
-
tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined;
|
|
1291
|
-
tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined;
|
|
1292
|
-
pythOraclePriceFeedA: TAccountMetas[16];
|
|
1293
|
-
pythOraclePriceFeedB: TAccountMetas[17];
|
|
1294
|
-
/**
|
|
1295
|
-
*
|
|
1296
|
-
* Orca accounts
|
|
1297
|
-
*
|
|
1298
|
-
*/
|
|
1299
|
-
whirlpoolProgram: TAccountMetas[18];
|
|
1300
|
-
whirlpool: TAccountMetas[19];
|
|
1301
|
-
memoProgram: TAccountMetas[20];
|
|
1302
|
-
};
|
|
1303
|
-
data: CloseActiveTunaSpotPositionOrcaInstructionData;
|
|
1304
|
-
};
|
|
1305
|
-
declare function parseCloseActiveTunaSpotPositionOrcaInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCloseActiveTunaSpotPositionOrcaInstruction<TProgram, TAccountMetas>;
|
|
1306
|
-
|
|
1307
1039
|
/**
|
|
1308
1040
|
* This code was AUTOGENERATED using the codama library.
|
|
1309
1041
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -2405,7 +2137,7 @@ type DecreaseTunaLpPositionFusionInstruction<TProgram extends string = typeof TU
|
|
|
2405
2137
|
]>;
|
|
2406
2138
|
type DecreaseTunaLpPositionFusionInstructionData = {
|
|
2407
2139
|
discriminator: ReadonlyUint8Array;
|
|
2408
|
-
|
|
2140
|
+
decreasePercent: number;
|
|
2409
2141
|
swapToToken: Option<PoolToken>;
|
|
2410
2142
|
minRemovedAmountA: bigint;
|
|
2411
2143
|
minRemovedAmountB: bigint;
|
|
@@ -2413,7 +2145,7 @@ type DecreaseTunaLpPositionFusionInstructionData = {
|
|
|
2413
2145
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
2414
2146
|
};
|
|
2415
2147
|
type DecreaseTunaLpPositionFusionInstructionDataArgs = {
|
|
2416
|
-
|
|
2148
|
+
decreasePercent: number;
|
|
2417
2149
|
swapToToken: OptionOrNullable<PoolTokenArgs>;
|
|
2418
2150
|
minRemovedAmountA: number | bigint;
|
|
2419
2151
|
minRemovedAmountB: number | bigint;
|
|
@@ -2457,7 +2189,7 @@ type DecreaseTunaLpPositionFusionInput<TAccountAuthority extends string = string
|
|
|
2457
2189
|
fusionPool: Address<TAccountFusionPool>;
|
|
2458
2190
|
fusionPosition: Address<TAccountFusionPosition>;
|
|
2459
2191
|
memoProgram: Address<TAccountMemoProgram>;
|
|
2460
|
-
|
|
2192
|
+
decreasePercent: DecreaseTunaLpPositionFusionInstructionDataArgs['decreasePercent'];
|
|
2461
2193
|
swapToToken: DecreaseTunaLpPositionFusionInstructionDataArgs['swapToToken'];
|
|
2462
2194
|
minRemovedAmountA: DecreaseTunaLpPositionFusionInstructionDataArgs['minRemovedAmountA'];
|
|
2463
2195
|
minRemovedAmountB: DecreaseTunaLpPositionFusionInstructionDataArgs['minRemovedAmountB'];
|
|
@@ -2546,7 +2278,7 @@ type DecreaseTunaLpPositionOrcaInstruction<TProgram extends string = typeof TUNA
|
|
|
2546
2278
|
]>;
|
|
2547
2279
|
type DecreaseTunaLpPositionOrcaInstructionData = {
|
|
2548
2280
|
discriminator: ReadonlyUint8Array;
|
|
2549
|
-
|
|
2281
|
+
decreasePercent: number;
|
|
2550
2282
|
swapToToken: Option<PoolToken>;
|
|
2551
2283
|
minRemovedAmountA: bigint;
|
|
2552
2284
|
minRemovedAmountB: bigint;
|
|
@@ -2554,7 +2286,7 @@ type DecreaseTunaLpPositionOrcaInstructionData = {
|
|
|
2554
2286
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
2555
2287
|
};
|
|
2556
2288
|
type DecreaseTunaLpPositionOrcaInstructionDataArgs = {
|
|
2557
|
-
|
|
2289
|
+
decreasePercent: number;
|
|
2558
2290
|
swapToToken: OptionOrNullable<PoolTokenArgs>;
|
|
2559
2291
|
minRemovedAmountA: number | bigint;
|
|
2560
2292
|
minRemovedAmountB: number | bigint;
|
|
@@ -2598,7 +2330,7 @@ type DecreaseTunaLpPositionOrcaInput<TAccountAuthority extends string = string,
|
|
|
2598
2330
|
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
2599
2331
|
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
2600
2332
|
memoProgram: Address<TAccountMemoProgram>;
|
|
2601
|
-
|
|
2333
|
+
decreasePercent: DecreaseTunaLpPositionOrcaInstructionDataArgs['decreasePercent'];
|
|
2602
2334
|
swapToToken: DecreaseTunaLpPositionOrcaInstructionDataArgs['swapToToken'];
|
|
2603
2335
|
minRemovedAmountA: DecreaseTunaLpPositionOrcaInstructionDataArgs['minRemovedAmountA'];
|
|
2604
2336
|
minRemovedAmountB: DecreaseTunaLpPositionOrcaInstructionDataArgs['minRemovedAmountB'];
|
|
@@ -2657,790 +2389,61 @@ declare function parseDecreaseTunaLpPositionOrcaInstruction<TProgram extends str
|
|
|
2657
2389
|
* @see https://github.com/codama-idl/codama
|
|
2658
2390
|
*/
|
|
2659
2391
|
|
|
2660
|
-
declare const
|
|
2661
|
-
declare function
|
|
2662
|
-
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<[
|
|
2663
2395
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2396
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
2664
2397
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
2671
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
2672
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
2673
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
2674
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
2675
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
2676
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
2677
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
2678
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
2679
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
2680
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
2681
|
-
TAccountFusionammProgram extends string ? ReadonlyAccount<TAccountFusionammProgram> : TAccountFusionammProgram,
|
|
2682
|
-
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,
|
|
2683
2403
|
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
2684
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2685
2404
|
...TRemainingAccounts
|
|
2686
2405
|
]>;
|
|
2687
|
-
type
|
|
2406
|
+
type DepositInstructionData = {
|
|
2688
2407
|
discriminator: ReadonlyUint8Array;
|
|
2689
|
-
|
|
2690
|
-
acceptableSwapAmount: bigint;
|
|
2691
|
-
remainingAccountsInfo: RemainingAccountsInfo;
|
|
2408
|
+
amount: bigint;
|
|
2692
2409
|
};
|
|
2693
|
-
type
|
|
2694
|
-
|
|
2695
|
-
acceptableSwapAmount: number | bigint;
|
|
2696
|
-
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
2410
|
+
type DepositInstructionDataArgs = {
|
|
2411
|
+
amount: number | bigint;
|
|
2697
2412
|
};
|
|
2698
|
-
declare function
|
|
2699
|
-
declare function
|
|
2700
|
-
declare function
|
|
2701
|
-
type
|
|
2702
|
-
/**
|
|
2703
|
-
*
|
|
2704
|
-
* TUNA accounts
|
|
2705
|
-
*
|
|
2706
|
-
*/
|
|
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> = {
|
|
2707
2417
|
authority: TransactionSigner<TAccountAuthority>;
|
|
2418
|
+
mint: Address<TAccountMint>;
|
|
2708
2419
|
tunaConfig: Address<TAccountTunaConfig>;
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
market: Address<TAccountMarket>;
|
|
2714
|
-
vaultA: Address<TAccountVaultA>;
|
|
2715
|
-
vaultB: Address<TAccountVaultB>;
|
|
2716
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
2717
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
2718
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
2719
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
2720
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
2721
|
-
tunaPositionOwnerAtaA?: Address<TAccountTunaPositionOwnerAtaA>;
|
|
2722
|
-
tunaPositionOwnerAtaB?: Address<TAccountTunaPositionOwnerAtaB>;
|
|
2723
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
2724
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
2725
|
-
/**
|
|
2726
|
-
*
|
|
2727
|
-
* Fusion accounts
|
|
2728
|
-
*
|
|
2729
|
-
*/
|
|
2730
|
-
fusionammProgram: Address<TAccountFusionammProgram>;
|
|
2731
|
-
fusionPool: Address<TAccountFusionPool>;
|
|
2732
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
2733
|
-
/**
|
|
2734
|
-
*
|
|
2735
|
-
* Other accounts
|
|
2736
|
-
*
|
|
2737
|
-
*/
|
|
2738
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
2739
|
-
withdrawPercent: DecreaseTunaSpotPositionFusionInstructionDataArgs['withdrawPercent'];
|
|
2740
|
-
acceptableSwapAmount: DecreaseTunaSpotPositionFusionInstructionDataArgs['acceptableSwapAmount'];
|
|
2741
|
-
remainingAccountsInfo: DecreaseTunaSpotPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
2742
|
-
};
|
|
2743
|
-
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?: {
|
|
2744
|
-
programAddress?: TProgramAddress;
|
|
2745
|
-
}): DecreaseTunaSpotPositionFusionInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountFusionammProgram, TAccountFusionPool, TAccountMemoProgram, TAccountSystemProgram>;
|
|
2746
|
-
type ParsedDecreaseTunaSpotPositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
2747
|
-
programAddress: Address<TProgram>;
|
|
2748
|
-
accounts: {
|
|
2749
|
-
/**
|
|
2750
|
-
*
|
|
2751
|
-
* TUNA accounts
|
|
2752
|
-
*
|
|
2753
|
-
*/
|
|
2754
|
-
authority: TAccountMetas[0];
|
|
2755
|
-
tunaConfig: TAccountMetas[1];
|
|
2756
|
-
mintA: TAccountMetas[2];
|
|
2757
|
-
mintB: TAccountMetas[3];
|
|
2758
|
-
tokenProgramA: TAccountMetas[4];
|
|
2759
|
-
tokenProgramB: TAccountMetas[5];
|
|
2760
|
-
market: TAccountMetas[6];
|
|
2761
|
-
vaultA: TAccountMetas[7];
|
|
2762
|
-
vaultB: TAccountMetas[8];
|
|
2763
|
-
vaultAAta: TAccountMetas[9];
|
|
2764
|
-
vaultBAta: TAccountMetas[10];
|
|
2765
|
-
tunaPosition: TAccountMetas[11];
|
|
2766
|
-
tunaPositionAtaA: TAccountMetas[12];
|
|
2767
|
-
tunaPositionAtaB: TAccountMetas[13];
|
|
2768
|
-
tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined;
|
|
2769
|
-
tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined;
|
|
2770
|
-
pythOraclePriceFeedA: TAccountMetas[16];
|
|
2771
|
-
pythOraclePriceFeedB: TAccountMetas[17];
|
|
2772
|
-
/**
|
|
2773
|
-
*
|
|
2774
|
-
* Fusion accounts
|
|
2775
|
-
*
|
|
2776
|
-
*/
|
|
2777
|
-
fusionammProgram: TAccountMetas[18];
|
|
2778
|
-
fusionPool: TAccountMetas[19];
|
|
2779
|
-
memoProgram: TAccountMetas[20];
|
|
2780
|
-
/**
|
|
2781
|
-
*
|
|
2782
|
-
* Other accounts
|
|
2783
|
-
*
|
|
2784
|
-
*/
|
|
2785
|
-
systemProgram: TAccountMetas[21];
|
|
2786
|
-
};
|
|
2787
|
-
data: DecreaseTunaSpotPositionFusionInstructionData;
|
|
2788
|
-
};
|
|
2789
|
-
declare function parseDecreaseTunaSpotPositionFusionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedDecreaseTunaSpotPositionFusionInstruction<TProgram, TAccountMetas>;
|
|
2790
|
-
|
|
2791
|
-
/**
|
|
2792
|
-
* This code was AUTOGENERATED using the codama library.
|
|
2793
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2794
|
-
* to add features, then rerun codama to update it.
|
|
2795
|
-
*
|
|
2796
|
-
* @see https://github.com/codama-idl/codama
|
|
2797
|
-
*/
|
|
2798
|
-
|
|
2799
|
-
declare const DECREASE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2800
|
-
declare function getDecreaseTunaSpotPositionJupiterDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2801
|
-
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<[
|
|
2802
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2803
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
2804
|
-
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
2805
|
-
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
2806
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
2807
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
2808
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2809
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
2810
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
2811
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
2812
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
2813
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
2814
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
2815
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
2816
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
2817
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
2818
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
2819
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
2820
|
-
TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
|
|
2821
|
-
TAccountJupiterProgram extends string ? ReadonlyAccount<TAccountJupiterProgram> : TAccountJupiterProgram,
|
|
2822
|
-
TAccountJupiterEventAuthority extends string ? ReadonlyAccount<TAccountJupiterEventAuthority> : TAccountJupiterEventAuthority,
|
|
2823
|
-
TAccountJupiterProgramAuthority extends string ? ReadonlyAccount<TAccountJupiterProgramAuthority> : TAccountJupiterProgramAuthority,
|
|
2824
|
-
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2825
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
2826
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2827
|
-
...TRemainingAccounts
|
|
2828
|
-
]>;
|
|
2829
|
-
type DecreaseTunaSpotPositionJupiterInstructionData = {
|
|
2830
|
-
discriminator: ReadonlyUint8Array;
|
|
2831
|
-
withdrawPercent: number;
|
|
2832
|
-
routeData: ReadonlyUint8Array;
|
|
2833
|
-
};
|
|
2834
|
-
type DecreaseTunaSpotPositionJupiterInstructionDataArgs = {
|
|
2835
|
-
withdrawPercent: number;
|
|
2836
|
-
routeData: ReadonlyUint8Array;
|
|
2837
|
-
};
|
|
2838
|
-
declare function getDecreaseTunaSpotPositionJupiterInstructionDataEncoder(): Encoder<DecreaseTunaSpotPositionJupiterInstructionDataArgs>;
|
|
2839
|
-
declare function getDecreaseTunaSpotPositionJupiterInstructionDataDecoder(): Decoder<DecreaseTunaSpotPositionJupiterInstructionData>;
|
|
2840
|
-
declare function getDecreaseTunaSpotPositionJupiterInstructionDataCodec(): Codec<DecreaseTunaSpotPositionJupiterInstructionDataArgs, DecreaseTunaSpotPositionJupiterInstructionData>;
|
|
2841
|
-
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> = {
|
|
2842
|
-
/**
|
|
2843
|
-
*
|
|
2844
|
-
* TUNA accounts
|
|
2845
|
-
*
|
|
2846
|
-
*/
|
|
2847
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
2848
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
2849
|
-
mintA: Address<TAccountMintA>;
|
|
2850
|
-
mintB: Address<TAccountMintB>;
|
|
2851
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
2852
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
2853
|
-
market: Address<TAccountMarket>;
|
|
2854
|
-
vaultA: Address<TAccountVaultA>;
|
|
2855
|
-
vaultB: Address<TAccountVaultB>;
|
|
2856
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
2857
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
2858
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
2859
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
2860
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
2861
|
-
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
2862
|
-
tunaPositionOwnerAtaB: Address<TAccountTunaPositionOwnerAtaB>;
|
|
2863
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
2864
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
2865
|
-
pool: Address<TAccountPool>;
|
|
2866
|
-
/**
|
|
2867
|
-
*
|
|
2868
|
-
* Jupiter accounts
|
|
2869
|
-
*
|
|
2870
|
-
*/
|
|
2871
|
-
jupiterProgram: Address<TAccountJupiterProgram>;
|
|
2872
|
-
jupiterEventAuthority: Address<TAccountJupiterEventAuthority>;
|
|
2873
|
-
jupiterProgramAuthority: Address<TAccountJupiterProgramAuthority>;
|
|
2874
|
-
/**
|
|
2875
|
-
*
|
|
2876
|
-
* Other accounts
|
|
2877
|
-
*
|
|
2878
|
-
*/
|
|
2420
|
+
lendingPosition: Address<TAccountLendingPosition>;
|
|
2421
|
+
vault: Address<TAccountVault>;
|
|
2422
|
+
vaultAta: Address<TAccountVaultAta>;
|
|
2423
|
+
authorityAta: Address<TAccountAuthorityAta>;
|
|
2879
2424
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2880
2425
|
memoProgram: Address<TAccountMemoProgram>;
|
|
2881
|
-
|
|
2882
|
-
withdrawPercent: DecreaseTunaSpotPositionJupiterInstructionDataArgs['withdrawPercent'];
|
|
2883
|
-
routeData: DecreaseTunaSpotPositionJupiterInstructionDataArgs['routeData'];
|
|
2426
|
+
amount: DepositInstructionDataArgs['amount'];
|
|
2884
2427
|
};
|
|
2885
|
-
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?: {
|
|
2886
2429
|
programAddress?: TProgramAddress;
|
|
2887
|
-
}):
|
|
2888
|
-
type
|
|
2889
|
-
programAddress: Address<TProgram>;
|
|
2890
|
-
accounts: {
|
|
2891
|
-
/**
|
|
2892
|
-
*
|
|
2893
|
-
* TUNA accounts
|
|
2894
|
-
*
|
|
2895
|
-
*/
|
|
2896
|
-
authority: TAccountMetas[0];
|
|
2897
|
-
tunaConfig: TAccountMetas[1];
|
|
2898
|
-
mintA: TAccountMetas[2];
|
|
2899
|
-
mintB: TAccountMetas[3];
|
|
2900
|
-
tokenProgramA: TAccountMetas[4];
|
|
2901
|
-
tokenProgramB: TAccountMetas[5];
|
|
2902
|
-
market: TAccountMetas[6];
|
|
2903
|
-
vaultA: TAccountMetas[7];
|
|
2904
|
-
vaultB: TAccountMetas[8];
|
|
2905
|
-
vaultAAta: TAccountMetas[9];
|
|
2906
|
-
vaultBAta: TAccountMetas[10];
|
|
2907
|
-
tunaPosition: TAccountMetas[11];
|
|
2908
|
-
tunaPositionAtaA: TAccountMetas[12];
|
|
2909
|
-
tunaPositionAtaB: TAccountMetas[13];
|
|
2910
|
-
tunaPositionOwnerAtaA: TAccountMetas[14];
|
|
2911
|
-
tunaPositionOwnerAtaB: TAccountMetas[15];
|
|
2912
|
-
pythOraclePriceFeedA: TAccountMetas[16];
|
|
2913
|
-
pythOraclePriceFeedB: TAccountMetas[17];
|
|
2914
|
-
pool: TAccountMetas[18];
|
|
2915
|
-
/**
|
|
2916
|
-
*
|
|
2917
|
-
* Jupiter accounts
|
|
2918
|
-
*
|
|
2919
|
-
*/
|
|
2920
|
-
jupiterProgram: TAccountMetas[19];
|
|
2921
|
-
jupiterEventAuthority: TAccountMetas[20];
|
|
2922
|
-
jupiterProgramAuthority: TAccountMetas[21];
|
|
2923
|
-
/**
|
|
2924
|
-
*
|
|
2925
|
-
* Other accounts
|
|
2926
|
-
*
|
|
2927
|
-
*/
|
|
2928
|
-
tokenProgram: TAccountMetas[22];
|
|
2929
|
-
memoProgram: TAccountMetas[23];
|
|
2930
|
-
systemProgram: TAccountMetas[24];
|
|
2931
|
-
};
|
|
2932
|
-
data: DecreaseTunaSpotPositionJupiterInstructionData;
|
|
2933
|
-
};
|
|
2934
|
-
declare function parseDecreaseTunaSpotPositionJupiterInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedDecreaseTunaSpotPositionJupiterInstruction<TProgram, TAccountMetas>;
|
|
2935
|
-
|
|
2936
|
-
/**
|
|
2937
|
-
* This code was AUTOGENERATED using the codama library.
|
|
2938
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2939
|
-
* to add features, then rerun codama to update it.
|
|
2940
|
-
*
|
|
2941
|
-
* @see https://github.com/codama-idl/codama
|
|
2942
|
-
*/
|
|
2943
|
-
|
|
2944
|
-
declare const DECREASE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2945
|
-
declare function getDecreaseTunaSpotPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2946
|
-
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<[
|
|
2947
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2948
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
2949
|
-
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
2950
|
-
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
2951
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
2952
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
2953
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2954
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
2955
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
2956
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
2957
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
2958
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
2959
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
2960
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
2961
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
2962
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
2963
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
2964
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
2965
|
-
TAccountWhirlpoolProgram extends string ? ReadonlyAccount<TAccountWhirlpoolProgram> : TAccountWhirlpoolProgram,
|
|
2966
|
-
TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool,
|
|
2967
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
2968
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2969
|
-
...TRemainingAccounts
|
|
2970
|
-
]>;
|
|
2971
|
-
type DecreaseTunaSpotPositionOrcaInstructionData = {
|
|
2972
|
-
discriminator: ReadonlyUint8Array;
|
|
2973
|
-
withdrawPercent: number;
|
|
2974
|
-
acceptableSwapAmount: bigint;
|
|
2975
|
-
remainingAccountsInfo: RemainingAccountsInfo;
|
|
2976
|
-
};
|
|
2977
|
-
type DecreaseTunaSpotPositionOrcaInstructionDataArgs = {
|
|
2978
|
-
withdrawPercent: number;
|
|
2979
|
-
acceptableSwapAmount: number | bigint;
|
|
2980
|
-
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
2981
|
-
};
|
|
2982
|
-
declare function getDecreaseTunaSpotPositionOrcaInstructionDataEncoder(): Encoder<DecreaseTunaSpotPositionOrcaInstructionDataArgs>;
|
|
2983
|
-
declare function getDecreaseTunaSpotPositionOrcaInstructionDataDecoder(): Decoder<DecreaseTunaSpotPositionOrcaInstructionData>;
|
|
2984
|
-
declare function getDecreaseTunaSpotPositionOrcaInstructionDataCodec(): Codec<DecreaseTunaSpotPositionOrcaInstructionDataArgs, DecreaseTunaSpotPositionOrcaInstructionData>;
|
|
2985
|
-
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> = {
|
|
2986
|
-
/**
|
|
2987
|
-
*
|
|
2988
|
-
* TUNA accounts
|
|
2989
|
-
*
|
|
2990
|
-
*/
|
|
2991
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
2992
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
2993
|
-
mintA: Address<TAccountMintA>;
|
|
2994
|
-
mintB: Address<TAccountMintB>;
|
|
2995
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
2996
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
2997
|
-
market: Address<TAccountMarket>;
|
|
2998
|
-
vaultA: Address<TAccountVaultA>;
|
|
2999
|
-
vaultB: Address<TAccountVaultB>;
|
|
3000
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
3001
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
3002
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
3003
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
3004
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
3005
|
-
tunaPositionOwnerAtaA?: Address<TAccountTunaPositionOwnerAtaA>;
|
|
3006
|
-
tunaPositionOwnerAtaB?: Address<TAccountTunaPositionOwnerAtaB>;
|
|
3007
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
3008
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
3009
|
-
/**
|
|
3010
|
-
*
|
|
3011
|
-
* Orca accounts
|
|
3012
|
-
*
|
|
3013
|
-
*/
|
|
3014
|
-
whirlpoolProgram: Address<TAccountWhirlpoolProgram>;
|
|
3015
|
-
whirlpool: Address<TAccountWhirlpool>;
|
|
3016
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
3017
|
-
/**
|
|
3018
|
-
*
|
|
3019
|
-
* Other accounts
|
|
3020
|
-
*
|
|
3021
|
-
*/
|
|
3022
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
3023
|
-
withdrawPercent: DecreaseTunaSpotPositionOrcaInstructionDataArgs['withdrawPercent'];
|
|
3024
|
-
acceptableSwapAmount: DecreaseTunaSpotPositionOrcaInstructionDataArgs['acceptableSwapAmount'];
|
|
3025
|
-
remainingAccountsInfo: DecreaseTunaSpotPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
3026
|
-
};
|
|
3027
|
-
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?: {
|
|
3028
|
-
programAddress?: TProgramAddress;
|
|
3029
|
-
}): DecreaseTunaSpotPositionOrcaInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountVaultAAta, TAccountVaultBAta, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountTunaPositionOwnerAtaA, TAccountTunaPositionOwnerAtaB, TAccountPythOraclePriceFeedA, TAccountPythOraclePriceFeedB, TAccountWhirlpoolProgram, TAccountWhirlpool, TAccountMemoProgram, TAccountSystemProgram>;
|
|
3030
|
-
type ParsedDecreaseTunaSpotPositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
3031
|
-
programAddress: Address<TProgram>;
|
|
3032
|
-
accounts: {
|
|
3033
|
-
/**
|
|
3034
|
-
*
|
|
3035
|
-
* TUNA accounts
|
|
3036
|
-
*
|
|
3037
|
-
*/
|
|
3038
|
-
authority: TAccountMetas[0];
|
|
3039
|
-
tunaConfig: TAccountMetas[1];
|
|
3040
|
-
mintA: TAccountMetas[2];
|
|
3041
|
-
mintB: TAccountMetas[3];
|
|
3042
|
-
tokenProgramA: TAccountMetas[4];
|
|
3043
|
-
tokenProgramB: TAccountMetas[5];
|
|
3044
|
-
market: TAccountMetas[6];
|
|
3045
|
-
vaultA: TAccountMetas[7];
|
|
3046
|
-
vaultB: TAccountMetas[8];
|
|
3047
|
-
vaultAAta: TAccountMetas[9];
|
|
3048
|
-
vaultBAta: TAccountMetas[10];
|
|
3049
|
-
tunaPosition: TAccountMetas[11];
|
|
3050
|
-
tunaPositionAtaA: TAccountMetas[12];
|
|
3051
|
-
tunaPositionAtaB: TAccountMetas[13];
|
|
3052
|
-
tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined;
|
|
3053
|
-
tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined;
|
|
3054
|
-
pythOraclePriceFeedA: TAccountMetas[16];
|
|
3055
|
-
pythOraclePriceFeedB: TAccountMetas[17];
|
|
3056
|
-
/**
|
|
3057
|
-
*
|
|
3058
|
-
* Orca accounts
|
|
3059
|
-
*
|
|
3060
|
-
*/
|
|
3061
|
-
whirlpoolProgram: TAccountMetas[18];
|
|
3062
|
-
whirlpool: TAccountMetas[19];
|
|
3063
|
-
memoProgram: TAccountMetas[20];
|
|
3064
|
-
/**
|
|
3065
|
-
*
|
|
3066
|
-
* Other accounts
|
|
3067
|
-
*
|
|
3068
|
-
*/
|
|
3069
|
-
systemProgram: TAccountMetas[21];
|
|
3070
|
-
};
|
|
3071
|
-
data: DecreaseTunaSpotPositionOrcaInstructionData;
|
|
3072
|
-
};
|
|
3073
|
-
declare function parseDecreaseTunaSpotPositionOrcaInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedDecreaseTunaSpotPositionOrcaInstruction<TProgram, TAccountMetas>;
|
|
3074
|
-
|
|
3075
|
-
/**
|
|
3076
|
-
* This code was AUTOGENERATED using the codama library.
|
|
3077
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3078
|
-
* to add features, then rerun codama to update it.
|
|
3079
|
-
*
|
|
3080
|
-
* @see https://github.com/codama-idl/codama
|
|
3081
|
-
*/
|
|
3082
|
-
|
|
3083
|
-
declare const DEPOSIT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3084
|
-
declare function getDepositDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3085
|
-
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<[
|
|
3086
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3087
|
-
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
3088
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
3089
|
-
TAccountLendingPosition extends string ? WritableAccount<TAccountLendingPosition> : TAccountLendingPosition,
|
|
3090
|
-
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
3091
|
-
TAccountVaultAta extends string ? WritableAccount<TAccountVaultAta> : TAccountVaultAta,
|
|
3092
|
-
TAccountAuthorityAta extends string ? WritableAccount<TAccountAuthorityAta> : TAccountAuthorityAta,
|
|
3093
|
-
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3094
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3095
|
-
...TRemainingAccounts
|
|
3096
|
-
]>;
|
|
3097
|
-
type DepositInstructionData = {
|
|
3098
|
-
discriminator: ReadonlyUint8Array;
|
|
3099
|
-
amount: bigint;
|
|
3100
|
-
};
|
|
3101
|
-
type DepositInstructionDataArgs = {
|
|
3102
|
-
amount: number | bigint;
|
|
3103
|
-
};
|
|
3104
|
-
declare function getDepositInstructionDataEncoder(): Encoder<DepositInstructionDataArgs>;
|
|
3105
|
-
declare function getDepositInstructionDataDecoder(): Decoder<DepositInstructionData>;
|
|
3106
|
-
declare function getDepositInstructionDataCodec(): Codec<DepositInstructionDataArgs, DepositInstructionData>;
|
|
3107
|
-
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> = {
|
|
3108
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
3109
|
-
mint: Address<TAccountMint>;
|
|
3110
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
3111
|
-
lendingPosition: Address<TAccountLendingPosition>;
|
|
3112
|
-
vault: Address<TAccountVault>;
|
|
3113
|
-
vaultAta: Address<TAccountVaultAta>;
|
|
3114
|
-
authorityAta: Address<TAccountAuthorityAta>;
|
|
3115
|
-
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3116
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
3117
|
-
amount: DepositInstructionDataArgs['amount'];
|
|
3118
|
-
};
|
|
3119
|
-
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?: {
|
|
3120
|
-
programAddress?: TProgramAddress;
|
|
3121
|
-
}): DepositInstruction<TProgramAddress, TAccountAuthority, TAccountMint, TAccountTunaConfig, TAccountLendingPosition, TAccountVault, TAccountVaultAta, TAccountAuthorityAta, TAccountTokenProgram, TAccountMemoProgram>;
|
|
3122
|
-
type ParsedDepositInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
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[]> = {
|
|
3123
2432
|
programAddress: Address<TProgram>;
|
|
3124
2433
|
accounts: {
|
|
3125
2434
|
authority: TAccountMetas[0];
|
|
3126
2435
|
mint: TAccountMetas[1];
|
|
3127
2436
|
tunaConfig: TAccountMetas[2];
|
|
3128
|
-
lendingPosition: TAccountMetas[3];
|
|
3129
|
-
vault: TAccountMetas[4];
|
|
3130
|
-
vaultAta: TAccountMetas[5];
|
|
3131
|
-
authorityAta: TAccountMetas[6];
|
|
3132
|
-
tokenProgram: TAccountMetas[7];
|
|
3133
|
-
memoProgram: TAccountMetas[8];
|
|
3134
|
-
};
|
|
3135
|
-
data: DepositInstructionData;
|
|
3136
|
-
};
|
|
3137
|
-
declare function parseDepositInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedDepositInstruction<TProgram, TAccountMetas>;
|
|
3138
|
-
|
|
3139
|
-
/**
|
|
3140
|
-
* This code was AUTOGENERATED using the codama library.
|
|
3141
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3142
|
-
* to add features, then rerun codama to update it.
|
|
3143
|
-
*
|
|
3144
|
-
* @see https://github.com/codama-idl/codama
|
|
3145
|
-
*/
|
|
3146
|
-
|
|
3147
|
-
declare const INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3148
|
-
declare function getIncreaseTunaLpPositionFusionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3149
|
-
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<[
|
|
3150
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3151
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
3152
|
-
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
3153
|
-
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
3154
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
3155
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
3156
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3157
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
3158
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
3159
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
3160
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
3161
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
3162
|
-
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
3163
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
3164
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
3165
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
3166
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
3167
|
-
TAccountFeeRecipientAtaA extends string ? WritableAccount<TAccountFeeRecipientAtaA> : TAccountFeeRecipientAtaA,
|
|
3168
|
-
TAccountFeeRecipientAtaB extends string ? WritableAccount<TAccountFeeRecipientAtaB> : TAccountFeeRecipientAtaB,
|
|
3169
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
3170
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
3171
|
-
TAccountFusionammProgram extends string ? ReadonlyAccount<TAccountFusionammProgram> : TAccountFusionammProgram,
|
|
3172
|
-
TAccountFusionPool extends string ? WritableAccount<TAccountFusionPool> : TAccountFusionPool,
|
|
3173
|
-
TAccountFusionPosition extends string ? WritableAccount<TAccountFusionPosition> : TAccountFusionPosition,
|
|
3174
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3175
|
-
...TRemainingAccounts
|
|
3176
|
-
]>;
|
|
3177
|
-
type IncreaseTunaLpPositionFusionInstructionData = {
|
|
3178
|
-
discriminator: ReadonlyUint8Array;
|
|
3179
|
-
collateralA: bigint;
|
|
3180
|
-
collateralB: bigint;
|
|
3181
|
-
borrowA: bigint;
|
|
3182
|
-
borrowB: bigint;
|
|
3183
|
-
minAddedAmountA: bigint;
|
|
3184
|
-
minAddedAmountB: bigint;
|
|
3185
|
-
maxSwapSlippage: number;
|
|
3186
|
-
remainingAccountsInfo: RemainingAccountsInfo;
|
|
3187
|
-
};
|
|
3188
|
-
type IncreaseTunaLpPositionFusionInstructionDataArgs = {
|
|
3189
|
-
collateralA: number | bigint;
|
|
3190
|
-
collateralB: number | bigint;
|
|
3191
|
-
borrowA: number | bigint;
|
|
3192
|
-
borrowB: number | bigint;
|
|
3193
|
-
minAddedAmountA: number | bigint;
|
|
3194
|
-
minAddedAmountB: number | bigint;
|
|
3195
|
-
maxSwapSlippage: number;
|
|
3196
|
-
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
3197
|
-
};
|
|
3198
|
-
declare function getIncreaseTunaLpPositionFusionInstructionDataEncoder(): Encoder<IncreaseTunaLpPositionFusionInstructionDataArgs>;
|
|
3199
|
-
declare function getIncreaseTunaLpPositionFusionInstructionDataDecoder(): Decoder<IncreaseTunaLpPositionFusionInstructionData>;
|
|
3200
|
-
declare function getIncreaseTunaLpPositionFusionInstructionDataCodec(): Codec<IncreaseTunaLpPositionFusionInstructionDataArgs, IncreaseTunaLpPositionFusionInstructionData>;
|
|
3201
|
-
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> = {
|
|
3202
|
-
/**
|
|
3203
|
-
*
|
|
3204
|
-
* TUNA accounts
|
|
3205
|
-
*
|
|
3206
|
-
*/
|
|
3207
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
3208
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
3209
|
-
mintA: Address<TAccountMintA>;
|
|
3210
|
-
mintB: Address<TAccountMintB>;
|
|
3211
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
3212
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
3213
|
-
market: Address<TAccountMarket>;
|
|
3214
|
-
vaultA: Address<TAccountVaultA>;
|
|
3215
|
-
vaultB: Address<TAccountVaultB>;
|
|
3216
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
3217
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
3218
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
3219
|
-
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
3220
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
3221
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
3222
|
-
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
3223
|
-
tunaPositionOwnerAtaB: Address<TAccountTunaPositionOwnerAtaB>;
|
|
3224
|
-
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
3225
|
-
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
3226
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
3227
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
3228
|
-
/**
|
|
3229
|
-
*
|
|
3230
|
-
* Fusion accounts
|
|
3231
|
-
*
|
|
3232
|
-
*/
|
|
3233
|
-
fusionammProgram: Address<TAccountFusionammProgram>;
|
|
3234
|
-
fusionPool: Address<TAccountFusionPool>;
|
|
3235
|
-
fusionPosition: Address<TAccountFusionPosition>;
|
|
3236
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
3237
|
-
collateralA: IncreaseTunaLpPositionFusionInstructionDataArgs['collateralA'];
|
|
3238
|
-
collateralB: IncreaseTunaLpPositionFusionInstructionDataArgs['collateralB'];
|
|
3239
|
-
borrowA: IncreaseTunaLpPositionFusionInstructionDataArgs['borrowA'];
|
|
3240
|
-
borrowB: IncreaseTunaLpPositionFusionInstructionDataArgs['borrowB'];
|
|
3241
|
-
minAddedAmountA: IncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountA'];
|
|
3242
|
-
minAddedAmountB: IncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountB'];
|
|
3243
|
-
maxSwapSlippage: IncreaseTunaLpPositionFusionInstructionDataArgs['maxSwapSlippage'];
|
|
3244
|
-
remainingAccountsInfo: IncreaseTunaLpPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
3245
|
-
};
|
|
3246
|
-
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?: {
|
|
3247
|
-
programAddress?: TProgramAddress;
|
|
3248
|
-
}): 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>;
|
|
3249
|
-
type ParsedIncreaseTunaLpPositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
3250
|
-
programAddress: Address<TProgram>;
|
|
3251
|
-
accounts: {
|
|
3252
|
-
/**
|
|
3253
|
-
*
|
|
3254
|
-
* TUNA accounts
|
|
3255
|
-
*
|
|
3256
|
-
*/
|
|
3257
|
-
authority: TAccountMetas[0];
|
|
3258
|
-
tunaConfig: TAccountMetas[1];
|
|
3259
|
-
mintA: TAccountMetas[2];
|
|
3260
|
-
mintB: TAccountMetas[3];
|
|
3261
|
-
tokenProgramA: TAccountMetas[4];
|
|
3262
|
-
tokenProgramB: TAccountMetas[5];
|
|
3263
|
-
market: TAccountMetas[6];
|
|
3264
|
-
vaultA: TAccountMetas[7];
|
|
3265
|
-
vaultB: TAccountMetas[8];
|
|
3266
|
-
vaultAAta: TAccountMetas[9];
|
|
3267
|
-
vaultBAta: TAccountMetas[10];
|
|
3268
|
-
tunaPosition: TAccountMetas[11];
|
|
3269
|
-
tunaPositionAta: TAccountMetas[12];
|
|
3270
|
-
tunaPositionAtaA: TAccountMetas[13];
|
|
3271
|
-
tunaPositionAtaB: TAccountMetas[14];
|
|
3272
|
-
tunaPositionOwnerAtaA: TAccountMetas[15];
|
|
3273
|
-
tunaPositionOwnerAtaB: TAccountMetas[16];
|
|
3274
|
-
feeRecipientAtaA: TAccountMetas[17];
|
|
3275
|
-
feeRecipientAtaB: TAccountMetas[18];
|
|
3276
|
-
pythOraclePriceFeedA: TAccountMetas[19];
|
|
3277
|
-
pythOraclePriceFeedB: TAccountMetas[20];
|
|
3278
|
-
/**
|
|
3279
|
-
*
|
|
3280
|
-
* Fusion accounts
|
|
3281
|
-
*
|
|
3282
|
-
*/
|
|
3283
|
-
fusionammProgram: TAccountMetas[21];
|
|
3284
|
-
fusionPool: TAccountMetas[22];
|
|
3285
|
-
fusionPosition: TAccountMetas[23];
|
|
3286
|
-
memoProgram: TAccountMetas[24];
|
|
3287
|
-
};
|
|
3288
|
-
data: IncreaseTunaLpPositionFusionInstructionData;
|
|
3289
|
-
};
|
|
3290
|
-
declare function parseIncreaseTunaLpPositionFusionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedIncreaseTunaLpPositionFusionInstruction<TProgram, TAccountMetas>;
|
|
3291
|
-
|
|
3292
|
-
/**
|
|
3293
|
-
* This code was AUTOGENERATED using the codama library.
|
|
3294
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3295
|
-
* to add features, then rerun codama to update it.
|
|
3296
|
-
*
|
|
3297
|
-
* @see https://github.com/codama-idl/codama
|
|
3298
|
-
*/
|
|
3299
|
-
|
|
3300
|
-
declare const INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3301
|
-
declare function getIncreaseTunaLpPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3302
|
-
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<[
|
|
3303
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3304
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
3305
|
-
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
3306
|
-
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
3307
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3308
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
3309
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
3310
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
3311
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
3312
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
3313
|
-
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
3314
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
3315
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
3316
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
3317
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
3318
|
-
TAccountFeeRecipientAtaA extends string ? WritableAccount<TAccountFeeRecipientAtaA> : TAccountFeeRecipientAtaA,
|
|
3319
|
-
TAccountFeeRecipientAtaB extends string ? WritableAccount<TAccountFeeRecipientAtaB> : TAccountFeeRecipientAtaB,
|
|
3320
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
3321
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
3322
|
-
TAccountWhirlpoolProgram extends string ? ReadonlyAccount<TAccountWhirlpoolProgram> : TAccountWhirlpoolProgram,
|
|
3323
|
-
TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool,
|
|
3324
|
-
TAccountOrcaPosition extends string ? WritableAccount<TAccountOrcaPosition> : TAccountOrcaPosition,
|
|
3325
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
3326
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
3327
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3328
|
-
...TRemainingAccounts
|
|
3329
|
-
]>;
|
|
3330
|
-
type IncreaseTunaLpPositionOrcaInstructionData = {
|
|
3331
|
-
discriminator: ReadonlyUint8Array;
|
|
3332
|
-
collateralA: bigint;
|
|
3333
|
-
collateralB: bigint;
|
|
3334
|
-
borrowA: bigint;
|
|
3335
|
-
borrowB: bigint;
|
|
3336
|
-
minAddedAmountA: bigint;
|
|
3337
|
-
minAddedAmountB: bigint;
|
|
3338
|
-
maxSwapSlippage: number;
|
|
3339
|
-
remainingAccountsInfo: RemainingAccountsInfo;
|
|
3340
|
-
};
|
|
3341
|
-
type IncreaseTunaLpPositionOrcaInstructionDataArgs = {
|
|
3342
|
-
collateralA: number | bigint;
|
|
3343
|
-
collateralB: number | bigint;
|
|
3344
|
-
borrowA: number | bigint;
|
|
3345
|
-
borrowB: number | bigint;
|
|
3346
|
-
minAddedAmountA: number | bigint;
|
|
3347
|
-
minAddedAmountB: number | bigint;
|
|
3348
|
-
maxSwapSlippage: number;
|
|
3349
|
-
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
3350
|
-
};
|
|
3351
|
-
declare function getIncreaseTunaLpPositionOrcaInstructionDataEncoder(): Encoder<IncreaseTunaLpPositionOrcaInstructionDataArgs>;
|
|
3352
|
-
declare function getIncreaseTunaLpPositionOrcaInstructionDataDecoder(): Decoder<IncreaseTunaLpPositionOrcaInstructionData>;
|
|
3353
|
-
declare function getIncreaseTunaLpPositionOrcaInstructionDataCodec(): Codec<IncreaseTunaLpPositionOrcaInstructionDataArgs, IncreaseTunaLpPositionOrcaInstructionData>;
|
|
3354
|
-
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> = {
|
|
3355
|
-
/**
|
|
3356
|
-
*
|
|
3357
|
-
* TUNA accounts
|
|
3358
|
-
*
|
|
3359
|
-
*/
|
|
3360
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
3361
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
3362
|
-
mintA: Address<TAccountMintA>;
|
|
3363
|
-
mintB: Address<TAccountMintB>;
|
|
3364
|
-
market: Address<TAccountMarket>;
|
|
3365
|
-
vaultA: Address<TAccountVaultA>;
|
|
3366
|
-
vaultB: Address<TAccountVaultB>;
|
|
3367
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
3368
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
3369
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
3370
|
-
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
3371
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
3372
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
3373
|
-
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
3374
|
-
tunaPositionOwnerAtaB: Address<TAccountTunaPositionOwnerAtaB>;
|
|
3375
|
-
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
3376
|
-
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
3377
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
3378
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
3379
|
-
/**
|
|
3380
|
-
*
|
|
3381
|
-
* ORCA accounts
|
|
3382
|
-
*
|
|
3383
|
-
*/
|
|
3384
|
-
whirlpoolProgram: Address<TAccountWhirlpoolProgram>;
|
|
3385
|
-
whirlpool: Address<TAccountWhirlpool>;
|
|
3386
|
-
orcaPosition: Address<TAccountOrcaPosition>;
|
|
3387
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
3388
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
3389
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
3390
|
-
collateralA: IncreaseTunaLpPositionOrcaInstructionDataArgs['collateralA'];
|
|
3391
|
-
collateralB: IncreaseTunaLpPositionOrcaInstructionDataArgs['collateralB'];
|
|
3392
|
-
borrowA: IncreaseTunaLpPositionOrcaInstructionDataArgs['borrowA'];
|
|
3393
|
-
borrowB: IncreaseTunaLpPositionOrcaInstructionDataArgs['borrowB'];
|
|
3394
|
-
minAddedAmountA: IncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountA'];
|
|
3395
|
-
minAddedAmountB: IncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountB'];
|
|
3396
|
-
maxSwapSlippage: IncreaseTunaLpPositionOrcaInstructionDataArgs['maxSwapSlippage'];
|
|
3397
|
-
remainingAccountsInfo: IncreaseTunaLpPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
3398
|
-
};
|
|
3399
|
-
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?: {
|
|
3400
|
-
programAddress?: TProgramAddress;
|
|
3401
|
-
}): 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>;
|
|
3402
|
-
type ParsedIncreaseTunaLpPositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
3403
|
-
programAddress: Address<TProgram>;
|
|
3404
|
-
accounts: {
|
|
3405
|
-
/**
|
|
3406
|
-
*
|
|
3407
|
-
* TUNA accounts
|
|
3408
|
-
*
|
|
3409
|
-
*/
|
|
3410
|
-
authority: TAccountMetas[0];
|
|
3411
|
-
tunaConfig: TAccountMetas[1];
|
|
3412
|
-
mintA: TAccountMetas[2];
|
|
3413
|
-
mintB: TAccountMetas[3];
|
|
3414
|
-
market: TAccountMetas[4];
|
|
3415
|
-
vaultA: TAccountMetas[5];
|
|
3416
|
-
vaultB: TAccountMetas[6];
|
|
3417
|
-
vaultAAta: TAccountMetas[7];
|
|
3418
|
-
vaultBAta: TAccountMetas[8];
|
|
3419
|
-
tunaPosition: TAccountMetas[9];
|
|
3420
|
-
tunaPositionAta: TAccountMetas[10];
|
|
3421
|
-
tunaPositionAtaA: TAccountMetas[11];
|
|
3422
|
-
tunaPositionAtaB: TAccountMetas[12];
|
|
3423
|
-
tunaPositionOwnerAtaA: TAccountMetas[13];
|
|
3424
|
-
tunaPositionOwnerAtaB: TAccountMetas[14];
|
|
3425
|
-
feeRecipientAtaA: TAccountMetas[15];
|
|
3426
|
-
feeRecipientAtaB: TAccountMetas[16];
|
|
3427
|
-
pythOraclePriceFeedA: TAccountMetas[17];
|
|
3428
|
-
pythOraclePriceFeedB: TAccountMetas[18];
|
|
3429
|
-
/**
|
|
3430
|
-
*
|
|
3431
|
-
* ORCA accounts
|
|
3432
|
-
*
|
|
3433
|
-
*/
|
|
3434
|
-
whirlpoolProgram: TAccountMetas[19];
|
|
3435
|
-
whirlpool: TAccountMetas[20];
|
|
3436
|
-
orcaPosition: TAccountMetas[21];
|
|
3437
|
-
tokenProgramA: TAccountMetas[22];
|
|
3438
|
-
tokenProgramB: TAccountMetas[23];
|
|
3439
|
-
memoProgram: TAccountMetas[24];
|
|
2437
|
+
lendingPosition: TAccountMetas[3];
|
|
2438
|
+
vault: TAccountMetas[4];
|
|
2439
|
+
vaultAta: TAccountMetas[5];
|
|
2440
|
+
authorityAta: TAccountMetas[6];
|
|
2441
|
+
tokenProgram: TAccountMetas[7];
|
|
2442
|
+
memoProgram: TAccountMetas[8];
|
|
3440
2443
|
};
|
|
3441
|
-
data:
|
|
2444
|
+
data: DepositInstructionData;
|
|
3442
2445
|
};
|
|
3443
|
-
declare function
|
|
2446
|
+
declare function parseDepositInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedDepositInstruction<TProgram, TAccountMetas>;
|
|
3444
2447
|
|
|
3445
2448
|
/**
|
|
3446
2449
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -3450,9 +2453,9 @@ declare function parseIncreaseTunaLpPositionOrcaInstruction<TProgram extends str
|
|
|
3450
2453
|
* @see https://github.com/codama-idl/codama
|
|
3451
2454
|
*/
|
|
3452
2455
|
|
|
3453
|
-
declare const
|
|
3454
|
-
declare function
|
|
3455
|
-
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<[
|
|
3456
2459
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3457
2460
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
3458
2461
|
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
@@ -3465,6 +2468,7 @@ type IncreaseTunaSpotPositionFusionInstruction<TProgram extends string = typeof
|
|
|
3465
2468
|
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
3466
2469
|
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
3467
2470
|
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
2471
|
+
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
3468
2472
|
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
3469
2473
|
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
3470
2474
|
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
@@ -3475,27 +2479,35 @@ type IncreaseTunaSpotPositionFusionInstruction<TProgram extends string = typeof
|
|
|
3475
2479
|
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
3476
2480
|
TAccountFusionammProgram extends string ? ReadonlyAccount<TAccountFusionammProgram> : TAccountFusionammProgram,
|
|
3477
2481
|
TAccountFusionPool extends string ? WritableAccount<TAccountFusionPool> : TAccountFusionPool,
|
|
2482
|
+
TAccountFusionPosition extends string ? WritableAccount<TAccountFusionPosition> : TAccountFusionPosition,
|
|
3478
2483
|
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3479
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3480
2484
|
...TRemainingAccounts
|
|
3481
2485
|
]>;
|
|
3482
|
-
type
|
|
2486
|
+
type IncreaseTunaLpPositionFusionInstructionData = {
|
|
3483
2487
|
discriminator: ReadonlyUint8Array;
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
2488
|
+
collateralA: bigint;
|
|
2489
|
+
collateralB: bigint;
|
|
2490
|
+
borrowA: bigint;
|
|
2491
|
+
borrowB: bigint;
|
|
2492
|
+
minAddedAmountA: bigint;
|
|
2493
|
+
minAddedAmountB: bigint;
|
|
2494
|
+
maxSwapSlippage: number;
|
|
3487
2495
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
3488
2496
|
};
|
|
3489
|
-
type
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
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;
|
|
3493
2505
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
3494
2506
|
};
|
|
3495
|
-
declare function
|
|
3496
|
-
declare function
|
|
3497
|
-
declare function
|
|
3498
|
-
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> = {
|
|
3499
2511
|
/**
|
|
3500
2512
|
*
|
|
3501
2513
|
* TUNA accounts
|
|
@@ -3513,10 +2525,11 @@ type IncreaseTunaSpotPositionFusionInput<TAccountAuthority extends string = stri
|
|
|
3513
2525
|
vaultAAta: Address<TAccountVaultAAta>;
|
|
3514
2526
|
vaultBAta: Address<TAccountVaultBAta>;
|
|
3515
2527
|
tunaPosition: Address<TAccountTunaPosition>;
|
|
2528
|
+
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
3516
2529
|
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
3517
2530
|
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
3518
|
-
tunaPositionOwnerAtaA
|
|
3519
|
-
tunaPositionOwnerAtaB
|
|
2531
|
+
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
2532
|
+
tunaPositionOwnerAtaB: Address<TAccountTunaPositionOwnerAtaB>;
|
|
3520
2533
|
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
3521
2534
|
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
3522
2535
|
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
@@ -3528,22 +2541,21 @@ type IncreaseTunaSpotPositionFusionInput<TAccountAuthority extends string = stri
|
|
|
3528
2541
|
*/
|
|
3529
2542
|
fusionammProgram: Address<TAccountFusionammProgram>;
|
|
3530
2543
|
fusionPool: Address<TAccountFusionPool>;
|
|
2544
|
+
fusionPosition: Address<TAccountFusionPosition>;
|
|
3531
2545
|
memoProgram: Address<TAccountMemoProgram>;
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
minSwapAmountOut: IncreaseTunaSpotPositionFusionInstructionDataArgs['minSwapAmountOut'];
|
|
3541
|
-
remainingAccountsInfo: IncreaseTunaSpotPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
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'];
|
|
3542
2554
|
};
|
|
3543
|
-
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?: {
|
|
3544
2556
|
programAddress?: TProgramAddress;
|
|
3545
|
-
}):
|
|
3546
|
-
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[]> = {
|
|
3547
2559
|
programAddress: Address<TProgram>;
|
|
3548
2560
|
accounts: {
|
|
3549
2561
|
/**
|
|
@@ -3563,186 +2575,28 @@ type ParsedIncreaseTunaSpotPositionFusionInstruction<TProgram extends string = t
|
|
|
3563
2575
|
vaultAAta: TAccountMetas[9];
|
|
3564
2576
|
vaultBAta: TAccountMetas[10];
|
|
3565
2577
|
tunaPosition: TAccountMetas[11];
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
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];
|
|
3574
2587
|
/**
|
|
3575
2588
|
*
|
|
3576
2589
|
* Fusion accounts
|
|
3577
2590
|
*
|
|
3578
2591
|
*/
|
|
3579
|
-
fusionammProgram: TAccountMetas[
|
|
3580
|
-
fusionPool: TAccountMetas[
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
*
|
|
3584
|
-
* Other accounts
|
|
3585
|
-
*
|
|
3586
|
-
*/
|
|
3587
|
-
systemProgram: TAccountMetas[23];
|
|
3588
|
-
};
|
|
3589
|
-
data: IncreaseTunaSpotPositionFusionInstructionData;
|
|
3590
|
-
};
|
|
3591
|
-
declare function parseIncreaseTunaSpotPositionFusionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedIncreaseTunaSpotPositionFusionInstruction<TProgram, TAccountMetas>;
|
|
3592
|
-
|
|
3593
|
-
/**
|
|
3594
|
-
* This code was AUTOGENERATED using the codama library.
|
|
3595
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3596
|
-
* to add features, then rerun codama to update it.
|
|
3597
|
-
*
|
|
3598
|
-
* @see https://github.com/codama-idl/codama
|
|
3599
|
-
*/
|
|
3600
|
-
|
|
3601
|
-
declare const INCREASE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3602
|
-
declare function getIncreaseTunaSpotPositionJupiterDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3603
|
-
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<[
|
|
3604
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3605
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
3606
|
-
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
3607
|
-
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
3608
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
3609
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
3610
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3611
|
-
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
3612
|
-
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
3613
|
-
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
3614
|
-
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
3615
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
3616
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
3617
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
3618
|
-
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
3619
|
-
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
3620
|
-
TAccountFeeRecipientAtaA extends string ? WritableAccount<TAccountFeeRecipientAtaA> : TAccountFeeRecipientAtaA,
|
|
3621
|
-
TAccountFeeRecipientAtaB extends string ? WritableAccount<TAccountFeeRecipientAtaB> : TAccountFeeRecipientAtaB,
|
|
3622
|
-
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
3623
|
-
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
3624
|
-
TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
|
|
3625
|
-
TAccountJupiterProgram extends string ? ReadonlyAccount<TAccountJupiterProgram> : TAccountJupiterProgram,
|
|
3626
|
-
TAccountJupiterEventAuthority extends string ? ReadonlyAccount<TAccountJupiterEventAuthority> : TAccountJupiterEventAuthority,
|
|
3627
|
-
TAccountJupiterProgramAuthority extends string ? ReadonlyAccount<TAccountJupiterProgramAuthority> : TAccountJupiterProgramAuthority,
|
|
3628
|
-
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3629
|
-
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3630
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3631
|
-
...TRemainingAccounts
|
|
3632
|
-
]>;
|
|
3633
|
-
type IncreaseTunaSpotPositionJupiterInstructionData = {
|
|
3634
|
-
discriminator: ReadonlyUint8Array;
|
|
3635
|
-
collateralAmount: bigint;
|
|
3636
|
-
borrowAmount: bigint;
|
|
3637
|
-
routeData: ReadonlyUint8Array;
|
|
3638
|
-
};
|
|
3639
|
-
type IncreaseTunaSpotPositionJupiterInstructionDataArgs = {
|
|
3640
|
-
collateralAmount: number | bigint;
|
|
3641
|
-
borrowAmount: number | bigint;
|
|
3642
|
-
routeData: ReadonlyUint8Array;
|
|
3643
|
-
};
|
|
3644
|
-
declare function getIncreaseTunaSpotPositionJupiterInstructionDataEncoder(): Encoder<IncreaseTunaSpotPositionJupiterInstructionDataArgs>;
|
|
3645
|
-
declare function getIncreaseTunaSpotPositionJupiterInstructionDataDecoder(): Decoder<IncreaseTunaSpotPositionJupiterInstructionData>;
|
|
3646
|
-
declare function getIncreaseTunaSpotPositionJupiterInstructionDataCodec(): Codec<IncreaseTunaSpotPositionJupiterInstructionDataArgs, IncreaseTunaSpotPositionJupiterInstructionData>;
|
|
3647
|
-
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> = {
|
|
3648
|
-
/**
|
|
3649
|
-
*
|
|
3650
|
-
* TUNA accounts
|
|
3651
|
-
*
|
|
3652
|
-
*/
|
|
3653
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
3654
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
3655
|
-
mintA: Address<TAccountMintA>;
|
|
3656
|
-
mintB: Address<TAccountMintB>;
|
|
3657
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
3658
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
3659
|
-
market: Address<TAccountMarket>;
|
|
3660
|
-
vaultA: Address<TAccountVaultA>;
|
|
3661
|
-
vaultB: Address<TAccountVaultB>;
|
|
3662
|
-
vaultAAta: Address<TAccountVaultAAta>;
|
|
3663
|
-
vaultBAta: Address<TAccountVaultBAta>;
|
|
3664
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
3665
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
3666
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
3667
|
-
tunaPositionOwnerAtaA?: Address<TAccountTunaPositionOwnerAtaA>;
|
|
3668
|
-
tunaPositionOwnerAtaB?: Address<TAccountTunaPositionOwnerAtaB>;
|
|
3669
|
-
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
3670
|
-
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
3671
|
-
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
3672
|
-
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
3673
|
-
pool: Address<TAccountPool>;
|
|
3674
|
-
/**
|
|
3675
|
-
*
|
|
3676
|
-
* Jupiter accounts
|
|
3677
|
-
*
|
|
3678
|
-
*/
|
|
3679
|
-
jupiterProgram: Address<TAccountJupiterProgram>;
|
|
3680
|
-
jupiterEventAuthority: Address<TAccountJupiterEventAuthority>;
|
|
3681
|
-
jupiterProgramAuthority: Address<TAccountJupiterProgramAuthority>;
|
|
3682
|
-
/**
|
|
3683
|
-
*
|
|
3684
|
-
* Other accounts
|
|
3685
|
-
*
|
|
3686
|
-
*/
|
|
3687
|
-
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3688
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
3689
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
3690
|
-
collateralAmount: IncreaseTunaSpotPositionJupiterInstructionDataArgs['collateralAmount'];
|
|
3691
|
-
borrowAmount: IncreaseTunaSpotPositionJupiterInstructionDataArgs['borrowAmount'];
|
|
3692
|
-
routeData: IncreaseTunaSpotPositionJupiterInstructionDataArgs['routeData'];
|
|
3693
|
-
};
|
|
3694
|
-
declare function getIncreaseTunaSpotPositionJupiterInstruction<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: IncreaseTunaSpotPositionJupiterInput<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?: {
|
|
3695
|
-
programAddress?: TProgramAddress;
|
|
3696
|
-
}): IncreaseTunaSpotPositionJupiterInstruction<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>;
|
|
3697
|
-
type ParsedIncreaseTunaSpotPositionJupiterInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
3698
|
-
programAddress: Address<TProgram>;
|
|
3699
|
-
accounts: {
|
|
3700
|
-
/**
|
|
3701
|
-
*
|
|
3702
|
-
* TUNA accounts
|
|
3703
|
-
*
|
|
3704
|
-
*/
|
|
3705
|
-
authority: TAccountMetas[0];
|
|
3706
|
-
tunaConfig: TAccountMetas[1];
|
|
3707
|
-
mintA: TAccountMetas[2];
|
|
3708
|
-
mintB: TAccountMetas[3];
|
|
3709
|
-
tokenProgramA: TAccountMetas[4];
|
|
3710
|
-
tokenProgramB: TAccountMetas[5];
|
|
3711
|
-
market: TAccountMetas[6];
|
|
3712
|
-
vaultA: TAccountMetas[7];
|
|
3713
|
-
vaultB: TAccountMetas[8];
|
|
3714
|
-
vaultAAta: TAccountMetas[9];
|
|
3715
|
-
vaultBAta: TAccountMetas[10];
|
|
3716
|
-
tunaPosition: TAccountMetas[11];
|
|
3717
|
-
tunaPositionAtaA: TAccountMetas[12];
|
|
3718
|
-
tunaPositionAtaB: TAccountMetas[13];
|
|
3719
|
-
tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined;
|
|
3720
|
-
tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined;
|
|
3721
|
-
feeRecipientAtaA: TAccountMetas[16];
|
|
3722
|
-
feeRecipientAtaB: TAccountMetas[17];
|
|
3723
|
-
pythOraclePriceFeedA: TAccountMetas[18];
|
|
3724
|
-
pythOraclePriceFeedB: TAccountMetas[19];
|
|
3725
|
-
pool: TAccountMetas[20];
|
|
3726
|
-
/**
|
|
3727
|
-
*
|
|
3728
|
-
* Jupiter accounts
|
|
3729
|
-
*
|
|
3730
|
-
*/
|
|
3731
|
-
jupiterProgram: TAccountMetas[21];
|
|
3732
|
-
jupiterEventAuthority: TAccountMetas[22];
|
|
3733
|
-
jupiterProgramAuthority: TAccountMetas[23];
|
|
3734
|
-
/**
|
|
3735
|
-
*
|
|
3736
|
-
* Other accounts
|
|
3737
|
-
*
|
|
3738
|
-
*/
|
|
3739
|
-
tokenProgram: TAccountMetas[24];
|
|
3740
|
-
memoProgram: TAccountMetas[25];
|
|
3741
|
-
systemProgram: TAccountMetas[26];
|
|
2592
|
+
fusionammProgram: TAccountMetas[21];
|
|
2593
|
+
fusionPool: TAccountMetas[22];
|
|
2594
|
+
fusionPosition: TAccountMetas[23];
|
|
2595
|
+
memoProgram: TAccountMetas[24];
|
|
3742
2596
|
};
|
|
3743
|
-
data:
|
|
2597
|
+
data: IncreaseTunaLpPositionFusionInstructionData;
|
|
3744
2598
|
};
|
|
3745
|
-
declare function
|
|
2599
|
+
declare function parseIncreaseTunaLpPositionFusionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedIncreaseTunaLpPositionFusionInstruction<TProgram, TAccountMetas>;
|
|
3746
2600
|
|
|
3747
2601
|
/**
|
|
3748
2602
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -3752,21 +2606,20 @@ declare function parseIncreaseTunaSpotPositionJupiterInstruction<TProgram extend
|
|
|
3752
2606
|
* @see https://github.com/codama-idl/codama
|
|
3753
2607
|
*/
|
|
3754
2608
|
|
|
3755
|
-
declare const
|
|
3756
|
-
declare function
|
|
3757
|
-
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<[
|
|
3758
2612
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3759
2613
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
3760
2614
|
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
3761
2615
|
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
3762
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
3763
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
3764
2616
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3765
2617
|
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
3766
2618
|
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
3767
2619
|
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
3768
2620
|
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
3769
2621
|
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
2622
|
+
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
3770
2623
|
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
3771
2624
|
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
3772
2625
|
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
@@ -3777,27 +2630,37 @@ type IncreaseTunaSpotPositionOrcaInstruction<TProgram extends string = typeof TU
|
|
|
3777
2630
|
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
3778
2631
|
TAccountWhirlpoolProgram extends string ? ReadonlyAccount<TAccountWhirlpoolProgram> : TAccountWhirlpoolProgram,
|
|
3779
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,
|
|
3780
2636
|
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3781
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3782
2637
|
...TRemainingAccounts
|
|
3783
2638
|
]>;
|
|
3784
|
-
type
|
|
2639
|
+
type IncreaseTunaLpPositionOrcaInstructionData = {
|
|
3785
2640
|
discriminator: ReadonlyUint8Array;
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
2641
|
+
collateralA: bigint;
|
|
2642
|
+
collateralB: bigint;
|
|
2643
|
+
borrowA: bigint;
|
|
2644
|
+
borrowB: bigint;
|
|
2645
|
+
minAddedAmountA: bigint;
|
|
2646
|
+
minAddedAmountB: bigint;
|
|
2647
|
+
maxSwapSlippage: number;
|
|
3789
2648
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
3790
2649
|
};
|
|
3791
|
-
type
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
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;
|
|
3795
2658
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
3796
2659
|
};
|
|
3797
|
-
declare function
|
|
3798
|
-
declare function
|
|
3799
|
-
declare function
|
|
3800
|
-
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> = {
|
|
3801
2664
|
/**
|
|
3802
2665
|
*
|
|
3803
2666
|
* TUNA accounts
|
|
@@ -3807,45 +2670,45 @@ type IncreaseTunaSpotPositionOrcaInput<TAccountAuthority extends string = string
|
|
|
3807
2670
|
tunaConfig: Address<TAccountTunaConfig>;
|
|
3808
2671
|
mintA: Address<TAccountMintA>;
|
|
3809
2672
|
mintB: Address<TAccountMintB>;
|
|
3810
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
3811
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
3812
2673
|
market: Address<TAccountMarket>;
|
|
3813
2674
|
vaultA: Address<TAccountVaultA>;
|
|
3814
2675
|
vaultB: Address<TAccountVaultB>;
|
|
3815
2676
|
vaultAAta: Address<TAccountVaultAAta>;
|
|
3816
2677
|
vaultBAta: Address<TAccountVaultBAta>;
|
|
3817
2678
|
tunaPosition: Address<TAccountTunaPosition>;
|
|
2679
|
+
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
3818
2680
|
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
3819
2681
|
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
3820
|
-
tunaPositionOwnerAtaA
|
|
3821
|
-
tunaPositionOwnerAtaB
|
|
2682
|
+
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
2683
|
+
tunaPositionOwnerAtaB: Address<TAccountTunaPositionOwnerAtaB>;
|
|
3822
2684
|
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
3823
2685
|
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
3824
2686
|
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
3825
2687
|
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
3826
2688
|
/**
|
|
3827
2689
|
*
|
|
3828
|
-
*
|
|
2690
|
+
* ORCA accounts
|
|
3829
2691
|
*
|
|
3830
2692
|
*/
|
|
3831
2693
|
whirlpoolProgram: Address<TAccountWhirlpoolProgram>;
|
|
3832
2694
|
whirlpool: Address<TAccountWhirlpool>;
|
|
2695
|
+
orcaPosition: Address<TAccountOrcaPosition>;
|
|
2696
|
+
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
2697
|
+
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
3833
2698
|
memoProgram: Address<TAccountMemoProgram>;
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
minSwapAmountOut: IncreaseTunaSpotPositionOrcaInstructionDataArgs['minSwapAmountOut'];
|
|
3843
|
-
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'];
|
|
3844
2707
|
};
|
|
3845
|
-
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?: {
|
|
3846
2709
|
programAddress?: TProgramAddress;
|
|
3847
|
-
}):
|
|
3848
|
-
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[]> = {
|
|
3849
2712
|
programAddress: Address<TProgram>;
|
|
3850
2713
|
accounts: {
|
|
3851
2714
|
/**
|
|
@@ -3857,40 +2720,36 @@ type ParsedIncreaseTunaSpotPositionOrcaInstruction<TProgram extends string = typ
|
|
|
3857
2720
|
tunaConfig: TAccountMetas[1];
|
|
3858
2721
|
mintA: TAccountMetas[2];
|
|
3859
2722
|
mintB: TAccountMetas[3];
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
pythOraclePriceFeedB: TAccountMetas[19];
|
|
3876
|
-
/**
|
|
3877
|
-
*
|
|
3878
|
-
* Orca accounts
|
|
3879
|
-
*
|
|
3880
|
-
*/
|
|
3881
|
-
whirlpoolProgram: TAccountMetas[20];
|
|
3882
|
-
whirlpool: TAccountMetas[21];
|
|
3883
|
-
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];
|
|
3884
2738
|
/**
|
|
3885
2739
|
*
|
|
3886
|
-
*
|
|
2740
|
+
* ORCA accounts
|
|
3887
2741
|
*
|
|
3888
2742
|
*/
|
|
3889
|
-
|
|
2743
|
+
whirlpoolProgram: TAccountMetas[19];
|
|
2744
|
+
whirlpool: TAccountMetas[20];
|
|
2745
|
+
orcaPosition: TAccountMetas[21];
|
|
2746
|
+
tokenProgramA: TAccountMetas[22];
|
|
2747
|
+
tokenProgramB: TAccountMetas[23];
|
|
2748
|
+
memoProgram: TAccountMetas[24];
|
|
3890
2749
|
};
|
|
3891
|
-
data:
|
|
2750
|
+
data: IncreaseTunaLpPositionOrcaInstructionData;
|
|
3892
2751
|
};
|
|
3893
|
-
declare function
|
|
2752
|
+
declare function parseIncreaseTunaLpPositionOrcaInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedIncreaseTunaLpPositionOrcaInstruction<TProgram, TAccountMetas>;
|
|
3894
2753
|
|
|
3895
2754
|
/**
|
|
3896
2755
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -3930,11 +2789,11 @@ type LiquidateTunaLpPositionFusionInstruction<TProgram extends string = typeof T
|
|
|
3930
2789
|
]>;
|
|
3931
2790
|
type LiquidateTunaLpPositionFusionInstructionData = {
|
|
3932
2791
|
discriminator: ReadonlyUint8Array;
|
|
3933
|
-
|
|
2792
|
+
decreasePercent: number;
|
|
3934
2793
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
3935
2794
|
};
|
|
3936
2795
|
type LiquidateTunaLpPositionFusionInstructionDataArgs = {
|
|
3937
|
-
|
|
2796
|
+
decreasePercent: number;
|
|
3938
2797
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
3939
2798
|
};
|
|
3940
2799
|
declare function getLiquidateTunaLpPositionFusionInstructionDataEncoder(): Encoder<LiquidateTunaLpPositionFusionInstructionDataArgs>;
|
|
@@ -3974,7 +2833,7 @@ type LiquidateTunaLpPositionFusionInput<TAccountAuthority extends string = strin
|
|
|
3974
2833
|
fusionPool: Address<TAccountFusionPool>;
|
|
3975
2834
|
fusionPosition: Address<TAccountFusionPosition>;
|
|
3976
2835
|
memoProgram: Address<TAccountMemoProgram>;
|
|
3977
|
-
|
|
2836
|
+
decreasePercent: LiquidateTunaLpPositionFusionInstructionDataArgs['decreasePercent'];
|
|
3978
2837
|
remainingAccountsInfo: LiquidateTunaLpPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
3979
2838
|
};
|
|
3980
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?: {
|
|
@@ -4059,11 +2918,11 @@ type LiquidateTunaLpPositionOrcaInstruction<TProgram extends string = typeof TUN
|
|
|
4059
2918
|
]>;
|
|
4060
2919
|
type LiquidateTunaLpPositionOrcaInstructionData = {
|
|
4061
2920
|
discriminator: ReadonlyUint8Array;
|
|
4062
|
-
|
|
2921
|
+
decreasePercent: number;
|
|
4063
2922
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
4064
2923
|
};
|
|
4065
2924
|
type LiquidateTunaLpPositionOrcaInstructionDataArgs = {
|
|
4066
|
-
|
|
2925
|
+
decreasePercent: number;
|
|
4067
2926
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
4068
2927
|
};
|
|
4069
2928
|
declare function getLiquidateTunaLpPositionOrcaInstructionDataEncoder(): Encoder<LiquidateTunaLpPositionOrcaInstructionDataArgs>;
|
|
@@ -4103,7 +2962,7 @@ type LiquidateTunaLpPositionOrcaInput<TAccountAuthority extends string = string,
|
|
|
4103
2962
|
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
4104
2963
|
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
4105
2964
|
memoProgram: Address<TAccountMemoProgram>;
|
|
4106
|
-
|
|
2965
|
+
decreasePercent: LiquidateTunaLpPositionOrcaInstructionDataArgs['decreasePercent'];
|
|
4107
2966
|
remainingAccountsInfo: LiquidateTunaLpPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
4108
2967
|
};
|
|
4109
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?: {
|
|
@@ -4190,11 +3049,11 @@ type LiquidateTunaSpotPositionFusionInstruction<TProgram extends string = typeof
|
|
|
4190
3049
|
]>;
|
|
4191
3050
|
type LiquidateTunaSpotPositionFusionInstructionData = {
|
|
4192
3051
|
discriminator: ReadonlyUint8Array;
|
|
4193
|
-
|
|
3052
|
+
decreasePercent: number;
|
|
4194
3053
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
4195
3054
|
};
|
|
4196
3055
|
type LiquidateTunaSpotPositionFusionInstructionDataArgs = {
|
|
4197
|
-
|
|
3056
|
+
decreasePercent: number;
|
|
4198
3057
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
4199
3058
|
};
|
|
4200
3059
|
declare function getLiquidateTunaSpotPositionFusionInstructionDataEncoder(): Encoder<LiquidateTunaSpotPositionFusionInstructionDataArgs>;
|
|
@@ -4241,7 +3100,7 @@ type LiquidateTunaSpotPositionFusionInput<TAccountAuthority extends string = str
|
|
|
4241
3100
|
*
|
|
4242
3101
|
*/
|
|
4243
3102
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4244
|
-
|
|
3103
|
+
decreasePercent: LiquidateTunaSpotPositionFusionInstructionDataArgs['decreasePercent'];
|
|
4245
3104
|
remainingAccountsInfo: LiquidateTunaSpotPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
4246
3105
|
};
|
|
4247
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?: {
|
|
@@ -4335,11 +3194,11 @@ type LiquidateTunaSpotPositionOrcaInstruction<TProgram extends string = typeof T
|
|
|
4335
3194
|
]>;
|
|
4336
3195
|
type LiquidateTunaSpotPositionOrcaInstructionData = {
|
|
4337
3196
|
discriminator: ReadonlyUint8Array;
|
|
4338
|
-
|
|
3197
|
+
decreasePercent: number;
|
|
4339
3198
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
4340
3199
|
};
|
|
4341
3200
|
type LiquidateTunaSpotPositionOrcaInstructionDataArgs = {
|
|
4342
|
-
|
|
3201
|
+
decreasePercent: number;
|
|
4343
3202
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
4344
3203
|
};
|
|
4345
3204
|
declare function getLiquidateTunaSpotPositionOrcaInstructionDataEncoder(): Encoder<LiquidateTunaSpotPositionOrcaInstructionDataArgs>;
|
|
@@ -4386,7 +3245,7 @@ type LiquidateTunaSpotPositionOrcaInput<TAccountAuthority extends string = strin
|
|
|
4386
3245
|
*
|
|
4387
3246
|
*/
|
|
4388
3247
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4389
|
-
|
|
3248
|
+
decreasePercent: LiquidateTunaSpotPositionOrcaInstructionDataArgs['decreasePercent'];
|
|
4390
3249
|
remainingAccountsInfo: LiquidateTunaSpotPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
4391
3250
|
};
|
|
4392
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?: {
|
|
@@ -4448,9 +3307,9 @@ declare function parseLiquidateTunaSpotPositionOrcaInstruction<TProgram extends
|
|
|
4448
3307
|
* @see https://github.com/codama-idl/codama
|
|
4449
3308
|
*/
|
|
4450
3309
|
|
|
4451
|
-
declare const
|
|
4452
|
-
declare function
|
|
4453
|
-
type
|
|
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<[
|
|
4454
3313
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
4455
3314
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
4456
3315
|
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
@@ -4463,8 +3322,6 @@ type OpenAndIncreaseTunaLpPositionFusionInstruction<TProgram extends string = ty
|
|
|
4463
3322
|
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
4464
3323
|
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
4465
3324
|
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
4466
|
-
TAccountTunaPositionMint extends string ? WritableSignerAccount<TAccountTunaPositionMint> & IAccountSignerMeta<TAccountTunaPositionMint> : TAccountTunaPositionMint,
|
|
4467
|
-
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
4468
3325
|
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
4469
3326
|
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
4470
3327
|
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
@@ -4475,49 +3332,184 @@ type OpenAndIncreaseTunaLpPositionFusionInstruction<TProgram extends string = ty
|
|
|
4475
3332
|
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
4476
3333
|
TAccountFusionammProgram extends string ? ReadonlyAccount<TAccountFusionammProgram> : TAccountFusionammProgram,
|
|
4477
3334
|
TAccountFusionPool extends string ? WritableAccount<TAccountFusionPool> : TAccountFusionPool,
|
|
4478
|
-
TAccountFusionPosition extends string ? WritableAccount<TAccountFusionPosition> : TAccountFusionPosition,
|
|
4479
|
-
TAccountMetadataUpdateAuth extends string ? ReadonlyAccount<TAccountMetadataUpdateAuth> : TAccountMetadataUpdateAuth,
|
|
4480
3335
|
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
4481
|
-
TAccountToken2022Program extends string ? ReadonlyAccount<TAccountToken2022Program> : TAccountToken2022Program,
|
|
4482
3336
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
4483
|
-
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
4484
3337
|
...TRemainingAccounts
|
|
4485
3338
|
]>;
|
|
4486
|
-
type
|
|
3339
|
+
type ModifyTunaSpotPositionFusionInstructionData = {
|
|
4487
3340
|
discriminator: ReadonlyUint8Array;
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
collateralA: bigint;
|
|
4494
|
-
collateralB: bigint;
|
|
4495
|
-
borrowA: bigint;
|
|
4496
|
-
borrowB: bigint;
|
|
4497
|
-
minAddedAmountA: bigint;
|
|
4498
|
-
minAddedAmountB: bigint;
|
|
4499
|
-
maxSwapSlippage: number;
|
|
3341
|
+
decreasePercent: number;
|
|
3342
|
+
decreaseAcceptableSwapAmount: bigint;
|
|
3343
|
+
collateralAmount: bigint;
|
|
3344
|
+
borrowAmount: bigint;
|
|
3345
|
+
increaseMinSwapAmountOut: bigint;
|
|
4500
3346
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
4501
3347
|
};
|
|
4502
|
-
type
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
collateralA: number | bigint;
|
|
4509
|
-
collateralB: number | bigint;
|
|
4510
|
-
borrowA: number | bigint;
|
|
4511
|
-
borrowB: number | bigint;
|
|
4512
|
-
minAddedAmountA: number | bigint;
|
|
4513
|
-
minAddedAmountB: number | bigint;
|
|
4514
|
-
maxSwapSlippage: number;
|
|
3348
|
+
type ModifyTunaSpotPositionFusionInstructionDataArgs = {
|
|
3349
|
+
decreasePercent: number;
|
|
3350
|
+
decreaseAcceptableSwapAmount: number | bigint;
|
|
3351
|
+
collateralAmount: number | bigint;
|
|
3352
|
+
borrowAmount: number | bigint;
|
|
3353
|
+
increaseMinSwapAmountOut: number | bigint;
|
|
4515
3354
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
4516
3355
|
};
|
|
4517
|
-
declare function
|
|
4518
|
-
declare function
|
|
4519
|
-
declare function
|
|
4520
|
-
type
|
|
3356
|
+
declare function getModifyTunaSpotPositionFusionInstructionDataEncoder(): Encoder<ModifyTunaSpotPositionFusionInstructionDataArgs>;
|
|
3357
|
+
declare function getModifyTunaSpotPositionFusionInstructionDataDecoder(): Decoder<ModifyTunaSpotPositionFusionInstructionData>;
|
|
3358
|
+
declare function getModifyTunaSpotPositionFusionInstructionDataCodec(): Codec<ModifyTunaSpotPositionFusionInstructionDataArgs, ModifyTunaSpotPositionFusionInstructionData>;
|
|
3359
|
+
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> = {
|
|
3360
|
+
/**
|
|
3361
|
+
*
|
|
3362
|
+
* TUNA accounts
|
|
3363
|
+
*
|
|
3364
|
+
*/
|
|
3365
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3366
|
+
tunaConfig: Address<TAccountTunaConfig>;
|
|
3367
|
+
mintA: Address<TAccountMintA>;
|
|
3368
|
+
mintB: Address<TAccountMintB>;
|
|
3369
|
+
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
3370
|
+
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
3371
|
+
market: Address<TAccountMarket>;
|
|
3372
|
+
vaultA: Address<TAccountVaultA>;
|
|
3373
|
+
vaultB: Address<TAccountVaultB>;
|
|
3374
|
+
vaultAAta: Address<TAccountVaultAAta>;
|
|
3375
|
+
vaultBAta: Address<TAccountVaultBAta>;
|
|
3376
|
+
tunaPosition: Address<TAccountTunaPosition>;
|
|
3377
|
+
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
3378
|
+
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
3379
|
+
tunaPositionOwnerAtaA?: Address<TAccountTunaPositionOwnerAtaA>;
|
|
3380
|
+
tunaPositionOwnerAtaB?: Address<TAccountTunaPositionOwnerAtaB>;
|
|
3381
|
+
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
3382
|
+
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
3383
|
+
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
3384
|
+
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
3385
|
+
/**
|
|
3386
|
+
*
|
|
3387
|
+
* Fusion accounts
|
|
3388
|
+
*
|
|
3389
|
+
*/
|
|
3390
|
+
fusionammProgram: Address<TAccountFusionammProgram>;
|
|
3391
|
+
fusionPool: Address<TAccountFusionPool>;
|
|
3392
|
+
memoProgram: Address<TAccountMemoProgram>;
|
|
3393
|
+
/**
|
|
3394
|
+
*
|
|
3395
|
+
* Other accounts
|
|
3396
|
+
*
|
|
3397
|
+
*/
|
|
3398
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3399
|
+
decreasePercent: ModifyTunaSpotPositionFusionInstructionDataArgs['decreasePercent'];
|
|
3400
|
+
decreaseAcceptableSwapAmount: ModifyTunaSpotPositionFusionInstructionDataArgs['decreaseAcceptableSwapAmount'];
|
|
3401
|
+
collateralAmount: ModifyTunaSpotPositionFusionInstructionDataArgs['collateralAmount'];
|
|
3402
|
+
borrowAmount: ModifyTunaSpotPositionFusionInstructionDataArgs['borrowAmount'];
|
|
3403
|
+
increaseMinSwapAmountOut: ModifyTunaSpotPositionFusionInstructionDataArgs['increaseMinSwapAmountOut'];
|
|
3404
|
+
remainingAccountsInfo: ModifyTunaSpotPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
3405
|
+
};
|
|
3406
|
+
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?: {
|
|
3407
|
+
programAddress?: TProgramAddress;
|
|
3408
|
+
}): 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>;
|
|
3409
|
+
type ParsedModifyTunaSpotPositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
3410
|
+
programAddress: Address<TProgram>;
|
|
3411
|
+
accounts: {
|
|
3412
|
+
/**
|
|
3413
|
+
*
|
|
3414
|
+
* TUNA accounts
|
|
3415
|
+
*
|
|
3416
|
+
*/
|
|
3417
|
+
authority: TAccountMetas[0];
|
|
3418
|
+
tunaConfig: TAccountMetas[1];
|
|
3419
|
+
mintA: TAccountMetas[2];
|
|
3420
|
+
mintB: TAccountMetas[3];
|
|
3421
|
+
tokenProgramA: TAccountMetas[4];
|
|
3422
|
+
tokenProgramB: TAccountMetas[5];
|
|
3423
|
+
market: TAccountMetas[6];
|
|
3424
|
+
vaultA: TAccountMetas[7];
|
|
3425
|
+
vaultB: TAccountMetas[8];
|
|
3426
|
+
vaultAAta: TAccountMetas[9];
|
|
3427
|
+
vaultBAta: TAccountMetas[10];
|
|
3428
|
+
tunaPosition: TAccountMetas[11];
|
|
3429
|
+
tunaPositionAtaA: TAccountMetas[12];
|
|
3430
|
+
tunaPositionAtaB: TAccountMetas[13];
|
|
3431
|
+
tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined;
|
|
3432
|
+
tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined;
|
|
3433
|
+
feeRecipientAtaA: TAccountMetas[16];
|
|
3434
|
+
feeRecipientAtaB: TAccountMetas[17];
|
|
3435
|
+
pythOraclePriceFeedA: TAccountMetas[18];
|
|
3436
|
+
pythOraclePriceFeedB: TAccountMetas[19];
|
|
3437
|
+
/**
|
|
3438
|
+
*
|
|
3439
|
+
* Fusion accounts
|
|
3440
|
+
*
|
|
3441
|
+
*/
|
|
3442
|
+
fusionammProgram: TAccountMetas[20];
|
|
3443
|
+
fusionPool: TAccountMetas[21];
|
|
3444
|
+
memoProgram: TAccountMetas[22];
|
|
3445
|
+
/**
|
|
3446
|
+
*
|
|
3447
|
+
* Other accounts
|
|
3448
|
+
*
|
|
3449
|
+
*/
|
|
3450
|
+
systemProgram: TAccountMetas[23];
|
|
3451
|
+
};
|
|
3452
|
+
data: ModifyTunaSpotPositionFusionInstructionData;
|
|
3453
|
+
};
|
|
3454
|
+
declare function parseModifyTunaSpotPositionFusionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedModifyTunaSpotPositionFusionInstruction<TProgram, TAccountMetas>;
|
|
3455
|
+
|
|
3456
|
+
/**
|
|
3457
|
+
* This code was AUTOGENERATED using the codama library.
|
|
3458
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3459
|
+
* to add features, then rerun codama to update it.
|
|
3460
|
+
*
|
|
3461
|
+
* @see https://github.com/codama-idl/codama
|
|
3462
|
+
*/
|
|
3463
|
+
|
|
3464
|
+
declare const MODIFY_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3465
|
+
declare function getModifyTunaSpotPositionJupiterDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3466
|
+
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<[
|
|
3467
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3468
|
+
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
3469
|
+
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
3470
|
+
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
3471
|
+
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
3472
|
+
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
3473
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3474
|
+
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
3475
|
+
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
3476
|
+
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
3477
|
+
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
3478
|
+
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
3479
|
+
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
3480
|
+
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
3481
|
+
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
3482
|
+
TAccountTunaPositionOwnerAtaB extends string ? WritableAccount<TAccountTunaPositionOwnerAtaB> : TAccountTunaPositionOwnerAtaB,
|
|
3483
|
+
TAccountFeeRecipientAtaA extends string ? WritableAccount<TAccountFeeRecipientAtaA> : TAccountFeeRecipientAtaA,
|
|
3484
|
+
TAccountFeeRecipientAtaB extends string ? WritableAccount<TAccountFeeRecipientAtaB> : TAccountFeeRecipientAtaB,
|
|
3485
|
+
TAccountPythOraclePriceFeedA extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedA> : TAccountPythOraclePriceFeedA,
|
|
3486
|
+
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
3487
|
+
TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
|
|
3488
|
+
TAccountJupiterProgram extends string ? ReadonlyAccount<TAccountJupiterProgram> : TAccountJupiterProgram,
|
|
3489
|
+
TAccountJupiterEventAuthority extends string ? ReadonlyAccount<TAccountJupiterEventAuthority> : TAccountJupiterEventAuthority,
|
|
3490
|
+
TAccountJupiterProgramAuthority extends string ? ReadonlyAccount<TAccountJupiterProgramAuthority> : TAccountJupiterProgramAuthority,
|
|
3491
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3492
|
+
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3493
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3494
|
+
...TRemainingAccounts
|
|
3495
|
+
]>;
|
|
3496
|
+
type ModifyTunaSpotPositionJupiterInstructionData = {
|
|
3497
|
+
discriminator: ReadonlyUint8Array;
|
|
3498
|
+
decreasePercent: number;
|
|
3499
|
+
collateralAmount: bigint;
|
|
3500
|
+
borrowAmount: bigint;
|
|
3501
|
+
routeData: ReadonlyUint8Array;
|
|
3502
|
+
};
|
|
3503
|
+
type ModifyTunaSpotPositionJupiterInstructionDataArgs = {
|
|
3504
|
+
decreasePercent: number;
|
|
3505
|
+
collateralAmount: number | bigint;
|
|
3506
|
+
borrowAmount: number | bigint;
|
|
3507
|
+
routeData: ReadonlyUint8Array;
|
|
3508
|
+
};
|
|
3509
|
+
declare function getModifyTunaSpotPositionJupiterInstructionDataEncoder(): Encoder<ModifyTunaSpotPositionJupiterInstructionDataArgs>;
|
|
3510
|
+
declare function getModifyTunaSpotPositionJupiterInstructionDataDecoder(): Decoder<ModifyTunaSpotPositionJupiterInstructionData>;
|
|
3511
|
+
declare function getModifyTunaSpotPositionJupiterInstructionDataCodec(): Codec<ModifyTunaSpotPositionJupiterInstructionDataArgs, ModifyTunaSpotPositionJupiterInstructionData>;
|
|
3512
|
+
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> = {
|
|
4521
3513
|
/**
|
|
4522
3514
|
*
|
|
4523
3515
|
* TUNA accounts
|
|
@@ -4535,8 +3527,6 @@ type OpenAndIncreaseTunaLpPositionFusionInput<TAccountAuthority extends string =
|
|
|
4535
3527
|
vaultAAta: Address<TAccountVaultAAta>;
|
|
4536
3528
|
vaultBAta: Address<TAccountVaultBAta>;
|
|
4537
3529
|
tunaPosition: Address<TAccountTunaPosition>;
|
|
4538
|
-
tunaPositionMint: TransactionSigner<TAccountTunaPositionMint>;
|
|
4539
|
-
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
4540
3530
|
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
4541
3531
|
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
4542
3532
|
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
@@ -4545,42 +3535,32 @@ type OpenAndIncreaseTunaLpPositionFusionInput<TAccountAuthority extends string =
|
|
|
4545
3535
|
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
4546
3536
|
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
4547
3537
|
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
3538
|
+
pool: Address<TAccountPool>;
|
|
4548
3539
|
/**
|
|
4549
3540
|
*
|
|
4550
|
-
*
|
|
3541
|
+
* Jupiter accounts
|
|
4551
3542
|
*
|
|
4552
3543
|
*/
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
metadataUpdateAuth: Address<TAccountMetadataUpdateAuth>;
|
|
4557
|
-
memoProgram: Address<TAccountMemoProgram>;
|
|
3544
|
+
jupiterProgram: Address<TAccountJupiterProgram>;
|
|
3545
|
+
jupiterEventAuthority: Address<TAccountJupiterEventAuthority>;
|
|
3546
|
+
jupiterProgramAuthority: Address<TAccountJupiterProgramAuthority>;
|
|
4558
3547
|
/**
|
|
4559
3548
|
*
|
|
4560
3549
|
* Other accounts
|
|
4561
3550
|
*
|
|
4562
3551
|
*/
|
|
4563
|
-
|
|
3552
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3553
|
+
memoProgram: Address<TAccountMemoProgram>;
|
|
4564
3554
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
upperLimitOrderSqrtPrice: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['upperLimitOrderSqrtPrice'];
|
|
4570
|
-
flags: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['flags'];
|
|
4571
|
-
collateralA: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['collateralA'];
|
|
4572
|
-
collateralB: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['collateralB'];
|
|
4573
|
-
borrowA: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['borrowA'];
|
|
4574
|
-
borrowB: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['borrowB'];
|
|
4575
|
-
minAddedAmountA: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountA'];
|
|
4576
|
-
minAddedAmountB: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountB'];
|
|
4577
|
-
maxSwapSlippage: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['maxSwapSlippage'];
|
|
4578
|
-
remainingAccountsInfo: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
3555
|
+
decreasePercent: ModifyTunaSpotPositionJupiterInstructionDataArgs['decreasePercent'];
|
|
3556
|
+
collateralAmount: ModifyTunaSpotPositionJupiterInstructionDataArgs['collateralAmount'];
|
|
3557
|
+
borrowAmount: ModifyTunaSpotPositionJupiterInstructionDataArgs['borrowAmount'];
|
|
3558
|
+
routeData: ModifyTunaSpotPositionJupiterInstructionDataArgs['routeData'];
|
|
4579
3559
|
};
|
|
4580
|
-
declare function
|
|
3560
|
+
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?: {
|
|
4581
3561
|
programAddress?: TProgramAddress;
|
|
4582
|
-
}):
|
|
4583
|
-
type
|
|
3562
|
+
}): 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>;
|
|
3563
|
+
type ParsedModifyTunaSpotPositionJupiterInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
4584
3564
|
programAddress: Address<TProgram>;
|
|
4585
3565
|
accounts: {
|
|
4586
3566
|
/**
|
|
@@ -4600,38 +3580,35 @@ type ParsedOpenAndIncreaseTunaLpPositionFusionInstruction<TProgram extends strin
|
|
|
4600
3580
|
vaultAAta: TAccountMetas[9];
|
|
4601
3581
|
vaultBAta: TAccountMetas[10];
|
|
4602
3582
|
tunaPosition: TAccountMetas[11];
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
pythOraclePriceFeedB: TAccountMetas[21];
|
|
3583
|
+
tunaPositionAtaA: TAccountMetas[12];
|
|
3584
|
+
tunaPositionAtaB: TAccountMetas[13];
|
|
3585
|
+
tunaPositionOwnerAtaA: TAccountMetas[14];
|
|
3586
|
+
tunaPositionOwnerAtaB: TAccountMetas[15];
|
|
3587
|
+
feeRecipientAtaA: TAccountMetas[16];
|
|
3588
|
+
feeRecipientAtaB: TAccountMetas[17];
|
|
3589
|
+
pythOraclePriceFeedA: TAccountMetas[18];
|
|
3590
|
+
pythOraclePriceFeedB: TAccountMetas[19];
|
|
3591
|
+
pool: TAccountMetas[20];
|
|
4613
3592
|
/**
|
|
4614
3593
|
*
|
|
4615
|
-
*
|
|
3594
|
+
* Jupiter accounts
|
|
4616
3595
|
*
|
|
4617
3596
|
*/
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
metadataUpdateAuth: TAccountMetas[25];
|
|
4622
|
-
memoProgram: TAccountMetas[26];
|
|
3597
|
+
jupiterProgram: TAccountMetas[21];
|
|
3598
|
+
jupiterEventAuthority: TAccountMetas[22];
|
|
3599
|
+
jupiterProgramAuthority: TAccountMetas[23];
|
|
4623
3600
|
/**
|
|
4624
3601
|
*
|
|
4625
3602
|
* Other accounts
|
|
4626
3603
|
*
|
|
4627
3604
|
*/
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
3605
|
+
tokenProgram: TAccountMetas[24];
|
|
3606
|
+
memoProgram: TAccountMetas[25];
|
|
3607
|
+
systemProgram: TAccountMetas[26];
|
|
4631
3608
|
};
|
|
4632
|
-
data:
|
|
3609
|
+
data: ModifyTunaSpotPositionJupiterInstructionData;
|
|
4633
3610
|
};
|
|
4634
|
-
declare function
|
|
3611
|
+
declare function parseModifyTunaSpotPositionJupiterInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedModifyTunaSpotPositionJupiterInstruction<TProgram, TAccountMetas>;
|
|
4635
3612
|
|
|
4636
3613
|
/**
|
|
4637
3614
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -4641,21 +3618,21 @@ declare function parseOpenAndIncreaseTunaLpPositionFusionInstruction<TProgram ex
|
|
|
4641
3618
|
* @see https://github.com/codama-idl/codama
|
|
4642
3619
|
*/
|
|
4643
3620
|
|
|
4644
|
-
declare const
|
|
4645
|
-
declare function
|
|
4646
|
-
type
|
|
3621
|
+
declare const MODIFY_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3622
|
+
declare function getModifyTunaSpotPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3623
|
+
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<[
|
|
4647
3624
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
4648
3625
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
4649
3626
|
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
4650
3627
|
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
3628
|
+
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
3629
|
+
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
4651
3630
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
4652
3631
|
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
4653
3632
|
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
4654
3633
|
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
4655
3634
|
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
4656
3635
|
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
4657
|
-
TAccountTunaPositionMint extends string ? WritableSignerAccount<TAccountTunaPositionMint> & IAccountSignerMeta<TAccountTunaPositionMint> : TAccountTunaPositionMint,
|
|
4658
|
-
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
4659
3636
|
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
4660
3637
|
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
4661
3638
|
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
@@ -4666,51 +3643,31 @@ type OpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram extends string = type
|
|
|
4666
3643
|
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
4667
3644
|
TAccountWhirlpoolProgram extends string ? ReadonlyAccount<TAccountWhirlpoolProgram> : TAccountWhirlpoolProgram,
|
|
4668
3645
|
TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool,
|
|
4669
|
-
TAccountOrcaPosition extends string ? WritableAccount<TAccountOrcaPosition> : TAccountOrcaPosition,
|
|
4670
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
4671
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
4672
|
-
TAccountMetadataUpdateAuth extends string ? ReadonlyAccount<TAccountMetadataUpdateAuth> : TAccountMetadataUpdateAuth,
|
|
4673
3646
|
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
4674
|
-
TAccountToken2022Program extends string ? ReadonlyAccount<TAccountToken2022Program> : TAccountToken2022Program,
|
|
4675
3647
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
4676
|
-
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
4677
3648
|
...TRemainingAccounts
|
|
4678
3649
|
]>;
|
|
4679
|
-
type
|
|
3650
|
+
type ModifyTunaSpotPositionOrcaInstructionData = {
|
|
4680
3651
|
discriminator: ReadonlyUint8Array;
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
collateralA: bigint;
|
|
4687
|
-
collateralB: bigint;
|
|
4688
|
-
borrowA: bigint;
|
|
4689
|
-
borrowB: bigint;
|
|
4690
|
-
minAddedAmountA: bigint;
|
|
4691
|
-
minAddedAmountB: bigint;
|
|
4692
|
-
maxSwapSlippage: number;
|
|
3652
|
+
decreasePercent: number;
|
|
3653
|
+
decreaseAcceptableSwapAmount: bigint;
|
|
3654
|
+
collateralAmount: bigint;
|
|
3655
|
+
borrowAmount: bigint;
|
|
3656
|
+
increaseMinSwapAmountOut: bigint;
|
|
4693
3657
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
4694
3658
|
};
|
|
4695
|
-
type
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
collateralA: number | bigint;
|
|
4702
|
-
collateralB: number | bigint;
|
|
4703
|
-
borrowA: number | bigint;
|
|
4704
|
-
borrowB: number | bigint;
|
|
4705
|
-
minAddedAmountA: number | bigint;
|
|
4706
|
-
minAddedAmountB: number | bigint;
|
|
4707
|
-
maxSwapSlippage: number;
|
|
3659
|
+
type ModifyTunaSpotPositionOrcaInstructionDataArgs = {
|
|
3660
|
+
decreasePercent: number;
|
|
3661
|
+
decreaseAcceptableSwapAmount: number | bigint;
|
|
3662
|
+
collateralAmount: number | bigint;
|
|
3663
|
+
borrowAmount: number | bigint;
|
|
3664
|
+
increaseMinSwapAmountOut: number | bigint;
|
|
4708
3665
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
4709
3666
|
};
|
|
4710
|
-
declare function
|
|
4711
|
-
declare function
|
|
4712
|
-
declare function
|
|
4713
|
-
type
|
|
3667
|
+
declare function getModifyTunaSpotPositionOrcaInstructionDataEncoder(): Encoder<ModifyTunaSpotPositionOrcaInstructionDataArgs>;
|
|
3668
|
+
declare function getModifyTunaSpotPositionOrcaInstructionDataDecoder(): Decoder<ModifyTunaSpotPositionOrcaInstructionData>;
|
|
3669
|
+
declare function getModifyTunaSpotPositionOrcaInstructionDataCodec(): Codec<ModifyTunaSpotPositionOrcaInstructionDataArgs, ModifyTunaSpotPositionOrcaInstructionData>;
|
|
3670
|
+
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> = {
|
|
4714
3671
|
/**
|
|
4715
3672
|
*
|
|
4716
3673
|
* TUNA accounts
|
|
@@ -4720,60 +3677,47 @@ type OpenAndIncreaseTunaLpPositionOrcaInput<TAccountAuthority extends string = s
|
|
|
4720
3677
|
tunaConfig: Address<TAccountTunaConfig>;
|
|
4721
3678
|
mintA: Address<TAccountMintA>;
|
|
4722
3679
|
mintB: Address<TAccountMintB>;
|
|
3680
|
+
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
3681
|
+
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
4723
3682
|
market: Address<TAccountMarket>;
|
|
4724
3683
|
vaultA: Address<TAccountVaultA>;
|
|
4725
3684
|
vaultB: Address<TAccountVaultB>;
|
|
4726
3685
|
vaultAAta: Address<TAccountVaultAAta>;
|
|
4727
3686
|
vaultBAta: Address<TAccountVaultBAta>;
|
|
4728
3687
|
tunaPosition: Address<TAccountTunaPosition>;
|
|
4729
|
-
tunaPositionMint: TransactionSigner<TAccountTunaPositionMint>;
|
|
4730
|
-
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
4731
3688
|
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
4732
3689
|
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
4733
|
-
tunaPositionOwnerAtaA
|
|
4734
|
-
tunaPositionOwnerAtaB
|
|
3690
|
+
tunaPositionOwnerAtaA?: Address<TAccountTunaPositionOwnerAtaA>;
|
|
3691
|
+
tunaPositionOwnerAtaB?: Address<TAccountTunaPositionOwnerAtaB>;
|
|
4735
3692
|
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
4736
3693
|
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
4737
3694
|
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
4738
3695
|
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
4739
3696
|
/**
|
|
4740
3697
|
*
|
|
4741
|
-
*
|
|
3698
|
+
* Orca accounts
|
|
4742
3699
|
*
|
|
4743
3700
|
*/
|
|
4744
3701
|
whirlpoolProgram: Address<TAccountWhirlpoolProgram>;
|
|
4745
3702
|
whirlpool: Address<TAccountWhirlpool>;
|
|
4746
|
-
orcaPosition: Address<TAccountOrcaPosition>;
|
|
4747
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
4748
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
4749
|
-
metadataUpdateAuth: Address<TAccountMetadataUpdateAuth>;
|
|
4750
3703
|
memoProgram: Address<TAccountMemoProgram>;
|
|
4751
3704
|
/**
|
|
4752
3705
|
*
|
|
4753
3706
|
* Other accounts
|
|
4754
3707
|
*
|
|
4755
3708
|
*/
|
|
4756
|
-
token2022Program: Address<TAccountToken2022Program>;
|
|
4757
3709
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
borrowA: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['borrowA'];
|
|
4767
|
-
borrowB: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['borrowB'];
|
|
4768
|
-
minAddedAmountA: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountA'];
|
|
4769
|
-
minAddedAmountB: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountB'];
|
|
4770
|
-
maxSwapSlippage: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['maxSwapSlippage'];
|
|
4771
|
-
remainingAccountsInfo: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
4772
|
-
};
|
|
4773
|
-
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?: {
|
|
3710
|
+
decreasePercent: ModifyTunaSpotPositionOrcaInstructionDataArgs['decreasePercent'];
|
|
3711
|
+
decreaseAcceptableSwapAmount: ModifyTunaSpotPositionOrcaInstructionDataArgs['decreaseAcceptableSwapAmount'];
|
|
3712
|
+
collateralAmount: ModifyTunaSpotPositionOrcaInstructionDataArgs['collateralAmount'];
|
|
3713
|
+
borrowAmount: ModifyTunaSpotPositionOrcaInstructionDataArgs['borrowAmount'];
|
|
3714
|
+
increaseMinSwapAmountOut: ModifyTunaSpotPositionOrcaInstructionDataArgs['increaseMinSwapAmountOut'];
|
|
3715
|
+
remainingAccountsInfo: ModifyTunaSpotPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
3716
|
+
};
|
|
3717
|
+
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?: {
|
|
4774
3718
|
programAddress?: TProgramAddress;
|
|
4775
|
-
}):
|
|
4776
|
-
type
|
|
3719
|
+
}): 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>;
|
|
3720
|
+
type ParsedModifyTunaSpotPositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
4777
3721
|
programAddress: Address<TProgram>;
|
|
4778
3722
|
accounts: {
|
|
4779
3723
|
/**
|
|
@@ -4785,46 +3729,40 @@ type ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram extends string
|
|
|
4785
3729
|
tunaConfig: TAccountMetas[1];
|
|
4786
3730
|
mintA: TAccountMetas[2];
|
|
4787
3731
|
mintB: TAccountMetas[3];
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
3732
|
+
tokenProgramA: TAccountMetas[4];
|
|
3733
|
+
tokenProgramB: TAccountMetas[5];
|
|
3734
|
+
market: TAccountMetas[6];
|
|
3735
|
+
vaultA: TAccountMetas[7];
|
|
3736
|
+
vaultB: TAccountMetas[8];
|
|
3737
|
+
vaultAAta: TAccountMetas[9];
|
|
3738
|
+
vaultBAta: TAccountMetas[10];
|
|
3739
|
+
tunaPosition: TAccountMetas[11];
|
|
4796
3740
|
tunaPositionAtaA: TAccountMetas[12];
|
|
4797
3741
|
tunaPositionAtaB: TAccountMetas[13];
|
|
4798
|
-
tunaPositionOwnerAtaA
|
|
4799
|
-
tunaPositionOwnerAtaB
|
|
3742
|
+
tunaPositionOwnerAtaA?: TAccountMetas[14] | undefined;
|
|
3743
|
+
tunaPositionOwnerAtaB?: TAccountMetas[15] | undefined;
|
|
4800
3744
|
feeRecipientAtaA: TAccountMetas[16];
|
|
4801
3745
|
feeRecipientAtaB: TAccountMetas[17];
|
|
4802
3746
|
pythOraclePriceFeedA: TAccountMetas[18];
|
|
4803
3747
|
pythOraclePriceFeedB: TAccountMetas[19];
|
|
4804
3748
|
/**
|
|
4805
3749
|
*
|
|
4806
|
-
*
|
|
3750
|
+
* Orca accounts
|
|
4807
3751
|
*
|
|
4808
3752
|
*/
|
|
4809
3753
|
whirlpoolProgram: TAccountMetas[20];
|
|
4810
3754
|
whirlpool: TAccountMetas[21];
|
|
4811
|
-
|
|
4812
|
-
tokenProgramA: TAccountMetas[23];
|
|
4813
|
-
tokenProgramB: TAccountMetas[24];
|
|
4814
|
-
metadataUpdateAuth: TAccountMetas[25];
|
|
4815
|
-
memoProgram: TAccountMetas[26];
|
|
3755
|
+
memoProgram: TAccountMetas[22];
|
|
4816
3756
|
/**
|
|
4817
3757
|
*
|
|
4818
3758
|
* Other accounts
|
|
4819
3759
|
*
|
|
4820
3760
|
*/
|
|
4821
|
-
|
|
4822
|
-
systemProgram: TAccountMetas[28];
|
|
4823
|
-
associatedTokenProgram: TAccountMetas[29];
|
|
3761
|
+
systemProgram: TAccountMetas[23];
|
|
4824
3762
|
};
|
|
4825
|
-
data:
|
|
3763
|
+
data: ModifyTunaSpotPositionOrcaInstructionData;
|
|
4826
3764
|
};
|
|
4827
|
-
declare function
|
|
3765
|
+
declare function parseModifyTunaSpotPositionOrcaInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedModifyTunaSpotPositionOrcaInstruction<TProgram, TAccountMetas>;
|
|
4828
3766
|
|
|
4829
3767
|
/**
|
|
4830
3768
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -4834,9 +3772,9 @@ declare function parseOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram exte
|
|
|
4834
3772
|
* @see https://github.com/codama-idl/codama
|
|
4835
3773
|
*/
|
|
4836
3774
|
|
|
4837
|
-
declare const
|
|
4838
|
-
declare function
|
|
4839
|
-
type
|
|
3775
|
+
declare const OPEN_AND_INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3776
|
+
declare function getOpenAndIncreaseTunaLpPositionFusionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3777
|
+
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<[
|
|
4840
3778
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
4841
3779
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
4842
3780
|
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
@@ -4849,6 +3787,8 @@ type OpenAndIncreaseTunaSpotPositionFusionInstruction<TProgram extends string =
|
|
|
4849
3787
|
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
4850
3788
|
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
4851
3789
|
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
3790
|
+
TAccountTunaPositionMint extends string ? WritableSignerAccount<TAccountTunaPositionMint> & IAccountSignerMeta<TAccountTunaPositionMint> : TAccountTunaPositionMint,
|
|
3791
|
+
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
4852
3792
|
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
4853
3793
|
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
4854
3794
|
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
@@ -4859,32 +3799,49 @@ type OpenAndIncreaseTunaSpotPositionFusionInstruction<TProgram extends string =
|
|
|
4859
3799
|
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
4860
3800
|
TAccountFusionammProgram extends string ? ReadonlyAccount<TAccountFusionammProgram> : TAccountFusionammProgram,
|
|
4861
3801
|
TAccountFusionPool extends string ? WritableAccount<TAccountFusionPool> : TAccountFusionPool,
|
|
3802
|
+
TAccountFusionPosition extends string ? WritableAccount<TAccountFusionPosition> : TAccountFusionPosition,
|
|
3803
|
+
TAccountMetadataUpdateAuth extends string ? ReadonlyAccount<TAccountMetadataUpdateAuth> : TAccountMetadataUpdateAuth,
|
|
4862
3804
|
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3805
|
+
TAccountToken2022Program extends string ? ReadonlyAccount<TAccountToken2022Program> : TAccountToken2022Program,
|
|
4863
3806
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
4864
3807
|
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
4865
3808
|
...TRemainingAccounts
|
|
4866
3809
|
]>;
|
|
4867
|
-
type
|
|
3810
|
+
type OpenAndIncreaseTunaLpPositionFusionInstructionData = {
|
|
4868
3811
|
discriminator: ReadonlyUint8Array;
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
3812
|
+
tickLowerIndex: number;
|
|
3813
|
+
tickUpperIndex: number;
|
|
3814
|
+
lowerLimitOrderSqrtPrice: bigint;
|
|
3815
|
+
upperLimitOrderSqrtPrice: bigint;
|
|
3816
|
+
flags: number;
|
|
3817
|
+
collateralA: bigint;
|
|
3818
|
+
collateralB: bigint;
|
|
3819
|
+
borrowA: bigint;
|
|
3820
|
+
borrowB: bigint;
|
|
3821
|
+
minAddedAmountA: bigint;
|
|
3822
|
+
minAddedAmountB: bigint;
|
|
3823
|
+
maxSwapSlippage: number;
|
|
4874
3824
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
4875
3825
|
};
|
|
4876
|
-
type
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
3826
|
+
type OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs = {
|
|
3827
|
+
tickLowerIndex: number;
|
|
3828
|
+
tickUpperIndex: number;
|
|
3829
|
+
lowerLimitOrderSqrtPrice: number | bigint;
|
|
3830
|
+
upperLimitOrderSqrtPrice: number | bigint;
|
|
3831
|
+
flags: number;
|
|
3832
|
+
collateralA: number | bigint;
|
|
3833
|
+
collateralB: number | bigint;
|
|
3834
|
+
borrowA: number | bigint;
|
|
3835
|
+
borrowB: number | bigint;
|
|
3836
|
+
minAddedAmountA: number | bigint;
|
|
3837
|
+
minAddedAmountB: number | bigint;
|
|
3838
|
+
maxSwapSlippage: number;
|
|
4882
3839
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
4883
3840
|
};
|
|
4884
|
-
declare function
|
|
4885
|
-
declare function
|
|
4886
|
-
declare function
|
|
4887
|
-
type
|
|
3841
|
+
declare function getOpenAndIncreaseTunaLpPositionFusionInstructionDataEncoder(): Encoder<OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs>;
|
|
3842
|
+
declare function getOpenAndIncreaseTunaLpPositionFusionInstructionDataDecoder(): Decoder<OpenAndIncreaseTunaLpPositionFusionInstructionData>;
|
|
3843
|
+
declare function getOpenAndIncreaseTunaLpPositionFusionInstructionDataCodec(): Codec<OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs, OpenAndIncreaseTunaLpPositionFusionInstructionData>;
|
|
3844
|
+
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> = {
|
|
4888
3845
|
/**
|
|
4889
3846
|
*
|
|
4890
3847
|
* TUNA accounts
|
|
@@ -4902,10 +3859,12 @@ type OpenAndIncreaseTunaSpotPositionFusionInput<TAccountAuthority extends string
|
|
|
4902
3859
|
vaultAAta: Address<TAccountVaultAAta>;
|
|
4903
3860
|
vaultBAta: Address<TAccountVaultBAta>;
|
|
4904
3861
|
tunaPosition: Address<TAccountTunaPosition>;
|
|
3862
|
+
tunaPositionMint: TransactionSigner<TAccountTunaPositionMint>;
|
|
3863
|
+
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
4905
3864
|
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
4906
3865
|
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
4907
|
-
tunaPositionOwnerAtaA
|
|
4908
|
-
tunaPositionOwnerAtaB
|
|
3866
|
+
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
3867
|
+
tunaPositionOwnerAtaB: Address<TAccountTunaPositionOwnerAtaB>;
|
|
4909
3868
|
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
4910
3869
|
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
4911
3870
|
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
@@ -4917,25 +3876,35 @@ type OpenAndIncreaseTunaSpotPositionFusionInput<TAccountAuthority extends string
|
|
|
4917
3876
|
*/
|
|
4918
3877
|
fusionammProgram: Address<TAccountFusionammProgram>;
|
|
4919
3878
|
fusionPool: Address<TAccountFusionPool>;
|
|
3879
|
+
fusionPosition: Address<TAccountFusionPosition>;
|
|
3880
|
+
metadataUpdateAuth: Address<TAccountMetadataUpdateAuth>;
|
|
4920
3881
|
memoProgram: Address<TAccountMemoProgram>;
|
|
4921
3882
|
/**
|
|
4922
3883
|
*
|
|
4923
3884
|
* Other accounts
|
|
4924
3885
|
*
|
|
4925
3886
|
*/
|
|
3887
|
+
token2022Program: Address<TAccountToken2022Program>;
|
|
4926
3888
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4927
3889
|
associatedTokenProgram: Address<TAccountAssociatedTokenProgram>;
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
3890
|
+
tickLowerIndex: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['tickLowerIndex'];
|
|
3891
|
+
tickUpperIndex: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['tickUpperIndex'];
|
|
3892
|
+
lowerLimitOrderSqrtPrice: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['lowerLimitOrderSqrtPrice'];
|
|
3893
|
+
upperLimitOrderSqrtPrice: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['upperLimitOrderSqrtPrice'];
|
|
3894
|
+
flags: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['flags'];
|
|
3895
|
+
collateralA: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['collateralA'];
|
|
3896
|
+
collateralB: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['collateralB'];
|
|
3897
|
+
borrowA: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['borrowA'];
|
|
3898
|
+
borrowB: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['borrowB'];
|
|
3899
|
+
minAddedAmountA: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountA'];
|
|
3900
|
+
minAddedAmountB: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['minAddedAmountB'];
|
|
3901
|
+
maxSwapSlippage: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['maxSwapSlippage'];
|
|
3902
|
+
remainingAccountsInfo: OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs['remainingAccountsInfo'];
|
|
3903
|
+
};
|
|
3904
|
+
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?: {
|
|
4936
3905
|
programAddress?: TProgramAddress;
|
|
4937
|
-
}):
|
|
4938
|
-
type
|
|
3906
|
+
}): 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>;
|
|
3907
|
+
type ParsedOpenAndIncreaseTunaLpPositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
4939
3908
|
programAddress: Address<TProgram>;
|
|
4940
3909
|
accounts: {
|
|
4941
3910
|
/**
|
|
@@ -4955,33 +3924,38 @@ type ParsedOpenAndIncreaseTunaSpotPositionFusionInstruction<TProgram extends str
|
|
|
4955
3924
|
vaultAAta: TAccountMetas[9];
|
|
4956
3925
|
vaultBAta: TAccountMetas[10];
|
|
4957
3926
|
tunaPosition: TAccountMetas[11];
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
3927
|
+
tunaPositionMint: TAccountMetas[12];
|
|
3928
|
+
tunaPositionAta: TAccountMetas[13];
|
|
3929
|
+
tunaPositionAtaA: TAccountMetas[14];
|
|
3930
|
+
tunaPositionAtaB: TAccountMetas[15];
|
|
3931
|
+
tunaPositionOwnerAtaA: TAccountMetas[16];
|
|
3932
|
+
tunaPositionOwnerAtaB: TAccountMetas[17];
|
|
3933
|
+
feeRecipientAtaA: TAccountMetas[18];
|
|
3934
|
+
feeRecipientAtaB: TAccountMetas[19];
|
|
3935
|
+
pythOraclePriceFeedA: TAccountMetas[20];
|
|
3936
|
+
pythOraclePriceFeedB: TAccountMetas[21];
|
|
4966
3937
|
/**
|
|
4967
3938
|
*
|
|
4968
3939
|
* Fusion accounts
|
|
4969
3940
|
*
|
|
4970
3941
|
*/
|
|
4971
|
-
fusionammProgram: TAccountMetas[
|
|
4972
|
-
fusionPool: TAccountMetas[
|
|
4973
|
-
|
|
3942
|
+
fusionammProgram: TAccountMetas[22];
|
|
3943
|
+
fusionPool: TAccountMetas[23];
|
|
3944
|
+
fusionPosition: TAccountMetas[24];
|
|
3945
|
+
metadataUpdateAuth: TAccountMetas[25];
|
|
3946
|
+
memoProgram: TAccountMetas[26];
|
|
4974
3947
|
/**
|
|
4975
3948
|
*
|
|
4976
3949
|
* Other accounts
|
|
4977
3950
|
*
|
|
4978
3951
|
*/
|
|
4979
|
-
|
|
4980
|
-
|
|
3952
|
+
token2022Program: TAccountMetas[27];
|
|
3953
|
+
systemProgram: TAccountMetas[28];
|
|
3954
|
+
associatedTokenProgram: TAccountMetas[29];
|
|
4981
3955
|
};
|
|
4982
|
-
data:
|
|
3956
|
+
data: OpenAndIncreaseTunaLpPositionFusionInstructionData;
|
|
4983
3957
|
};
|
|
4984
|
-
declare function
|
|
3958
|
+
declare function parseOpenAndIncreaseTunaLpPositionFusionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedOpenAndIncreaseTunaLpPositionFusionInstruction<TProgram, TAccountMetas>;
|
|
4985
3959
|
|
|
4986
3960
|
/**
|
|
4987
3961
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -4991,21 +3965,21 @@ declare function parseOpenAndIncreaseTunaSpotPositionFusionInstruction<TProgram
|
|
|
4991
3965
|
* @see https://github.com/codama-idl/codama
|
|
4992
3966
|
*/
|
|
4993
3967
|
|
|
4994
|
-
declare const
|
|
4995
|
-
declare function
|
|
4996
|
-
type
|
|
3968
|
+
declare const OPEN_AND_INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3969
|
+
declare function getOpenAndIncreaseTunaLpPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3970
|
+
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<[
|
|
4997
3971
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
4998
3972
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
4999
3973
|
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
5000
3974
|
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
5001
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
5002
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
5003
3975
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
5004
3976
|
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
5005
3977
|
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
5006
3978
|
TAccountVaultAAta extends string ? WritableAccount<TAccountVaultAAta> : TAccountVaultAAta,
|
|
5007
3979
|
TAccountVaultBAta extends string ? WritableAccount<TAccountVaultBAta> : TAccountVaultBAta,
|
|
5008
3980
|
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
3981
|
+
TAccountTunaPositionMint extends string ? WritableSignerAccount<TAccountTunaPositionMint> & IAccountSignerMeta<TAccountTunaPositionMint> : TAccountTunaPositionMint,
|
|
3982
|
+
TAccountTunaPositionAta extends string ? WritableAccount<TAccountTunaPositionAta> : TAccountTunaPositionAta,
|
|
5009
3983
|
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
5010
3984
|
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
5011
3985
|
TAccountTunaPositionOwnerAtaA extends string ? WritableAccount<TAccountTunaPositionOwnerAtaA> : TAccountTunaPositionOwnerAtaA,
|
|
@@ -5016,32 +3990,51 @@ type OpenAndIncreaseTunaSpotPositionOrcaInstruction<TProgram extends string = ty
|
|
|
5016
3990
|
TAccountPythOraclePriceFeedB extends string ? ReadonlyAccount<TAccountPythOraclePriceFeedB> : TAccountPythOraclePriceFeedB,
|
|
5017
3991
|
TAccountWhirlpoolProgram extends string ? ReadonlyAccount<TAccountWhirlpoolProgram> : TAccountWhirlpoolProgram,
|
|
5018
3992
|
TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool,
|
|
3993
|
+
TAccountOrcaPosition extends string ? WritableAccount<TAccountOrcaPosition> : TAccountOrcaPosition,
|
|
3994
|
+
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
3995
|
+
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
3996
|
+
TAccountMetadataUpdateAuth extends string ? ReadonlyAccount<TAccountMetadataUpdateAuth> : TAccountMetadataUpdateAuth,
|
|
5019
3997
|
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
3998
|
+
TAccountToken2022Program extends string ? ReadonlyAccount<TAccountToken2022Program> : TAccountToken2022Program,
|
|
5020
3999
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
5021
4000
|
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
5022
4001
|
...TRemainingAccounts
|
|
5023
4002
|
]>;
|
|
5024
|
-
type
|
|
4003
|
+
type OpenAndIncreaseTunaLpPositionOrcaInstructionData = {
|
|
5025
4004
|
discriminator: ReadonlyUint8Array;
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
4005
|
+
tickLowerIndex: number;
|
|
4006
|
+
tickUpperIndex: number;
|
|
4007
|
+
lowerLimitOrderSqrtPrice: bigint;
|
|
4008
|
+
upperLimitOrderSqrtPrice: bigint;
|
|
4009
|
+
flags: number;
|
|
4010
|
+
collateralA: bigint;
|
|
4011
|
+
collateralB: bigint;
|
|
4012
|
+
borrowA: bigint;
|
|
4013
|
+
borrowB: bigint;
|
|
4014
|
+
minAddedAmountA: bigint;
|
|
4015
|
+
minAddedAmountB: bigint;
|
|
4016
|
+
maxSwapSlippage: number;
|
|
5031
4017
|
remainingAccountsInfo: RemainingAccountsInfo;
|
|
5032
4018
|
};
|
|
5033
|
-
type
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
4019
|
+
type OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs = {
|
|
4020
|
+
tickLowerIndex: number;
|
|
4021
|
+
tickUpperIndex: number;
|
|
4022
|
+
lowerLimitOrderSqrtPrice: number | bigint;
|
|
4023
|
+
upperLimitOrderSqrtPrice: number | bigint;
|
|
4024
|
+
flags: number;
|
|
4025
|
+
collateralA: number | bigint;
|
|
4026
|
+
collateralB: number | bigint;
|
|
4027
|
+
borrowA: number | bigint;
|
|
4028
|
+
borrowB: number | bigint;
|
|
4029
|
+
minAddedAmountA: number | bigint;
|
|
4030
|
+
minAddedAmountB: number | bigint;
|
|
4031
|
+
maxSwapSlippage: number;
|
|
5039
4032
|
remainingAccountsInfo: RemainingAccountsInfoArgs;
|
|
5040
4033
|
};
|
|
5041
|
-
declare function
|
|
5042
|
-
declare function
|
|
5043
|
-
declare function
|
|
5044
|
-
type
|
|
4034
|
+
declare function getOpenAndIncreaseTunaLpPositionOrcaInstructionDataEncoder(): Encoder<OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs>;
|
|
4035
|
+
declare function getOpenAndIncreaseTunaLpPositionOrcaInstructionDataDecoder(): Decoder<OpenAndIncreaseTunaLpPositionOrcaInstructionData>;
|
|
4036
|
+
declare function getOpenAndIncreaseTunaLpPositionOrcaInstructionDataCodec(): Codec<OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs, OpenAndIncreaseTunaLpPositionOrcaInstructionData>;
|
|
4037
|
+
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> = {
|
|
5045
4038
|
/**
|
|
5046
4039
|
*
|
|
5047
4040
|
* TUNA accounts
|
|
@@ -5051,48 +4044,60 @@ type OpenAndIncreaseTunaSpotPositionOrcaInput<TAccountAuthority extends string =
|
|
|
5051
4044
|
tunaConfig: Address<TAccountTunaConfig>;
|
|
5052
4045
|
mintA: Address<TAccountMintA>;
|
|
5053
4046
|
mintB: Address<TAccountMintB>;
|
|
5054
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
5055
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
5056
4047
|
market: Address<TAccountMarket>;
|
|
5057
4048
|
vaultA: Address<TAccountVaultA>;
|
|
5058
4049
|
vaultB: Address<TAccountVaultB>;
|
|
5059
4050
|
vaultAAta: Address<TAccountVaultAAta>;
|
|
5060
4051
|
vaultBAta: Address<TAccountVaultBAta>;
|
|
5061
4052
|
tunaPosition: Address<TAccountTunaPosition>;
|
|
4053
|
+
tunaPositionMint: TransactionSigner<TAccountTunaPositionMint>;
|
|
4054
|
+
tunaPositionAta: Address<TAccountTunaPositionAta>;
|
|
5062
4055
|
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
5063
4056
|
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
5064
|
-
tunaPositionOwnerAtaA
|
|
5065
|
-
tunaPositionOwnerAtaB
|
|
4057
|
+
tunaPositionOwnerAtaA: Address<TAccountTunaPositionOwnerAtaA>;
|
|
4058
|
+
tunaPositionOwnerAtaB: Address<TAccountTunaPositionOwnerAtaB>;
|
|
5066
4059
|
feeRecipientAtaA: Address<TAccountFeeRecipientAtaA>;
|
|
5067
4060
|
feeRecipientAtaB: Address<TAccountFeeRecipientAtaB>;
|
|
5068
4061
|
pythOraclePriceFeedA: Address<TAccountPythOraclePriceFeedA>;
|
|
5069
4062
|
pythOraclePriceFeedB: Address<TAccountPythOraclePriceFeedB>;
|
|
5070
4063
|
/**
|
|
5071
4064
|
*
|
|
5072
|
-
*
|
|
4065
|
+
* ORCA accounts
|
|
5073
4066
|
*
|
|
5074
4067
|
*/
|
|
5075
4068
|
whirlpoolProgram: Address<TAccountWhirlpoolProgram>;
|
|
5076
4069
|
whirlpool: Address<TAccountWhirlpool>;
|
|
4070
|
+
orcaPosition: Address<TAccountOrcaPosition>;
|
|
4071
|
+
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
4072
|
+
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
4073
|
+
metadataUpdateAuth: Address<TAccountMetadataUpdateAuth>;
|
|
5077
4074
|
memoProgram: Address<TAccountMemoProgram>;
|
|
5078
4075
|
/**
|
|
5079
4076
|
*
|
|
5080
4077
|
* Other accounts
|
|
5081
4078
|
*
|
|
5082
4079
|
*/
|
|
4080
|
+
token2022Program: Address<TAccountToken2022Program>;
|
|
5083
4081
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
5084
4082
|
associatedTokenProgram: Address<TAccountAssociatedTokenProgram>;
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
4083
|
+
tickLowerIndex: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['tickLowerIndex'];
|
|
4084
|
+
tickUpperIndex: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['tickUpperIndex'];
|
|
4085
|
+
lowerLimitOrderSqrtPrice: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['lowerLimitOrderSqrtPrice'];
|
|
4086
|
+
upperLimitOrderSqrtPrice: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['upperLimitOrderSqrtPrice'];
|
|
4087
|
+
flags: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['flags'];
|
|
4088
|
+
collateralA: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['collateralA'];
|
|
4089
|
+
collateralB: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['collateralB'];
|
|
4090
|
+
borrowA: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['borrowA'];
|
|
4091
|
+
borrowB: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['borrowB'];
|
|
4092
|
+
minAddedAmountA: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountA'];
|
|
4093
|
+
minAddedAmountB: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['minAddedAmountB'];
|
|
4094
|
+
maxSwapSlippage: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['maxSwapSlippage'];
|
|
4095
|
+
remainingAccountsInfo: OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs['remainingAccountsInfo'];
|
|
4096
|
+
};
|
|
4097
|
+
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?: {
|
|
5093
4098
|
programAddress?: TProgramAddress;
|
|
5094
|
-
}):
|
|
5095
|
-
type
|
|
4099
|
+
}): 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>;
|
|
4100
|
+
type ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
5096
4101
|
programAddress: Address<TProgram>;
|
|
5097
4102
|
accounts: {
|
|
5098
4103
|
/**
|
|
@@ -5104,41 +4109,46 @@ type ParsedOpenAndIncreaseTunaSpotPositionOrcaInstruction<TProgram extends strin
|
|
|
5104
4109
|
tunaConfig: TAccountMetas[1];
|
|
5105
4110
|
mintA: TAccountMetas[2];
|
|
5106
4111
|
mintB: TAccountMetas[3];
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
4112
|
+
market: TAccountMetas[4];
|
|
4113
|
+
vaultA: TAccountMetas[5];
|
|
4114
|
+
vaultB: TAccountMetas[6];
|
|
4115
|
+
vaultAAta: TAccountMetas[7];
|
|
4116
|
+
vaultBAta: TAccountMetas[8];
|
|
4117
|
+
tunaPosition: TAccountMetas[9];
|
|
4118
|
+
tunaPositionMint: TAccountMetas[10];
|
|
4119
|
+
tunaPositionAta: TAccountMetas[11];
|
|
5115
4120
|
tunaPositionAtaA: TAccountMetas[12];
|
|
5116
4121
|
tunaPositionAtaB: TAccountMetas[13];
|
|
5117
|
-
tunaPositionOwnerAtaA
|
|
5118
|
-
tunaPositionOwnerAtaB
|
|
4122
|
+
tunaPositionOwnerAtaA: TAccountMetas[14];
|
|
4123
|
+
tunaPositionOwnerAtaB: TAccountMetas[15];
|
|
5119
4124
|
feeRecipientAtaA: TAccountMetas[16];
|
|
5120
4125
|
feeRecipientAtaB: TAccountMetas[17];
|
|
5121
4126
|
pythOraclePriceFeedA: TAccountMetas[18];
|
|
5122
4127
|
pythOraclePriceFeedB: TAccountMetas[19];
|
|
5123
4128
|
/**
|
|
5124
4129
|
*
|
|
5125
|
-
*
|
|
4130
|
+
* ORCA accounts
|
|
5126
4131
|
*
|
|
5127
4132
|
*/
|
|
5128
4133
|
whirlpoolProgram: TAccountMetas[20];
|
|
5129
4134
|
whirlpool: TAccountMetas[21];
|
|
5130
|
-
|
|
4135
|
+
orcaPosition: TAccountMetas[22];
|
|
4136
|
+
tokenProgramA: TAccountMetas[23];
|
|
4137
|
+
tokenProgramB: TAccountMetas[24];
|
|
4138
|
+
metadataUpdateAuth: TAccountMetas[25];
|
|
4139
|
+
memoProgram: TAccountMetas[26];
|
|
5131
4140
|
/**
|
|
5132
4141
|
*
|
|
5133
4142
|
* Other accounts
|
|
5134
4143
|
*
|
|
5135
4144
|
*/
|
|
5136
|
-
|
|
5137
|
-
|
|
4145
|
+
token2022Program: TAccountMetas[27];
|
|
4146
|
+
systemProgram: TAccountMetas[28];
|
|
4147
|
+
associatedTokenProgram: TAccountMetas[29];
|
|
5138
4148
|
};
|
|
5139
|
-
data:
|
|
4149
|
+
data: OpenAndIncreaseTunaLpPositionOrcaInstructionData;
|
|
5140
4150
|
};
|
|
5141
|
-
declare function
|
|
4151
|
+
declare function parseOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram, TAccountMetas>;
|
|
5142
4152
|
|
|
5143
4153
|
/**
|
|
5144
4154
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -5465,112 +4475,9 @@ declare function parseOpenTunaLpPositionOrcaInstruction<TProgram extends string,
|
|
|
5465
4475
|
* @see https://github.com/codama-idl/codama
|
|
5466
4476
|
*/
|
|
5467
4477
|
|
|
5468
|
-
declare const
|
|
5469
|
-
declare function
|
|
5470
|
-
type
|
|
5471
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
5472
|
-
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
5473
|
-
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
5474
|
-
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
5475
|
-
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
5476
|
-
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
5477
|
-
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
5478
|
-
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
5479
|
-
TAccountFusionPool extends string ? WritableAccount<TAccountFusionPool> : TAccountFusionPool,
|
|
5480
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
5481
|
-
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
5482
|
-
...TRemainingAccounts
|
|
5483
|
-
]>;
|
|
5484
|
-
type OpenTunaSpotPositionFusionInstructionData = {
|
|
5485
|
-
discriminator: ReadonlyUint8Array;
|
|
5486
|
-
positionToken: PoolToken;
|
|
5487
|
-
collateralToken: PoolToken;
|
|
5488
|
-
};
|
|
5489
|
-
type OpenTunaSpotPositionFusionInstructionDataArgs = {
|
|
5490
|
-
positionToken: PoolTokenArgs;
|
|
5491
|
-
collateralToken: PoolTokenArgs;
|
|
5492
|
-
};
|
|
5493
|
-
declare function getOpenTunaSpotPositionFusionInstructionDataEncoder(): Encoder<OpenTunaSpotPositionFusionInstructionDataArgs>;
|
|
5494
|
-
declare function getOpenTunaSpotPositionFusionInstructionDataDecoder(): Decoder<OpenTunaSpotPositionFusionInstructionData>;
|
|
5495
|
-
declare function getOpenTunaSpotPositionFusionInstructionDataCodec(): Codec<OpenTunaSpotPositionFusionInstructionDataArgs, OpenTunaSpotPositionFusionInstructionData>;
|
|
5496
|
-
type OpenTunaSpotPositionFusionInput<TAccountAuthority extends string = string, TAccountMintA extends string = string, TAccountMintB extends string = string, TAccountTokenProgramA extends string = string, TAccountTokenProgramB extends string = string, TAccountTunaPosition extends string = string, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountFusionPool extends string = string, TAccountSystemProgram extends string = string, TAccountAssociatedTokenProgram extends string = string> = {
|
|
5497
|
-
/**
|
|
5498
|
-
*
|
|
5499
|
-
* TUNA accounts
|
|
5500
|
-
*
|
|
5501
|
-
*/
|
|
5502
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
5503
|
-
mintA: Address<TAccountMintA>;
|
|
5504
|
-
mintB: Address<TAccountMintB>;
|
|
5505
|
-
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
5506
|
-
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
5507
|
-
tunaPosition: Address<TAccountTunaPosition>;
|
|
5508
|
-
tunaPositionAtaA: Address<TAccountTunaPositionAtaA>;
|
|
5509
|
-
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
5510
|
-
/**
|
|
5511
|
-
*
|
|
5512
|
-
* Fusion accounts
|
|
5513
|
-
*
|
|
5514
|
-
*/
|
|
5515
|
-
fusionPool: Address<TAccountFusionPool>;
|
|
5516
|
-
/**
|
|
5517
|
-
*
|
|
5518
|
-
* Other accounts
|
|
5519
|
-
*
|
|
5520
|
-
*/
|
|
5521
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
5522
|
-
associatedTokenProgram: Address<TAccountAssociatedTokenProgram>;
|
|
5523
|
-
positionToken: OpenTunaSpotPositionFusionInstructionDataArgs['positionToken'];
|
|
5524
|
-
collateralToken: OpenTunaSpotPositionFusionInstructionDataArgs['collateralToken'];
|
|
5525
|
-
};
|
|
5526
|
-
declare function getOpenTunaSpotPositionFusionInstruction<TAccountAuthority extends string, TAccountMintA extends string, TAccountMintB extends string, TAccountTokenProgramA extends string, TAccountTokenProgramB extends string, TAccountTunaPosition extends string, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountFusionPool extends string, TAccountSystemProgram extends string, TAccountAssociatedTokenProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: OpenTunaSpotPositionFusionInput<TAccountAuthority, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountFusionPool, TAccountSystemProgram, TAccountAssociatedTokenProgram>, config?: {
|
|
5527
|
-
programAddress?: TProgramAddress;
|
|
5528
|
-
}): OpenTunaSpotPositionFusionInstruction<TProgramAddress, TAccountAuthority, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountFusionPool, TAccountSystemProgram, TAccountAssociatedTokenProgram>;
|
|
5529
|
-
type ParsedOpenTunaSpotPositionFusionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
5530
|
-
programAddress: Address<TProgram>;
|
|
5531
|
-
accounts: {
|
|
5532
|
-
/**
|
|
5533
|
-
*
|
|
5534
|
-
* TUNA accounts
|
|
5535
|
-
*
|
|
5536
|
-
*/
|
|
5537
|
-
authority: TAccountMetas[0];
|
|
5538
|
-
mintA: TAccountMetas[1];
|
|
5539
|
-
mintB: TAccountMetas[2];
|
|
5540
|
-
tokenProgramA: TAccountMetas[3];
|
|
5541
|
-
tokenProgramB: TAccountMetas[4];
|
|
5542
|
-
tunaPosition: TAccountMetas[5];
|
|
5543
|
-
tunaPositionAtaA: TAccountMetas[6];
|
|
5544
|
-
tunaPositionAtaB: TAccountMetas[7];
|
|
5545
|
-
/**
|
|
5546
|
-
*
|
|
5547
|
-
* Fusion accounts
|
|
5548
|
-
*
|
|
5549
|
-
*/
|
|
5550
|
-
fusionPool: TAccountMetas[8];
|
|
5551
|
-
/**
|
|
5552
|
-
*
|
|
5553
|
-
* Other accounts
|
|
5554
|
-
*
|
|
5555
|
-
*/
|
|
5556
|
-
systemProgram: TAccountMetas[9];
|
|
5557
|
-
associatedTokenProgram: TAccountMetas[10];
|
|
5558
|
-
};
|
|
5559
|
-
data: OpenTunaSpotPositionFusionInstructionData;
|
|
5560
|
-
};
|
|
5561
|
-
declare function parseOpenTunaSpotPositionFusionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedOpenTunaSpotPositionFusionInstruction<TProgram, TAccountMetas>;
|
|
5562
|
-
|
|
5563
|
-
/**
|
|
5564
|
-
* This code was AUTOGENERATED using the codama library.
|
|
5565
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5566
|
-
* to add features, then rerun codama to update it.
|
|
5567
|
-
*
|
|
5568
|
-
* @see https://github.com/codama-idl/codama
|
|
5569
|
-
*/
|
|
5570
|
-
|
|
5571
|
-
declare const OPEN_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
5572
|
-
declare function getOpenTunaSpotPositionOrcaDiscriminatorBytes(): ReadonlyUint8Array;
|
|
5573
|
-
type OpenTunaSpotPositionOrcaInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority 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, TAccountTunaPosition extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountWhirlpool 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<[
|
|
4478
|
+
declare const OPEN_TUNA_SPOT_POSITION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
4479
|
+
declare function getOpenTunaSpotPositionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
4480
|
+
type OpenTunaSpotPositionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority 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, TAccountTunaPosition extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaA extends string | IAccountMeta<string> = string, TAccountTunaPositionAtaB extends string | IAccountMeta<string> = string, TAccountPool 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<[
|
|
5574
4481
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
5575
4482
|
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
5576
4483
|
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
@@ -5579,24 +4486,24 @@ type OpenTunaSpotPositionOrcaInstruction<TProgram extends string = typeof TUNA_P
|
|
|
5579
4486
|
TAccountTunaPosition extends string ? WritableAccount<TAccountTunaPosition> : TAccountTunaPosition,
|
|
5580
4487
|
TAccountTunaPositionAtaA extends string ? WritableAccount<TAccountTunaPositionAtaA> : TAccountTunaPositionAtaA,
|
|
5581
4488
|
TAccountTunaPositionAtaB extends string ? WritableAccount<TAccountTunaPositionAtaB> : TAccountTunaPositionAtaB,
|
|
5582
|
-
|
|
4489
|
+
TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
|
|
5583
4490
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
5584
4491
|
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
5585
4492
|
...TRemainingAccounts
|
|
5586
4493
|
]>;
|
|
5587
|
-
type
|
|
4494
|
+
type OpenTunaSpotPositionInstructionData = {
|
|
5588
4495
|
discriminator: ReadonlyUint8Array;
|
|
5589
4496
|
positionToken: PoolToken;
|
|
5590
4497
|
collateralToken: PoolToken;
|
|
5591
4498
|
};
|
|
5592
|
-
type
|
|
4499
|
+
type OpenTunaSpotPositionInstructionDataArgs = {
|
|
5593
4500
|
positionToken: PoolTokenArgs;
|
|
5594
4501
|
collateralToken: PoolTokenArgs;
|
|
5595
4502
|
};
|
|
5596
|
-
declare function
|
|
5597
|
-
declare function
|
|
5598
|
-
declare function
|
|
5599
|
-
type
|
|
4503
|
+
declare function getOpenTunaSpotPositionInstructionDataEncoder(): Encoder<OpenTunaSpotPositionInstructionDataArgs>;
|
|
4504
|
+
declare function getOpenTunaSpotPositionInstructionDataDecoder(): Decoder<OpenTunaSpotPositionInstructionData>;
|
|
4505
|
+
declare function getOpenTunaSpotPositionInstructionDataCodec(): Codec<OpenTunaSpotPositionInstructionDataArgs, OpenTunaSpotPositionInstructionData>;
|
|
4506
|
+
type OpenTunaSpotPositionInput<TAccountAuthority extends string = string, TAccountMintA extends string = string, TAccountMintB extends string = string, TAccountTokenProgramA extends string = string, TAccountTokenProgramB extends string = string, TAccountTunaPosition extends string = string, TAccountTunaPositionAtaA extends string = string, TAccountTunaPositionAtaB extends string = string, TAccountPool extends string = string, TAccountSystemProgram extends string = string, TAccountAssociatedTokenProgram extends string = string> = {
|
|
5600
4507
|
/**
|
|
5601
4508
|
*
|
|
5602
4509
|
* TUNA accounts
|
|
@@ -5612,10 +4519,10 @@ type OpenTunaSpotPositionOrcaInput<TAccountAuthority extends string = string, TA
|
|
|
5612
4519
|
tunaPositionAtaB: Address<TAccountTunaPositionAtaB>;
|
|
5613
4520
|
/**
|
|
5614
4521
|
*
|
|
5615
|
-
* Fusion accounts
|
|
4522
|
+
* Fusion or Orca accounts
|
|
5616
4523
|
*
|
|
5617
4524
|
*/
|
|
5618
|
-
|
|
4525
|
+
pool: Address<TAccountPool>;
|
|
5619
4526
|
/**
|
|
5620
4527
|
*
|
|
5621
4528
|
* Other accounts
|
|
@@ -5623,13 +4530,13 @@ type OpenTunaSpotPositionOrcaInput<TAccountAuthority extends string = string, TA
|
|
|
5623
4530
|
*/
|
|
5624
4531
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
5625
4532
|
associatedTokenProgram: Address<TAccountAssociatedTokenProgram>;
|
|
5626
|
-
positionToken:
|
|
5627
|
-
collateralToken:
|
|
4533
|
+
positionToken: OpenTunaSpotPositionInstructionDataArgs['positionToken'];
|
|
4534
|
+
collateralToken: OpenTunaSpotPositionInstructionDataArgs['collateralToken'];
|
|
5628
4535
|
};
|
|
5629
|
-
declare function
|
|
4536
|
+
declare function getOpenTunaSpotPositionInstruction<TAccountAuthority extends string, TAccountMintA extends string, TAccountMintB extends string, TAccountTokenProgramA extends string, TAccountTokenProgramB extends string, TAccountTunaPosition extends string, TAccountTunaPositionAtaA extends string, TAccountTunaPositionAtaB extends string, TAccountPool extends string, TAccountSystemProgram extends string, TAccountAssociatedTokenProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: OpenTunaSpotPositionInput<TAccountAuthority, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountPool, TAccountSystemProgram, TAccountAssociatedTokenProgram>, config?: {
|
|
5630
4537
|
programAddress?: TProgramAddress;
|
|
5631
|
-
}):
|
|
5632
|
-
type
|
|
4538
|
+
}): OpenTunaSpotPositionInstruction<TProgramAddress, TAccountAuthority, TAccountMintA, TAccountMintB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountTunaPosition, TAccountTunaPositionAtaA, TAccountTunaPositionAtaB, TAccountPool, TAccountSystemProgram, TAccountAssociatedTokenProgram>;
|
|
4539
|
+
type ParsedOpenTunaSpotPositionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
5633
4540
|
programAddress: Address<TProgram>;
|
|
5634
4541
|
accounts: {
|
|
5635
4542
|
/**
|
|
@@ -5647,10 +4554,10 @@ type ParsedOpenTunaSpotPositionOrcaInstruction<TProgram extends string = typeof
|
|
|
5647
4554
|
tunaPositionAtaB: TAccountMetas[7];
|
|
5648
4555
|
/**
|
|
5649
4556
|
*
|
|
5650
|
-
* Fusion accounts
|
|
4557
|
+
* Fusion or Orca accounts
|
|
5651
4558
|
*
|
|
5652
4559
|
*/
|
|
5653
|
-
|
|
4560
|
+
pool: TAccountMetas[8];
|
|
5654
4561
|
/**
|
|
5655
4562
|
*
|
|
5656
4563
|
* Other accounts
|
|
@@ -5659,9 +4566,9 @@ type ParsedOpenTunaSpotPositionOrcaInstruction<TProgram extends string = typeof
|
|
|
5659
4566
|
systemProgram: TAccountMetas[9];
|
|
5660
4567
|
associatedTokenProgram: TAccountMetas[10];
|
|
5661
4568
|
};
|
|
5662
|
-
data:
|
|
4569
|
+
data: OpenTunaSpotPositionInstructionData;
|
|
5663
4570
|
};
|
|
5664
|
-
declare function
|
|
4571
|
+
declare function parseOpenTunaSpotPositionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedOpenTunaSpotPositionInstruction<TProgram, TAccountMetas>;
|
|
5665
4572
|
|
|
5666
4573
|
/**
|
|
5667
4574
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -7045,37 +5952,13 @@ type CloseActiveTunaLpPositionInstructionArgs = {
|
|
|
7045
5952
|
};
|
|
7046
5953
|
declare function closeActiveTunaLpPositionFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, positionMint: Address, args: CloseActiveTunaLpPositionInstructionArgs): Promise<IInstruction[]>;
|
|
7047
5954
|
|
|
7048
|
-
type
|
|
7049
|
-
declare function
|
|
7050
|
-
declare function
|
|
7051
|
-
|
|
7052
|
-
type CloseActiveTunaSpotPositionOrcaInstructionsArgs = Omit<CloseActiveTunaSpotPositionOrcaInstructionDataArgs, "remainingAccountsInfo">;
|
|
7053
|
-
declare function closeActiveTunaSpotPositionOrcaInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, whirlpoolAddress: Address, args: CloseActiveTunaSpotPositionOrcaInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
7054
|
-
declare function closeActiveTunaSpotPositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, setTunaPositionOwnerAtaA: boolean, setTunaPositionOwnerAtaB: boolean, args: CloseActiveTunaSpotPositionOrcaInstructionsArgs): Promise<IInstruction>;
|
|
5955
|
+
type ModifyTunaSpotPositionOrcaInstructionsArgs = Omit<ModifyTunaSpotPositionOrcaInstructionDataArgs, "remainingAccountsInfo">;
|
|
5956
|
+
declare function modifyTunaSpotPositionOrcaInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, poolAddress: Address, collateralToken: PoolToken | undefined, args: ModifyTunaSpotPositionOrcaInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
5957
|
+
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>;
|
|
7055
5958
|
|
|
7056
|
-
type
|
|
7057
|
-
declare function
|
|
7058
|
-
declare function
|
|
7059
|
-
|
|
7060
|
-
type IncreaseTunaSpotPositionFusionInstructionsArgs = Omit<IncreaseTunaSpotPositionFusionInstructionDataArgs, "remainingAccountsInfo">;
|
|
7061
|
-
declare function increaseTunaSpotPositionFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, fusionPoolAddress: Address, args: IncreaseTunaSpotPositionFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
7062
|
-
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>;
|
|
7063
|
-
|
|
7064
|
-
type IncreaseTunaSpotPositionJupiterInstructionsArgs = Omit<IncreaseTunaSpotPositionJupiterInstructionDataArgs, "remainingAccountsInfo">;
|
|
7065
|
-
declare function increaseTunaSpotPositionJupiterInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, poolAddress: Address, remainingAccounts: IAccountMeta[], openArgs: OpenTunaSpotPositionFusionInstructionDataArgs | OpenTunaSpotPositionOrcaInstructionDataArgs | undefined, increaseArgs: IncreaseTunaSpotPositionJupiterInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
7066
|
-
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>;
|
|
7067
|
-
|
|
7068
|
-
type DecreaseTunaSpotPositionOrcaInstructionsArgs = Omit<DecreaseTunaSpotPositionOrcaInstructionDataArgs, "remainingAccountsInfo">;
|
|
7069
|
-
declare function decreaseTunaSpotPositionOrcaInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, whirlpoolAddress: Address, args: DecreaseTunaSpotPositionOrcaInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
7070
|
-
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>;
|
|
7071
|
-
|
|
7072
|
-
type DecreaseTunaSpotPositionFusionInstructionsArgs = Omit<DecreaseTunaSpotPositionFusionInstructionDataArgs, "remainingAccountsInfo">;
|
|
7073
|
-
declare function decreaseTunaSpotPositionFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, fusionPoolAddress: Address, args: DecreaseTunaSpotPositionFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
7074
|
-
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>;
|
|
7075
|
-
|
|
7076
|
-
type DecreaseTunaSpotPositionJupiterInstructionsArgs = Omit<DecreaseTunaSpotPositionJupiterInstructionDataArgs, "remainingAccountsInfo">;
|
|
7077
|
-
declare function decreaseTunaSpotPositionJupiterInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, poolAddress: Address, remainingAccounts: IAccountMeta[], args: DecreaseTunaSpotPositionJupiterInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
7078
|
-
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>;
|
|
5959
|
+
type ModifyTunaSpotPositionFusionInstructionsArgs = Omit<ModifyTunaSpotPositionFusionInstructionDataArgs, "remainingAccountsInfo">;
|
|
5960
|
+
declare function modifyTunaSpotPositionFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, poolAddress: Address, collateralToken: PoolToken | undefined, args: ModifyTunaSpotPositionFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
5961
|
+
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>;
|
|
7079
5962
|
|
|
7080
5963
|
declare function closeTunaSpotPositionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, poolAddress: Address): Promise<IInstruction[]>;
|
|
7081
5964
|
declare function closeTunaSpotPositionInstruction(authority: TransactionSigner, poolAddress: Address, mintA: Account<Mint>, mintB: Account<Mint>): Promise<IInstruction>;
|
|
@@ -7089,17 +5972,17 @@ declare function createVaultInstructions(authority: TransactionSigner, mint: Acc
|
|
|
7089
5972
|
declare function depositInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, mintAddress: Address, amount: bigint): Promise<IInstruction[]>;
|
|
7090
5973
|
declare function depositInstruction(authority: TransactionSigner, mint: Account<Mint>, amount: bigint): Promise<IInstruction>;
|
|
7091
5974
|
|
|
7092
|
-
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>,
|
|
7093
|
-
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>,
|
|
5975
|
+
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[]>;
|
|
5976
|
+
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>;
|
|
7094
5977
|
|
|
7095
|
-
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>,
|
|
7096
|
-
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>,
|
|
5978
|
+
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[]>;
|
|
5979
|
+
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>;
|
|
7097
5980
|
|
|
7098
|
-
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,
|
|
7099
|
-
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>,
|
|
5981
|
+
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[]>;
|
|
5982
|
+
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>;
|
|
7100
5983
|
|
|
7101
|
-
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,
|
|
7102
|
-
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>,
|
|
5984
|
+
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[]>;
|
|
5985
|
+
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>;
|
|
7103
5986
|
|
|
7104
5987
|
declare function openTunaLpPositionOrcaInstruction(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, positionMint: TransactionSigner, whirlpoolAddress: Address, args: OpenTunaLpPositionOrcaInstructionDataArgs): Promise<IInstruction>;
|
|
7105
5988
|
|
|
@@ -7133,19 +6016,8 @@ type OpenAndIncreaseTunaLpPositionFusionInstructionsArgs = Omit<OpenAndIncreaseT
|
|
|
7133
6016
|
declare function openAndIncreaseTunaLpPositionFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, fusionPoolAddress: Address, args: OpenAndIncreaseTunaLpPositionFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<OpenAndIncreaseTunaLpPositionFusion>;
|
|
7134
6017
|
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>;
|
|
7135
6018
|
|
|
7136
|
-
|
|
7137
|
-
declare function
|
|
7138
|
-
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>;
|
|
7139
|
-
|
|
7140
|
-
type OpenAndIncreaseTunaSpotPositionOrcaInstructionsArgs = Omit<OpenAndIncreaseTunaSpotPositionOrcaInstructionDataArgs, "remainingAccountsInfo">;
|
|
7141
|
-
declare function openAndIncreaseTunaSpotPositionOrcaInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, whirlpoolAddress: Address, args: OpenAndIncreaseTunaSpotPositionOrcaInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
7142
|
-
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>;
|
|
7143
|
-
|
|
7144
|
-
declare function openTunaSpotPositionFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, fusionPoolAddress: Address, args: OpenTunaSpotPositionFusionInstructionDataArgs): Promise<IInstruction[]>;
|
|
7145
|
-
declare function openTunaSpotPositionFusionInstruction(authority: TransactionSigner, mintA: Account<Mint>, mintB: Account<Mint>, fusionPoolAddress: Address, args: OpenTunaSpotPositionFusionInstructionDataArgs): Promise<IInstruction>;
|
|
7146
|
-
|
|
7147
|
-
declare function openTunaSpotPositionOrcaInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, whirlpoolAddress: Address, args: OpenTunaSpotPositionFusionInstructionDataArgs): Promise<IInstruction[]>;
|
|
7148
|
-
declare function openTunaSpotPositionOrcaInstruction(authority: TransactionSigner, mintA: Account<Mint>, mintB: Account<Mint>, whirlpoolAddress: Address, args: OpenTunaSpotPositionOrcaInstructionDataArgs): Promise<IInstruction>;
|
|
6019
|
+
declare function openTunaSpotPositionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, poolAddress: Address, args: OpenTunaSpotPositionInstructionDataArgs): Promise<IInstruction[]>;
|
|
6020
|
+
declare function openTunaSpotPositionInstruction(authority: TransactionSigner, mintA: Account<Mint>, mintB: Account<Mint>, poolAddress: Address, args: OpenTunaSpotPositionInstructionDataArgs): Promise<IInstruction>;
|
|
7149
6021
|
|
|
7150
6022
|
type DecreaseTunaLpPositionOrcaInstructionsArgs = Omit<DecreaseTunaLpPositionOrcaInstructionDataArgs, "remainingAccountsInfo" | "minRemovedAmountA" | "minRemovedAmountB"> & {
|
|
7151
6023
|
maxAmountSlippage: number;
|
|
@@ -7226,4 +6098,4 @@ declare const JUPITER_PROGRAM_AUTHORITY: _solana_kit.Address<"9nnLbotNTcUhvbrsA6
|
|
|
7226
6098
|
declare const MIN_SQRT_PRICE = 4295048016n;
|
|
7227
6099
|
declare const MAX_SQRT_PRICE = 79226673515401279992447579055n;
|
|
7228
6100
|
|
|
7229
|
-
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_FUSION_DISCRIMINATOR, OPEN_TUNA_SPOT_POSITION_ORCA_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 OpenTunaSpotPositionFusionInput, type OpenTunaSpotPositionFusionInstruction, type OpenTunaSpotPositionFusionInstructionData, type OpenTunaSpotPositionFusionInstructionDataArgs, type OpenTunaSpotPositionOrcaInput, type OpenTunaSpotPositionOrcaInstruction, type OpenTunaSpotPositionOrcaInstructionData, type OpenTunaSpotPositionOrcaInstructionDataArgs, 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 ParsedOpenTunaSpotPositionFusionInstruction, type ParsedOpenTunaSpotPositionOrcaInstruction, 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_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, getOpenTunaSpotPositionFusionDiscriminatorBytes, getOpenTunaSpotPositionFusionInstruction, getOpenTunaSpotPositionFusionInstructionDataCodec, getOpenTunaSpotPositionFusionInstructionDataDecoder, getOpenTunaSpotPositionFusionInstructionDataEncoder, getOpenTunaSpotPositionOrcaDiscriminatorBytes, getOpenTunaSpotPositionOrcaInstruction, getOpenTunaSpotPositionOrcaInstructionDataCodec, getOpenTunaSpotPositionOrcaInstructionDataDecoder, getOpenTunaSpotPositionOrcaInstructionDataEncoder, 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, openTunaSpotPositionFusionInstruction, openTunaSpotPositionFusionInstructions, openTunaSpotPositionOrcaInstruction, openTunaSpotPositionOrcaInstructions, 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, parseOpenTunaSpotPositionFusionInstruction, parseOpenTunaSpotPositionOrcaInstruction, 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 };
|
|
6101
|
+
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 };
|