@crypticdot/defituna-client 3.3.5 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +461 -101
- package/dist/index.d.ts +461 -101
- package/dist/index.js +2131 -1197
- package/dist/index.mjs +2232 -1272
- 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). */
|
|
@@ -226,6 +230,10 @@ type Market = {
|
|
|
226
230
|
spotPositionSizeLimitA: bigint;
|
|
227
231
|
/** Maximum allowed position size in token B. 0 means no limit. */
|
|
228
232
|
spotPositionSizeLimitB: bigint;
|
|
233
|
+
/** Lending vault A address */
|
|
234
|
+
vaultA: Address;
|
|
235
|
+
/** Lending vault B address */
|
|
236
|
+
vaultB: Address;
|
|
229
237
|
/** Reserved */
|
|
230
238
|
reserved: ReadonlyUint8Array;
|
|
231
239
|
};
|
|
@@ -250,8 +258,8 @@ type MarketArgs = {
|
|
|
250
258
|
liquidationFee: number;
|
|
251
259
|
/** Liquidation threshold represented as hundredths of a basis point. The position is treated as unhealthy if debt > balance * (liquidation_threshold / HUNDRED_PERCENT). */
|
|
252
260
|
liquidationThreshold: number;
|
|
253
|
-
/** Limit order execution fee represented as hundredths of a basis point. (Value of 100 is equal to 0.01%) */
|
|
254
|
-
|
|
261
|
+
/** Obsolete: Limit order execution fee represented as hundredths of a basis point. (Value of 100 is equal to 0.01%) */
|
|
262
|
+
unused1: number;
|
|
255
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. */
|
|
256
264
|
oraclePriceDeviationThreshold: number;
|
|
257
265
|
/** True if the market is disabled (no more position can be opened). */
|
|
@@ -272,6 +280,10 @@ type MarketArgs = {
|
|
|
272
280
|
spotPositionSizeLimitA: number | bigint;
|
|
273
281
|
/** Maximum allowed position size in token B. 0 means no limit. */
|
|
274
282
|
spotPositionSizeLimitB: number | bigint;
|
|
283
|
+
/** Lending vault A address */
|
|
284
|
+
vaultA: Address;
|
|
285
|
+
/** Lending vault B address */
|
|
286
|
+
vaultB: Address;
|
|
275
287
|
/** Reserved */
|
|
276
288
|
reserved: ReadonlyUint8Array;
|
|
277
289
|
};
|
|
@@ -324,6 +336,12 @@ type TunaConfig = {
|
|
|
324
336
|
liquidatorAuthority: Address;
|
|
325
337
|
/** Maximum allowed oracle price deviation in percent. */
|
|
326
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;
|
|
327
345
|
/** Reserved */
|
|
328
346
|
reserved: ReadonlyUint8Array;
|
|
329
347
|
};
|
|
@@ -354,6 +372,12 @@ type TunaConfigArgs = {
|
|
|
354
372
|
liquidatorAuthority: Address;
|
|
355
373
|
/** Maximum allowed oracle price deviation in percent. */
|
|
356
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;
|
|
357
381
|
/** Reserved */
|
|
358
382
|
reserved: ReadonlyUint8Array;
|
|
359
383
|
};
|
|
@@ -662,6 +686,8 @@ type Vault = {
|
|
|
662
686
|
pythOraclePriceUpdate: Address;
|
|
663
687
|
/** Pyth oracle price feed id. */
|
|
664
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;
|
|
665
691
|
/** Reserved */
|
|
666
692
|
reserved: ReadonlyUint8Array;
|
|
667
693
|
};
|
|
@@ -692,6 +718,8 @@ type VaultArgs = {
|
|
|
692
718
|
pythOraclePriceUpdate: Address;
|
|
693
719
|
/** Pyth oracle price feed id. */
|
|
694
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;
|
|
695
723
|
/** Reserved */
|
|
696
724
|
reserved: ReadonlyUint8Array;
|
|
697
725
|
};
|
|
@@ -738,8 +766,8 @@ declare const TUNA_ERROR__INTEREST_RATE_IS_OUT_OF_RANGE = 6009;
|
|
|
738
766
|
declare const TUNA_ERROR__LEVERAGE_IS_OUT_OF_RANGE = 6010;
|
|
739
767
|
/** LeftoversExceeded: Leftovers percentage exceeded the maximum allowed value */
|
|
740
768
|
declare const TUNA_ERROR__LEFTOVERS_EXCEEDED = 6011;
|
|
741
|
-
/**
|
|
742
|
-
declare const
|
|
769
|
+
/** Unused: Unused error */
|
|
770
|
+
declare const TUNA_ERROR__UNUSED = 6012;
|
|
743
771
|
/** LiquidationFeeIsOutOfRange: Liquidation fee is out of range */
|
|
744
772
|
declare const TUNA_ERROR__LIQUIDATION_FEE_IS_OUT_OF_RANGE = 6013;
|
|
745
773
|
/** LiquidationThresholdIsOutOfRange: Liquidation threshold is out of range */
|
|
@@ -854,7 +882,9 @@ declare const TUNA_ERROR__INVALID_ACCOUNT_DISCRIMINATOR = 6067;
|
|
|
854
882
|
declare const TUNA_ERROR__INVALID_POOL = 6068;
|
|
855
883
|
/** PositionIsEmpty: Position is empty */
|
|
856
884
|
declare const TUNA_ERROR__POSITION_IS_EMPTY = 6069;
|
|
857
|
-
|
|
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;
|
|
858
888
|
declare function getTunaErrorMessage(code: TunaError): string;
|
|
859
889
|
declare function isTunaError<TProgramErrorCode extends TunaError>(error: unknown, transactionMessage: {
|
|
860
890
|
instructions: Record<number, {
|
|
@@ -896,47 +926,53 @@ declare enum TunaInstruction {
|
|
|
896
926
|
CollectFeesOrca = 6,
|
|
897
927
|
CollectRewardOrca = 7,
|
|
898
928
|
CreateMarket = 8,
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
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
|
|
940
976
|
}
|
|
941
977
|
declare function identifyTunaInstruction(instruction: {
|
|
942
978
|
data: ReadonlyUint8Array;
|
|
@@ -960,10 +996,14 @@ type ParsedTunaInstruction<TProgram extends string = 'tuna4uSQZncNeeiAMKbstuxA9C
|
|
|
960
996
|
} & ParsedCollectRewardOrcaInstruction<TProgram>) | ({
|
|
961
997
|
instructionType: TunaInstruction.CreateMarket;
|
|
962
998
|
} & ParsedCreateMarketInstruction<TProgram>) | ({
|
|
999
|
+
instructionType: TunaInstruction.CreateMarketV2;
|
|
1000
|
+
} & ParsedCreateMarketV2Instruction<TProgram>) | ({
|
|
963
1001
|
instructionType: TunaInstruction.CreateTunaConfig;
|
|
964
1002
|
} & ParsedCreateTunaConfigInstruction<TProgram>) | ({
|
|
965
1003
|
instructionType: TunaInstruction.CreateVault;
|
|
966
1004
|
} & ParsedCreateVaultInstruction<TProgram>) | ({
|
|
1005
|
+
instructionType: TunaInstruction.CreateVaultV2;
|
|
1006
|
+
} & ParsedCreateVaultV2Instruction<TProgram>) | ({
|
|
967
1007
|
instructionType: TunaInstruction.DecreaseTunaLpPositionFusion;
|
|
968
1008
|
} & ParsedDecreaseTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
969
1009
|
instructionType: TunaInstruction.DecreaseTunaLpPositionOrca;
|
|
@@ -996,6 +1036,8 @@ type ParsedTunaInstruction<TProgram extends string = 'tuna4uSQZncNeeiAMKbstuxA9C
|
|
|
996
1036
|
} & ParsedOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram>) | ({
|
|
997
1037
|
instructionType: TunaInstruction.OpenLendingPosition;
|
|
998
1038
|
} & ParsedOpenLendingPositionInstruction<TProgram>) | ({
|
|
1039
|
+
instructionType: TunaInstruction.OpenLendingPositionV2;
|
|
1040
|
+
} & ParsedOpenLendingPositionV2Instruction<TProgram>) | ({
|
|
999
1041
|
instructionType: TunaInstruction.OpenTunaLpPositionFusion;
|
|
1000
1042
|
} & ParsedOpenTunaLpPositionFusionInstruction<TProgram>) | ({
|
|
1001
1043
|
instructionType: TunaInstruction.OpenTunaLpPositionOrca;
|
|
@@ -1014,12 +1056,18 @@ type ParsedTunaInstruction<TProgram extends string = 'tuna4uSQZncNeeiAMKbstuxA9C
|
|
|
1014
1056
|
} & ParsedResetTunaSpotPositionInstruction<TProgram>) | ({
|
|
1015
1057
|
instructionType: TunaInstruction.SetAdminAuthority;
|
|
1016
1058
|
} & ParsedSetAdminAuthorityInstruction<TProgram>) | ({
|
|
1059
|
+
instructionType: TunaInstruction.SetDefaultLiquidationFeeRate;
|
|
1060
|
+
} & ParsedSetDefaultLiquidationFeeRateInstruction<TProgram>) | ({
|
|
1017
1061
|
instructionType: TunaInstruction.SetDefaultMaxPercentageOfLeftovers;
|
|
1018
1062
|
} & ParsedSetDefaultMaxPercentageOfLeftoversInstruction<TProgram>) | ({
|
|
1019
1063
|
instructionType: TunaInstruction.SetDefaultMaxSwapSlippage;
|
|
1020
1064
|
} & ParsedSetDefaultMaxSwapSlippageInstruction<TProgram>) | ({
|
|
1021
1065
|
instructionType: TunaInstruction.SetDefaultOraclePriceDeviationThreshold;
|
|
1022
1066
|
} & ParsedSetDefaultOraclePriceDeviationThresholdInstruction<TProgram>) | ({
|
|
1067
|
+
instructionType: TunaInstruction.SetDefaultProtocolFeeRate;
|
|
1068
|
+
} & ParsedSetDefaultProtocolFeeRateInstruction<TProgram>) | ({
|
|
1069
|
+
instructionType: TunaInstruction.SetDefaultRebalanceFeeRate;
|
|
1070
|
+
} & ParsedSetDefaultRebalanceFeeRateInstruction<TProgram>) | ({
|
|
1023
1071
|
instructionType: TunaInstruction.SetFeeRecipient;
|
|
1024
1072
|
} & ParsedSetFeeRecipientInstruction<TProgram>) | ({
|
|
1025
1073
|
instructionType: TunaInstruction.SetLiquidatorAuthority;
|
|
@@ -1891,24 +1939,24 @@ declare function parseCollectRewardOrcaInstruction<TProgram extends string, TAcc
|
|
|
1891
1939
|
|
|
1892
1940
|
declare const CREATE_MARKET_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1893
1941
|
declare function getCreateMarketDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1894
|
-
type CreateMarketInstruction<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, TAccountPool extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
1942
|
+
type CreateMarketInstruction<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<[
|
|
1895
1943
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
1896
1944
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
1897
1945
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
1946
|
+
TAccountVaultA extends string ? ReadonlyAccount<TAccountVaultA> : TAccountVaultA,
|
|
1947
|
+
TAccountVaultB extends string ? ReadonlyAccount<TAccountVaultB> : TAccountVaultB,
|
|
1898
1948
|
TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
|
|
1899
1949
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1900
1950
|
...TRemainingAccounts
|
|
1901
1951
|
]>;
|
|
1902
1952
|
type CreateMarketInstructionData = {
|
|
1903
1953
|
discriminator: ReadonlyUint8Array;
|
|
1904
|
-
marketMaker: MarketMaker;
|
|
1905
1954
|
addressLookupTable: Address;
|
|
1906
1955
|
maxLeverage: number;
|
|
1907
1956
|
protocolFee: number;
|
|
1908
1957
|
protocolFeeOnCollateral: number;
|
|
1909
1958
|
liquidationFee: number;
|
|
1910
1959
|
liquidationThreshold: number;
|
|
1911
|
-
limitOrderExecutionFee: number;
|
|
1912
1960
|
oraclePriceDeviationThreshold: number;
|
|
1913
1961
|
disabled: boolean;
|
|
1914
1962
|
borrowLimitA: bigint;
|
|
@@ -1919,14 +1967,12 @@ type CreateMarketInstructionData = {
|
|
|
1919
1967
|
spotPositionSizeLimitB: bigint;
|
|
1920
1968
|
};
|
|
1921
1969
|
type CreateMarketInstructionDataArgs = {
|
|
1922
|
-
marketMaker: MarketMakerArgs;
|
|
1923
1970
|
addressLookupTable: Address;
|
|
1924
1971
|
maxLeverage: number;
|
|
1925
1972
|
protocolFee: number;
|
|
1926
1973
|
protocolFeeOnCollateral: number;
|
|
1927
1974
|
liquidationFee: number;
|
|
1928
1975
|
liquidationThreshold: number;
|
|
1929
|
-
limitOrderExecutionFee: number;
|
|
1930
1976
|
oraclePriceDeviationThreshold: number;
|
|
1931
1977
|
disabled: boolean;
|
|
1932
1978
|
borrowLimitA: number | bigint;
|
|
@@ -1939,20 +1985,20 @@ type CreateMarketInstructionDataArgs = {
|
|
|
1939
1985
|
declare function getCreateMarketInstructionDataEncoder(): Encoder<CreateMarketInstructionDataArgs>;
|
|
1940
1986
|
declare function getCreateMarketInstructionDataDecoder(): Decoder<CreateMarketInstructionData>;
|
|
1941
1987
|
declare function getCreateMarketInstructionDataCodec(): Codec<CreateMarketInstructionDataArgs, CreateMarketInstructionData>;
|
|
1942
|
-
type CreateMarketInput<TAccountAuthority extends string = string, TAccountTunaConfig extends string = string, TAccountMarket extends string = string, TAccountPool extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1988
|
+
type CreateMarketInput<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> = {
|
|
1943
1989
|
authority: TransactionSigner<TAccountAuthority>;
|
|
1944
1990
|
tunaConfig: Address<TAccountTunaConfig>;
|
|
1945
1991
|
market: Address<TAccountMarket>;
|
|
1992
|
+
vaultA: Address<TAccountVaultA>;
|
|
1993
|
+
vaultB: Address<TAccountVaultB>;
|
|
1946
1994
|
pool: Address<TAccountPool>;
|
|
1947
1995
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1948
|
-
marketMaker: CreateMarketInstructionDataArgs['marketMaker'];
|
|
1949
1996
|
addressLookupTable: CreateMarketInstructionDataArgs['addressLookupTable'];
|
|
1950
1997
|
maxLeverage: CreateMarketInstructionDataArgs['maxLeverage'];
|
|
1951
1998
|
protocolFee: CreateMarketInstructionDataArgs['protocolFee'];
|
|
1952
1999
|
protocolFeeOnCollateral: CreateMarketInstructionDataArgs['protocolFeeOnCollateral'];
|
|
1953
2000
|
liquidationFee: CreateMarketInstructionDataArgs['liquidationFee'];
|
|
1954
2001
|
liquidationThreshold: CreateMarketInstructionDataArgs['liquidationThreshold'];
|
|
1955
|
-
limitOrderExecutionFee: CreateMarketInstructionDataArgs['limitOrderExecutionFee'];
|
|
1956
2002
|
oraclePriceDeviationThreshold: CreateMarketInstructionDataArgs['oraclePriceDeviationThreshold'];
|
|
1957
2003
|
disabled: CreateMarketInstructionDataArgs['disabled'];
|
|
1958
2004
|
borrowLimitA: CreateMarketInstructionDataArgs['borrowLimitA'];
|
|
@@ -1962,22 +2008,85 @@ type CreateMarketInput<TAccountAuthority extends string = string, TAccountTunaCo
|
|
|
1962
2008
|
spotPositionSizeLimitA: CreateMarketInstructionDataArgs['spotPositionSizeLimitA'];
|
|
1963
2009
|
spotPositionSizeLimitB: CreateMarketInstructionDataArgs['spotPositionSizeLimitB'];
|
|
1964
2010
|
};
|
|
1965
|
-
declare function getCreateMarketInstruction<TAccountAuthority extends string, TAccountTunaConfig extends string, TAccountMarket extends string, TAccountPool extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TUNA_PROGRAM_ADDRESS>(input: CreateMarketInput<TAccountAuthority, TAccountTunaConfig, TAccountMarket, TAccountPool, TAccountSystemProgram>, config?: {
|
|
2011
|
+
declare function getCreateMarketInstruction<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: CreateMarketInput<TAccountAuthority, TAccountTunaConfig, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountPool, TAccountSystemProgram>, config?: {
|
|
1966
2012
|
programAddress?: TProgramAddress;
|
|
1967
|
-
}): CreateMarketInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMarket, TAccountPool, TAccountSystemProgram>;
|
|
2013
|
+
}): CreateMarketInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountMarket, TAccountVaultA, TAccountVaultB, TAccountPool, TAccountSystemProgram>;
|
|
1968
2014
|
type ParsedCreateMarketInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
1969
2015
|
programAddress: Address<TProgram>;
|
|
1970
2016
|
accounts: {
|
|
1971
2017
|
authority: TAccountMetas[0];
|
|
1972
2018
|
tunaConfig: TAccountMetas[1];
|
|
1973
2019
|
market: TAccountMetas[2];
|
|
1974
|
-
|
|
1975
|
-
|
|
2020
|
+
vaultA: TAccountMetas[3];
|
|
2021
|
+
vaultB: TAccountMetas[4];
|
|
2022
|
+
pool: TAccountMetas[5];
|
|
2023
|
+
systemProgram: TAccountMetas[6];
|
|
1976
2024
|
};
|
|
1977
2025
|
data: CreateMarketInstructionData;
|
|
1978
2026
|
};
|
|
1979
2027
|
declare function parseCreateMarketInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCreateMarketInstruction<TProgram, TAccountMetas>;
|
|
1980
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
|
+
|
|
1981
2090
|
/**
|
|
1982
2091
|
* This code was AUTOGENERATED using the codama library.
|
|
1983
2092
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -2106,6 +2215,79 @@ type ParsedCreateVaultInstruction<TProgram extends string = typeof TUNA_PROGRAM_
|
|
|
2106
2215
|
};
|
|
2107
2216
|
declare function parseCreateVaultInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCreateVaultInstruction<TProgram, TAccountMetas>;
|
|
2108
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
|
+
|
|
2109
2291
|
/**
|
|
2110
2292
|
* This code was AUTOGENERATED using the codama library.
|
|
2111
2293
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -4315,12 +4497,12 @@ declare function parseOpenAndIncreaseTunaLpPositionOrcaInstruction<TProgram exte
|
|
|
4315
4497
|
|
|
4316
4498
|
declare const OPEN_LENDING_POSITION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
4317
4499
|
declare function getOpenLendingPositionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
4318
|
-
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<[
|
|
4319
4501
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
4320
4502
|
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
4321
4503
|
TAccountVault extends string ? ReadonlyAccount<TAccountVault> : TAccountVault,
|
|
4322
4504
|
TAccountLendingPosition extends string ? WritableAccount<TAccountLendingPosition> : TAccountLendingPosition,
|
|
4323
|
-
|
|
4505
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
4324
4506
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
4325
4507
|
...TRemainingAccounts
|
|
4326
4508
|
]>;
|
|
@@ -4331,17 +4513,17 @@ type OpenLendingPositionInstructionDataArgs = {};
|
|
|
4331
4513
|
declare function getOpenLendingPositionInstructionDataEncoder(): Encoder<OpenLendingPositionInstructionDataArgs>;
|
|
4332
4514
|
declare function getOpenLendingPositionInstructionDataDecoder(): Decoder<OpenLendingPositionInstructionData>;
|
|
4333
4515
|
declare function getOpenLendingPositionInstructionDataCodec(): Codec<OpenLendingPositionInstructionDataArgs, OpenLendingPositionInstructionData>;
|
|
4334
|
-
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> = {
|
|
4335
4517
|
authority: TransactionSigner<TAccountAuthority>;
|
|
4336
4518
|
tunaConfig: Address<TAccountTunaConfig>;
|
|
4337
4519
|
vault: Address<TAccountVault>;
|
|
4338
4520
|
lendingPosition: Address<TAccountLendingPosition>;
|
|
4339
|
-
|
|
4521
|
+
mint: Address<TAccountMint>;
|
|
4340
4522
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4341
4523
|
};
|
|
4342
|
-
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?: {
|
|
4343
4525
|
programAddress?: TProgramAddress;
|
|
4344
|
-
}): OpenLendingPositionInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountVault, TAccountLendingPosition,
|
|
4526
|
+
}): OpenLendingPositionInstruction<TProgramAddress, TAccountAuthority, TAccountTunaConfig, TAccountVault, TAccountLendingPosition, TAccountMint, TAccountSystemProgram>;
|
|
4345
4527
|
type ParsedOpenLendingPositionInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
4346
4528
|
programAddress: Address<TProgram>;
|
|
4347
4529
|
accounts: {
|
|
@@ -4349,13 +4531,61 @@ type ParsedOpenLendingPositionInstruction<TProgram extends string = typeof TUNA_
|
|
|
4349
4531
|
tunaConfig: TAccountMetas[1];
|
|
4350
4532
|
vault: TAccountMetas[2];
|
|
4351
4533
|
lendingPosition: TAccountMetas[3];
|
|
4352
|
-
|
|
4534
|
+
mint: TAccountMetas[4];
|
|
4353
4535
|
systemProgram: TAccountMetas[5];
|
|
4354
4536
|
};
|
|
4355
4537
|
data: OpenLendingPositionInstructionData;
|
|
4356
4538
|
};
|
|
4357
4539
|
declare function parseOpenLendingPositionInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedOpenLendingPositionInstruction<TProgram, TAccountMetas>;
|
|
4358
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
|
+
|
|
4359
4589
|
/**
|
|
4360
4590
|
* This code was AUTOGENERATED using the codama library.
|
|
4361
4591
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -4978,10 +5208,9 @@ declare function parseRebalanceTunaLpPositionOrcaInstruction<TProgram extends st
|
|
|
4978
5208
|
|
|
4979
5209
|
declare const REPAY_BAD_DEBT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
4980
5210
|
declare function getRepayBadDebtDiscriminatorBytes(): ReadonlyUint8Array;
|
|
4981
|
-
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<[
|
|
4982
5212
|
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
4983
5213
|
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
4984
|
-
TAccountTunaConfig extends string ? ReadonlyAccount<TAccountTunaConfig> : TAccountTunaConfig,
|
|
4985
5214
|
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
4986
5215
|
TAccountVaultAta extends string ? WritableAccount<TAccountVaultAta> : TAccountVaultAta,
|
|
4987
5216
|
TAccountAuthorityAta extends string ? WritableAccount<TAccountAuthorityAta> : TAccountAuthorityAta,
|
|
@@ -5001,10 +5230,9 @@ type RepayBadDebtInstructionDataArgs = {
|
|
|
5001
5230
|
declare function getRepayBadDebtInstructionDataEncoder(): Encoder<RepayBadDebtInstructionDataArgs>;
|
|
5002
5231
|
declare function getRepayBadDebtInstructionDataDecoder(): Decoder<RepayBadDebtInstructionData>;
|
|
5003
5232
|
declare function getRepayBadDebtInstructionDataCodec(): Codec<RepayBadDebtInstructionDataArgs, RepayBadDebtInstructionData>;
|
|
5004
|
-
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> = {
|
|
5005
5234
|
authority: TransactionSigner<TAccountAuthority>;
|
|
5006
5235
|
mint: Address<TAccountMint>;
|
|
5007
|
-
tunaConfig: Address<TAccountTunaConfig>;
|
|
5008
5236
|
vault: Address<TAccountVault>;
|
|
5009
5237
|
vaultAta: Address<TAccountVaultAta>;
|
|
5010
5238
|
authorityAta: Address<TAccountAuthorityAta>;
|
|
@@ -5013,20 +5241,19 @@ type RepayBadDebtInput<TAccountAuthority extends string = string, TAccountMint e
|
|
|
5013
5241
|
funds: RepayBadDebtInstructionDataArgs['funds'];
|
|
5014
5242
|
shares: RepayBadDebtInstructionDataArgs['shares'];
|
|
5015
5243
|
};
|
|
5016
|
-
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?: {
|
|
5017
5245
|
programAddress?: TProgramAddress;
|
|
5018
|
-
}): RepayBadDebtInstruction<TProgramAddress, TAccountAuthority, TAccountMint,
|
|
5246
|
+
}): RepayBadDebtInstruction<TProgramAddress, TAccountAuthority, TAccountMint, TAccountVault, TAccountVaultAta, TAccountAuthorityAta, TAccountTokenProgram, TAccountMemoProgram>;
|
|
5019
5247
|
type ParsedRepayBadDebtInstruction<TProgram extends string = typeof TUNA_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
5020
5248
|
programAddress: Address<TProgram>;
|
|
5021
5249
|
accounts: {
|
|
5022
5250
|
authority: TAccountMetas[0];
|
|
5023
5251
|
mint: TAccountMetas[1];
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
memoProgram: TAccountMetas[7];
|
|
5252
|
+
vault: TAccountMetas[2];
|
|
5253
|
+
vaultAta: TAccountMetas[3];
|
|
5254
|
+
authorityAta: TAccountMetas[4];
|
|
5255
|
+
tokenProgram: TAccountMetas[5];
|
|
5256
|
+
memoProgram: TAccountMetas[6];
|
|
5030
5257
|
};
|
|
5031
5258
|
data: RepayBadDebtInstructionData;
|
|
5032
5259
|
};
|
|
@@ -5241,6 +5468,49 @@ type ParsedSetAdminAuthorityInstruction<TProgram extends string = typeof TUNA_PR
|
|
|
5241
5468
|
};
|
|
5242
5469
|
declare function parseSetAdminAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedSetAdminAuthorityInstruction<TProgram, TAccountMetas>;
|
|
5243
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
|
+
|
|
5244
5514
|
/**
|
|
5245
5515
|
* This code was AUTOGENERATED using the codama library.
|
|
5246
5516
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -5370,6 +5640,92 @@ type ParsedSetDefaultOraclePriceDeviationThresholdInstruction<TProgram extends s
|
|
|
5370
5640
|
};
|
|
5371
5641
|
declare function parseSetDefaultOraclePriceDeviationThresholdInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedSetDefaultOraclePriceDeviationThresholdInstruction<TProgram, TAccountMetas>;
|
|
5372
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
|
+
|
|
5373
5729
|
/**
|
|
5374
5730
|
* This code was AUTOGENERATED using the codama library.
|
|
5375
5731
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -5756,7 +6112,6 @@ type UpdateMarketInstructionData = {
|
|
|
5756
6112
|
protocolFeeOnCollateral: number;
|
|
5757
6113
|
liquidationFee: number;
|
|
5758
6114
|
liquidationThreshold: number;
|
|
5759
|
-
limitOrderExecutionFee: number;
|
|
5760
6115
|
oraclePriceDeviationThreshold: number;
|
|
5761
6116
|
disabled: boolean;
|
|
5762
6117
|
borrowLimitA: bigint;
|
|
@@ -5773,7 +6128,6 @@ type UpdateMarketInstructionDataArgs = {
|
|
|
5773
6128
|
protocolFeeOnCollateral: number;
|
|
5774
6129
|
liquidationFee: number;
|
|
5775
6130
|
liquidationThreshold: number;
|
|
5776
|
-
limitOrderExecutionFee: number;
|
|
5777
6131
|
oraclePriceDeviationThreshold: number;
|
|
5778
6132
|
disabled: boolean;
|
|
5779
6133
|
borrowLimitA: number | bigint;
|
|
@@ -5796,7 +6150,6 @@ type UpdateMarketInput<TAccountAuthority extends string = string, TAccountTunaCo
|
|
|
5796
6150
|
protocolFeeOnCollateral: UpdateMarketInstructionDataArgs['protocolFeeOnCollateral'];
|
|
5797
6151
|
liquidationFee: UpdateMarketInstructionDataArgs['liquidationFee'];
|
|
5798
6152
|
liquidationThreshold: UpdateMarketInstructionDataArgs['liquidationThreshold'];
|
|
5799
|
-
limitOrderExecutionFee: UpdateMarketInstructionDataArgs['limitOrderExecutionFee'];
|
|
5800
6153
|
oraclePriceDeviationThreshold: UpdateMarketInstructionDataArgs['oraclePriceDeviationThreshold'];
|
|
5801
6154
|
disabled: UpdateMarketInstructionDataArgs['disabled'];
|
|
5802
6155
|
borrowLimitA: UpdateMarketInstructionDataArgs['borrowLimitA'];
|
|
@@ -5945,7 +6298,8 @@ declare function parseWithdrawInstruction<TProgram extends string, TAccountMetas
|
|
|
5945
6298
|
declare function getTunaConfigAddress(): Promise<ProgramDerivedAddress>;
|
|
5946
6299
|
declare function getMarketAddress(pool: Address): Promise<ProgramDerivedAddress>;
|
|
5947
6300
|
declare function getLendingVaultAddress(mint: Address): Promise<ProgramDerivedAddress>;
|
|
5948
|
-
declare function
|
|
6301
|
+
declare function getLendingVaultV2Address(mint: Address, id: number): Promise<ProgramDerivedAddress>;
|
|
6302
|
+
declare function getLendingPositionAddress(authority: Address, mintOrVault: Address): Promise<ProgramDerivedAddress>;
|
|
5949
6303
|
declare function getTunaLpPositionAddress(positionMint: Address): Promise<ProgramDerivedAddress>;
|
|
5950
6304
|
declare function getTunaSpotPositionAddress(authority: Address, pool: Address): Promise<ProgramDerivedAddress>;
|
|
5951
6305
|
declare function getPythPriceUpdateAccountAddress(shardId: number, priceFeedId: Buffer | string): Promise<ProgramDerivedAddress>;
|
|
@@ -5975,6 +6329,7 @@ type LendingPositionFilter = GetProgramAccountsMemcmpFilter & {
|
|
|
5975
6329
|
};
|
|
5976
6330
|
declare function lendingPositionAuthorityFilter(address: Address): LendingPositionFilter;
|
|
5977
6331
|
declare function lendingPositionMintFilter(address: Address): LendingPositionFilter;
|
|
6332
|
+
declare function lendingPositionVaultFilter(address: Address): LendingPositionFilter;
|
|
5978
6333
|
declare function fetchAllLendingPositionWithFilter(rpc: Rpc<GetProgramAccountsApi>, ...filters: LendingPositionFilter[]): Promise<Account<LendingPosition>[]>;
|
|
5979
6334
|
|
|
5980
6335
|
type MarketFilter = GetProgramAccountsMemcmpFilter & {
|
|
@@ -6096,7 +6451,9 @@ declare function collectFeesFusionInstruction(authority: TransactionSigner, tuna
|
|
|
6096
6451
|
|
|
6097
6452
|
declare function openLendingPositionInstruction(authority: TransactionSigner, mintAddress: Address): Promise<IInstruction>;
|
|
6098
6453
|
|
|
6099
|
-
declare function
|
|
6454
|
+
declare function openLendingPositionV2Instruction(authority: TransactionSigner, mint: Address, vault: Address): Promise<IInstruction>;
|
|
6455
|
+
|
|
6456
|
+
declare function openLendingPositionAndDepositInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, mintAddress: Address, vaultAddress: Address | undefined, amount: bigint): Promise<IInstruction[]>;
|
|
6100
6457
|
|
|
6101
6458
|
declare function closeActiveTunaLpPositionOrcaInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, positionMint: Address, args: CloseActiveTunaLpPositionInstructionArgs): Promise<IInstruction[]>;
|
|
6102
6459
|
|
|
@@ -6115,21 +6472,22 @@ type ModifyTunaSpotPositionFusionInstructionsArgs = Omit<ModifyTunaSpotPositionF
|
|
|
6115
6472
|
declare function modifyTunaSpotPositionFusionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, poolAddress: Address, collateralToken: PoolToken | undefined, args: ModifyTunaSpotPositionFusionInstructionsArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
6116
6473
|
declare function modifyTunaSpotPositionFusionInstruction(authority: TransactionSigner, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, pool: Account<FusionPool>, setTunaPositionOwnerAtaA: boolean, setTunaPositionOwnerAtaB: boolean, args: ModifyTunaSpotPositionFusionInstructionsArgs): Promise<IInstruction>;
|
|
6117
6474
|
|
|
6118
|
-
|
|
6119
|
-
declare function
|
|
6120
|
-
declare function modifyTunaSpotPositionJupiterInstruction(authority: TransactionSigner, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, poolAddress: Address, remainingAccounts: IAccountMeta[], args: ModifyTunaSpotPositionJupiterInstructionsArgs): Promise<IInstruction>;
|
|
6475
|
+
declare function modifyTunaSpotPositionJupiterInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, poolAddress: Address, remainingAccounts: IAccountMeta[], args: ModifyTunaSpotPositionJupiterInstructionDataArgs, createInstructions?: IInstruction[], cleanupInstructions?: IInstruction[]): Promise<IInstruction[]>;
|
|
6476
|
+
declare function modifyTunaSpotPositionJupiterInstruction(authority: TransactionSigner, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, poolAddress: Address, remainingAccounts: IAccountMeta[], args: ModifyTunaSpotPositionJupiterInstructionDataArgs): Promise<IInstruction>;
|
|
6121
6477
|
|
|
6122
6478
|
declare function closeTunaSpotPositionInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, poolAddress: Address): Promise<IInstruction[]>;
|
|
6123
6479
|
declare function closeTunaSpotPositionInstruction(authority: TransactionSigner, poolAddress: Address, mintA: Account<Mint>, mintB: Account<Mint>): Promise<IInstruction>;
|
|
6124
6480
|
|
|
6125
|
-
declare function createMarketInstruction(authority: TransactionSigner, pool: Address, args: CreateMarketInstructionDataArgs): Promise<IInstruction>;
|
|
6481
|
+
declare function createMarketInstruction(authority: TransactionSigner, pool: Address, vaultA: Address, vaultB: Address, args: CreateMarketInstructionDataArgs): Promise<IInstruction>;
|
|
6126
6482
|
|
|
6127
6483
|
declare function createTunaConfigInstruction(authority: TransactionSigner, ownerAuthority: Address, adminAuthority: Address, liquidatorAuthority: Address, feeRecipient: Address): Promise<IInstruction>;
|
|
6128
6484
|
|
|
6129
6485
|
declare function createVaultInstructions(authority: TransactionSigner, mint: Account<Mint>, args: CreateVaultInstructionDataArgs): Promise<IInstruction[]>;
|
|
6130
6486
|
|
|
6131
|
-
declare function
|
|
6132
|
-
|
|
6487
|
+
declare function createVaultV2Instructions(authority: TransactionSigner, vault: Address, mint: Account<Mint>, args: CreateVaultV2InstructionDataArgs): Promise<IInstruction[]>;
|
|
6488
|
+
|
|
6489
|
+
declare function depositInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, mintAddress: Address | undefined, vaultAddress: Address | undefined, amount: bigint): Promise<IInstruction[]>;
|
|
6490
|
+
declare function depositInstruction(authority: TransactionSigner, mint: Account<Mint>, vault: Address | undefined, amount: bigint): Promise<IInstruction>;
|
|
6133
6491
|
|
|
6134
6492
|
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[]>;
|
|
6135
6493
|
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>;
|
|
@@ -6140,6 +6498,9 @@ declare function liquidateTunaLpPositionFusionInstruction(authority: Transaction
|
|
|
6140
6498
|
declare function liquidateTunaSpotPositionFusionInstructions(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>, decreasePercent: number): Promise<IInstruction[]>;
|
|
6141
6499
|
declare function liquidateTunaSpotPositionFusionInstruction(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, fusionPool: Account<FusionPool>, decreasePercent: number): Promise<IInstruction>;
|
|
6142
6500
|
|
|
6501
|
+
declare function liquidateTunaSpotPositionJupiterInstructions(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, poolAddress: Address, remainingAccounts: IAccountMeta[], args: LiquidateTunaSpotPositionJupiterInstructionDataArgs): Promise<IInstruction[]>;
|
|
6502
|
+
declare function liquidateTunaSpotPositionJupiterInstruction(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, poolAddress: Address, remainingAccounts: IAccountMeta[], args: LiquidateTunaSpotPositionJupiterInstructionDataArgs): Promise<IInstruction>;
|
|
6503
|
+
|
|
6143
6504
|
declare function liquidateTunaSpotPositionOrcaInstructions(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, decreasePercent: number): Promise<IInstruction[]>;
|
|
6144
6505
|
declare function liquidateTunaSpotPositionOrcaInstruction(authority: TransactionSigner, tunaPosition: Account<TunaSpotPosition>, tunaConfig: Account<TunaConfig>, mintA: Account<Mint>, mintB: Account<Mint>, vaultA: Account<Vault>, vaultB: Account<Vault>, whirlpool: Account<Whirlpool>, decreasePercent: number): Promise<IInstruction>;
|
|
6145
6506
|
|
|
@@ -6200,10 +6561,10 @@ declare function resetTunaSpotPositionInstruction(rpc: Rpc<GetAccountInfoApi & G
|
|
|
6200
6561
|
|
|
6201
6562
|
declare function updateMarketInstruction(authority: TransactionSigner, pool: Address, args: UpdateMarketInstructionDataArgs): Promise<IInstruction>;
|
|
6202
6563
|
|
|
6203
|
-
declare function updateVaultInstruction(authority: TransactionSigner,
|
|
6564
|
+
declare function updateVaultInstruction(authority: TransactionSigner, vault: Address, args: UpdateVaultInstructionDataArgs): Promise<IInstruction>;
|
|
6204
6565
|
|
|
6205
|
-
declare function withdrawInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, mintAddress: Address, funds: bigint, shares: bigint): Promise<IInstruction[]>;
|
|
6206
|
-
declare function withdrawInstruction(authority: TransactionSigner, mint: Account<Mint>, funds: bigint, shares: bigint): Promise<IInstruction>;
|
|
6566
|
+
declare function withdrawInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, authority: TransactionSigner, mintAddress: Address | undefined, vaultAddress: Address | undefined, funds: bigint, shares: bigint): Promise<IInstruction[]>;
|
|
6567
|
+
declare function withdrawInstruction(authority: TransactionSigner, mint: Account<Mint>, vault: Address | undefined, funds: bigint, shares: bigint): Promise<IInstruction>;
|
|
6207
6568
|
|
|
6208
6569
|
declare function createAddressLookupTableForMarketInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, poolAddress: Address, marketMaker: MarketMaker, authority: TransactionSigner, recentSlot: Slot): Promise<CreateAddressLookupTableResult>;
|
|
6209
6570
|
declare function extendAddressLookupTableForMarketInstructions(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi>, poolAddress: Address, marketMaker: MarketMaker, authority: TransactionSigner, lookupTableAddress: Address): Promise<CreateAddressLookupTableResult>;
|
|
@@ -6236,7 +6597,6 @@ declare const LEVERAGE_ONE = 1000000;
|
|
|
6236
6597
|
declare const MAX_LEVERAGE: number;
|
|
6237
6598
|
declare const MAX_PROTOCOL_FEE: number;
|
|
6238
6599
|
declare const MAX_LIQUIDATION_FEE: number;
|
|
6239
|
-
declare const MAX_LIMIT_ORDER_EXECUTION_FEE: number;
|
|
6240
6600
|
declare const DEFAULT_MAX_SWAP_SLIPPAGE: number;
|
|
6241
6601
|
declare const MAX_LIQUIDATION_THRESHOLD: number;
|
|
6242
6602
|
declare const NO_LOWER_LIMIT_ORDER = -2147483648;
|
|
@@ -6257,4 +6617,4 @@ declare const JUPITER_PROGRAM_AUTHORITY: _solana_kit.Address<"9nnLbotNTcUhvbrsA6
|
|
|
6257
6617
|
declare const MIN_SQRT_PRICE = 4295048016n;
|
|
6258
6618
|
declare const MAX_SQRT_PRICE = 79226673515401279992447579055n;
|
|
6259
6619
|
|
|
6260
|
-
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 ModifyTunaSpotPositionJupiterInstructionsArgs, 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 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_VAULT_DISCRIMINATOR, type UpdateMarketInput, type UpdateMarketInstruction, type UpdateMarketInstructionData, type UpdateMarketInstructionDataArgs, type UpdateVaultInput, type UpdateVaultInstruction, type UpdateVaultInstructionData, type UpdateVaultInstructionDataArgs, VAULT_DISCRIMINATOR, type Vault, type VaultArgs, WITHDRAW_DISCRIMINATOR, WP_NFT_UPDATE_AUTH, type WithdrawInput, type WithdrawInstruction, type WithdrawInstructionData, type WithdrawInstructionDataArgs, closeActiveTunaLpPositionFusionInstructions, closeActiveTunaLpPositionOrcaInstructions, closeTunaLpPositionFusionInstruction, closeTunaLpPositionOrcaInstruction, closeTunaSpotPositionInstruction, closeTunaSpotPositionInstructions, collectAndCompoundFeesFusionInstruction, collectAndCompoundFeesFusionInstructions, collectAndCompoundFeesOrcaInstruction, collectAndCompoundFeesOrcaInstructions, collectFeesFusionInstruction, collectFeesFusionInstructions, collectFeesOrcaInstruction, collectFeesOrcaInstructions, createAddressLookupTableForMarketInstructions, createAddressLookupTableInstructions, createMarketInstruction, createTunaConfigInstruction, createVaultInstructions, decodeLendingPosition, decodeMarket, decodeTunaConfig, decodeTunaLpPosition, decodeTunaSpotPosition, decodeVault, decreaseTunaLpPositionFusionInstruction, decreaseTunaLpPositionFusionInstructions, decreaseTunaLpPositionOrcaInstruction, decreaseTunaLpPositionOrcaInstructions, depositInstruction, depositInstructions, extendAddressLookupTableForMarketInstructions, fetchAllLendingPosition, fetchAllLendingPositionWithFilter, fetchAllMarket, fetchAllMarketWithFilter, fetchAllMaybeLendingPosition, fetchAllMaybeMarket, fetchAllMaybeTunaConfig, fetchAllMaybeTunaLpPosition, fetchAllMaybeTunaSpotPosition, fetchAllMaybeVault, fetchAllTunaConfig, fetchAllTunaLpPosition, fetchAllTunaLpPositionWithFilter, fetchAllTunaSpotPosition, fetchAllTunaSpotPositionWithFilter, fetchAllVault, fetchLendingPosition, fetchMarket, fetchMaybeLendingPosition, fetchMaybeMarket, fetchMaybeTunaConfig, fetchMaybeTunaLpPosition, fetchMaybeTunaSpotPosition, fetchMaybeVault, fetchTunaConfig, fetchTunaLpPosition, fetchTunaSpotPosition, fetchVault, fundsToShares, getAccountsTypeCodec, getAccountsTypeDecoder, getAccountsTypeEncoder, getCloseTunaLpPositionFusionDiscriminatorBytes, getCloseTunaLpPositionFusionInstruction, getCloseTunaLpPositionFusionInstructionDataCodec, getCloseTunaLpPositionFusionInstructionDataDecoder, getCloseTunaLpPositionFusionInstructionDataEncoder, getCloseTunaLpPositionOrcaDiscriminatorBytes, getCloseTunaLpPositionOrcaInstruction, getCloseTunaLpPositionOrcaInstructionDataCodec, getCloseTunaLpPositionOrcaInstructionDataDecoder, getCloseTunaLpPositionOrcaInstructionDataEncoder, getCloseTunaSpotPositionDiscriminatorBytes, getCloseTunaSpotPositionInstruction, getCloseTunaSpotPositionInstructionDataCodec, getCloseTunaSpotPositionInstructionDataDecoder, getCloseTunaSpotPositionInstructionDataEncoder, getCollectAndCompoundFeesFusionDiscriminatorBytes, getCollectAndCompoundFeesFusionInstruction, getCollectAndCompoundFeesFusionInstructionDataCodec, getCollectAndCompoundFeesFusionInstructionDataDecoder, getCollectAndCompoundFeesFusionInstructionDataEncoder, getCollectAndCompoundFeesOrcaDiscriminatorBytes, getCollectAndCompoundFeesOrcaInstruction, getCollectAndCompoundFeesOrcaInstructionDataCodec, getCollectAndCompoundFeesOrcaInstructionDataDecoder, getCollectAndCompoundFeesOrcaInstructionDataEncoder, getCollectFeesFusionDiscriminatorBytes, getCollectFeesFusionInstruction, getCollectFeesFusionInstructionDataCodec, getCollectFeesFusionInstructionDataDecoder, getCollectFeesFusionInstructionDataEncoder, getCollectFeesOrcaDiscriminatorBytes, getCollectFeesOrcaInstruction, getCollectFeesOrcaInstructionDataCodec, getCollectFeesOrcaInstructionDataDecoder, getCollectFeesOrcaInstructionDataEncoder, getCollectRewardOrcaDiscriminatorBytes, getCollectRewardOrcaInstruction, getCollectRewardOrcaInstructionDataCodec, getCollectRewardOrcaInstructionDataDecoder, getCollectRewardOrcaInstructionDataEncoder, getCreateAtaInstruction, getCreateAtaInstructions, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreateTunaConfigDiscriminatorBytes, getCreateTunaConfigInstruction, getCreateTunaConfigInstructionDataCodec, getCreateTunaConfigInstructionDataDecoder, getCreateTunaConfigInstructionDataEncoder, getCreateVaultDiscriminatorBytes, getCreateVaultInstruction, getCreateVaultInstructionDataCodec, getCreateVaultInstructionDataDecoder, getCreateVaultInstructionDataEncoder, getDecreaseTunaLpPositionFusionDiscriminatorBytes, getDecreaseTunaLpPositionFusionInstruction, getDecreaseTunaLpPositionFusionInstructionDataCodec, getDecreaseTunaLpPositionFusionInstructionDataDecoder, getDecreaseTunaLpPositionFusionInstructionDataEncoder, getDecreaseTunaLpPositionOrcaDiscriminatorBytes, getDecreaseTunaLpPositionOrcaInstruction, getDecreaseTunaLpPositionOrcaInstructionDataCodec, getDecreaseTunaLpPositionOrcaInstructionDataDecoder, getDecreaseTunaLpPositionOrcaInstructionDataEncoder, getDepositDiscriminatorBytes, getDepositInstruction, getDepositInstructionDataCodec, getDepositInstructionDataDecoder, getDepositInstructionDataEncoder, getIncreaseLpPositionQuote, getIncreaseTunaLpPositionFusionDiscriminatorBytes, getIncreaseTunaLpPositionFusionInstruction, getIncreaseTunaLpPositionFusionInstructionDataCodec, getIncreaseTunaLpPositionFusionInstructionDataDecoder, getIncreaseTunaLpPositionFusionInstructionDataEncoder, getIncreaseTunaLpPositionOrcaDiscriminatorBytes, getIncreaseTunaLpPositionOrcaInstruction, getIncreaseTunaLpPositionOrcaInstructionDataCodec, getIncreaseTunaLpPositionOrcaInstructionDataDecoder, getIncreaseTunaLpPositionOrcaInstructionDataEncoder, getLendingPositionAddress, getLendingPositionCodec, getLendingPositionDecoder, getLendingPositionDiscriminatorBytes, getLendingPositionEncoder, getLendingPositionSize, getLendingVaultAddress, getLiquidateTunaLpPositionFusionDiscriminatorBytes, getLiquidateTunaLpPositionFusionInstruction, getLiquidateTunaLpPositionFusionInstructionDataCodec, getLiquidateTunaLpPositionFusionInstructionDataDecoder, getLiquidateTunaLpPositionFusionInstructionDataEncoder, getLiquidateTunaLpPositionOrcaDiscriminatorBytes, getLiquidateTunaLpPositionOrcaInstruction, getLiquidateTunaLpPositionOrcaInstructionDataCodec, getLiquidateTunaLpPositionOrcaInstructionDataDecoder, getLiquidateTunaLpPositionOrcaInstructionDataEncoder, getLiquidateTunaSpotPositionFusionDiscriminatorBytes, getLiquidateTunaSpotPositionFusionInstruction, getLiquidateTunaSpotPositionFusionInstructionDataCodec, getLiquidateTunaSpotPositionFusionInstructionDataDecoder, getLiquidateTunaSpotPositionFusionInstructionDataEncoder, 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, getUpdateVaultDiscriminatorBytes, getUpdateVaultInstruction, getUpdateVaultInstructionDataCodec, getUpdateVaultInstructionDataDecoder, getUpdateVaultInstructionDataEncoder, getVaultCodec, getVaultDecoder, getVaultDiscriminatorBytes, getVaultEncoder, getVaultSize, getWithdrawDiscriminatorBytes, getWithdrawInstruction, getWithdrawInstructionDataCodec, getWithdrawInstructionDataDecoder, getWithdrawInstructionDataEncoder, identifyTunaAccount, identifyTunaInstruction, increaseTunaLpPositionFusionInstruction, increaseTunaLpPositionFusionInstructions, increaseTunaLpPositionOrcaInstruction, increaseTunaLpPositionOrcaInstructions, isTunaError, lendingPositionAuthorityFilter, lendingPositionMintFilter, liquidateTunaLpPositionFusionInstruction, liquidateTunaLpPositionFusionInstructions, liquidateTunaLpPositionOrcaInstruction, liquidateTunaLpPositionOrcaInstructions, liquidateTunaSpotPositionFusionInstruction, liquidateTunaSpotPositionFusionInstructions, liquidateTunaSpotPositionOrcaInstruction, liquidateTunaSpotPositionOrcaInstructions, modifyTunaSpotPositionFusionInstruction, modifyTunaSpotPositionFusionInstructions, 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, 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 };
|
|
6620
|
+
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 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_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, getIncreaseLpPositionQuote, 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 };
|