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