@0dotxyz/p0-ts-sdk 2.2.0-alpha.4 → 2.2.0-alpha.6

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.cts CHANGED
@@ -14407,6 +14407,8 @@ declare function addTransactionMetadata<T extends Transaction | VersionedTransac
14407
14407
  */
14408
14408
  declare function getTxSize(tx: VersionedTransaction | Transaction): number;
14409
14409
  declare function getAccountKeys(tx: VersionedTransaction | Transaction, lookupTableAccounts: AddressLookupTableAccount[]): number;
14410
+ declare function getWritableAccountKeys(tx: VersionedTransaction | Transaction): number;
14411
+ declare function getTotalAccountKeys(tx: VersionedTransaction | Transaction): number;
14410
14412
 
14411
14413
  /**
14412
14414
  * Decodes a Solana transaction instruction using the provided Interface Definition Language (IDL).
@@ -15551,6 +15553,56 @@ declare class HealthCacheSimulationError extends Error {
15551
15553
  constructor(message: string, mrgnErr: number | null, internalErr: number | null);
15552
15554
  }
15553
15555
 
15556
+ declare enum SwapProvider {
15557
+ JUPITER = "JUPITER",
15558
+ TITAN = "TITAN",
15559
+ DFLOW = "DFLOW"
15560
+ }
15561
+ interface SwapApiConfig {
15562
+ basePath?: string;
15563
+ apiKey?: string;
15564
+ headers?: Record<string, string>;
15565
+ }
15566
+ interface SwapProviderEntry {
15567
+ provider: SwapProvider;
15568
+ apiConfig?: SwapApiConfig;
15569
+ }
15570
+ interface SwapProviderConfig {
15571
+ provider: SwapProvider;
15572
+ slippageMode: "DYNAMIC" | "FIXED";
15573
+ slippageBps: number;
15574
+ platformFeeBps: number;
15575
+ directRoutesOnly?: boolean;
15576
+ apiConfig?: SwapApiConfig;
15577
+ fallbackProviders?: SwapProviderEntry[];
15578
+ }
15579
+ interface SwapOpts {
15580
+ swapConfig?: SwapProviderConfig;
15581
+ swapIxs?: {
15582
+ instructions: TransactionInstruction[];
15583
+ lookupTables: AddressLookupTableAccount[];
15584
+ };
15585
+ }
15586
+ interface SwapQuoteResult {
15587
+ inAmount: string;
15588
+ outAmount: string;
15589
+ otherAmountThreshold: string;
15590
+ slippageBps: number;
15591
+ platformFee?: {
15592
+ amount: string;
15593
+ feeBps: number;
15594
+ };
15595
+ priceImpactPct?: string;
15596
+ contextSlot?: number;
15597
+ timeTaken?: number;
15598
+ provider?: SwapProvider;
15599
+ }
15600
+ interface SwapIxsResult {
15601
+ swapInstructions: TransactionInstruction[];
15602
+ setupInstructions: TransactionInstruction[];
15603
+ addressLookupTableAddresses: AddressLookupTableAccount[];
15604
+ quoteResponse: SwapQuoteResult;
15605
+ }
15554
15606
  interface MakeDepositIxOpts {
15555
15607
  wrapAndUnwrapSol?: boolean;
15556
15608
  wSolBalanceUi?: number;
@@ -15822,19 +15874,7 @@ interface MakeLoopTxParams {
15822
15874
  borrowBank: BankType;
15823
15875
  tokenProgram: PublicKey;
15824
15876
  };
15825
- swapOpts: {
15826
- jupiterOptions?: {
15827
- slippageMode: "DYNAMIC" | "FIXED";
15828
- slippageBps: number;
15829
- platformFeeBps: number;
15830
- directRoutesOnly?: boolean;
15831
- configParams?: ConfigurationParameters;
15832
- };
15833
- swapIxs?: {
15834
- instructions: TransactionInstruction[];
15835
- lookupTables: AddressLookupTableAccount[];
15836
- };
15837
- };
15877
+ swapOpts: SwapOpts;
15838
15878
  addressLookupTableAccounts?: AddressLookupTableAccount[];
15839
15879
  overrideInferAccounts?: {
15840
15880
  group?: PublicKey;
@@ -15863,19 +15903,7 @@ interface MakeRepayWithCollatTxParams {
15863
15903
  totalPositionAmount: number;
15864
15904
  repayAmount?: number;
15865
15905
  };
15866
- swapOpts: {
15867
- jupiterOptions?: {
15868
- slippageMode: "DYNAMIC" | "FIXED";
15869
- slippageBps: number;
15870
- platformFeeBps: number;
15871
- directRoutesOnly?: boolean;
15872
- configParams?: ConfigurationParameters;
15873
- };
15874
- swapIxs?: {
15875
- instructions: TransactionInstruction[];
15876
- lookupTables: AddressLookupTableAccount[];
15877
- };
15878
- };
15906
+ swapOpts: SwapOpts;
15879
15907
  addressLookupTableAccounts?: AddressLookupTableAccount[];
15880
15908
  overrideInferAccounts?: {
15881
15909
  group?: PublicKey;
@@ -15902,15 +15930,7 @@ interface MakeSwapCollateralTxParams {
15902
15930
  depositBank: BankType;
15903
15931
  tokenProgram: PublicKey;
15904
15932
  };
15905
- swapOpts: {
15906
- jupiterOptions?: {
15907
- slippageMode: "DYNAMIC" | "FIXED";
15908
- slippageBps: number;
15909
- platformFeeBps: number;
15910
- directRoutesOnly?: boolean;
15911
- configParams?: ConfigurationParameters;
15912
- };
15913
- };
15933
+ swapOpts: SwapOpts;
15914
15934
  addressLookupTableAccounts?: AddressLookupTableAccount[];
15915
15935
  overrideInferAccounts?: {
15916
15936
  group?: PublicKey;
@@ -15937,15 +15957,7 @@ interface MakeSwapDebtTxParams {
15937
15957
  borrowBank: BankType;
15938
15958
  tokenProgram: PublicKey;
15939
15959
  };
15940
- swapOpts: {
15941
- jupiterOptions?: {
15942
- slippageMode: "DYNAMIC" | "FIXED";
15943
- slippageBps: number;
15944
- platformFeeBps: number;
15945
- directRoutesOnly?: boolean;
15946
- configParams?: ConfigurationParameters;
15947
- };
15948
- };
15960
+ swapOpts: SwapOpts;
15949
15961
  addressLookupTableAccounts?: AddressLookupTableAccount[];
15950
15962
  overrideInferAccounts?: {
15951
15963
  group?: PublicKey;
@@ -15962,35 +15974,6 @@ interface MakeSetupIxParams {
15962
15974
  tokenProgram: PublicKey;
15963
15975
  }[];
15964
15976
  }
15965
- interface MakeMintStakedLstIxParams {
15966
- amount: Amount;
15967
- authority: PublicKey;
15968
- stakeAccountPk: PublicKey;
15969
- validator: PublicKey;
15970
- connection: Connection;
15971
- }
15972
- interface MakeMintStakedLstTxParams extends MakeMintStakedLstIxParams {
15973
- luts: AddressLookupTableAccount[];
15974
- blockhash?: string;
15975
- }
15976
- interface MakeRedeemStakedLstIxParams {
15977
- amount: Amount;
15978
- authority: PublicKey;
15979
- validator: PublicKey;
15980
- connection: Connection;
15981
- }
15982
- interface MakeRedeemStakedLstTxParams extends MakeRedeemStakedLstIxParams {
15983
- luts: AddressLookupTableAccount[];
15984
- blockhash?: string;
15985
- }
15986
- interface MakeMergeStakeAccountsTxParams {
15987
- authority: PublicKey;
15988
- sourceStakeAccount: PublicKey;
15989
- destinationStakeAccount: PublicKey;
15990
- connection: Connection;
15991
- luts: AddressLookupTableAccount[];
15992
- blockhash?: string;
15993
- }
15994
15977
 
15995
15978
  /**
15996
15979
  * A combination of banks that need to be cranked
@@ -17217,19 +17200,75 @@ interface ComputeMaxWithdrawForBankParams {
17217
17200
  */
17218
17201
  declare function computeMaxWithdrawForBank(params: ComputeMaxWithdrawForBankParams): BigNumber$1;
17219
17202
 
17203
+ declare function toJupiterConfig(apiConfig?: SwapApiConfig): ConfigurationParameters | undefined;
17220
17204
  type GetJupiterSwapIxsForFlashloanParams = {
17221
17205
  quoteParams: QuoteGetRequest;
17222
17206
  authority: PublicKey;
17223
17207
  connection: Connection;
17224
17208
  destinationTokenAccount: PublicKey;
17225
- configParams?: ConfigurationParameters;
17209
+ apiConfig?: SwapApiConfig;
17210
+ maxSwapAccounts?: number;
17226
17211
  };
17227
- declare const getJupiterSwapIxsForFlashloan: ({ quoteParams, authority, connection, destinationTokenAccount, configParams, }: GetJupiterSwapIxsForFlashloanParams) => Promise<{
17228
- swapInstruction: TransactionInstruction;
17229
- addressLookupTableAddresses: AddressLookupTableAccount[];
17230
- quoteResponse: QuoteResponse;
17231
- setupInstructions: TransactionInstruction[];
17232
- }[]>;
17212
+ declare const getJupiterSwapIxsForFlashloan: ({ quoteParams, authority, connection, destinationTokenAccount, apiConfig, maxSwapAccounts, }: GetJupiterSwapIxsForFlashloanParams) => Promise<SwapIxsResult>;
17213
+
17214
+ type TitanQuoteParams = {
17215
+ inputMint: string;
17216
+ outputMint: string;
17217
+ amount: number;
17218
+ swapMode: "ExactIn" | "ExactOut";
17219
+ slippageBps?: number;
17220
+ platformFeeBps?: number;
17221
+ directRoutesOnly?: boolean;
17222
+ sizeConstraint?: number;
17223
+ maxSwapAccounts?: number;
17224
+ maxSwapTotalAccounts?: number;
17225
+ };
17226
+ type GetTitanSwapIxsParams = {
17227
+ quoteParams: TitanQuoteParams;
17228
+ authority: PublicKey;
17229
+ connection: Connection;
17230
+ destinationTokenAccount: PublicKey;
17231
+ apiConfig?: SwapApiConfig;
17232
+ };
17233
+ type GetTitanExactOutEstimateParams = {
17234
+ inputMint: string;
17235
+ outputMint: string;
17236
+ amount: number;
17237
+ slippageBps?: number;
17238
+ apiConfig?: SwapApiConfig;
17239
+ };
17240
+ declare const getTitanSwapIxsForFlashloan: ({ quoteParams, authority, connection, destinationTokenAccount, apiConfig, }: GetTitanSwapIxsParams) => Promise<SwapIxsResult>;
17241
+ declare const getTitanExactOutEstimate: (params: GetTitanExactOutEstimateParams) => Promise<{
17242
+ otherAmountThreshold: string;
17243
+ quoteResult: SwapQuoteResult;
17244
+ }>;
17245
+
17246
+ type GetSwapIxsForFlashloanParams = {
17247
+ inputMint: string;
17248
+ outputMint: string;
17249
+ amount: number;
17250
+ swapMode: "ExactIn" | "ExactOut";
17251
+ authority: PublicKey;
17252
+ connection: Connection;
17253
+ destinationTokenAccount: PublicKey;
17254
+ swapOpts: SwapOpts;
17255
+ sizeConstraint?: number;
17256
+ maxSwapTotalAccounts?: number;
17257
+ };
17258
+ declare const getSwapIxsForFlashloan: (params: GetSwapIxsForFlashloanParams) => Promise<SwapIxsResult>;
17259
+ type GetExactOutEstimateParams = {
17260
+ inputMint: string;
17261
+ outputMint: string;
17262
+ amount: number;
17263
+ swapOpts: SwapOpts;
17264
+ connection: Connection;
17265
+ };
17266
+ type ExactOutEstimateResult = {
17267
+ otherAmountThreshold: string;
17268
+ quoteResult: SwapQuoteResult;
17269
+ };
17270
+ declare const getExactOutEstimate: (params: GetExactOutEstimateParams) => Promise<ExactOutEstimateResult>;
17271
+ declare function mapJupiterQuoteToSwapQuoteResult(quote: QuoteResponse): SwapQuoteResult;
17233
17272
 
17234
17273
  declare function computeClosePositionTokenAmount(position: {
17235
17274
  amount: number;
@@ -17240,6 +17279,115 @@ declare function isWholePosition(position: {
17240
17279
  isLending: boolean;
17241
17280
  }, amount: number, mintDecimals: number): boolean;
17242
17281
 
17282
+ /**
17283
+ * Synchronous flashloan TX size estimator.
17284
+ *
17285
+ * Estimates the serialized size of a V0 flashloan transaction without compiling
17286
+ * or serializing the message. This allows us to synchronously compute the byte
17287
+ * overhead of non-swap instructions and determine how much budget remains for
17288
+ * the swap IX (e.g. Titan).
17289
+ *
17290
+ * Thoroughly tested using R&D scripts (rnd-flashloan-size.ts) and cross-referenced
17291
+ * against actual serialized transaction sizes across all action types (Loop, Repay,
17292
+ * SwapCollateral, SwapDebt) and asset tag variants (Standard, Kamino, Drift).
17293
+ */
17294
+
17295
+ /**
17296
+ * Estimate the serialized size of a V0 transaction from its instructions and LUTs.
17297
+ * Simulates the key resolution logic of TransactionMessage.compileToV0Message
17298
+ * without actually compiling or serializing the message.
17299
+ */
17300
+ declare function computeV0TxSize(ixs: TransactionInstruction[], payerKey: PublicKey, luts: AddressLookupTableAccount[]): {
17301
+ size: number;
17302
+ accountCount: number;
17303
+ writableAccountCount: number;
17304
+ };
17305
+ interface FlashloanSwapConstraints {
17306
+ /** Available bytes for swap instruction(s) */
17307
+ sizeConstraint: number;
17308
+ /** Available total account slots for swap instruction(s) */
17309
+ maxSwapTotalAccounts: number;
17310
+ }
17311
+ /**
17312
+ * Compute the available byte budget and account budget for swap instructions
17313
+ * in a flashloan TX. Compiles a real V0 message and serializes it for an exact
17314
+ * non-swap byte count.
17315
+ *
17316
+ * @param ixs - The non-swap IXs (CU requests + primary + secondary).
17317
+ * Must NOT include BeginFL/EndFL — those are synthesized internally.
17318
+ */
17319
+ declare function computeFlashLoanNonSwapBudget({ program, marginfiAccount, ixs, bankMap, addressLookupTableAccounts, }: {
17320
+ program: MarginfiProgram;
17321
+ marginfiAccount: {
17322
+ address: PublicKey;
17323
+ authority: PublicKey;
17324
+ balances: BalanceType[];
17325
+ };
17326
+ ixs: TransactionInstruction[];
17327
+ bankMap: Map<string, BankType>;
17328
+ addressLookupTableAccounts: AddressLookupTableAccount[];
17329
+ }): FlashloanSwapConstraints;
17330
+ interface FlashloanPrecheckResult {
17331
+ /** Exact serialized size of the full flashloan TX */
17332
+ fullTxSize: number;
17333
+ /** How many bytes over MAX_TX_SIZE (negative = under budget) */
17334
+ overshoot: number;
17335
+ /** Total writable accounts in the full TX */
17336
+ writableAccounts: number;
17337
+ /** Total accounts (static + LUT) in the full TX */
17338
+ totalAccounts: number;
17339
+ }
17340
+ /**
17341
+ * Compile the full flashloan TX (all IXs + all LUTs) and return exact size info.
17342
+ * Call this AFTER receiving swap IXs but BEFORE makeFlashLoanTx to detect overflows
17343
+ * early with good diagnostics.
17344
+ *
17345
+ * Uses a dummy blockhash (same 32 bytes as a real one) so the size is exact.
17346
+ */
17347
+ declare function compileFlashloanPrecheck({ allIxs, payer, luts, sizeConstraint, swapIxCount, swapLutCount, }: {
17348
+ allIxs: TransactionInstruction[];
17349
+ payer: PublicKey;
17350
+ luts: AddressLookupTableAccount[];
17351
+ sizeConstraint: number;
17352
+ swapIxCount: number;
17353
+ swapLutCount: number;
17354
+ }): FlashloanPrecheckResult;
17355
+ type FlashloanBudgetIx = {
17356
+ type: "borrow";
17357
+ bank: BankType;
17358
+ tokenProgram: PublicKey;
17359
+ } | {
17360
+ type: "repay";
17361
+ bank: BankType;
17362
+ tokenProgram: PublicKey;
17363
+ } | {
17364
+ type: "deposit";
17365
+ bank: BankType;
17366
+ tokenProgram: PublicKey;
17367
+ } | {
17368
+ type: "withdraw";
17369
+ bank: BankType;
17370
+ tokenProgram: PublicKey;
17371
+ };
17372
+ /**
17373
+ * Compute flashloan swap constraints by building dummy primary + secondary IXs
17374
+ * and measuring the remaining TX budget. Replaces the duplicated switch/case
17375
+ * blocks in each action file.
17376
+ */
17377
+ declare function computeFlashloanSwapConstraints({ program, marginfiAccount, bankMap, addressLookupTableAccounts, bankMetadataMap, primaryIx, secondaryIx, overrideInferAccounts, }: {
17378
+ program: MarginfiProgram;
17379
+ marginfiAccount: MarginfiAccountType;
17380
+ bankMap: Map<string, BankType>;
17381
+ addressLookupTableAccounts: AddressLookupTableAccount[];
17382
+ bankMetadataMap: BankIntegrationMetadataMap;
17383
+ primaryIx: FlashloanBudgetIx;
17384
+ secondaryIx: FlashloanBudgetIx;
17385
+ overrideInferAccounts?: {
17386
+ group?: PublicKey;
17387
+ authority?: PublicKey;
17388
+ };
17389
+ }): Promise<FlashloanSwapConstraints>;
17390
+
17243
17391
  /**
17244
17392
  * Creates an instruction to close a Marginfi account.
17245
17393
  *
@@ -17574,7 +17722,7 @@ declare function makeJuplendDepositTx(params: MakeJuplendDepositTxParams): Promi
17574
17722
  declare function makeLoopTx(params: MakeLoopTxParams): Promise<{
17575
17723
  transactions: ExtendedV0Transaction[];
17576
17724
  actionTxIndex: number;
17577
- quoteResponse: QuoteResponse | undefined;
17725
+ quoteResponse: SwapQuoteResult | undefined;
17578
17726
  }>;
17579
17727
 
17580
17728
  /**
@@ -17633,7 +17781,7 @@ declare function makeRepayIx({ program, bank, tokenProgram, amount, authority, a
17633
17781
  declare function makeRepayTx(params: MakeRepayTxParams): Promise<ExtendedTransaction>;
17634
17782
  declare function makeRepayWithCollatTx(params: MakeRepayWithCollatTxParams): Promise<{
17635
17783
  transactions: ExtendedV0Transaction[];
17636
- swapQuote: QuoteResponse | undefined;
17784
+ swapQuote: SwapQuoteResult | undefined;
17637
17785
  amountToRepay: number;
17638
17786
  }>;
17639
17787
 
@@ -17661,14 +17809,14 @@ declare function makeClearEmissionsIx(program: MarginfiProgram, marginfiAccount:
17661
17809
  * oraclePrices,
17662
17810
  * withdrawOpts: { totalPositionAmount: 10, withdrawBank: jitoSolBank, tokenProgram },
17663
17811
  * depositOpts: { depositBank: mSolBank, tokenProgram },
17664
- * swapOpts: { jupiterOptions: { slippageMode: "DYNAMIC", slippageBps: 50 } },
17812
+ * swapOpts: { swapConfig: { provider: SwapProvider.JUPITER, slippageMode: "DYNAMIC", slippageBps: 50, platformFeeBps: 0 } },
17665
17813
  * // ...
17666
17814
  * });
17667
17815
  */
17668
17816
  declare function makeSwapCollateralTx(params: MakeSwapCollateralTxParams): Promise<{
17669
17817
  transactions: ExtendedV0Transaction[];
17670
17818
  actionTxIndex: number;
17671
- quoteResponse: QuoteResponse | undefined;
17819
+ quoteResponse: SwapQuoteResult | undefined;
17672
17820
  }>;
17673
17821
 
17674
17822
  /**
@@ -17686,53 +17834,16 @@ declare function makeSwapCollateralTx(params: MakeSwapCollateralTxParams): Promi
17686
17834
  * oraclePrices,
17687
17835
  * repayOpts: { totalPositionAmount: 100, repayBank: usdcBank, tokenProgram },
17688
17836
  * borrowOpts: { borrowBank: solBank, tokenProgram },
17689
- * swapOpts: { jupiterOptions: { slippageMode: "DYNAMIC", slippageBps: 50 } },
17837
+ * swapOpts: { swapConfig: { provider: SwapProvider.JUPITER, slippageMode: "DYNAMIC", slippageBps: 50, platformFeeBps: 0 } },
17690
17838
  * // ...
17691
17839
  * });
17692
17840
  */
17693
17841
  declare function makeSwapDebtTx(params: MakeSwapDebtTxParams): Promise<{
17694
17842
  transactions: ExtendedV0Transaction[];
17695
17843
  actionTxIndex: number;
17696
- quoteResponse: QuoteResponse | undefined;
17844
+ quoteResponse: SwapQuoteResult | undefined;
17697
17845
  }>;
17698
17846
 
17699
- /**
17700
- * Creates instructions to convert a native stake account into LST tokens.
17701
- *
17702
- * Steps:
17703
- * 1. Create LST ATA if needed
17704
- * 2. Split stake account if partial amount
17705
- * 3. Authorize staker + withdrawer to pool
17706
- * 4. Deposit stake into pool → user receives LST
17707
- */
17708
- declare function makeMintStakedLstIx(params: MakeMintStakedLstIxParams): Promise<InstructionsWrapper>;
17709
- /**
17710
- * Creates a versioned transaction to convert a native stake account into LST tokens.
17711
- */
17712
- declare function makeMintStakedLstTx(params: MakeMintStakedLstTxParams): Promise<ExtendedV0Transaction>;
17713
-
17714
- /**
17715
- * Creates instructions to convert LST tokens back to a native stake account.
17716
- *
17717
- * Steps:
17718
- * 1. Create new stake account (rent-exempt)
17719
- * 2. Approve pool mint authority to burn LST
17720
- * 3. Withdraw stake from pool → user receives stake account
17721
- */
17722
- declare function makeRedeemStakedLstIx(params: MakeRedeemStakedLstIxParams): Promise<InstructionsWrapper>;
17723
- /**
17724
- * Creates a versioned transaction to convert LST tokens back to a native stake account.
17725
- */
17726
- declare function makeRedeemStakedLstTx(params: MakeRedeemStakedLstTxParams): Promise<ExtendedV0Transaction>;
17727
-
17728
- /**
17729
- * Creates a versioned transaction to merge two stake accounts.
17730
- *
17731
- * The source stake account will be merged into the destination stake account.
17732
- * Both accounts must share the same authorized staker/withdrawer and vote account.
17733
- */
17734
- declare function makeMergeStakeAccountsTx(params: MakeMergeStakeAccountsTxParams): Promise<ExtendedV0Transaction>;
17735
-
17736
17847
  type MakeSmartCrankSwbFeedIxParams = {
17737
17848
  marginfiAccount: MarginfiAccountType;
17738
17849
  bankMap: Map<string, BankType>;
@@ -18094,7 +18205,7 @@ declare function computeMaxLeverage(depositBank: BankType, borrowBank: BankType,
18094
18205
  * );
18095
18206
  * ```
18096
18207
  */
18097
- declare function computeLoopingParams(principal: Amount, targetLeverage: number, depositBank: BankType, borrowBank: BankType, depositOracleInfo: OraclePrice, borrowOracleInfo: OraclePrice, opts?: {
18208
+ declare function computeLoopingParams(principal: Amount, targetLeverage: number, depositBank: BankType, borrowBank: BankType, depositPriceUsd: number, borrowPriceUsd: number, opts?: {
18098
18209
  assetWeightInit?: BigNumber$1;
18099
18210
  liabilityWeightInit?: BigNumber$1;
18100
18211
  }): {
@@ -18497,6 +18608,36 @@ type ValidatorRateData = {
18497
18608
  };
18498
18609
  type ActiveStakePoolMap = Map<string, boolean>;
18499
18610
 
18611
+ interface MakeMintStakedLstIxParams {
18612
+ amount: Amount;
18613
+ authority: PublicKey;
18614
+ stakeAccountPk: PublicKey;
18615
+ validator: PublicKey;
18616
+ connection: Connection;
18617
+ }
18618
+ interface MakeMintStakedLstTxParams extends MakeMintStakedLstIxParams {
18619
+ luts: AddressLookupTableAccount[];
18620
+ blockhash?: string;
18621
+ }
18622
+ interface MakeRedeemStakedLstIxParams {
18623
+ amount: Amount;
18624
+ authority: PublicKey;
18625
+ validator: PublicKey;
18626
+ connection: Connection;
18627
+ }
18628
+ interface MakeRedeemStakedLstTxParams extends MakeRedeemStakedLstIxParams {
18629
+ luts: AddressLookupTableAccount[];
18630
+ blockhash?: string;
18631
+ }
18632
+ interface MakeMergeStakeAccountsTxParams {
18633
+ authority: PublicKey;
18634
+ sourceStakeAccount: PublicKey;
18635
+ destinationStakeAccount: PublicKey;
18636
+ connection: Connection;
18637
+ luts: AddressLookupTableAccount[];
18638
+ blockhash?: string;
18639
+ }
18640
+
18500
18641
  /**
18501
18642
  * Retrieves all active stake accounts associated with a given public key grouped by validator
18502
18643
  *
@@ -18555,6 +18696,65 @@ declare function getStakedBankMetadataMap(): Map<string, StakedBankMetadata>;
18555
18696
  */
18556
18697
  declare function getValidatorVoteAccountByBank(): Record<string, string>;
18557
18698
 
18699
+ /**
18700
+ * Minimal bank shape required to compute staked-bank multipliers.
18701
+ * Kept local to avoid a hard dependency on the Bank model.
18702
+ */
18703
+ interface StakedBankLike {
18704
+ address: PublicKey;
18705
+ }
18706
+ /**
18707
+ * Computes the asset-share multiplier (LST → SOL ratio) for each staked bank.
18708
+ *
18709
+ * For each staked bank:
18710
+ * multiplier = max(stakeLamports - LAMPORTS_PER_SOL, 0) / lstMintSupply
18711
+ *
18712
+ * Banks whose metadata cannot be resolved, or whose pool accounts cannot be
18713
+ * fetched, default to a multiplier of 1.
18714
+ *
18715
+ * @param stakedBanks - Banks with `assetTag === AssetTag.STAKED`
18716
+ * @param connection - Solana RPC connection
18717
+ * @returns Map of bank address (base58) → BigNumber multiplier
18718
+ */
18719
+ declare function computeStakedBankMultipliers(stakedBanks: StakedBankLike[], connection: Connection): Promise<Map<string, BigNumber$1>>;
18720
+
18721
+ /**
18722
+ * Creates instructions to convert a native stake account into LST tokens.
18723
+ *
18724
+ * Steps:
18725
+ * 1. Create LST ATA if needed
18726
+ * 2. Split stake account if partial amount
18727
+ * 3. Authorize staker + withdrawer to pool
18728
+ * 4. Deposit stake into pool → user receives LST
18729
+ */
18730
+ declare function makeMintStakedLstIx(params: MakeMintStakedLstIxParams): Promise<InstructionsWrapper>;
18731
+ /**
18732
+ * Creates a versioned transaction to convert a native stake account into LST tokens.
18733
+ */
18734
+ declare function makeMintStakedLstTx(params: MakeMintStakedLstTxParams): Promise<ExtendedV0Transaction>;
18735
+
18736
+ /**
18737
+ * Creates instructions to convert LST tokens back to a native stake account.
18738
+ *
18739
+ * Steps:
18740
+ * 1. Create new stake account (rent-exempt)
18741
+ * 2. Approve pool mint authority to burn LST
18742
+ * 3. Withdraw stake from pool → user receives stake account
18743
+ */
18744
+ declare function makeRedeemStakedLstIx(params: MakeRedeemStakedLstIxParams): Promise<InstructionsWrapper>;
18745
+ /**
18746
+ * Creates a versioned transaction to convert LST tokens back to a native stake account.
18747
+ */
18748
+ declare function makeRedeemStakedLstTx(params: MakeRedeemStakedLstTxParams): Promise<ExtendedV0Transaction>;
18749
+
18750
+ /**
18751
+ * Creates a versioned transaction to merge two stake accounts.
18752
+ *
18753
+ * The source stake account will be merged into the destination stake account.
18754
+ * Both accounts must share the same authorized staker/withdrawer and vote account.
18755
+ */
18756
+ declare function makeMergeStakeAccountsTx(params: MakeMergeStakeAccountsTxParams): Promise<ExtendedV0Transaction>;
18757
+
18558
18758
  /**
18559
18759
  * Temporary Module for Functions Pending Refactoring
18560
18760
  *
@@ -19057,24 +19257,34 @@ declare function getConfig(environment?: Environment, overrides?: Partial<Omit<P
19057
19257
  * Error codes for transaction building failures
19058
19258
  */
19059
19259
  declare enum TransactionBuildingErrorCode {
19060
- JUPITER_SWAP_SIZE_EXCEEDED_REPAY = "JUPITER_SWAP_SIZE_EXCEEDED_REPAY",
19061
- JUPITER_SWAP_SIZE_EXCEEDED_LOOP = "JUPITER_SWAP_SIZE_EXCEEDED_LOOP",
19260
+ SWAP_SIZE_EXCEEDED_LOOP = "SWAP_SIZE_EXCEEDED_LOOP",
19261
+ SWAP_SIZE_EXCEEDED_REPAY = "SWAP_SIZE_EXCEEDED_REPAY",
19262
+ SWAP_SIZE_EXCEEDED_POSITION_SWAP = "SWAP_SIZE_EXCEEDED_POSITION_SWAP",
19062
19263
  ORACLE_CRANK_FAILED = "ORACLE_CRANK_FAILED",
19063
19264
  KAMINO_RESERVE_NOT_FOUND = "KAMINO_RESERVE_NOT_FOUND",
19064
19265
  DRIFT_STATE_NOT_FOUND = "DRIFT_STATE_NOT_FOUND",
19065
- JUPLEND_STATE_NOT_FOUND = "JUPLEND_STATE_NOT_FOUND"
19266
+ JUPLEND_STATE_NOT_FOUND = "JUPLEND_STATE_NOT_FOUND",
19267
+ SWITCHBOARD_FEED_UPDATE_FAILED = "SWITCHBOARD_FEED_UPDATE_FAILED",
19268
+ SWAP_QUOTE_FAILED = "SWAP_QUOTE_FAILED"
19066
19269
  }
19067
19270
  /**
19068
19271
  * Typed details for each error code
19069
19272
  */
19070
19273
  interface TransactionBuildingErrorDetails {
19071
- [TransactionBuildingErrorCode.JUPITER_SWAP_SIZE_EXCEEDED_LOOP]: {
19274
+ [TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_LOOP]: {
19275
+ bytes: number;
19276
+ accountKeys: number;
19277
+ provider?: string;
19278
+ };
19279
+ [TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_REPAY]: {
19072
19280
  bytes: number;
19073
19281
  accountKeys: number;
19282
+ provider?: string;
19074
19283
  };
19075
- [TransactionBuildingErrorCode.JUPITER_SWAP_SIZE_EXCEEDED_REPAY]: {
19284
+ [TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_POSITION_SWAP]: {
19076
19285
  bytes: number;
19077
19286
  accountKeys: number;
19287
+ provider?: string;
19078
19288
  };
19079
19289
  [TransactionBuildingErrorCode.ORACLE_CRANK_FAILED]: {
19080
19290
  uncrankableLiabilities: Array<{
@@ -19105,6 +19315,16 @@ interface TransactionBuildingErrorDetails {
19105
19315
  bankMint: string;
19106
19316
  bankSymbol?: string;
19107
19317
  };
19318
+ [TransactionBuildingErrorCode.SWITCHBOARD_FEED_UPDATE_FAILED]: {
19319
+ oracleKeys: string[];
19320
+ reason: string;
19321
+ };
19322
+ [TransactionBuildingErrorCode.SWAP_QUOTE_FAILED]: {
19323
+ provider: string;
19324
+ inputMint: string;
19325
+ outputMint: string;
19326
+ reason: string;
19327
+ };
19108
19328
  }
19109
19329
  /**
19110
19330
  * Error thrown during transaction building in the SDK.
@@ -19115,11 +19335,9 @@ declare class TransactionBuildingError<T extends TransactionBuildingErrorCode =
19115
19335
  readonly code: T;
19116
19336
  readonly details: TransactionBuildingErrorDetails[T];
19117
19337
  private constructor();
19118
- /**
19119
- * Jupiter swap instruction size exceeds available transaction size
19120
- */
19121
- static jupiterSwapSizeExceededLoop(bytes: number, accountKeys: number): TransactionBuildingError<TransactionBuildingErrorCode.JUPITER_SWAP_SIZE_EXCEEDED_LOOP>;
19122
- static jupiterSwapSizeExceededRepay(bytes: number, accountKeys: number): TransactionBuildingError<TransactionBuildingErrorCode.JUPITER_SWAP_SIZE_EXCEEDED_REPAY>;
19338
+ static swapSizeExceededLoop(bytes: number, accountKeys: number, provider?: string): TransactionBuildingError<TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_LOOP>;
19339
+ static swapSizeExceededRepay(bytes: number, accountKeys: number, provider?: string): TransactionBuildingError<TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_REPAY>;
19340
+ static swapSizeExceededPositionSwap(bytes: number, accountKeys: number, provider?: string): TransactionBuildingError<TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_POSITION_SWAP>;
19123
19341
  /**
19124
19342
  * Failed to crank oracles for one or more banks
19125
19343
  */
@@ -19146,6 +19364,14 @@ declare class TransactionBuildingError<T extends TransactionBuildingErrorCode =
19146
19364
  * Failed to find JupLend state for a bank
19147
19365
  */
19148
19366
  static jupLendStateNotFound(bankAddress: string, bankMint: string, bankSymbol?: string): TransactionBuildingError<TransactionBuildingErrorCode.JUPLEND_STATE_NOT_FOUND>;
19367
+ /**
19368
+ * Failed to update Switchboard price feeds
19369
+ */
19370
+ static switchboardFeedUpdateFailed(oracleKeys: string[], reason: string): TransactionBuildingError<TransactionBuildingErrorCode.SWITCHBOARD_FEED_UPDATE_FAILED>;
19371
+ /**
19372
+ * Failed to get a swap quote from any provider
19373
+ */
19374
+ static swapQuoteFailed(provider: string, inputMint: string, outputMint: string, reason: string): TransactionBuildingError<TransactionBuildingErrorCode.SWAP_QUOTE_FAILED>;
19149
19375
  /**
19150
19376
  * Generic escape hatch for custom errors
19151
19377
  */
@@ -19310,6 +19536,7 @@ declare const HOURS_PER_YEAR: number;
19310
19536
  declare const MAX_U64: string;
19311
19537
 
19312
19538
  declare const MAX_TX_SIZE: number;
19539
+ declare const MAX_ACCOUNT_LOCKS = 64;
19313
19540
  declare const BUNDLE_TX_SIZE: number;
19314
19541
  declare const PRIORITY_TX_SIZE: number;
19315
19542
 
@@ -19812,7 +20039,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19812
20039
  * @param params.oraclePrices - Map of current oracle prices
19813
20040
  * @param params.depositOpts - Deposit configuration (bank, amount, mode)
19814
20041
  * @param params.borrowOpts - Borrow configuration (bank, amount)
19815
- * @param params.swapOpts - Jupiter swap configuration (slippage, fees)
20042
+ * @param params.swapOpts - Swap configuration (venue, slippage, fees)
19816
20043
  * @param params.addressLookupTableAccounts - Address lookup tables
19817
20044
  * @param params.overrideInferAccounts - Optional account overrides
19818
20045
  * @param params.additionalIxs - Additional instructions to include
@@ -19827,7 +20054,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19827
20054
  makeLoopTx(params: Omit<MakeLoopTxParams, "marginfiAccount">): Promise<{
19828
20055
  transactions: ExtendedV0Transaction[];
19829
20056
  actionTxIndex: number;
19830
- quoteResponse: QuoteResponse | undefined;
20057
+ quoteResponse: SwapQuoteResult | undefined;
19831
20058
  }>;
19832
20059
  /**
19833
20060
  * Creates a transaction to repay debt using collateral.
@@ -19844,7 +20071,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19844
20071
  * @param params.oraclePrices - Map of current oracle prices
19845
20072
  * @param params.withdrawOpts - Withdraw configuration (bank, amount)
19846
20073
  * @param params.repayOpts - Repay configuration (bank, optional amount)
19847
- * @param params.swapOpts - Jupiter swap configuration
20074
+ * @param params.swapOpts - Swap configuration (venue, slippage, fees)
19848
20075
  * @param params.addressLookupTableAccounts - Address lookup tables
19849
20076
  * @param params.overrideInferAccounts - Optional account overrides
19850
20077
  * @param params.additionalIxs - Additional instructions to include
@@ -19859,7 +20086,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19859
20086
  */
19860
20087
  makeRepayWithCollatTx(params: Omit<MakeRepayWithCollatTxParams, "marginfiAccount">): Promise<{
19861
20088
  transactions: ExtendedV0Transaction[];
19862
- swapQuote: QuoteResponse | undefined;
20089
+ swapQuote: SwapQuoteResult | undefined;
19863
20090
  amountToRepay: number;
19864
20091
  }>;
19865
20092
  /**
@@ -19878,7 +20105,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19878
20105
  * @param params.oraclePrices - Map of current oracle prices
19879
20106
  * @param params.withdrawOpts - Withdraw configuration (bank, amount, tokenProgram)
19880
20107
  * @param params.depositOpts - Deposit configuration (bank, tokenProgram)
19881
- * @param params.swapOpts - Jupiter swap configuration
20108
+ * @param params.swapOpts - Swap configuration (venue, slippage, fees)
19882
20109
  * @param params.addressLookupTableAccounts - Address lookup tables
19883
20110
  * @param params.overrideInferAccounts - Optional account overrides
19884
20111
  * @param params.additionalIxs - Additional instructions to include
@@ -19894,7 +20121,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19894
20121
  makeSwapCollateralTx(params: Omit<MakeSwapCollateralTxParams, "marginfiAccount">): Promise<{
19895
20122
  transactions: ExtendedV0Transaction[];
19896
20123
  actionTxIndex: number;
19897
- quoteResponse: QuoteResponse | undefined;
20124
+ quoteResponse: SwapQuoteResult | undefined;
19898
20125
  }>;
19899
20126
  /**
19900
20127
  * Creates a transaction to swap one debt position to another using a flash loan.
@@ -19912,7 +20139,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19912
20139
  * @param params.oraclePrices - Map of current oracle prices
19913
20140
  * @param params.repayOpts - Repay configuration (bank, amount, tokenProgram)
19914
20141
  * @param params.borrowOpts - Borrow configuration (bank, tokenProgram)
19915
- * @param params.swapOpts - Jupiter swap configuration
20142
+ * @param params.swapOpts - Swap configuration (venue, slippage, fees)
19916
20143
  * @param params.addressLookupTableAccounts - Address lookup tables
19917
20144
  * @param params.overrideInferAccounts - Optional account overrides
19918
20145
  * @param params.additionalIxs - Additional instructions to include
@@ -19927,7 +20154,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19927
20154
  makeSwapDebtTx(params: Omit<MakeSwapDebtTxParams, "marginfiAccount">): Promise<{
19928
20155
  transactions: ExtendedV0Transaction[];
19929
20156
  actionTxIndex: number;
19930
- quoteResponse: QuoteResponse | undefined;
20157
+ quoteResponse: SwapQuoteResult | undefined;
19931
20158
  }>;
19932
20159
  /**
19933
20160
  * Creates a deposit transaction.
@@ -20226,7 +20453,7 @@ declare class MarginfiAccountWrapper {
20226
20453
  makeLoopTx(params: Omit<MakeLoopTxParams, "program" | "marginfiAccount" | "bankMap" | "oraclePrices" | "bankMetadataMap" | "addressLookupTableAccounts">): Promise<{
20227
20454
  transactions: ExtendedV0Transaction[];
20228
20455
  actionTxIndex: number;
20229
- quoteResponse: QuoteResponse | undefined;
20456
+ quoteResponse: SwapQuoteResult | undefined;
20230
20457
  }>;
20231
20458
  /**
20232
20459
  * Creates a repay with collateral transaction with auto-injected client data.
@@ -20237,7 +20464,7 @@ declare class MarginfiAccountWrapper {
20237
20464
  */
20238
20465
  makeRepayWithCollatTx(params: Omit<MakeRepayWithCollatTxParams, "program" | "marginfiAccount" | "bankMap" | "oraclePrices" | "bankMetadataMap" | "addressLookupTableAccounts">): Promise<{
20239
20466
  transactions: ExtendedV0Transaction[];
20240
- swapQuote: QuoteResponse | undefined;
20467
+ swapQuote: SwapQuoteResult | undefined;
20241
20468
  amountToRepay: number;
20242
20469
  }>;
20243
20470
  /**
@@ -20253,7 +20480,7 @@ declare class MarginfiAccountWrapper {
20253
20480
  makeSwapCollateralTx(params: Omit<MakeSwapCollateralTxParams, "program" | "marginfiAccount" | "bankMap" | "oraclePrices" | "bankMetadataMap" | "addressLookupTableAccounts">): Promise<{
20254
20481
  transactions: ExtendedV0Transaction[];
20255
20482
  actionTxIndex: number;
20256
- quoteResponse: QuoteResponse | undefined;
20483
+ quoteResponse: SwapQuoteResult | undefined;
20257
20484
  }>;
20258
20485
  /**
20259
20486
  * Creates a swap debt transaction with auto-injected client data.
@@ -20268,7 +20495,7 @@ declare class MarginfiAccountWrapper {
20268
20495
  makeSwapDebtTx(params: Omit<MakeSwapDebtTxParams, "program" | "marginfiAccount" | "bankMap" | "oraclePrices" | "bankMetadataMap" | "addressLookupTableAccounts">): Promise<{
20269
20496
  transactions: ExtendedV0Transaction[];
20270
20497
  actionTxIndex: number;
20271
- quoteResponse: QuoteResponse | undefined;
20498
+ quoteResponse: SwapQuoteResult | undefined;
20272
20499
  }>;
20273
20500
  /**
20274
20501
  * Creates a deposit transaction with auto-injected client data.
@@ -20463,35 +20690,6 @@ declare class MarginfiAccountWrapper {
20463
20690
  * @param excludedBanks - Array of excluded bank public keys (default: [])
20464
20691
  */
20465
20692
  getHealthCheckAccounts(mandatoryBanks?: PublicKey[], excludedBanks?: PublicKey[]): BankType[];
20466
- /**
20467
- * Creates a transaction to mint LST from a native stake account.
20468
- *
20469
- * Converts a native stake account (or a portion of it) into LST tokens
20470
- * by depositing the stake into the single-validator pool.
20471
- *
20472
- * @param amount - SOL amount to convert (in UI units)
20473
- * @param stakeAccountPk - The stake account to convert
20474
- * @param validator - The validator vote account
20475
- */
20476
- makeMintStakedLstTx(amount: Amount, stakeAccountPk: PublicKey, validator: PublicKey): Promise<ExtendedV0Transaction>;
20477
- /**
20478
- * Creates a transaction to redeem LST tokens back to a native stake account.
20479
- *
20480
- * Burns LST tokens and withdraws the underlying stake into a new stake account.
20481
- *
20482
- * @param amount - LST amount to redeem (in UI units)
20483
- * @param validator - The validator vote account
20484
- */
20485
- makeRedeemStakedLstTx(amount: Amount, validator: PublicKey): Promise<ExtendedV0Transaction>;
20486
- /**
20487
- * Creates a transaction to merge two stake accounts.
20488
- *
20489
- * Both accounts must share the same authorized staker/withdrawer and vote account.
20490
- *
20491
- * @param sourceStakeAccount - The stake account to merge from (will be consumed)
20492
- * @param destinationStakeAccount - The stake account to merge into
20493
- */
20494
- makeMergeStakeAccountsTx(sourceStakeAccount: PublicKey, destinationStakeAccount: PublicKey): Promise<ExtendedV0Transaction>;
20495
20693
  /**
20496
20694
  * Gets the underlying MarginfiAccount instance.
20497
20695
  * Useful for advanced operations that need direct access.
@@ -20503,4 +20701,4 @@ declare class MarginfiAccountWrapper {
20503
20701
  getClient(): Project0Client;
20504
20702
  }
20505
20703
 
20506
- export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_SWAP, AccountFlags, AccountType, type ActionEmodeImpact, type ActiveEmodePair, type ActiveStakePoolMap, type Amount, type AmountType, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceRaw, type BalanceType, type BalanceTypeDto, Bank, type BankAddress, BankConfig, type BankConfigCompactRaw, type BankConfigDto, BankConfigFlag, type BankConfigOpt, type BankConfigOptRaw, type BankConfigRaw, type BankConfigRawDto, type BankConfigType, type BankIntegrationMetadata, type BankIntegrationMetadataDto, type BankIntegrationMetadataMap, type BankIntegrationMetadataMapDto, type BankMap, type BankMetadata, type BankMetadataRaw, type BankRaw, type BankRawDto, type BankType, type BankTypeDto, BankVaultType, type ComputeAssetHealthComponentParams, type ComputeAssetUsdValueParams, type ComputeBalanceUsdValueParams, type ComputeFreeCollateralFromBalancesParams, type ComputeHealthCacheStatusParams, type ComputeHealthComponentsFromBalancesParams, type ComputeHealthComponentsWithoutBiasParams, type ComputeLiabilityHealthComponentParams, type ComputeLiabilityUsdValueParams, type ComputeLiquidationPriceForBankParams, type ComputeMaxBorrowForBankParams, type ComputeMaxWithdrawForBankParams, type ComputeNetApyParams, type ComputeUsdValueParams, ConfigRaw, type CrankCombination, type CrankabilityResult, DEFAULT_ORACLE_MAX_AGE, DISABLED_FLAG, type DriftBankInput, type DriftMetadata, type DriftStateByBank, type DriftStateJsonByBank, EMPTY_HEALTH_CACHE, type EmodeConfigRaw, type EmodeConfigRawDto, type EmodeEntry, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, type EmodeImpact, EmodeImpactStatus, type EmodePair, EmodeSettings, type EmodeSettingsDto, type EmodeSettingsRaw, type EmodeSettingsRawDto, type EmodeSettingsType, EmodeTag, type Environment, type ExtendedTransaction, type ExtendedTransactionProperties, type ExtendedV0Transaction, FLASHLOAN_ENABLED_FLAG, type FeeStateCache, type FetchBankIntegrationMetadataOptions, type FetchDriftMetadataOptions, type FetchJupLendMetadataOptions, type FetchKaminoMetadataOptions, type FlashloanActionResult, type GetAssetWeightParams, type GetBalanceUsdValueWithPriceBiasParams, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, type HealthCacheRaw, HealthCacheSimulationError, HealthCacheStatus, type HealthCacheType, type HealthCacheTypeDto, type InstructionsWrapper, type IntegrationType, type InterestRateConfig, type InterestRateConfigCompactRaw, type InterestRateConfigDto, type InterestRateConfigOpt, type InterestRateConfigOptRaw, type InterestRateConfigRaw, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, type JupLendBankInput, type JupLendMetadata, type JupLendStateByBank, type JupLendStateJsonByBank, type KaminoBankInput, type KaminoMetadata, type KaminoStateByBank, type KaminoStateJsonByBank, type KaminoStates, LST_MINT, MARGINFI_IDL, MARGINFI_PROGRAM, MARGINFI_PROGRAM_STAGING, MARGINFI_PROGRAM_STAGING_ALT, MARGINFI_SPONSORED_SHARD_ID, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeBorrowIxOpts, type MakeBorrowIxParams, type MakeBorrowTxParams, type MakeCloseAccountIxParams, type MakeCloseAccountTxParams, type MakeDepositIxOpts, type MakeDepositIxParams, type MakeDepositTxParams, type MakeDriftDepositIxParams, type MakeDriftDepositTxParams, type MakeDriftWithdrawIxParams, type MakeDriftWithdrawTxParams, type MakeFlashLoanTxParams, type MakeJuplendDepositIxParams, type MakeJuplendDepositTxParams, type MakeJuplendWithdrawIxParams, type MakeJuplendWithdrawTxParams, type MakeKaminoDepositIxParams, type MakeKaminoDepositTxParams, type MakeKaminoWithdrawIxParams, type MakeKaminoWithdrawTxParams, type MakeLoopTxParams, type MakeMergeStakeAccountsTxParams, type MakeMintStakedLstIxParams, type MakeMintStakedLstTxParams, type MakeRedeemStakedLstIxParams, type MakeRedeemStakedLstTxParams, type MakeRepayIxOpts, type MakeRepayIxParams, type MakeRepayTxParams, type MakeRepayWithCollatTxParams, type MakeSetupIxParams, type MakeSwapCollateralTxParams, type MakeSwapDebtTxParams, type MakeWithdrawIxOpts, type MakeWithdrawIxParams, type MakeWithdrawTxParams, MarginRequirementType, type MarginRequirementTypeRaw, MarginfiAccount, type MarginfiAccountRaw, type MarginfiAccountType, type MarginfiAccountTypeDto, MarginfiAccountWrapper, MarginfiGroup, type MarginfiGroupRaw, type MarginfiGroupType, type MarginfiGroupTypeDto, type MarginfiIdlType, type MarginfiProgram, type MintData, type MintDataMap, OperationalState, type OperationalStateRaw, type OracleConfigOpt, type OracleConfigOptRaw, type OraclePrice, type OraclePriceDto, type OraclePriceMap, OracleSetup, type OracleSetupRaw, type OracleSourceKey, PDA_BANK_EMISSIONS_AUTH_SEED, PDA_BANK_EMISSIONS_VAULT_SEED, PDA_BANK_FEE_STATE_SEED, PDA_BANK_FEE_VAULT_AUTH_SEED, PDA_BANK_FEE_VAULT_SEED, PDA_BANK_INSURANCE_VAULT_AUTH_SEED, PDA_BANK_INSURANCE_VAULT_SEED, PDA_BANK_LIQUIDITY_VAULT_AUTH_SEED, PDA_BANK_LIQUIDITY_VAULT_SEED, PDA_MARGINFI_ACCOUNT_SEED, PRIORITY_TX_SIZE, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, type PanicStateCache, PriceBias, type PriceWithConfidence, type PriceWithConfidenceDto, type Program, Project0Client, type Project0Config, Project0ConfigRaw, type PythOracleServiceOpts, type RatePoint, type RatePointDto, type RatePointRaw, RiskTier, type RiskTierRaw, SINGLE_POOL_PROGRAM_ID, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, type SimulateAccountHealthCacheWithFallbackParams, type SimulationResultRaw, type SmartCrankParams, type SmartCrankResult, type SolanaTransaction, type StakeAccount, type StakePoolMevMap, type StakedBankMetadata, type SwbOracleAiDataByKey, type SwbOracleServiceOpts, TRANSFER_ACCOUNT_AUTHORITY_FLAG, TransactionArenaKeyMap, type TransactionBuilderResult, TransactionBuildingError, TransactionBuildingErrorCode, type TransactionBuildingErrorDetails, TransactionConfigMap, TransactionType, type TypedAmount, USDC_DECIMALS, USDC_MINT, type ValidatorRateData, type ValidatorStakeGroup, type ValidatorStakeGroupDto, WSOL_MINT, type Wallet, type WithdrawWindowCache, type WrappedI80F48, ZERO_ORACLE_KEY, accountFlagToBN, addOracleToBanksIx, addTransactionMetadata, adjustPriceComponent, aprToApy, apyToApr, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankMetadataMapToDto, bankMetadataToDto, bankRawToDto, bigNumberToWrappedI80F48, bpsToPercentile, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, checkBatchOracleCrankability, checkMultipleOraclesCrankability, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, composeRemainingAccounts, computeAccountValue, computeActiveEmodePairs, computeAssetHealthComponent, computeAssetUsdValue, computeBalanceUsdValue, computeBaseInterestRate, computeClaimedEmissions, computeClosePositionTokenAmount, computeEmodeImpacts, computeFreeCollateralFromBalances, computeFreeCollateralFromCache, computeHealthAccountMetas, computeHealthCacheStatus, computeHealthCheckAccounts, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeHealthComponentsWithoutBiasFromBalances, computeInterestRates, computeLiabilityHealthComponent, computeLiabilityUsdValue, computeLiquidationPriceForBank, computeLoopingParams, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxLeverage, computeMaxWithdrawForBank, computeNetApy, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computeQuantity, computeQuantityUi, computeRemainingCapacity, computeSmartCrank, computeTotalOutstandingEmissions, computeTvl, computeUsdValue, computeUtilizationRate, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeAccountRaw, decodeBankRaw, decodeInstruction, decompileV0Transaction, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankMetadata, dtoToBankMetadataMap, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchMarginfiAccountAddresses, fetchMarginfiAccountData, fetchMultipleBanks, fetchNativeStakeAccounts, fetchOracleData, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, fetchSwbOracleAccountsFromAPI, fetchSwbOracleAccountsFromChain, fetchSwbOracleData, fetchSwbOraclePricesFromAPI, fetchSwbOraclePricesFromCrossbar, findRandomAvailableAccountIndex, freezeBankConfigIx, getAccountKeys, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getAssetWeight, getBalance, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getBirdeyeFallbackPricesByFeedId, getBirdeyePricesForMints, getConfig, getDriftCTokenMultiplier, getDriftMetadata, getDriftStatesDto, getEmodePairs, getHealthCacheStatusDescription, getHealthSimulationTransactions, getJupLendFTokenMultiplier, getJupLendMetadata, getJupLendStatesDto, getJupiterSwapIxsForFlashloan, getKaminoCTokenMultiplier, getKaminoMetadata, getKaminoStatesDto, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getOracleSourceFromBank, getOracleSourceFromOracleSetup, getOracleSourceNameFromKey, getPrice, getPriceWithConfidence, getStakedBankMetadataMap, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, getValidatorVoteAccountByBank, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isFlashloan, isV0Tx, isWeightedPrice, isWholePosition, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx, makeBorrowIx, makeBorrowTx, makeBundleTipIx, makeClearEmissionsIx, makeCloseMarginfiAccountIx, makeCloseMarginfiAccountTx, makeCrankSwbFeedIx, makeCreateAccountIxWithProjection, makeCreateAccountTxWithProjection, makeCreateMarginfiAccountIx, makeCreateMarginfiAccountTx, makeDepositIx, makeDepositTx, makeDriftDepositIx, makeDriftDepositTx, makeDriftWithdrawIx, makeDriftWithdrawTx, makeEndFlashLoanIx, makeFlashLoanTx, makeJuplendDepositIx, makeJuplendDepositTx, makeJuplendWithdrawIx, makeJuplendWithdrawTx, makeKaminoDepositIx, makeKaminoDepositTx, makeKaminoWithdrawIx, makeKaminoWithdrawTx, makeLoopTx, makeMergeStakeAccountsTx, makeMintStakedLstIx, makeMintStakedLstTx, makePoolAddBankIx, makePoolConfigureBankIx, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx, makeRedeemStakedLstIx, makeRedeemStakedLstTx, makeRefreshKaminoBanksIxs, makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeSetupIx, makeSmartCrankSwbFeedIx, makeSwapCollateralTx, makeSwapDebtTx, makeTxPriorityIx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateSwbFeedIx, makeVersionedTransaction, makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapBrokenFeedsToOraclePrices, mapPythBanksToOraclePrices, mapSwbBanksToOraclePrices, marginfiAccountToDto, nativeToUi, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseHealthCacheRaw, parseMarginfiAccountRaw, parseOperationalState, parseOracleSetup, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseRpcPythPriceData, parseSwbOraclePriceData, partitionBanksByCrankability, resolveAmount, serializeBankConfigOpt, serializeInterestRateConfig, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, shortenAddress, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, toBankConfigDto, toBankDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toNumber, uiToNative, uiToNativeBigNumber, validatorStakeGroupToDto, wrappedI80F48toBigNumber };
20704
+ export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_SWAP, AccountFlags, AccountType, type ActionEmodeImpact, type ActiveEmodePair, type ActiveStakePoolMap, type Amount, type AmountType, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceRaw, type BalanceType, type BalanceTypeDto, Bank, type BankAddress, BankConfig, type BankConfigCompactRaw, type BankConfigDto, BankConfigFlag, type BankConfigOpt, type BankConfigOptRaw, type BankConfigRaw, type BankConfigRawDto, type BankConfigType, type BankIntegrationMetadata, type BankIntegrationMetadataDto, type BankIntegrationMetadataMap, type BankIntegrationMetadataMapDto, type BankMap, type BankMetadata, type BankMetadataRaw, type BankRaw, type BankRawDto, type BankType, type BankTypeDto, BankVaultType, type ComputeAssetHealthComponentParams, type ComputeAssetUsdValueParams, type ComputeBalanceUsdValueParams, type ComputeFreeCollateralFromBalancesParams, type ComputeHealthCacheStatusParams, type ComputeHealthComponentsFromBalancesParams, type ComputeHealthComponentsWithoutBiasParams, type ComputeLiabilityHealthComponentParams, type ComputeLiabilityUsdValueParams, type ComputeLiquidationPriceForBankParams, type ComputeMaxBorrowForBankParams, type ComputeMaxWithdrawForBankParams, type ComputeNetApyParams, type ComputeUsdValueParams, ConfigRaw, type CrankCombination, type CrankabilityResult, DEFAULT_ORACLE_MAX_AGE, DISABLED_FLAG, type DriftBankInput, type DriftMetadata, type DriftStateByBank, type DriftStateJsonByBank, EMPTY_HEALTH_CACHE, type EmodeConfigRaw, type EmodeConfigRawDto, type EmodeEntry, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, type EmodeImpact, EmodeImpactStatus, type EmodePair, EmodeSettings, type EmodeSettingsDto, type EmodeSettingsRaw, type EmodeSettingsRawDto, type EmodeSettingsType, EmodeTag, type Environment, type ExactOutEstimateResult, type ExtendedTransaction, type ExtendedTransactionProperties, type ExtendedV0Transaction, FLASHLOAN_ENABLED_FLAG, type FeeStateCache, type FetchBankIntegrationMetadataOptions, type FetchDriftMetadataOptions, type FetchJupLendMetadataOptions, type FetchKaminoMetadataOptions, type FlashloanActionResult, type FlashloanBudgetIx, type FlashloanPrecheckResult, type FlashloanSwapConstraints, type GetAssetWeightParams, type GetBalanceUsdValueWithPriceBiasParams, type GetExactOutEstimateParams, type GetSwapIxsForFlashloanParams, type GetTitanExactOutEstimateParams, type GetTitanSwapIxsParams, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, type HealthCacheRaw, HealthCacheSimulationError, HealthCacheStatus, type HealthCacheType, type HealthCacheTypeDto, type InstructionsWrapper, type IntegrationType, type InterestRateConfig, type InterestRateConfigCompactRaw, type InterestRateConfigDto, type InterestRateConfigOpt, type InterestRateConfigOptRaw, type InterestRateConfigRaw, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, type JupLendBankInput, type JupLendMetadata, type JupLendStateByBank, type JupLendStateJsonByBank, type KaminoBankInput, type KaminoMetadata, type KaminoStateByBank, type KaminoStateJsonByBank, type KaminoStates, LST_MINT, MARGINFI_IDL, MARGINFI_PROGRAM, MARGINFI_PROGRAM_STAGING, MARGINFI_PROGRAM_STAGING_ALT, MARGINFI_SPONSORED_SHARD_ID, MAX_ACCOUNT_LOCKS, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeBorrowIxOpts, type MakeBorrowIxParams, type MakeBorrowTxParams, type MakeCloseAccountIxParams, type MakeCloseAccountTxParams, type MakeDepositIxOpts, type MakeDepositIxParams, type MakeDepositTxParams, type MakeDriftDepositIxParams, type MakeDriftDepositTxParams, type MakeDriftWithdrawIxParams, type MakeDriftWithdrawTxParams, type MakeFlashLoanTxParams, type MakeJuplendDepositIxParams, type MakeJuplendDepositTxParams, type MakeJuplendWithdrawIxParams, type MakeJuplendWithdrawTxParams, type MakeKaminoDepositIxParams, type MakeKaminoDepositTxParams, type MakeKaminoWithdrawIxParams, type MakeKaminoWithdrawTxParams, type MakeLoopTxParams, type MakeMergeStakeAccountsTxParams, type MakeMintStakedLstIxParams, type MakeMintStakedLstTxParams, type MakeRedeemStakedLstIxParams, type MakeRedeemStakedLstTxParams, type MakeRepayIxOpts, type MakeRepayIxParams, type MakeRepayTxParams, type MakeRepayWithCollatTxParams, type MakeSetupIxParams, type MakeSwapCollateralTxParams, type MakeSwapDebtTxParams, type MakeWithdrawIxOpts, type MakeWithdrawIxParams, type MakeWithdrawTxParams, MarginRequirementType, type MarginRequirementTypeRaw, MarginfiAccount, type MarginfiAccountRaw, type MarginfiAccountType, type MarginfiAccountTypeDto, MarginfiAccountWrapper, MarginfiGroup, type MarginfiGroupRaw, type MarginfiGroupType, type MarginfiGroupTypeDto, type MarginfiIdlType, type MarginfiProgram, type MintData, type MintDataMap, OperationalState, type OperationalStateRaw, type OracleConfigOpt, type OracleConfigOptRaw, type OraclePrice, type OraclePriceDto, type OraclePriceMap, OracleSetup, type OracleSetupRaw, type OracleSourceKey, PDA_BANK_EMISSIONS_AUTH_SEED, PDA_BANK_EMISSIONS_VAULT_SEED, PDA_BANK_FEE_STATE_SEED, PDA_BANK_FEE_VAULT_AUTH_SEED, PDA_BANK_FEE_VAULT_SEED, PDA_BANK_INSURANCE_VAULT_AUTH_SEED, PDA_BANK_INSURANCE_VAULT_SEED, PDA_BANK_LIQUIDITY_VAULT_AUTH_SEED, PDA_BANK_LIQUIDITY_VAULT_SEED, PDA_MARGINFI_ACCOUNT_SEED, PRIORITY_TX_SIZE, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, type PanicStateCache, PriceBias, type PriceWithConfidence, type PriceWithConfidenceDto, type Program, Project0Client, type Project0Config, Project0ConfigRaw, type PythOracleServiceOpts, type RatePoint, type RatePointDto, type RatePointRaw, RiskTier, type RiskTierRaw, SINGLE_POOL_PROGRAM_ID, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, type SimulateAccountHealthCacheWithFallbackParams, type SimulationResultRaw, type SmartCrankParams, type SmartCrankResult, type SolanaTransaction, type StakeAccount, type StakePoolMevMap, type StakedBankMetadata, type SwapApiConfig, type SwapIxsResult, type SwapOpts, SwapProvider, type SwapProviderConfig, type SwapProviderEntry, type SwapQuoteResult, type SwbOracleAiDataByKey, type SwbOracleServiceOpts, TRANSFER_ACCOUNT_AUTHORITY_FLAG, type TitanQuoteParams, TransactionArenaKeyMap, type TransactionBuilderResult, TransactionBuildingError, TransactionBuildingErrorCode, type TransactionBuildingErrorDetails, TransactionConfigMap, TransactionType, type TypedAmount, USDC_DECIMALS, USDC_MINT, type ValidatorRateData, type ValidatorStakeGroup, type ValidatorStakeGroupDto, WSOL_MINT, type Wallet, type WithdrawWindowCache, type WrappedI80F48, ZERO_ORACLE_KEY, accountFlagToBN, addOracleToBanksIx, addTransactionMetadata, adjustPriceComponent, aprToApy, apyToApr, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankMetadataMapToDto, bankMetadataToDto, bankRawToDto, bigNumberToWrappedI80F48, bpsToPercentile, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, checkBatchOracleCrankability, checkMultipleOraclesCrankability, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, compileFlashloanPrecheck, composeRemainingAccounts, computeAccountValue, computeActiveEmodePairs, computeAssetHealthComponent, computeAssetUsdValue, computeBalanceUsdValue, computeBaseInterestRate, computeClaimedEmissions, computeClosePositionTokenAmount, computeEmodeImpacts, computeFlashLoanNonSwapBudget, computeFlashloanSwapConstraints, computeFreeCollateralFromBalances, computeFreeCollateralFromCache, computeHealthAccountMetas, computeHealthCacheStatus, computeHealthCheckAccounts, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeHealthComponentsWithoutBiasFromBalances, computeInterestRates, computeLiabilityHealthComponent, computeLiabilityUsdValue, computeLiquidationPriceForBank, computeLoopingParams, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxLeverage, computeMaxWithdrawForBank, computeNetApy, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computeQuantity, computeQuantityUi, computeRemainingCapacity, computeSmartCrank, computeStakedBankMultipliers, computeTotalOutstandingEmissions, computeTvl, computeUsdValue, computeUtilizationRate, computeV0TxSize, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeAccountRaw, decodeBankRaw, decodeInstruction, decompileV0Transaction, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankMetadata, dtoToBankMetadataMap, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchMarginfiAccountAddresses, fetchMarginfiAccountData, fetchMultipleBanks, fetchNativeStakeAccounts, fetchOracleData, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, fetchSwbOracleAccountsFromAPI, fetchSwbOracleAccountsFromChain, fetchSwbOracleData, fetchSwbOraclePricesFromAPI, fetchSwbOraclePricesFromCrossbar, findRandomAvailableAccountIndex, freezeBankConfigIx, getAccountKeys, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getAssetWeight, getBalance, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getBirdeyeFallbackPricesByFeedId, getBirdeyePricesForMints, getConfig, getDriftCTokenMultiplier, getDriftMetadata, getDriftStatesDto, getEmodePairs, getExactOutEstimate, getHealthCacheStatusDescription, getHealthSimulationTransactions, getJupLendFTokenMultiplier, getJupLendMetadata, getJupLendStatesDto, getJupiterSwapIxsForFlashloan, getKaminoCTokenMultiplier, getKaminoMetadata, getKaminoStatesDto, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getOracleSourceFromBank, getOracleSourceFromOracleSetup, getOracleSourceNameFromKey, getPrice, getPriceWithConfidence, getStakedBankMetadataMap, getSwapIxsForFlashloan, getTitanExactOutEstimate, getTitanSwapIxsForFlashloan, getTotalAccountKeys, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, getValidatorVoteAccountByBank, getWritableAccountKeys, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isFlashloan, isV0Tx, isWeightedPrice, isWholePosition, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx, makeBorrowIx, makeBorrowTx, makeBundleTipIx, makeClearEmissionsIx, makeCloseMarginfiAccountIx, makeCloseMarginfiAccountTx, makeCrankSwbFeedIx, makeCreateAccountIxWithProjection, makeCreateAccountTxWithProjection, makeCreateMarginfiAccountIx, makeCreateMarginfiAccountTx, makeDepositIx, makeDepositTx, makeDriftDepositIx, makeDriftDepositTx, makeDriftWithdrawIx, makeDriftWithdrawTx, makeEndFlashLoanIx, makeFlashLoanTx, makeJuplendDepositIx, makeJuplendDepositTx, makeJuplendWithdrawIx, makeJuplendWithdrawTx, makeKaminoDepositIx, makeKaminoDepositTx, makeKaminoWithdrawIx, makeKaminoWithdrawTx, makeLoopTx, makeMergeStakeAccountsTx, makeMintStakedLstIx, makeMintStakedLstTx, makePoolAddBankIx, makePoolConfigureBankIx, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx, makeRedeemStakedLstIx, makeRedeemStakedLstTx, makeRefreshKaminoBanksIxs, makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeSetupIx, makeSmartCrankSwbFeedIx, makeSwapCollateralTx, makeSwapDebtTx, makeTxPriorityIx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateSwbFeedIx, makeVersionedTransaction, makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapBrokenFeedsToOraclePrices, mapJupiterQuoteToSwapQuoteResult, mapPythBanksToOraclePrices, mapSwbBanksToOraclePrices, marginfiAccountToDto, nativeToUi, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseHealthCacheRaw, parseMarginfiAccountRaw, parseOperationalState, parseOracleSetup, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseRpcPythPriceData, parseSwbOraclePriceData, partitionBanksByCrankability, resolveAmount, serializeBankConfigOpt, serializeInterestRateConfig, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, shortenAddress, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, toBankConfigDto, toBankDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toJupiterConfig, toNumber, uiToNative, uiToNativeBigNumber, validatorStakeGroupToDto, wrappedI80F48toBigNumber };