@crypticdot/defituna-client 3.3.6 → 3.4.2
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 +435 -183
- package/dist/index.d.ts +435 -183
- package/dist/index.js +1913 -1349
- package/dist/index.mjs +2068 -1487
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -23,11 +23,13 @@ type LendingPosition = {
|
|
|
23
23
|
/** Authority address used for managing the position */
|
|
24
24
|
authority: Address;
|
|
25
25
|
/** Mint address of the token in the vault */
|
|
26
|
-
|
|
27
|
-
/** The amount of funds provided by user. Used to compute earned amount. */
|
|
26
|
+
mint: Address;
|
|
27
|
+
/** The amount of funds provided by a user. Used to compute earned amount. */
|
|
28
28
|
depositedFunds: bigint;
|
|
29
|
-
/** The amount of funds provided by user to the vault as shares */
|
|
29
|
+
/** The amount of funds provided by a user to the vault as shares */
|
|
30
30
|
depositedShares: bigint;
|
|
31
|
+
/** The vault therwise Pubkey::default(). */
|
|
32
|
+
vault: Address;
|
|
31
33
|
/** Reserved */
|
|
32
34
|
reserved: ReadonlyUint8Array;
|
|
33
35
|
};
|
|
@@ -39,11 +41,13 @@ type LendingPositionArgs = {
|
|
|
39
41
|
/** Authority address used for managing the position */
|
|
40
42
|
authority: Address;
|
|
41
43
|
/** Mint address of the token in the vault */
|
|
42
|
-
|
|
43
|
-
/** The amount of funds provided by user. Used to compute earned amount. */
|
|
44
|
+
mint: Address;
|
|
45
|
+
/** The amount of funds provided by a user. Used to compute earned amount. */
|
|
44
46
|
depositedFunds: number | bigint;
|
|
45
|
-
/** The amount of funds provided by user to the vault as shares */
|
|
47
|
+
/** The amount of funds provided by a user to the vault as shares */
|
|
46
48
|
depositedShares: number | bigint;
|
|
49
|
+
/** The vault therwise Pubkey::default(). */
|
|
50
|
+
vault: Address;
|
|
47
51
|
/** Reserved */
|
|
48
52
|
reserved: ReadonlyUint8Array;
|
|
49
53
|
};
|
|
@@ -204,8 +208,8 @@ type Market = {
|
|
|
204
208
|
liquidationFee: number;
|
|
205
209
|
/** Liquidation threshold represented as hundredths of a basis point. The position is treated as unhealthy if debt > balance * (liquidation_threshold / HUNDRED_PERCENT). */
|
|
206
210
|
liquidationThreshold: number;
|
|
207
|
-
/** Limit order execution fee represented as hundredths of a basis point. (Value of 100 is equal to 0.01%) */
|
|
208
|
-
|
|
211
|
+
/** Obsolete: Limit order execution fee represented as hundredths of a basis point. (Value of 100 is equal to 0.01%) */
|
|
212
|
+
unused1: number;
|
|
209
213
|
/** Oracle price deviation threshold represented as hundredths of a basis point. If it's set to zero, the default value from the global config is used. */
|
|
210
214
|
oraclePriceDeviationThreshold: number;
|
|
211
215
|
/** True if the market is disabled (no more position can be opened). */
|
|
@@ -254,8 +258,8 @@ type MarketArgs = {
|
|
|
254
258
|
liquidationFee: number;
|
|
255
259
|
/** Liquidation threshold represented as hundredths of a basis point. The position is treated as unhealthy if debt > balance * (liquidation_threshold / HUNDRED_PERCENT). */
|
|
256
260
|
liquidationThreshold: number;
|
|
257
|
-
/** Limit order execution fee represented as hundredths of a basis point. (Value of 100 is equal to 0.01%) */
|
|
258
|
-
|
|
261
|
+
/** Obsolete: Limit order execution fee represented as hundredths of a basis point. (Value of 100 is equal to 0.01%) */
|
|
262
|
+
unused1: number;
|
|
259
263
|
/** Oracle price deviation threshold represented as hundredths of a basis point. If it's set to zero, the default value from the global config is used. */
|
|
260
264
|
oraclePriceDeviationThreshold: number;
|
|
261
265
|
/** True if the market is disabled (no more position can be opened). */
|
|
@@ -332,6 +336,12 @@ type TunaConfig = {
|
|
|
332
336
|
liquidatorAuthority: Address;
|
|
333
337
|
/** Maximum allowed oracle price deviation in percent. */
|
|
334
338
|
oraclePriceDeviationThreshold: number;
|
|
339
|
+
/** The default protocol fee rate. */
|
|
340
|
+
defaultProtocolFeeRate: number;
|
|
341
|
+
/** The default liquidation fee rate. */
|
|
342
|
+
defaultLiquidationFeeRate: number;
|
|
343
|
+
/** The default rebalance fee rate. */
|
|
344
|
+
defaultRebalanceFeeRate: number;
|
|
335
345
|
/** Reserved */
|
|
336
346
|
reserved: ReadonlyUint8Array;
|
|
337
347
|
};
|
|
@@ -362,6 +372,12 @@ type TunaConfigArgs = {
|
|
|
362
372
|
liquidatorAuthority: Address;
|
|
363
373
|
/** Maximum allowed oracle price deviation in percent. */
|
|
364
374
|
oraclePriceDeviationThreshold: number;
|
|
375
|
+
/** The default protocol fee rate. */
|
|
376
|
+
defaultProtocolFeeRate: number;
|
|
377
|
+
/** The default liquidation fee rate. */
|
|
378
|
+
defaultLiquidationFeeRate: number;
|
|
379
|
+
/** The default rebalance fee rate. */
|
|
380
|
+
defaultRebalanceFeeRate: number;
|
|
365
381
|
/** Reserved */
|
|
366
382
|
reserved: ReadonlyUint8Array;
|
|
367
383
|
};
|
|
@@ -670,6 +686,8 @@ type Vault = {
|
|
|
670
686
|
pythOraclePriceUpdate: Address;
|
|
671
687
|
/** Pyth oracle price feed id. */
|
|
672
688
|
pythOracleFeedId: Address;
|
|
689
|
+
/** Unique ID of the vault, used for seeds like a bump. Only applicable to isolated vaults and should be zero for default vaults. */
|
|
690
|
+
id: number;
|
|
673
691
|
/** Reserved */
|
|
674
692
|
reserved: ReadonlyUint8Array;
|
|
675
693
|
};
|
|
@@ -700,6 +718,8 @@ type VaultArgs = {
|
|
|
700
718
|
pythOraclePriceUpdate: Address;
|
|
701
719
|
/** Pyth oracle price feed id. */
|
|
702
720
|
pythOracleFeedId: Address;
|
|
721
|
+
/** Unique ID of the vault, used for seeds like a bump. Only applicable to isolated vaults and should be zero for default vaults. */
|
|
722
|
+
id: number;
|
|
703
723
|
/** Reserved */
|
|
704
724
|
reserved: ReadonlyUint8Array;
|
|
705
725
|
};
|
|
@@ -746,8 +766,8 @@ declare const TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE = 6009;
|
|
|
746
766
|
declare const TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE = 6010;
|
|
747
767
|
/** LeftoversExceeded: Leftovers percentage exceeded the maximum allowed value */
|
|
748
768
|
declare const TUNA_ERROR__LEFTOVERS_EXCEEDED = 6011;
|
|
749
|
-
/**
|
|
750
|
-
declare const
|
|
769
|
+
/** Unused: Unused error */
|
|
770
|
+
declare const TUNA_ERROR__UNUSED = 6012;
|
|
751
771
|
/** LiquidationFeeIsOutOfRange: Liquidation fee is out of range */
|
|
752
772
|
declare const TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE = 6013;
|
|
753
773
|
/** LiquidationThresholdIsOutOfRange: Liquidation threshold is out of range */
|
|
@@ -862,7 +882,9 @@ declare const TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR = 6067;
|
|
|
862
882
|
declare const TUNA_ERROR__INVALID_POOL = 6068;
|
|
863
883
|
/** PositionIsEmpty: Position is empty */
|
|
864
884
|
declare const TUNA_ERROR__POSITION_IS_EMPTY = 6069;
|
|
865
|
-
|
|
885
|
+
/** InvalidVault: Vault address is invalid */
|
|
886
|
+
declare const TUNA_ERROR__INVALID_VAULT = 6070;
|
|
887
|
+
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__INCORRECT_SWAP_INPUT_AMOUNT | typeof TUNA_ERROR__INCORRECT_SWAP_OUTPUT_AMOUNT | 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__INVALID_VAULT | typeof TUNA_ERROR__LEFTOVERS_EXCEEDED | typeof TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE | typeof TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE | typeof TUNA_ERROR__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__UNUSED | 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;
|
|
866
888
|
declare function getTunaErrorMessage(code: TunaError): string;
|
|
867
889
|
declare function isTunaError<TProgramErrorCode extends TunaError>(error: unknown, transactionMessage: {
|
|
868
890
|
instructions: Record<number, {
|
|
@@ -904,48 +926,53 @@ declare enum TunaInstruction {
|
|
|
904
926
|
CollectFeesOrca = 6,
|
|
905
927
|
CollectRewardOrca = 7,
|
|
906
928
|
CreateMarket = 8,
|
|
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
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
929
|
+
CreateMarketV2 = 9,
|
|
930
|
+
CreateTunaConfig = 10,
|
|
931
|
+
CreateVault = 11,
|
|
932
|
+
CreateVaultV2 = 12,
|
|
933
|
+
DecreaseTunaLpPositionFusion = 13,
|
|
934
|
+
DecreaseTunaLpPositionOrca = 14,
|
|
935
|
+
Deposit = 15,
|
|
936
|
+
IncreaseTunaLpPositionFusion = 16,
|
|
937
|
+
IncreaseTunaLpPositionOrca = 17,
|
|
938
|
+
LiquidateTunaLpPositionFusion = 18,
|
|
939
|
+
LiquidateTunaLpPositionOrca = 19,
|
|
940
|
+
LiquidateTunaSpotPositionFusion = 20,
|
|
941
|
+
LiquidateTunaSpotPositionJupiter = 21,
|
|
942
|
+
LiquidateTunaSpotPositionOrca = 22,
|
|
943
|
+
ModifyTunaSpotPositionFusion = 23,
|
|
944
|
+
ModifyTunaSpotPositionJupiter = 24,
|
|
945
|
+
ModifyTunaSpotPositionOrca = 25,
|
|
946
|
+
OpenAndIncreaseTunaLpPositionFusion = 26,
|
|
947
|
+
OpenAndIncreaseTunaLpPositionOrca = 27,
|
|
948
|
+
OpenLendingPosition = 28,
|
|
949
|
+
OpenLendingPositionV2 = 29,
|
|
950
|
+
OpenTunaLpPositionFusion = 30,
|
|
951
|
+
OpenTunaLpPositionOrca = 31,
|
|
952
|
+
OpenTunaSpotPosition = 32,
|
|
953
|
+
RebalanceTunaLpPositionFusion = 33,
|
|
954
|
+
RebalanceTunaLpPositionOrca = 34,
|
|
955
|
+
RepayBadDebt = 35,
|
|
956
|
+
RepayTunaLpPositionDebt = 36,
|
|
957
|
+
ResetTunaSpotPosition = 37,
|
|
958
|
+
SetAdminAuthority = 38,
|
|
959
|
+
SetDefaultLiquidationFeeRate = 39,
|
|
960
|
+
SetDefaultMaxPercentageOfLeftovers = 40,
|
|
961
|
+
SetDefaultMaxSwapSlippage = 41,
|
|
962
|
+
SetDefaultOraclePriceDeviationThreshold = 42,
|
|
963
|
+
SetDefaultProtocolFeeRate = 43,
|
|
964
|
+
SetDefaultRebalanceFeeRate = 44,
|
|
965
|
+
SetFeeRecipient = 45,
|
|
966
|
+
SetLiquidatorAuthority = 46,
|
|
967
|
+
SetOwnerAuthority = 47,
|
|
968
|
+
SetSuspendedState = 48,
|
|
969
|
+
SetTunaLpPositionFlags = 49,
|
|
970
|
+
SetTunaLpPositionLimitOrders = 50,
|
|
971
|
+
SetTunaLpPositionRebalanceThreshold = 51,
|
|
972
|
+
SetTunaSpotPositionLimitOrders = 52,
|
|
973
|
+
UpdateMarket = 53,
|
|
974
|
+
UpdateVault = 54,
|
|
975
|
+
Withdraw = 55
|
|
949
976
|
}
|
|
950
977
|
declare function identifyTunaInstruction(instruction: {
|
|
951
978
|
data: ReadonlyUint8Array;
|
|
@@ -969,10 +996,14 @@ type ParsedTunaInstruction<TProgram extends string = 'tuna4uSQZncNeeiAMKbstuxA9C
|
|
|
969
996
|
} & ParsedCollectRewardOrcaInstruction<TProgram>) | ({
|
|
970
997
|
instructionType: TunaInstruction.CreateMarket;
|
|
971
998
|
} & ParsedCreateMarketInstruction<TProgram>) | ({
|
|
999
|
+
instructionType: TunaInstruction.CreateMarketV2;
|
|
1000
|
+
} & ParsedCreateMarketV2Instruction<TProgram>) | ({
|
|
972
1001
|
instructionType: TunaInstruction.CreateTunaConfig;
|
|
973
1002
|
} & ParsedCreateTunaConfigInstruction<TProgram>) | ({
|
|
974
1003
|
instructionType: TunaInstruction.CreateVault;
|
|
975
1004
|
} & ParsedCreateVaultInstruction<TProgram>) | ({
|
|
1005
|
+
instructionType: TunaInstruction.CreateVaultV2;
|
|
1006
|
+
} & ParsedCreateVaultV2Instruction<TProgram>) | ({
|
|
976
1007
|
instructionType: TunaInstruction.DecreaseTunaLpPositionFusion;
|
|
977
1008
|
} & ParsedDecreaseTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
978
1009
|
instructionType: TunaInstruction.DecreaseTunaLpPositionOrca;
|
|
@@ -1005,6 +1036,8 @@ type ParsedTunaInstruction<TProgram extends string = 'tuna4uSQZncNeeiAMKbstuxA9C
|
|
|
1005
1036
|
} & ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram>) | ({
|
|
1006
1037
|
instructionType: TunaInstruction.OpenLendingPosition;
|
|
1007
1038
|
} & ParsedOpenLendingPositionInstruction<TProgram>) | ({
|
|
1039
|
+
instructionType: TunaInstruction.OpenLendingPositionV2;
|
|
1040
|
+
} & ParsedOpenLendingPositionV2Instruction<TProgram>) | ({
|
|
1008
1041
|
instructionType: TunaInstruction.OpenTunaLpPositionFusion;
|
|
1009
1042
|
} & ParsedOpenTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
1010
1043
|
instructionType: TunaInstruction.OpenTunaLpPositionOrca;
|
|
@@ -1023,12 +1056,18 @@ type ParsedTunaInstruction<TProgram extends string = 'tuna4uSQZncNeeiAMKbstuxA9C
|
|
|
1023
1056
|
} & ParsedResetTunaSpotPositionInstruction<TProgram>) | ({
|
|
1024
1057
|
instructionType: TunaInstruction.SetAdminAuthority;
|
|
1025
1058
|
} & ParsedSetAdminAuthorityInstruction<TProgram>) | ({
|
|
1059
|
+
instructionType: TunaInstruction.SetDefaultLiquidationFeeRate;
|
|
1060
|
+
} & ParsedSetDefaultLiquidationFeeRateInstruction<TProgram>) | ({
|
|
1026
1061
|
instructionType: TunaInstruction.SetDefaultMaxPercentageOfLeftovers;
|
|
1027
1062
|
} & ParsedSetDefaultMaxPercentageOfLeftoversInstruction<TProgram>) | ({
|
|
1028
1063
|
instructionType: TunaInstruction.SetDefaultMaxSwapSlippage;
|
|
1029
1064
|
} & ParsedSetDefaultMaxSwapSlippageInstruction<TProgram>) | ({
|
|
1030
1065
|
instructionType: TunaInstruction.SetDefaultOraclePriceDeviationThreshold;
|
|
1031
1066
|
} & ParsedSetDefaultOraclePriceDeviationThresholdInstruction<TProgram>) | ({
|
|
1067
|
+
instructionType: TunaInstruction.SetDefaultProtocolFeeRate;
|
|
1068
|
+
} & ParsedSetDefaultProtocolFeeRateInstruction<TProgram>) | ({
|
|
1069
|
+
instructionType: TunaInstruction.SetDefaultRebalanceFeeRate;
|
|
1070
|
+
} & ParsedSetDefaultRebalanceFeeRateInstruction<TProgram>) | ({
|
|
1032
1071
|
instructionType: TunaInstruction.SetFeeRecipient;
|
|
1033
1072
|
} & ParsedSetFeeRecipientInstruction<TProgram>) | ({
|
|
1034
1073
|
instructionType: TunaInstruction.SetLiquidatorAuthority;
|
|
@@ -1047,8 +1086,6 @@ type ParsedTunaInstruction<TProgram extends string = 'tuna4uSQZncNeeiAMKbstuxA9C
|
|
|
1047
1086
|
} & ParsedSetTunaSpotPositionLimitOrdersInstruction<TProgram>) | ({
|
|
1048
1087
|
instructionType: TunaInstruction.UpdateMarket;
|
|
1049
1088
|
} & ParsedUpdateMarketInstruction<TProgram>) | ({
|
|
1050
|
-
instructionType: TunaInstruction.UpdateMarketVaults;
|
|
1051
|
-
} & ParsedUpdateMarketVaultsInstruction<TProgram>) | ({
|
|
1052
1089
|
instructionType: TunaInstruction.UpdateVault;
|
|
1053
1090
|
} & ParsedUpdateVaultInstruction<TProgram>) | ({
|
|
1054
1091
|
instructionType: TunaInstruction.Withdraw;
|
|
@@ -1920,7 +1957,6 @@ type CreateMarketInstructionData = {
|
|
|
1920
1957
|
protocolFeeOnCollateral: number;
|
|
1921
1958
|
liquidationFee: number;
|
|
1922
1959
|
liquidationThreshold: number;
|
|
1923
|
-
limitOrderExecutionFee: number;
|
|
1924
1960
|
oraclePriceDeviationThreshold: number;
|
|
1925
1961
|
disabled: boolean;
|
|
1926
1962
|
borrowLimitA: bigint;
|
|
@@ -1937,7 +1973,6 @@ type CreateMarketInstructionDataArgs = {
|
|
|
1937
1973
|
protocolFeeOnCollateral: number;
|
|
1938
1974
|
liquidationFee: number;
|
|
1939
1975
|
liquidationThreshold: number;
|
|
1940
|
-
limitOrderExecutionFee: number;
|
|
1941
1976
|
oraclePriceDeviationThreshold: number;
|
|
1942
1977
|
disabled: boolean;
|
|
1943
1978
|
borrowLimitA: number | bigint;
|
|
@@ -1964,7 +1999,6 @@ type CreateMarketInput<TAccountAuthority extends string = string, TAccountTunaCo
|
|
|
1964
1999
|
protocolFeeOnCollateral: CreateMarketInstructionDataArgs['protocolFeeOnCollateral'];
|
|
1965
2000
|
liquidationFee: CreateMarketInstructionDataArgs['liquidationFee'];
|
|
1966
2001
|
liquidationThreshold: CreateMarketInstructionDataArgs['liquidationThreshold'];
|
|
1967
|
-
limitOrderExecutionFee: CreateMarketInstructionDataArgs['limitOrderExecutionFee'];
|
|
1968
2002
|
oraclePriceDeviationThreshold: CreateMarketInstructionDataArgs['oraclePriceDeviationThreshold'];
|
|
1969
2003
|
disabled: CreateMarketInstructionDataArgs['disabled'];
|
|
1970
2004
|
borrowLimitA: CreateMarketInstructionDataArgs['borrowLimitA'];
|
|
@@ -1992,6 +2026,67 @@ type ParsedCreateMarketInstruction<TProgram extends string = typeof TUNA_PROGRAM
|
|
|
1992
2026
|
};
|
|
1993
2027
|
declare function parseCreateMarketInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCreateMarketInstruction<TProgram, TAccountMetas>;
|
|
1994
2028
|
|
|
2029
|
+
/**
|
|
2030
|
+
* This code was AUTOGENERATED using the codama library.
|
|
2031
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2032
|
+
* to add features, then rerun codama to update it.
|
|
2033
|
+
*
|
|
2034
|
+
* @see https://github.com/codama-idl/codama
|
|
2035
|
+
*/
|
|
2036
|
+
|
|
2037
|
+
declare const CREATE_MARKET_V2_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2038
|
+
declare function getCreateMarketV2DiscriminatorBytes(): ReadonlyUint8Array;
|
|
2039
|
+
type CreateMarketV2Instruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountTunaConfig extends string | IAccountMeta<string> = string, TAccountMarket extends string | IAccountMeta<string> = string, TAccountVaultA extends string | IAccountMeta<string> = string, TAccountVaultB extends string | IAccountMeta<string> = string, TAccountPool extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
2040
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2041
|
+
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
2042
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2043
|
+
TAccountVaultA extends string ? ReadonlyAccount<TAccountVaultA> : TAccountVaultA,
|
|
2044
|
+
TAccountVaultB extends string ? ReadonlyAccount<TAccountVaultB> : TAccountVaultB,
|
|
2045
|
+
TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
|
|
2046
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2047
|
+
...TRemainingAccounts
|
|
2048
|
+
]>;
|
|
2049
|
+
type CreateMarketV2InstructionData = {
|
|
2050
|
+
discriminator: ReadonlyUint8Array;
|
|
2051
|
+
addressLookupTable: Address;
|
|
2052
|
+
maxLeverage: number;
|
|
2053
|
+
};
|
|
2054
|
+
type CreateMarketV2InstructionDataArgs = {
|
|
2055
|
+
addressLookupTable: Address;
|
|
2056
|
+
maxLeverage: number;
|
|
2057
|
+
};
|
|
2058
|
+
declare function getCreateMarketV2InstructionDataEncoder(): Encoder<CreateMarketV2InstructionDataArgs>;
|
|
2059
|
+
declare function getCreateMarketV2InstructionDataDecoder(): Decoder<CreateMarketV2InstructionData>;
|
|
2060
|
+
declare function getCreateMarketV2InstructionDataCodec(): Codec<CreateMarketV2InstructionDataArgs, CreateMarketV2InstructionData>;
|
|
2061
|
+
type CreateMarketV2Input<TAccountAuthority extends string = string, TAccountTunaConfig extends string = string, TAccountMarket extends string = string, TAccountVaultA extends string = string, TAccountVaultB extends string = string, TAccountPool extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2062
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2063
|
+
tunaConfig: Address<TAccountTunaConfig>;
|
|
2064
|
+
market: Address<TAccountMarket>;
|
|
2065
|
+
vaultA: Address<TAccountVaultA>;
|
|
2066
|
+
vaultB: Address<TAccountVaultB>;
|
|
2067
|
+
pool: Address<TAccountPool>;
|
|
2068
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2069
|
+
addressLookupTable: CreateMarketV2InstructionDataArgs['addressLookupTable'];
|
|
2070
|
+
maxLeverage: CreateMarketV2InstructionDataArgs['maxLeverage'];
|
|
2071
|
+
};
|
|
2072
|
+
declare function getCreateMarketV2Instruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TAccountMarket extends string, TAccountVaultA extends string, TAccountVaultB extends string, TAccountPool extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: CreateMarketV2Input<TAccountAuthority, TAccountTunaConfig, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountPool, TAccountSystemProgram>, config?: {
|
|
2073
|
+
programAddress?: TProgramAddress;
|
|
2074
|
+
}): CreateMarketV2Instruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountPool, TAccountSystemProgram>;
|
|
2075
|
+
type ParsedCreateMarketV2Instruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
2076
|
+
programAddress: Address<TProgram>;
|
|
2077
|
+
accounts: {
|
|
2078
|
+
authority: TAccountMetas[0];
|
|
2079
|
+
tunaConfig: TAccountMetas[1];
|
|
2080
|
+
market: TAccountMetas[2];
|
|
2081
|
+
vaultA: TAccountMetas[3];
|
|
2082
|
+
vaultB: TAccountMetas[4];
|
|
2083
|
+
pool: TAccountMetas[5];
|
|
2084
|
+
systemProgram: TAccountMetas[6];
|
|
2085
|
+
};
|
|
2086
|
+
data: CreateMarketV2InstructionData;
|
|
2087
|
+
};
|
|
2088
|
+
declare function parseCreateMarketV2Instruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCreateMarketV2Instruction<TProgram, TAccountMetas>;
|
|
2089
|
+
|
|
1995
2090
|
/**
|
|
1996
2091
|
* This code was AUTOGENERATED using the codama library.
|
|
1997
2092
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -2120,6 +2215,79 @@ type ParsedCreateVaultInstruction<TProgram extends string = typeof TUNA_PROGRAM_
|
|
|
2120
2215
|
};
|
|
2121
2216
|
declare function parseCreateVaultInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCreateVaultInstruction<TProgram, TAccountMetas>;
|
|
2122
2217
|
|
|
2218
|
+
/**
|
|
2219
|
+
* This code was AUTOGENERATED using the codama library.
|
|
2220
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2221
|
+
* to add features, then rerun codama to update it.
|
|
2222
|
+
*
|
|
2223
|
+
* @see https://github.com/codama-idl/codama
|
|
2224
|
+
*/
|
|
2225
|
+
|
|
2226
|
+
declare const CREATE_VAULT_V2_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2227
|
+
declare function getCreateVaultV2DiscriminatorBytes(): ReadonlyUint8Array;
|
|
2228
|
+
type CreateVaultV2Instruction<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, TAccountVault extends string | IAccountMeta<string> = string, TAccountVaultAta extends string | IAccountMeta<string> = string, TAccountTokenProgram extends string | IAccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
2229
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2230
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
2231
|
+
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
2232
|
+
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
2233
|
+
TAccountVaultAta extends string ? WritableAccount<TAccountVaultAta> : TAccountVaultAta,
|
|
2234
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2235
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2236
|
+
...TRemainingAccounts
|
|
2237
|
+
]>;
|
|
2238
|
+
type CreateVaultV2InstructionData = {
|
|
2239
|
+
discriminator: ReadonlyUint8Array;
|
|
2240
|
+
id: number;
|
|
2241
|
+
interestRate: bigint;
|
|
2242
|
+
supplyLimit: bigint;
|
|
2243
|
+
pythOraclePriceUpdate: Address;
|
|
2244
|
+
pythOracleFeedId: Address;
|
|
2245
|
+
allowUnsafeTokenExtensions: boolean;
|
|
2246
|
+
};
|
|
2247
|
+
type CreateVaultV2InstructionDataArgs = {
|
|
2248
|
+
id: number;
|
|
2249
|
+
interestRate: number | bigint;
|
|
2250
|
+
supplyLimit: number | bigint;
|
|
2251
|
+
pythOraclePriceUpdate: Address;
|
|
2252
|
+
pythOracleFeedId: Address;
|
|
2253
|
+
allowUnsafeTokenExtensions: boolean;
|
|
2254
|
+
};
|
|
2255
|
+
declare function getCreateVaultV2InstructionDataEncoder(): Encoder<CreateVaultV2InstructionDataArgs>;
|
|
2256
|
+
declare function getCreateVaultV2InstructionDataDecoder(): Decoder<CreateVaultV2InstructionData>;
|
|
2257
|
+
declare function getCreateVaultV2InstructionDataCodec(): Codec<CreateVaultV2InstructionDataArgs, CreateVaultV2InstructionData>;
|
|
2258
|
+
type CreateVaultV2Input<TAccountAuthority extends string = string, TAccountMint extends string = string, TAccountTunaConfig extends string = string, TAccountVault extends string = string, TAccountVaultAta extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2259
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2260
|
+
mint: Address<TAccountMint>;
|
|
2261
|
+
tunaConfig: Address<TAccountTunaConfig>;
|
|
2262
|
+
vault: Address<TAccountVault>;
|
|
2263
|
+
vaultAta: Address<TAccountVaultAta>;
|
|
2264
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2265
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2266
|
+
id: CreateVaultV2InstructionDataArgs['id'];
|
|
2267
|
+
interestRate: CreateVaultV2InstructionDataArgs['interestRate'];
|
|
2268
|
+
supplyLimit: CreateVaultV2InstructionDataArgs['supplyLimit'];
|
|
2269
|
+
pythOraclePriceUpdate: CreateVaultV2InstructionDataArgs['pythOraclePriceUpdate'];
|
|
2270
|
+
pythOracleFeedId: CreateVaultV2InstructionDataArgs['pythOracleFeedId'];
|
|
2271
|
+
allowUnsafeTokenExtensions: CreateVaultV2InstructionDataArgs['allowUnsafeTokenExtensions'];
|
|
2272
|
+
};
|
|
2273
|
+
declare function getCreateVaultV2Instruction<TAccountAuthority extends string, TAccountMint extends string, TAccountTunaConfig extends string, TAccountVault extends string, TAccountVaultAta extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: CreateVaultV2Input<TAccountAuthority, TAccountMint, TAccountTunaConfig, TAccountVault, TAccountVaultAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
2274
|
+
programAddress?: TProgramAddress;
|
|
2275
|
+
}): CreateVaultV2Instruction<TProgramAddress, TAccountAuthority, TAccountMint, TAccountTunaConfig, TAccountVault, TAccountVaultAta, TAccountTokenProgram, TAccountSystemProgram>;
|
|
2276
|
+
type ParsedCreateVaultV2Instruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
2277
|
+
programAddress: Address<TProgram>;
|
|
2278
|
+
accounts: {
|
|
2279
|
+
authority: TAccountMetas[0];
|
|
2280
|
+
mint: TAccountMetas[1];
|
|
2281
|
+
tunaConfig: TAccountMetas[2];
|
|
2282
|
+
vault: TAccountMetas[3];
|
|
2283
|
+
vaultAta: TAccountMetas[4];
|
|
2284
|
+
tokenProgram: TAccountMetas[5];
|
|
2285
|
+
systemProgram: TAccountMetas[6];
|
|
2286
|
+
};
|
|
2287
|
+
data: CreateVaultV2InstructionData;
|
|
2288
|
+
};
|
|
2289
|
+
declare function parseCreateVaultV2Instruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCreateVaultV2Instruction<TProgram, TAccountMetas>;
|
|
2290
|
+
|
|
2123
2291
|
/**
|
|
2124
2292
|
* This code was AUTOGENERATED using the codama library.
|
|
2125
2293
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -4329,12 +4497,12 @@ declare function parseOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram exte
|
|
|
4329
4497
|
|
|
4330
4498
|
declare const OPEN_LENDING_POSITION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
4331
4499
|
declare function getOpenLendingPositionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
4332
|
-
type OpenLendingPositionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountTunaConfig extends string | IAccountMeta<string> = string, TAccountVault extends string | IAccountMeta<string> = string, TAccountLendingPosition extends string | IAccountMeta<string> = string,
|
|
4500
|
+
type OpenLendingPositionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountTunaConfig extends string | IAccountMeta<string> = string, TAccountVault extends string | IAccountMeta<string> = string, TAccountLendingPosition extends string | IAccountMeta<string> = string, TAccountMint extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
4333
4501
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
4334
4502
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
4335
4503
|
TAccountVault extends string ? ReadonlyAccount<TAccountVault> : TAccountVault,
|
|
4336
4504
|
TAccountLendingPosition extends string ? WritableAccount<TAccountLendingPosition> : TAccountLendingPosition,
|
|
4337
|
-
|
|
4505
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
4338
4506
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
4339
4507
|
...TRemainingAccounts
|
|
4340
4508
|
]>;
|
|
@@ -4345,17 +4513,17 @@ type OpenLendingPositionInstructionDataArgs = {};
|
|
|
4345
4513
|
declare function getOpenLendingPositionInstructionDataEncoder(): Encoder<OpenLendingPositionInstructionDataArgs>;
|
|
4346
4514
|
declare function getOpenLendingPositionInstructionDataDecoder(): Decoder<OpenLendingPositionInstructionData>;
|
|
4347
4515
|
declare function getOpenLendingPositionInstructionDataCodec(): Codec<OpenLendingPositionInstructionDataArgs, OpenLendingPositionInstructionData>;
|
|
4348
|
-
type OpenLendingPositionInput<TAccountAuthority extends string = string, TAccountTunaConfig extends string = string, TAccountVault extends string = string, TAccountLendingPosition extends string = string,
|
|
4516
|
+
type OpenLendingPositionInput<TAccountAuthority extends string = string, TAccountTunaConfig extends string = string, TAccountVault extends string = string, TAccountLendingPosition extends string = string, TAccountMint extends string = string, TAccountSystemProgram extends string = string> = {
|
|
4349
4517
|
authority: TransactionSigner<TAccountAuthority>;
|
|
4350
4518
|
tunaConfig: Address<TAccountTunaConfig>;
|
|
4351
4519
|
vault: Address<TAccountVault>;
|
|
4352
4520
|
lendingPosition: Address<TAccountLendingPosition>;
|
|
4353
|
-
|
|
4521
|
+
mint: Address<TAccountMint>;
|
|
4354
4522
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4355
4523
|
};
|
|
4356
|
-
declare function getOpenLendingPositionInstruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TAccountVault extends string, TAccountLendingPosition extends string,
|
|
4524
|
+
declare function getOpenLendingPositionInstruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TAccountVault extends string, TAccountLendingPosition extends string, TAccountMint extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: OpenLendingPositionInput<TAccountAuthority, TAccountTunaConfig, TAccountVault, TAccountLendingPosition, TAccountMint, TAccountSystemProgram>, config?: {
|
|
4357
4525
|
programAddress?: TProgramAddress;
|
|
4358
|
-
}): OpenLendingPositionInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountVault, TAccountLendingPosition,
|
|
4526
|
+
}): OpenLendingPositionInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountVault, TAccountLendingPosition, TAccountMint, TAccountSystemProgram>;
|
|
4359
4527
|
type ParsedOpenLendingPositionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
4360
4528
|
programAddress: Address<TProgram>;
|
|
4361
4529
|
accounts: {
|
|
@@ -4363,13 +4531,61 @@ type ParsedOpenLendingPositionInstruction<TProgram extends string = typeof TUNA_
|
|
|
4363
4531
|
tunaConfig: TAccountMetas[1];
|
|
4364
4532
|
vault: TAccountMetas[2];
|
|
4365
4533
|
lendingPosition: TAccountMetas[3];
|
|
4366
|
-
|
|
4534
|
+
mint: TAccountMetas[4];
|
|
4367
4535
|
systemProgram: TAccountMetas[5];
|
|
4368
4536
|
};
|
|
4369
4537
|
data: OpenLendingPositionInstructionData;
|
|
4370
4538
|
};
|
|
4371
4539
|
declare function parseOpenLendingPositionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedOpenLendingPositionInstruction<TProgram, TAccountMetas>;
|
|
4372
4540
|
|
|
4541
|
+
/**
|
|
4542
|
+
* This code was AUTOGENERATED using the codama library.
|
|
4543
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4544
|
+
* to add features, then rerun codama to update it.
|
|
4545
|
+
*
|
|
4546
|
+
* @see https://github.com/codama-idl/codama
|
|
4547
|
+
*/
|
|
4548
|
+
|
|
4549
|
+
declare const OPEN_LENDING_POSITION_V2_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
4550
|
+
declare function getOpenLendingPositionV2DiscriminatorBytes(): ReadonlyUint8Array;
|
|
4551
|
+
type OpenLendingPositionV2Instruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountMint extends string | IAccountMeta<string> = string, TAccountVault extends string | IAccountMeta<string> = string, TAccountLendingPosition extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
4552
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
4553
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
4554
|
+
TAccountVault extends string ? ReadonlyAccount<TAccountVault> : TAccountVault,
|
|
4555
|
+
TAccountLendingPosition extends string ? WritableAccount<TAccountLendingPosition> : TAccountLendingPosition,
|
|
4556
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
4557
|
+
...TRemainingAccounts
|
|
4558
|
+
]>;
|
|
4559
|
+
type OpenLendingPositionV2InstructionData = {
|
|
4560
|
+
discriminator: ReadonlyUint8Array;
|
|
4561
|
+
};
|
|
4562
|
+
type OpenLendingPositionV2InstructionDataArgs = {};
|
|
4563
|
+
declare function getOpenLendingPositionV2InstructionDataEncoder(): Encoder<OpenLendingPositionV2InstructionDataArgs>;
|
|
4564
|
+
declare function getOpenLendingPositionV2InstructionDataDecoder(): Decoder<OpenLendingPositionV2InstructionData>;
|
|
4565
|
+
declare function getOpenLendingPositionV2InstructionDataCodec(): Codec<OpenLendingPositionV2InstructionDataArgs, OpenLendingPositionV2InstructionData>;
|
|
4566
|
+
type OpenLendingPositionV2Input<TAccountAuthority extends string = string, TAccountMint extends string = string, TAccountVault extends string = string, TAccountLendingPosition extends string = string, TAccountSystemProgram extends string = string> = {
|
|
4567
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
4568
|
+
mint: Address<TAccountMint>;
|
|
4569
|
+
vault: Address<TAccountVault>;
|
|
4570
|
+
lendingPosition: Address<TAccountLendingPosition>;
|
|
4571
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
4572
|
+
};
|
|
4573
|
+
declare function getOpenLendingPositionV2Instruction<TAccountAuthority extends string, TAccountMint extends string, TAccountVault extends string, TAccountLendingPosition extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: OpenLendingPositionV2Input<TAccountAuthority, TAccountMint, TAccountVault, TAccountLendingPosition, TAccountSystemProgram>, config?: {
|
|
4574
|
+
programAddress?: TProgramAddress;
|
|
4575
|
+
}): OpenLendingPositionV2Instruction<TProgramAddress, TAccountAuthority, TAccountMint, TAccountVault, TAccountLendingPosition, TAccountSystemProgram>;
|
|
4576
|
+
type ParsedOpenLendingPositionV2Instruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
4577
|
+
programAddress: Address<TProgram>;
|
|
4578
|
+
accounts: {
|
|
4579
|
+
authority: TAccountMetas[0];
|
|
4580
|
+
mint: TAccountMetas[1];
|
|
4581
|
+
vault: TAccountMetas[2];
|
|
4582
|
+
lendingPosition: TAccountMetas[3];
|
|
4583
|
+
systemProgram: TAccountMetas[4];
|
|
4584
|
+
};
|
|
4585
|
+
data: OpenLendingPositionV2InstructionData;
|
|
4586
|
+
};
|
|
4587
|
+
declare function parseOpenLendingPositionV2Instruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedOpenLendingPositionV2Instruction<TProgram, TAccountMetas>;
|
|
4588
|
+
|
|
4373
4589
|
/**
|
|
4374
4590
|
* This code was AUTOGENERATED using the codama library.
|
|
4375
4591
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -4992,10 +5208,9 @@ declare function parseRebalanceTunaLpPositionOrcaInstruction<TProgram extends st
|
|
|
4992
5208
|
|
|
4993
5209
|
declare const REPAY_BAD_DEBT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
4994
5210
|
declare function getRepayBadDebtDiscriminatorBytes(): ReadonlyUint8Array;
|
|
4995
|
-
type RepayBadDebtInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountMint extends string | IAccountMeta<string> = string,
|
|
5211
|
+
type RepayBadDebtInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountMint 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<[
|
|
4996
5212
|
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
4997
5213
|
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
4998
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
4999
5214
|
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
5000
5215
|
TAccountVaultAta extends string ? WritableAccount<TAccountVaultAta> : TAccountVaultAta,
|
|
5001
5216
|
TAccountAuthorityAta extends string ? WritableAccount<TAccountAuthorityAta> : TAccountAuthorityAta,
|
|
@@ -5015,10 +5230,9 @@ type RepayBadDebtInstructionDataArgs = {
|
|
|
5015
5230
|
declare function getRepayBadDebtInstructionDataEncoder(): Encoder<RepayBadDebtInstructionDataArgs>;
|
|
5016
5231
|
declare function getRepayBadDebtInstructionDataDecoder(): Decoder<RepayBadDebtInstructionData>;
|
|
5017
5232
|
declare function getRepayBadDebtInstructionDataCodec(): Codec<RepayBadDebtInstructionDataArgs, RepayBadDebtInstructionData>;
|
|
5018
|
-
type RepayBadDebtInput<TAccountAuthority extends string = string, TAccountMint extends string = string,
|
|
5233
|
+
type RepayBadDebtInput<TAccountAuthority extends string = string, TAccountMint extends string = string, TAccountVault extends string = string, TAccountVaultAta extends string = string, TAccountAuthorityAta extends string = string, TAccountTokenProgram extends string = string, TAccountMemoProgram extends string = string> = {
|
|
5019
5234
|
authority: TransactionSigner<TAccountAuthority>;
|
|
5020
5235
|
mint: Address<TAccountMint>;
|
|
5021
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
5022
5236
|
vault: Address<TAccountVault>;
|
|
5023
5237
|
vaultAta: Address<TAccountVaultAta>;
|
|
5024
5238
|
authorityAta: Address<TAccountAuthorityAta>;
|
|
@@ -5027,20 +5241,19 @@ type RepayBadDebtInput<TAccountAuthority extends string = string, TAccountMint e
|
|
|
5027
5241
|
funds: RepayBadDebtInstructionDataArgs['funds'];
|
|
5028
5242
|
shares: RepayBadDebtInstructionDataArgs['shares'];
|
|
5029
5243
|
};
|
|
5030
|
-
declare function getRepayBadDebtInstruction<TAccountAuthority extends string, TAccountMint extends string,
|
|
5244
|
+
declare function getRepayBadDebtInstruction<TAccountAuthority extends string, TAccountMint 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: RepayBadDebtInput<TAccountAuthority, TAccountMint, TAccountVault, TAccountVaultAta, TAccountAuthorityAta, TAccountTokenProgram, TAccountMemoProgram>, config?: {
|
|
5031
5245
|
programAddress?: TProgramAddress;
|
|
5032
|
-
}): RepayBadDebtInstruction<TProgramAddress, TAccountAuthority, TAccountMint,
|
|
5246
|
+
}): RepayBadDebtInstruction<TProgramAddress, TAccountAuthority, TAccountMint, TAccountVault, TAccountVaultAta, TAccountAuthorityAta, TAccountTokenProgram, TAccountMemoProgram>;
|
|
5033
5247
|
type ParsedRepayBadDebtInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
5034
5248
|
programAddress: Address<TProgram>;
|
|
5035
5249
|
accounts: {
|
|
5036
5250
|
authority: TAccountMetas[0];
|
|
5037
5251
|
mint: TAccountMetas[1];
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
memoProgram: TAccountMetas[7];
|
|
5252
|
+
vault: TAccountMetas[2];
|
|
5253
|
+
vaultAta: TAccountMetas[3];
|
|
5254
|
+
authorityAta: TAccountMetas[4];
|
|
5255
|
+
tokenProgram: TAccountMetas[5];
|
|
5256
|
+
memoProgram: TAccountMetas[6];
|
|
5044
5257
|
};
|
|
5045
5258
|
data: RepayBadDebtInstructionData;
|
|
5046
5259
|
};
|
|
@@ -5255,6 +5468,49 @@ type ParsedSetAdminAuthorityInstruction<TProgram extends string = typeof TUNA_PR
|
|
|
5255
5468
|
};
|
|
5256
5469
|
declare function parseSetAdminAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedSetAdminAuthorityInstruction<TProgram, TAccountMetas>;
|
|
5257
5470
|
|
|
5471
|
+
/**
|
|
5472
|
+
* This code was AUTOGENERATED using the codama library.
|
|
5473
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5474
|
+
* to add features, then rerun codama to update it.
|
|
5475
|
+
*
|
|
5476
|
+
* @see https://github.com/codama-idl/codama
|
|
5477
|
+
*/
|
|
5478
|
+
|
|
5479
|
+
declare const SET_DEFAULT_LIQUIDATION_FEE_RATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
5480
|
+
declare function getSetDefaultLiquidationFeeRateDiscriminatorBytes(): ReadonlyUint8Array;
|
|
5481
|
+
type SetDefaultLiquidationFeeRateInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountTunaConfig extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
5482
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
5483
|
+
TAccountTunaConfig extends string ? WritableAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
5484
|
+
...TRemainingAccounts
|
|
5485
|
+
]>;
|
|
5486
|
+
type SetDefaultLiquidationFeeRateInstructionData = {
|
|
5487
|
+
discriminator: ReadonlyUint8Array;
|
|
5488
|
+
defaultLiquidationFeeRate: number;
|
|
5489
|
+
};
|
|
5490
|
+
type SetDefaultLiquidationFeeRateInstructionDataArgs = {
|
|
5491
|
+
defaultLiquidationFeeRate: number;
|
|
5492
|
+
};
|
|
5493
|
+
declare function getSetDefaultLiquidationFeeRateInstructionDataEncoder(): Encoder<SetDefaultLiquidationFeeRateInstructionDataArgs>;
|
|
5494
|
+
declare function getSetDefaultLiquidationFeeRateInstructionDataDecoder(): Decoder<SetDefaultLiquidationFeeRateInstructionData>;
|
|
5495
|
+
declare function getSetDefaultLiquidationFeeRateInstructionDataCodec(): Codec<SetDefaultLiquidationFeeRateInstructionDataArgs, SetDefaultLiquidationFeeRateInstructionData>;
|
|
5496
|
+
type SetDefaultLiquidationFeeRateInput<TAccountAuthority extends string = string, TAccountTunaConfig extends string = string> = {
|
|
5497
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
5498
|
+
tunaConfig: Address<TAccountTunaConfig>;
|
|
5499
|
+
defaultLiquidationFeeRate: SetDefaultLiquidationFeeRateInstructionDataArgs['defaultLiquidationFeeRate'];
|
|
5500
|
+
};
|
|
5501
|
+
declare function getSetDefaultLiquidationFeeRateInstruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: SetDefaultLiquidationFeeRateInput<TAccountAuthority, TAccountTunaConfig>, config?: {
|
|
5502
|
+
programAddress?: TProgramAddress;
|
|
5503
|
+
}): SetDefaultLiquidationFeeRateInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig>;
|
|
5504
|
+
type ParsedSetDefaultLiquidationFeeRateInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
5505
|
+
programAddress: Address<TProgram>;
|
|
5506
|
+
accounts: {
|
|
5507
|
+
authority: TAccountMetas[0];
|
|
5508
|
+
tunaConfig: TAccountMetas[1];
|
|
5509
|
+
};
|
|
5510
|
+
data: SetDefaultLiquidationFeeRateInstructionData;
|
|
5511
|
+
};
|
|
5512
|
+
declare function parseSetDefaultLiquidationFeeRateInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedSetDefaultLiquidationFeeRateInstruction<TProgram, TAccountMetas>;
|
|
5513
|
+
|
|
5258
5514
|
/**
|
|
5259
5515
|
* This code was AUTOGENERATED using the codama library.
|
|
5260
5516
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -5384,6 +5640,92 @@ type ParsedSetDefaultOraclePriceDeviationThresholdInstruction<TProgram extends s
|
|
|
5384
5640
|
};
|
|
5385
5641
|
declare function parseSetDefaultOraclePriceDeviationThresholdInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedSetDefaultOraclePriceDeviationThresholdInstruction<TProgram, TAccountMetas>;
|
|
5386
5642
|
|
|
5643
|
+
/**
|
|
5644
|
+
* This code was AUTOGENERATED using the codama library.
|
|
5645
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5646
|
+
* to add features, then rerun codama to update it.
|
|
5647
|
+
*
|
|
5648
|
+
* @see https://github.com/codama-idl/codama
|
|
5649
|
+
*/
|
|
5650
|
+
|
|
5651
|
+
declare const SET_DEFAULT_PROTOCOL_FEE_RATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
5652
|
+
declare function getSetDefaultProtocolFeeRateDiscriminatorBytes(): ReadonlyUint8Array;
|
|
5653
|
+
type SetDefaultProtocolFeeRateInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountTunaConfig extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
5654
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
5655
|
+
TAccountTunaConfig extends string ? WritableAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
5656
|
+
...TRemainingAccounts
|
|
5657
|
+
]>;
|
|
5658
|
+
type SetDefaultProtocolFeeRateInstructionData = {
|
|
5659
|
+
discriminator: ReadonlyUint8Array;
|
|
5660
|
+
defaultProtocolFeeRate: number;
|
|
5661
|
+
};
|
|
5662
|
+
type SetDefaultProtocolFeeRateInstructionDataArgs = {
|
|
5663
|
+
defaultProtocolFeeRate: number;
|
|
5664
|
+
};
|
|
5665
|
+
declare function getSetDefaultProtocolFeeRateInstructionDataEncoder(): Encoder<SetDefaultProtocolFeeRateInstructionDataArgs>;
|
|
5666
|
+
declare function getSetDefaultProtocolFeeRateInstructionDataDecoder(): Decoder<SetDefaultProtocolFeeRateInstructionData>;
|
|
5667
|
+
declare function getSetDefaultProtocolFeeRateInstructionDataCodec(): Codec<SetDefaultProtocolFeeRateInstructionDataArgs, SetDefaultProtocolFeeRateInstructionData>;
|
|
5668
|
+
type SetDefaultProtocolFeeRateInput<TAccountAuthority extends string = string, TAccountTunaConfig extends string = string> = {
|
|
5669
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
5670
|
+
tunaConfig: Address<TAccountTunaConfig>;
|
|
5671
|
+
defaultProtocolFeeRate: SetDefaultProtocolFeeRateInstructionDataArgs['defaultProtocolFeeRate'];
|
|
5672
|
+
};
|
|
5673
|
+
declare function getSetDefaultProtocolFeeRateInstruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: SetDefaultProtocolFeeRateInput<TAccountAuthority, TAccountTunaConfig>, config?: {
|
|
5674
|
+
programAddress?: TProgramAddress;
|
|
5675
|
+
}): SetDefaultProtocolFeeRateInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig>;
|
|
5676
|
+
type ParsedSetDefaultProtocolFeeRateInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
5677
|
+
programAddress: Address<TProgram>;
|
|
5678
|
+
accounts: {
|
|
5679
|
+
authority: TAccountMetas[0];
|
|
5680
|
+
tunaConfig: TAccountMetas[1];
|
|
5681
|
+
};
|
|
5682
|
+
data: SetDefaultProtocolFeeRateInstructionData;
|
|
5683
|
+
};
|
|
5684
|
+
declare function parseSetDefaultProtocolFeeRateInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedSetDefaultProtocolFeeRateInstruction<TProgram, TAccountMetas>;
|
|
5685
|
+
|
|
5686
|
+
/**
|
|
5687
|
+
* This code was AUTOGENERATED using the codama library.
|
|
5688
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5689
|
+
* to add features, then rerun codama to update it.
|
|
5690
|
+
*
|
|
5691
|
+
* @see https://github.com/codama-idl/codama
|
|
5692
|
+
*/
|
|
5693
|
+
|
|
5694
|
+
declare const SET_DEFAULT_REBALANCE_FEE_RATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
5695
|
+
declare function getSetDefaultRebalanceFeeRateDiscriminatorBytes(): ReadonlyUint8Array;
|
|
5696
|
+
type SetDefaultRebalanceFeeRateInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountTunaConfig extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
5697
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
5698
|
+
TAccountTunaConfig extends string ? WritableAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
5699
|
+
...TRemainingAccounts
|
|
5700
|
+
]>;
|
|
5701
|
+
type SetDefaultRebalanceFeeRateInstructionData = {
|
|
5702
|
+
discriminator: ReadonlyUint8Array;
|
|
5703
|
+
defaultRebalanceFeeRate: number;
|
|
5704
|
+
};
|
|
5705
|
+
type SetDefaultRebalanceFeeRateInstructionDataArgs = {
|
|
5706
|
+
defaultRebalanceFeeRate: number;
|
|
5707
|
+
};
|
|
5708
|
+
declare function getSetDefaultRebalanceFeeRateInstructionDataEncoder(): Encoder<SetDefaultRebalanceFeeRateInstructionDataArgs>;
|
|
5709
|
+
declare function getSetDefaultRebalanceFeeRateInstructionDataDecoder(): Decoder<SetDefaultRebalanceFeeRateInstructionData>;
|
|
5710
|
+
declare function getSetDefaultRebalanceFeeRateInstructionDataCodec(): Codec<SetDefaultRebalanceFeeRateInstructionDataArgs, SetDefaultRebalanceFeeRateInstructionData>;
|
|
5711
|
+
type SetDefaultRebalanceFeeRateInput<TAccountAuthority extends string = string, TAccountTunaConfig extends string = string> = {
|
|
5712
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
5713
|
+
tunaConfig: Address<TAccountTunaConfig>;
|
|
5714
|
+
defaultRebalanceFeeRate: SetDefaultRebalanceFeeRateInstructionDataArgs['defaultRebalanceFeeRate'];
|
|
5715
|
+
};
|
|
5716
|
+
declare function getSetDefaultRebalanceFeeRateInstruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: SetDefaultRebalanceFeeRateInput<TAccountAuthority, TAccountTunaConfig>, config?: {
|
|
5717
|
+
programAddress?: TProgramAddress;
|
|
5718
|
+
}): SetDefaultRebalanceFeeRateInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig>;
|
|
5719
|
+
type ParsedSetDefaultRebalanceFeeRateInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
5720
|
+
programAddress: Address<TProgram>;
|
|
5721
|
+
accounts: {
|
|
5722
|
+
authority: TAccountMetas[0];
|
|
5723
|
+
tunaConfig: TAccountMetas[1];
|
|
5724
|
+
};
|
|
5725
|
+
data: SetDefaultRebalanceFeeRateInstructionData;
|
|
5726
|
+
};
|
|
5727
|
+
declare function parseSetDefaultRebalanceFeeRateInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedSetDefaultRebalanceFeeRateInstruction<TProgram, TAccountMetas>;
|
|
5728
|
+
|
|
5387
5729
|
/**
|
|
5388
5730
|
* This code was AUTOGENERATED using the codama library.
|
|
5389
5731
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -5770,7 +6112,6 @@ type UpdateMarketInstructionData = {
|
|
|
5770
6112
|
protocolFeeOnCollateral: number;
|
|
5771
6113
|
liquidationFee: number;
|
|
5772
6114
|
liquidationThreshold: number;
|
|
5773
|
-
limitOrderExecutionFee: number;
|
|
5774
6115
|
oraclePriceDeviationThreshold: number;
|
|
5775
6116
|
disabled: boolean;
|
|
5776
6117
|
borrowLimitA: bigint;
|
|
@@ -5787,7 +6128,6 @@ type UpdateMarketInstructionDataArgs = {
|
|
|
5787
6128
|
protocolFeeOnCollateral: number;
|
|
5788
6129
|
liquidationFee: number;
|
|
5789
6130
|
liquidationThreshold: number;
|
|
5790
|
-
limitOrderExecutionFee: number;
|
|
5791
6131
|
oraclePriceDeviationThreshold: number;
|
|
5792
6132
|
disabled: boolean;
|
|
5793
6133
|
borrowLimitA: number | bigint;
|
|
@@ -5810,7 +6150,6 @@ type UpdateMarketInput<TAccountAuthority extends string = string, TAccountTunaCo
|
|
|
5810
6150
|
protocolFeeOnCollateral: UpdateMarketInstructionDataArgs['protocolFeeOnCollateral'];
|
|
5811
6151
|
liquidationFee: UpdateMarketInstructionDataArgs['liquidationFee'];
|
|
5812
6152
|
liquidationThreshold: UpdateMarketInstructionDataArgs['liquidationThreshold'];
|
|
5813
|
-
limitOrderExecutionFee: UpdateMarketInstructionDataArgs['limitOrderExecutionFee'];
|
|
5814
6153
|
oraclePriceDeviationThreshold: UpdateMarketInstructionDataArgs['oraclePriceDeviationThreshold'];
|
|
5815
6154
|
disabled: UpdateMarketInstructionDataArgs['disabled'];
|
|
5816
6155
|
borrowLimitA: UpdateMarketInstructionDataArgs['borrowLimitA'];
|
|
@@ -5834,55 +6173,6 @@ type ParsedUpdateMarketInstruction<TProgram extends string = typeof TUNA_PROGRAM
|
|
|
5834
6173
|
};
|
|
5835
6174
|
declare function parseUpdateMarketInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedUpdateMarketInstruction<TProgram, TAccountMetas>;
|
|
5836
6175
|
|
|
5837
|
-
/**
|
|
5838
|
-
* This code was AUTOGENERATED using the codama library.
|
|
5839
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5840
|
-
* to add features, then rerun codama to update it.
|
|
5841
|
-
*
|
|
5842
|
-
* @see https://github.com/codama-idl/codama
|
|
5843
|
-
*/
|
|
5844
|
-
|
|
5845
|
-
declare const UPDATE_MARKET_VAULTS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
5846
|
-
declare function getUpdateMarketVaultsDiscriminatorBytes(): ReadonlyUint8Array;
|
|
5847
|
-
type UpdateMarketVaultsInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountTunaConfig extends string | IAccountMeta<string> = string, TAccountMarket extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
5848
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
5849
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
5850
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
5851
|
-
...TRemainingAccounts
|
|
5852
|
-
]>;
|
|
5853
|
-
type UpdateMarketVaultsInstructionData = {
|
|
5854
|
-
discriminator: ReadonlyUint8Array;
|
|
5855
|
-
vaultA: Address;
|
|
5856
|
-
vaultB: Address;
|
|
5857
|
-
};
|
|
5858
|
-
type UpdateMarketVaultsInstructionDataArgs = {
|
|
5859
|
-
vaultA: Address;
|
|
5860
|
-
vaultB: Address;
|
|
5861
|
-
};
|
|
5862
|
-
declare function getUpdateMarketVaultsInstructionDataEncoder(): Encoder<UpdateMarketVaultsInstructionDataArgs>;
|
|
5863
|
-
declare function getUpdateMarketVaultsInstructionDataDecoder(): Decoder<UpdateMarketVaultsInstructionData>;
|
|
5864
|
-
declare function getUpdateMarketVaultsInstructionDataCodec(): Codec<UpdateMarketVaultsInstructionDataArgs, UpdateMarketVaultsInstructionData>;
|
|
5865
|
-
type UpdateMarketVaultsInput<TAccountAuthority extends string = string, TAccountTunaConfig extends string = string, TAccountMarket extends string = string> = {
|
|
5866
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
5867
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
5868
|
-
market: Address<TAccountMarket>;
|
|
5869
|
-
vaultA: UpdateMarketVaultsInstructionDataArgs['vaultA'];
|
|
5870
|
-
vaultB: UpdateMarketVaultsInstructionDataArgs['vaultB'];
|
|
5871
|
-
};
|
|
5872
|
-
declare function getUpdateMarketVaultsInstruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: UpdateMarketVaultsInput<TAccountAuthority, TAccountTunaConfig, TAccountMarket>, config?: {
|
|
5873
|
-
programAddress?: TProgramAddress;
|
|
5874
|
-
}): UpdateMarketVaultsInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMarket>;
|
|
5875
|
-
type ParsedUpdateMarketVaultsInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
5876
|
-
programAddress: Address<TProgram>;
|
|
5877
|
-
accounts: {
|
|
5878
|
-
authority: TAccountMetas[0];
|
|
5879
|
-
tunaConfig: TAccountMetas[1];
|
|
5880
|
-
market: TAccountMetas[2];
|
|
5881
|
-
};
|
|
5882
|
-
data: UpdateMarketVaultsInstructionData;
|
|
5883
|
-
};
|
|
5884
|
-
declare function parseUpdateMarketVaultsInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedUpdateMarketVaultsInstruction<TProgram, TAccountMetas>;
|
|
5885
|
-
|
|
5886
6176
|
/**
|
|
5887
6177
|
* This code was AUTOGENERATED using the codama library.
|
|
5888
6178
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -6008,7 +6298,8 @@ declare function parseWithdrawInstruction<TProgram extends string, TAccountMetas
|
|
|
6008
6298
|
declare function getTunaConfigAddress(): Promise<ProgramDerivedAddress>;
|
|
6009
6299
|
declare function getMarketAddress(pool: Address): Promise<ProgramDerivedAddress>;
|
|
6010
6300
|
declare function getLendingVaultAddress(mint: Address): Promise<ProgramDerivedAddress>;
|
|
6011
|
-
declare function
|
|
6301
|
+
declare function getLendingVaultV2Address(mint: Address, id: number): Promise<ProgramDerivedAddress>;
|
|
6302
|
+
declare function getLendingPositionAddress(authority: Address, mintOrVault: Address): Promise<ProgramDerivedAddress>;
|
|
6012
6303
|
declare function getTunaLpPositionAddress(positionMint: Address): Promise<ProgramDerivedAddress>;
|
|
6013
6304
|
declare function getTunaSpotPositionAddress(authority: Address, pool: Address): Promise<ProgramDerivedAddress>;
|
|
6014
6305
|
declare function getPythPriceUpdateAccountAddress(shardId: number, priceFeedId: Buffer | string): Promise<ProgramDerivedAddress>;
|
|
@@ -6038,6 +6329,7 @@ type LendingPositionFilter = GetProgramAccountsMemcmpFilter & {
|
|
|
6038
6329
|
};
|
|
6039
6330
|
declare function lendingPositionAuthorityFilter(address: Address): LendingPositionFilter;
|
|
6040
6331
|
declare function lendingPositionMintFilter(address: Address): LendingPositionFilter;
|
|
6332
|
+
declare function lendingPositionVaultFilter(address: Address): LendingPositionFilter;
|
|
6041
6333
|
declare function fetchAllLendingPositionWithFilter(rpc: Rpc<GetProgramAccountsApi>, ...filters: LendingPositionFilter[]): Promise<Account<LendingPosition>[]>;
|
|
6042
6334
|
|
|
6043
6335
|
type MarketFilter = GetProgramAccountsMemcmpFilter & {
|
|
@@ -6086,49 +6378,6 @@ type CreateAddressLookupTableResult = {
|
|
|
6086
6378
|
};
|
|
6087
6379
|
declare function createAddressLookupTableInstructions(authority: TransactionSigner, addresses: Address[], recentSlot: Slot): Promise<CreateAddressLookupTableResult>;
|
|
6088
6380
|
|
|
6089
|
-
type IncreaseLpPositionQuoteArgs = {
|
|
6090
|
-
/** Collateral in token A or COMPUTED_AMOUNT. */
|
|
6091
|
-
collateralA: bigint;
|
|
6092
|
-
/** Collateral in token B or COMPUTED_AMOUNT. */
|
|
6093
|
-
collateralB: bigint;
|
|
6094
|
-
/** Amount to borrow in token A. Must be set to COMPUTED_AMOUNT if collateralA is COMPUTED_AMOUNT. */
|
|
6095
|
-
borrowA: bigint;
|
|
6096
|
-
/** Amount to borrow in token B. Must be set to COMPUTED_AMOUNT if collateralB is COMPUTED_AMOUNT. */
|
|
6097
|
-
borrowB: bigint;
|
|
6098
|
-
/** Protocol fee rate from a market account represented as hundredths of a basis point (0.01% = 100).*/
|
|
6099
|
-
protocolFeeRate: number;
|
|
6100
|
-
/** Protocol fee rate from a market account represented as hundredths of a basis point (0.01% = 100). */
|
|
6101
|
-
protocolFeeRateOnCollateral: number;
|
|
6102
|
-
/** The swap fee rate of a pool denominated in 1e6. */
|
|
6103
|
-
swapFeeRate: number;
|
|
6104
|
-
/** Current sqrt price. */
|
|
6105
|
-
sqrtPrice: bigint;
|
|
6106
|
-
/** Position lower tick index. */
|
|
6107
|
-
tickLowerIndex: number;
|
|
6108
|
-
/** Position upper tick index. */
|
|
6109
|
-
tickUpperIndex: number;
|
|
6110
|
-
/** Maximum slippage of the position total amount represented as hundredths of a basis point (0.01% = 100). */
|
|
6111
|
-
maxAmountSlippage: number;
|
|
6112
|
-
};
|
|
6113
|
-
type IncreaseLpPositionQuoteResult = {
|
|
6114
|
-
collateralA: bigint;
|
|
6115
|
-
collateralB: bigint;
|
|
6116
|
-
maxCollateralA: bigint;
|
|
6117
|
-
maxCollateralB: bigint;
|
|
6118
|
-
borrowA: bigint;
|
|
6119
|
-
borrowB: bigint;
|
|
6120
|
-
totalA: bigint;
|
|
6121
|
-
totalB: bigint;
|
|
6122
|
-
minTotalA: bigint;
|
|
6123
|
-
minTotalB: bigint;
|
|
6124
|
-
swapInput: bigint;
|
|
6125
|
-
swapOutput: bigint;
|
|
6126
|
-
swapAToB: boolean;
|
|
6127
|
-
protocolFeeA: bigint;
|
|
6128
|
-
protocolFeeB: bigint;
|
|
6129
|
-
};
|
|
6130
|
-
declare function getIncreaseLpPositionQuote(args: IncreaseLpPositionQuoteArgs): IncreaseLpPositionQuoteResult;
|
|
6131
|
-
|
|
6132
6381
|
type IncreaseTunaLpPositionOrcaInstructionsArgs = Omit<IncreaseTunaLpPositionOrcaInstructionDataArgs, "remainingAccountsInfo" | "minAddedAmountA" | "minAddedAmountB"> & {
|
|
6133
6382
|
maxAmountSlippage: number;
|
|
6134
6383
|
};
|
|
@@ -6159,7 +6408,9 @@ declare function collectFeesFusionInstruction(authority: TransactionSigner, tuna
|
|
|
6159
6408
|
|
|
6160
6409
|
declare function openLendingPositionInstruction(authority: TransactionSigner, mintAddress: Address): Promise<IInstruction>;
|
|
6161
6410
|
|
|
6162
|
-
declare function
|
|
6411
|
+
declare function openLendingPositionV2Instruction(authority: TransactionSigner, mint: Address, vault: Address): Promise<IInstruction>;
|
|
6412
|
+
|
|
6413
|
+
declare function openLendingPositionAndDepositInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, mintAddress: Address, vaultAddress: Address | undefined, amount: bigint): Promise<IInstruction[]>;
|
|
6163
6414
|
|
|
6164
6415
|
declare function closeActiveTunaLpPositionOrcaInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, positionMint: Address, args: CloseActiveTunaLpPositionInstructionArgs): Promise<IInstruction[]>;
|
|
6165
6416
|
|
|
@@ -6190,8 +6441,10 @@ declare function createTunaConfigInstruction(authority: TransactionSigner, owner
|
|
|
6190
6441
|
|
|
6191
6442
|
declare function createVaultInstructions(authority: TransactionSigner, mint: Account<Mint>, args: CreateVaultInstructionDataArgs): Promise<IInstruction[]>;
|
|
6192
6443
|
|
|
6193
|
-
declare function
|
|
6194
|
-
|
|
6444
|
+
declare function createVaultV2Instructions(authority: TransactionSigner, vault: Address, mint: Account<Mint>, args: CreateVaultV2InstructionDataArgs): Promise<IInstruction[]>;
|
|
6445
|
+
|
|
6446
|
+
declare function depositInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, mintAddress: Address | undefined, vaultAddress: Address | undefined, amount: bigint): Promise<IInstruction[]>;
|
|
6447
|
+
declare function depositInstruction(authority: TransactionSigner, mint: Account<Mint>, vault: Address | undefined, amount: bigint): Promise<IInstruction>;
|
|
6195
6448
|
|
|
6196
6449
|
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[]>;
|
|
6197
6450
|
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>;
|
|
@@ -6265,10 +6518,10 @@ declare function resetTunaSpotPositionInstruction(rpc: Rpc<GetAccountInfoApi & G
|
|
|
6265
6518
|
|
|
6266
6519
|
declare function updateMarketInstruction(authority: TransactionSigner, pool: Address, args: UpdateMarketInstructionDataArgs): Promise<IInstruction>;
|
|
6267
6520
|
|
|
6268
|
-
declare function updateVaultInstruction(authority: TransactionSigner,
|
|
6521
|
+
declare function updateVaultInstruction(authority: TransactionSigner, vault: Address, args: UpdateVaultInstructionDataArgs): Promise<IInstruction>;
|
|
6269
6522
|
|
|
6270
|
-
declare function withdrawInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, mintAddress: Address, funds: bigint, shares: bigint): Promise<IInstruction[]>;
|
|
6271
|
-
declare function withdrawInstruction(authority: TransactionSigner, mint: Account<Mint>, funds: bigint, shares: bigint): Promise<IInstruction>;
|
|
6523
|
+
declare function withdrawInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, mintAddress: Address | undefined, vaultAddress: Address | undefined, funds: bigint, shares: bigint): Promise<IInstruction[]>;
|
|
6524
|
+
declare function withdrawInstruction(authority: TransactionSigner, mint: Account<Mint>, vault: Address | undefined, funds: bigint, shares: bigint): Promise<IInstruction>;
|
|
6272
6525
|
|
|
6273
6526
|
declare function createAddressLookupTableForMarketInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, poolAddress: Address, marketMaker: MarketMaker, authority: TransactionSigner, recentSlot: Slot): Promise<CreateAddressLookupTableResult>;
|
|
6274
6527
|
declare function extendAddressLookupTableForMarketInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, poolAddress: Address, marketMaker: MarketMaker, authority: TransactionSigner, lookupTableAddress: Address): Promise<CreateAddressLookupTableResult>;
|
|
@@ -6301,7 +6554,6 @@ declare const LEVERAGE_ONE = 1000000;
|
|
|
6301
6554
|
declare const MAX_LEVERAGE: number;
|
|
6302
6555
|
declare const MAX_PROTOCOL_FEE: number;
|
|
6303
6556
|
declare const MAX_LIQUIDATION_FEE: number;
|
|
6304
|
-
declare const MAX_LIMIT_ORDER_EXECUTION_FEE: number;
|
|
6305
6557
|
declare const DEFAULT_MAX_SWAP_SLIPPAGE: number;
|
|
6306
6558
|
declare const MAX_LIQUIDATION_THRESHOLD: number;
|
|
6307
6559
|
declare const NO_LOWER_LIMIT_ORDER = -2147483648;
|
|
@@ -6322,4 +6574,4 @@ declare const JUPITER_PROGRAM_AUTHORITY: _solana_kit.Address<"9nnLbotNTcUhvbrsA6
|
|
|
6322
6574
|
declare const MIN_SQRT_PRICE = 4295048016n;
|
|
6323
6575
|
declare const MAX_SQRT_PRICE = 79226673515401279992447579055n;
|
|
6324
6576
|
|
|
6325
|
-
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_JUPITER_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 LiquidateTunaSpotPositionJupiterInput, type LiquidateTunaSpotPositionJupiterInstruction, type LiquidateTunaSpotPositionJupiterInstructionData, type LiquidateTunaSpotPositionJupiterInstructionDataArgs, 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 ParsedLiquidateTunaSpotPositionJupiterInstruction, 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 ParsedUpdateMarketVaultsInstruction, 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__INCORRECT_SWAP_OUTPUT_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_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_MARKET_VAULTS_DISCRIMINATOR, UPDATE_VAULT_DISCRIMINATOR, type UpdateMarketInput, type UpdateMarketInstruction, type UpdateMarketInstructionData, type UpdateMarketInstructionDataArgs, type UpdateMarketVaultsInput, type UpdateMarketVaultsInstruction, type UpdateMarketVaultsInstructionData, type UpdateMarketVaultsInstructionDataArgs, 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, getLiquidateTunaSpotPositionJupiterDiscriminatorBytes, getLiquidateTunaSpotPositionJupiterInstruction, getLiquidateTunaSpotPositionJupiterInstructionDataCodec, getLiquidateTunaSpotPositionJupiterInstructionDataDecoder, getLiquidateTunaSpotPositionJupiterInstructionDataEncoder, getLiquidateTunaSpotPositionOrcaDiscriminatorBytes, getLiquidateTunaSpotPositionOrcaInstruction, getLiquidateTunaSpotPositionOrcaInstructionDataCodec, getLiquidateTunaSpotPositionOrcaInstructionDataDecoder, getLiquidateTunaSpotPositionOrcaInstructionDataEncoder, getMarketAddress, getMarketCodec, getMarketDecoder, getMarketDiscriminatorBytes, getMarketEncoder, getMarketMakerCodec, getMarketMakerDecoder, getMarketMakerEncoder, getMarketSize, getModifyTunaSpotPositionFusionDiscriminatorBytes, getModifyTunaSpotPositionFusionInstruction, getModifyTunaSpotPositionFusionInstructionDataCodec, getModifyTunaSpotPositionFusionInstructionDataDecoder, getModifyTunaSpotPositionFusionInstructionDataEncoder, getModifyTunaSpotPositionJupiterDiscriminatorBytes, getModifyTunaSpotPositionJupiterInstruction, getModifyTunaSpotPositionJupiterInstructionDataCodec, getModifyTunaSpotPositionJupiterInstructionDataDecoder, getModifyTunaSpotPositionJupiterInstructionDataEncoder, getModifyTunaSpotPositionOrcaDiscriminatorBytes, getModifyTunaSpotPositionOrcaInstruction, getModifyTunaSpotPositionOrcaInstructionDataCodec, getModifyTunaSpotPositionOrcaInstructionDataDecoder, getModifyTunaSpotPositionOrcaInstructionDataEncoder, getOpenAndIncreaseTunaLpPositionFusionDiscriminatorBytes, getOpenAndIncreaseTunaLpPositionFusionInstruction, getOpenAndIncreaseTunaLpPositionFusionInstructionDataCodec, getOpenAndIncreaseTunaLpPositionFusionInstructionDataDecoder, getOpenAndIncreaseTunaLpPositionFusionInstructionDataEncoder, 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, getUpdateMarketVaultsDiscriminatorBytes, getUpdateMarketVaultsInstruction, getUpdateMarketVaultsInstructionDataCodec, getUpdateMarketVaultsInstructionDataDecoder, getUpdateMarketVaultsInstructionDataEncoder, 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, liquidateTunaSpotPositionJupiterInstruction, liquidateTunaSpotPositionJupiterInstructions, liquidateTunaSpotPositionOrcaInstruction, liquidateTunaSpotPositionOrcaInstructions, modifyTunaSpotPositionFusionInstruction, modifyTunaSpotPositionFusionInstructions, modifyTunaSpotPositionJupiterInstruction, modifyTunaSpotPositionJupiterInstructions, 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, parseLiquidateTunaSpotPositionJupiterInstruction, 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, parseUpdateMarketVaultsInstruction, 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 };
|
|
6577
|
+
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_MARKET_V2_DISCRIMINATOR, CREATE_TUNA_CONFIG_DISCRIMINATOR, CREATE_VAULT_DISCRIMINATOR, CREATE_VAULT_V2_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 CreateMarketV2Input, type CreateMarketV2Instruction, type CreateMarketV2InstructionData, type CreateMarketV2InstructionDataArgs, type CreateTunaConfigInput, type CreateTunaConfigInstruction, type CreateTunaConfigInstructionData, type CreateTunaConfigInstructionDataArgs, type CreateVaultInput, type CreateVaultInstruction, type CreateVaultInstructionData, type CreateVaultInstructionDataArgs, type CreateVaultV2Input, type CreateVaultV2Instruction, type CreateVaultV2InstructionData, type CreateVaultV2InstructionDataArgs, DECREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, DECREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, DEFAULT_ADDRESS, DEFAULT_MAX_SWAP_SLIPPAGE, DEFAULT_PUSH_ORACLE_PROGRAM_ID, DEPOSIT_DISCRIMINATOR, type DecreaseTunaLpPositionFusionInput, type DecreaseTunaLpPositionFusionInstruction, type DecreaseTunaLpPositionFusionInstructionData, type DecreaseTunaLpPositionFusionInstructionDataArgs, type DecreaseTunaLpPositionFusionInstructionsArgs, type DecreaseTunaLpPositionOrcaInput, type DecreaseTunaLpPositionOrcaInstruction, type DecreaseTunaLpPositionOrcaInstructionData, type DecreaseTunaLpPositionOrcaInstructionDataArgs, type DecreaseTunaLpPositionOrcaInstructionsArgs, type DepositInput, type DepositInstruction, type DepositInstructionData, type DepositInstructionDataArgs, FusionUtils, HUNDRED_PERCENT, HUNDRED_PERCENTn, INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, type IncreaseTunaLpPositionFusionInput, type IncreaseTunaLpPositionFusionInstruction, type IncreaseTunaLpPositionFusionInstructionData, type IncreaseTunaLpPositionFusionInstructionDataArgs, type IncreaseTunaLpPositionFusionInstructionsArgs, type IncreaseTunaLpPositionOrcaInput, type IncreaseTunaLpPositionOrcaInstruction, type IncreaseTunaLpPositionOrcaInstructionData, type IncreaseTunaLpPositionOrcaInstructionDataArgs, type IncreaseTunaLpPositionOrcaInstructionsArgs, JUPITER_EVENT_AUTHORITY, JUPITER_PROGRAM_AUTHORITY, 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_JUPITER_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 LiquidateTunaSpotPositionJupiterInput, type LiquidateTunaSpotPositionJupiterInstruction, type LiquidateTunaSpotPositionJupiterInstructionData, type LiquidateTunaSpotPositionJupiterInstructionDataArgs, type LiquidateTunaSpotPositionOrcaInput, type LiquidateTunaSpotPositionOrcaInstruction, type LiquidateTunaSpotPositionOrcaInstructionData, type LiquidateTunaSpotPositionOrcaInstructionDataArgs, MARKET_DISCRIMINATOR, MAX_LEVERAGE, MAX_LIQUIDATION_FEE, MAX_LIQUIDATION_THRESHOLD, MAX_PROTOCOL_FEE, MAX_SQRT_PRICE, MIN_SQRT_PRICE, MODIFY_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR, MODIFY_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR, MODIFY_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR, type Market, type MarketArgs, MarketMaker, type MarketMakerArgs, type ModifyTunaSpotPositionFusionInput, type ModifyTunaSpotPositionFusionInstruction, type ModifyTunaSpotPositionFusionInstructionData, type ModifyTunaSpotPositionFusionInstructionDataArgs, type ModifyTunaSpotPositionFusionInstructionsArgs, type ModifyTunaSpotPositionJupiterInput, type ModifyTunaSpotPositionJupiterInstruction, type ModifyTunaSpotPositionJupiterInstructionData, type ModifyTunaSpotPositionJupiterInstructionDataArgs, type 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_LENDING_POSITION_V2_DISCRIMINATOR, OPEN_TUNA_LP_POSITION_FUSION_DISCRIMINATOR, OPEN_TUNA_LP_POSITION_ORCA_DISCRIMINATOR, OPEN_TUNA_SPOT_POSITION_DISCRIMINATOR, type OpenAndIncreaseTunaLpPositionFusion, type OpenAndIncreaseTunaLpPositionFusionInput, type OpenAndIncreaseTunaLpPositionFusionInstruction, type OpenAndIncreaseTunaLpPositionFusionInstructionData, type OpenAndIncreaseTunaLpPositionFusionInstructionDataArgs, type OpenAndIncreaseTunaLpPositionFusionInstructionsArgs, type OpenAndIncreaseTunaLpPositionOrca, type OpenAndIncreaseTunaLpPositionOrcaInput, type OpenAndIncreaseTunaLpPositionOrcaInstruction, type OpenAndIncreaseTunaLpPositionOrcaInstructionData, type OpenAndIncreaseTunaLpPositionOrcaInstructionDataArgs, type OpenAndIncreaseTunaLpPositionOrcaInstructionsArgs, type OpenLendingPositionInput, type OpenLendingPositionInstruction, type OpenLendingPositionInstructionData, type OpenLendingPositionInstructionDataArgs, type OpenLendingPositionV2Input, type OpenLendingPositionV2Instruction, type OpenLendingPositionV2InstructionData, type OpenLendingPositionV2InstructionDataArgs, type OpenTunaLpPositionFusionInput, type OpenTunaLpPositionFusionInstruction, type OpenTunaLpPositionFusionInstructionData, type OpenTunaLpPositionFusionInstructionDataArgs, type OpenTunaLpPositionOrcaInput, type OpenTunaLpPositionOrcaInstruction, type OpenTunaLpPositionOrcaInstructionData, type OpenTunaLpPositionOrcaInstructionDataArgs, type OpenTunaSpotPositionInput, type OpenTunaSpotPositionInstruction, type OpenTunaSpotPositionInstructionData, type OpenTunaSpotPositionInstructionDataArgs, OrcaUtils, type ParsedCloseTunaLpPositionFusionInstruction, type ParsedCloseTunaLpPositionOrcaInstruction, type ParsedCloseTunaSpotPositionInstruction, type ParsedCollectAndCompoundFeesFusionInstruction, type ParsedCollectAndCompoundFeesOrcaInstruction, type ParsedCollectFeesFusionInstruction, type ParsedCollectFeesOrcaInstruction, type ParsedCollectRewardOrcaInstruction, type ParsedCreateMarketInstruction, type ParsedCreateMarketV2Instruction, type ParsedCreateTunaConfigInstruction, type ParsedCreateVaultInstruction, type ParsedCreateVaultV2Instruction, type ParsedDecreaseTunaLpPositionFusionInstruction, type ParsedDecreaseTunaLpPositionOrcaInstruction, type ParsedDepositInstruction, type ParsedIncreaseTunaLpPositionFusionInstruction, type ParsedIncreaseTunaLpPositionOrcaInstruction, type ParsedLiquidateTunaLpPositionFusionInstruction, type ParsedLiquidateTunaLpPositionOrcaInstruction, type ParsedLiquidateTunaSpotPositionFusionInstruction, type ParsedLiquidateTunaSpotPositionJupiterInstruction, type ParsedLiquidateTunaSpotPositionOrcaInstruction, type ParsedModifyTunaSpotPositionFusionInstruction, type ParsedModifyTunaSpotPositionJupiterInstruction, type ParsedModifyTunaSpotPositionOrcaInstruction, type ParsedOpenAndIncreaseTunaLpPositionFusionInstruction, type ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction, type ParsedOpenLendingPositionInstruction, type ParsedOpenLendingPositionV2Instruction, type ParsedOpenTunaLpPositionFusionInstruction, type ParsedOpenTunaLpPositionOrcaInstruction, type ParsedOpenTunaSpotPositionInstruction, type ParsedRebalanceTunaLpPositionFusionInstruction, type ParsedRebalanceTunaLpPositionOrcaInstruction, type ParsedRepayBadDebtInstruction, type ParsedRepayTunaLpPositionDebtInstruction, type ParsedResetTunaSpotPositionInstruction, type ParsedSetAdminAuthorityInstruction, type ParsedSetDefaultLiquidationFeeRateInstruction, type ParsedSetDefaultMaxPercentageOfLeftoversInstruction, type ParsedSetDefaultMaxSwapSlippageInstruction, type ParsedSetDefaultOraclePriceDeviationThresholdInstruction, type ParsedSetDefaultProtocolFeeRateInstruction, type ParsedSetDefaultRebalanceFeeRateInstruction, 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_LIQUIDATION_FEE_RATE_DISCRIMINATOR, SET_DEFAULT_MAX_PERCENTAGE_OF_LEFTOVERS_DISCRIMINATOR, SET_DEFAULT_MAX_SWAP_SLIPPAGE_DISCRIMINATOR, SET_DEFAULT_ORACLE_PRICE_DEVIATION_THRESHOLD_DISCRIMINATOR, SET_DEFAULT_PROTOCOL_FEE_RATE_DISCRIMINATOR, SET_DEFAULT_REBALANCE_FEE_RATE_DISCRIMINATOR, SET_FEE_RECIPIENT_DISCRIMINATOR, SET_LIQUIDATOR_AUTHORITY_DISCRIMINATOR, SET_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 SetDefaultLiquidationFeeRateInput, type SetDefaultLiquidationFeeRateInstruction, type SetDefaultLiquidationFeeRateInstructionData, type SetDefaultLiquidationFeeRateInstructionDataArgs, 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 SetDefaultProtocolFeeRateInput, type SetDefaultProtocolFeeRateInstruction, type SetDefaultProtocolFeeRateInstructionData, type SetDefaultProtocolFeeRateInstructionDataArgs, type SetDefaultRebalanceFeeRateInput, type SetDefaultRebalanceFeeRateInstruction, type SetDefaultRebalanceFeeRateInstructionData, type SetDefaultRebalanceFeeRateInstructionDataArgs, type SetFeeRecipientInput, type SetFeeRecipientInstruction, type SetFeeRecipientInstructionData, type SetFeeRecipientInstructionDataArgs, type SetLiquidatorAuthorityInput, type SetLiquidatorAuthorityInstruction, type SetLiquidatorAuthorityInstructionData, type SetLiquidatorAuthorityInstructionDataArgs, type 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__INCORRECT_SWAP_OUTPUT_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__INVALID_VAULT, TUNA_ERROR__LEFTOVERS_EXCEEDED, TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE, TUNA_ERROR__LIQUIDATION_THRESHOLD_IS_OUT_OF_RANGE, TUNA_ERROR__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__UNUSED, 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, createVaultV2Instructions, 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, getCreateMarketV2DiscriminatorBytes, getCreateMarketV2Instruction, getCreateMarketV2InstructionDataCodec, getCreateMarketV2InstructionDataDecoder, getCreateMarketV2InstructionDataEncoder, getCreateTunaConfigDiscriminatorBytes, getCreateTunaConfigInstruction, getCreateTunaConfigInstructionDataCodec, getCreateTunaConfigInstructionDataDecoder, getCreateTunaConfigInstructionDataEncoder, getCreateVaultDiscriminatorBytes, getCreateVaultInstruction, getCreateVaultInstructionDataCodec, getCreateVaultInstructionDataDecoder, getCreateVaultInstructionDataEncoder, getCreateVaultV2DiscriminatorBytes, getCreateVaultV2Instruction, getCreateVaultV2InstructionDataCodec, getCreateVaultV2InstructionDataDecoder, getCreateVaultV2InstructionDataEncoder, getDecreaseTunaLpPositionFusionDiscriminatorBytes, getDecreaseTunaLpPositionFusionInstruction, getDecreaseTunaLpPositionFusionInstructionDataCodec, getDecreaseTunaLpPositionFusionInstructionDataDecoder, getDecreaseTunaLpPositionFusionInstructionDataEncoder, getDecreaseTunaLpPositionOrcaDiscriminatorBytes, getDecreaseTunaLpPositionOrcaInstruction, getDecreaseTunaLpPositionOrcaInstructionDataCodec, getDecreaseTunaLpPositionOrcaInstructionDataDecoder, getDecreaseTunaLpPositionOrcaInstructionDataEncoder, getDepositDiscriminatorBytes, getDepositInstruction, getDepositInstructionDataCodec, getDepositInstructionDataDecoder, getDepositInstructionDataEncoder, getIncreaseTunaLpPositionFusionDiscriminatorBytes, getIncreaseTunaLpPositionFusionInstruction, getIncreaseTunaLpPositionFusionInstructionDataCodec, getIncreaseTunaLpPositionFusionInstructionDataDecoder, getIncreaseTunaLpPositionFusionInstructionDataEncoder, getIncreaseTunaLpPositionOrcaDiscriminatorBytes, getIncreaseTunaLpPositionOrcaInstruction, getIncreaseTunaLpPositionOrcaInstructionDataCodec, getIncreaseTunaLpPositionOrcaInstructionDataDecoder, getIncreaseTunaLpPositionOrcaInstructionDataEncoder, getLendingPositionAddress, getLendingPositionCodec, getLendingPositionDecoder, getLendingPositionDiscriminatorBytes, getLendingPositionEncoder, getLendingPositionSize, getLendingVaultAddress, getLendingVaultV2Address, getLiquidateTunaLpPositionFusionDiscriminatorBytes, getLiquidateTunaLpPositionFusionInstruction, getLiquidateTunaLpPositionFusionInstructionDataCodec, getLiquidateTunaLpPositionFusionInstructionDataDecoder, getLiquidateTunaLpPositionFusionInstructionDataEncoder, getLiquidateTunaLpPositionOrcaDiscriminatorBytes, getLiquidateTunaLpPositionOrcaInstruction, getLiquidateTunaLpPositionOrcaInstructionDataCodec, getLiquidateTunaLpPositionOrcaInstructionDataDecoder, getLiquidateTunaLpPositionOrcaInstructionDataEncoder, getLiquidateTunaSpotPositionFusionDiscriminatorBytes, getLiquidateTunaSpotPositionFusionInstruction, getLiquidateTunaSpotPositionFusionInstructionDataCodec, getLiquidateTunaSpotPositionFusionInstructionDataDecoder, getLiquidateTunaSpotPositionFusionInstructionDataEncoder, getLiquidateTunaSpotPositionJupiterDiscriminatorBytes, getLiquidateTunaSpotPositionJupiterInstruction, getLiquidateTunaSpotPositionJupiterInstructionDataCodec, getLiquidateTunaSpotPositionJupiterInstructionDataDecoder, getLiquidateTunaSpotPositionJupiterInstructionDataEncoder, getLiquidateTunaSpotPositionOrcaDiscriminatorBytes, getLiquidateTunaSpotPositionOrcaInstruction, getLiquidateTunaSpotPositionOrcaInstructionDataCodec, getLiquidateTunaSpotPositionOrcaInstructionDataDecoder, getLiquidateTunaSpotPositionOrcaInstructionDataEncoder, getMarketAddress, getMarketCodec, getMarketDecoder, getMarketDiscriminatorBytes, getMarketEncoder, getMarketMakerCodec, getMarketMakerDecoder, getMarketMakerEncoder, getMarketSize, getModifyTunaSpotPositionFusionDiscriminatorBytes, getModifyTunaSpotPositionFusionInstruction, getModifyTunaSpotPositionFusionInstructionDataCodec, getModifyTunaSpotPositionFusionInstructionDataDecoder, getModifyTunaSpotPositionFusionInstructionDataEncoder, getModifyTunaSpotPositionJupiterDiscriminatorBytes, getModifyTunaSpotPositionJupiterInstruction, getModifyTunaSpotPositionJupiterInstructionDataCodec, getModifyTunaSpotPositionJupiterInstructionDataDecoder, getModifyTunaSpotPositionJupiterInstructionDataEncoder, getModifyTunaSpotPositionOrcaDiscriminatorBytes, getModifyTunaSpotPositionOrcaInstruction, getModifyTunaSpotPositionOrcaInstructionDataCodec, getModifyTunaSpotPositionOrcaInstructionDataDecoder, getModifyTunaSpotPositionOrcaInstructionDataEncoder, getOpenAndIncreaseTunaLpPositionFusionDiscriminatorBytes, getOpenAndIncreaseTunaLpPositionFusionInstruction, getOpenAndIncreaseTunaLpPositionFusionInstructionDataCodec, getOpenAndIncreaseTunaLpPositionFusionInstructionDataDecoder, getOpenAndIncreaseTunaLpPositionFusionInstructionDataEncoder, getOpenAndIncreaseTunaLpPositionOrcaDiscriminatorBytes, getOpenAndIncreaseTunaLpPositionOrcaInstruction, getOpenAndIncreaseTunaLpPositionOrcaInstructionDataCodec, getOpenAndIncreaseTunaLpPositionOrcaInstructionDataDecoder, getOpenAndIncreaseTunaLpPositionOrcaInstructionDataEncoder, getOpenLendingPositionDiscriminatorBytes, getOpenLendingPositionInstruction, getOpenLendingPositionInstructionDataCodec, getOpenLendingPositionInstructionDataDecoder, getOpenLendingPositionInstructionDataEncoder, getOpenLendingPositionV2DiscriminatorBytes, getOpenLendingPositionV2Instruction, getOpenLendingPositionV2InstructionDataCodec, getOpenLendingPositionV2InstructionDataDecoder, getOpenLendingPositionV2InstructionDataEncoder, 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, getSetDefaultLiquidationFeeRateDiscriminatorBytes, getSetDefaultLiquidationFeeRateInstruction, getSetDefaultLiquidationFeeRateInstructionDataCodec, getSetDefaultLiquidationFeeRateInstructionDataDecoder, getSetDefaultLiquidationFeeRateInstructionDataEncoder, getSetDefaultMaxPercentageOfLeftoversDiscriminatorBytes, getSetDefaultMaxPercentageOfLeftoversInstruction, getSetDefaultMaxPercentageOfLeftoversInstructionDataCodec, getSetDefaultMaxPercentageOfLeftoversInstructionDataDecoder, getSetDefaultMaxPercentageOfLeftoversInstructionDataEncoder, getSetDefaultMaxSwapSlippageDiscriminatorBytes, getSetDefaultMaxSwapSlippageInstruction, getSetDefaultMaxSwapSlippageInstructionDataCodec, getSetDefaultMaxSwapSlippageInstructionDataDecoder, getSetDefaultMaxSwapSlippageInstructionDataEncoder, getSetDefaultOraclePriceDeviationThresholdDiscriminatorBytes, getSetDefaultOraclePriceDeviationThresholdInstruction, getSetDefaultOraclePriceDeviationThresholdInstructionDataCodec, getSetDefaultOraclePriceDeviationThresholdInstructionDataDecoder, getSetDefaultOraclePriceDeviationThresholdInstructionDataEncoder, getSetDefaultProtocolFeeRateDiscriminatorBytes, getSetDefaultProtocolFeeRateInstruction, getSetDefaultProtocolFeeRateInstructionDataCodec, getSetDefaultProtocolFeeRateInstructionDataDecoder, getSetDefaultProtocolFeeRateInstructionDataEncoder, getSetDefaultRebalanceFeeRateDiscriminatorBytes, getSetDefaultRebalanceFeeRateInstruction, getSetDefaultRebalanceFeeRateInstructionDataCodec, getSetDefaultRebalanceFeeRateInstructionDataDecoder, getSetDefaultRebalanceFeeRateInstructionDataEncoder, getSetFeeRecipientDiscriminatorBytes, getSetFeeRecipientInstruction, getSetFeeRecipientInstructionDataCodec, getSetFeeRecipientInstructionDataDecoder, getSetFeeRecipientInstructionDataEncoder, getSetLiquidatorAuthorityDiscriminatorBytes, getSetLiquidatorAuthorityInstruction, getSetLiquidatorAuthorityInstructionDataCodec, getSetLiquidatorAuthorityInstructionDataDecoder, getSetLiquidatorAuthorityInstructionDataEncoder, 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, lendingPositionVaultFilter, liquidateTunaLpPositionFusionInstruction, liquidateTunaLpPositionFusionInstructions, liquidateTunaLpPositionOrcaInstruction, liquidateTunaLpPositionOrcaInstructions, liquidateTunaSpotPositionFusionInstruction, liquidateTunaSpotPositionFusionInstructions, liquidateTunaSpotPositionJupiterInstruction, liquidateTunaSpotPositionJupiterInstructions, liquidateTunaSpotPositionOrcaInstruction, liquidateTunaSpotPositionOrcaInstructions, modifyTunaSpotPositionFusionInstruction, modifyTunaSpotPositionFusionInstructions, modifyTunaSpotPositionJupiterInstruction, modifyTunaSpotPositionJupiterInstructions, modifyTunaSpotPositionOrcaInstruction, modifyTunaSpotPositionOrcaInstructions, mulDiv, openAndIncreaseTunaLpPositionFusionInstruction, openAndIncreaseTunaLpPositionFusionInstructions, openAndIncreaseTunaLpPositionOrcaInstruction, openAndIncreaseTunaLpPositionOrcaInstructions, openLendingPositionAndDepositInstructions, openLendingPositionInstruction, openLendingPositionV2Instruction, openTunaLpPositionFusionInstruction, openTunaLpPositionOrcaInstruction, openTunaSpotPositionInstruction, openTunaSpotPositionInstructions, parseCloseTunaLpPositionFusionInstruction, parseCloseTunaLpPositionOrcaInstruction, parseCloseTunaSpotPositionInstruction, parseCollectAndCompoundFeesFusionInstruction, parseCollectAndCompoundFeesOrcaInstruction, parseCollectFeesFusionInstruction, parseCollectFeesOrcaInstruction, parseCollectRewardOrcaInstruction, parseCreateMarketInstruction, parseCreateMarketV2Instruction, parseCreateTunaConfigInstruction, parseCreateVaultInstruction, parseCreateVaultV2Instruction, parseDecreaseTunaLpPositionFusionInstruction, parseDecreaseTunaLpPositionOrcaInstruction, parseDepositInstruction, parseIncreaseTunaLpPositionFusionInstruction, parseIncreaseTunaLpPositionOrcaInstruction, parseLiquidateTunaLpPositionFusionInstruction, parseLiquidateTunaLpPositionOrcaInstruction, parseLiquidateTunaSpotPositionFusionInstruction, parseLiquidateTunaSpotPositionJupiterInstruction, parseLiquidateTunaSpotPositionOrcaInstruction, parseModifyTunaSpotPositionFusionInstruction, parseModifyTunaSpotPositionJupiterInstruction, parseModifyTunaSpotPositionOrcaInstruction, parseOpenAndIncreaseTunaLpPositionFusionInstruction, parseOpenAndIncreaseTunaLpPositionOrcaInstruction, parseOpenLendingPositionInstruction, parseOpenLendingPositionV2Instruction, parseOpenTunaLpPositionFusionInstruction, parseOpenTunaLpPositionOrcaInstruction, parseOpenTunaSpotPositionInstruction, parseRebalanceTunaLpPositionFusionInstruction, parseRebalanceTunaLpPositionOrcaInstruction, parseRepayBadDebtInstruction, parseRepayTunaLpPositionDebtInstruction, parseResetTunaSpotPositionInstruction, parseSetAdminAuthorityInstruction, parseSetDefaultLiquidationFeeRateInstruction, parseSetDefaultMaxPercentageOfLeftoversInstruction, parseSetDefaultMaxSwapSlippageInstruction, parseSetDefaultOraclePriceDeviationThresholdInstruction, parseSetDefaultProtocolFeeRateInstruction, parseSetDefaultRebalanceFeeRateInstruction, 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 };
|