@0dotxyz/p0-ts-sdk 2.2.0-alpha.2 → 2.2.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.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).
@@ -14736,6 +14738,8 @@ interface BankType {
14736
14738
  group: PublicKey;
14737
14739
  mint: PublicKey;
14738
14740
  mintDecimals: number;
14741
+ mintRate: number | null;
14742
+ mintPrice: number;
14739
14743
  assetShareValue: BigNumber$1;
14740
14744
  liabilityShareValue: BigNumber$1;
14741
14745
  liquidityVault: PublicKey;
@@ -15092,7 +15096,10 @@ interface BankMetadata$2 {
15092
15096
  tokenName: string;
15093
15097
  tokenSymbol: string;
15094
15098
  }
15095
- declare function parseBankRaw(address: PublicKey, accountParsed: BankRaw, bankMetadata?: BankMetadata$2): BankType;
15099
+ declare function parseBankRaw(address: PublicKey, accountParsed: BankRaw, bankMetadata?: BankMetadata$2, mintData?: {
15100
+ mintRate: number | null;
15101
+ mintPrice: number;
15102
+ }): BankType;
15096
15103
  declare function dtoToBank(bankDto: BankTypeDto): BankType;
15097
15104
  declare function dtoToEmodeSettings(emodeSettingsDto: EmodeSettingsDto): EmodeSettingsType;
15098
15105
  declare function dtoToBankConfig(bankConfigDto: BankConfigDto): BankConfigType;
@@ -15551,6 +15558,55 @@ declare class HealthCacheSimulationError extends Error {
15551
15558
  constructor(message: string, mrgnErr: number | null, internalErr: number | null);
15552
15559
  }
15553
15560
 
15561
+ declare enum SwapProvider {
15562
+ JUPITER = "JUPITER",
15563
+ TITAN = "TITAN",
15564
+ DFLOW = "DFLOW"
15565
+ }
15566
+ interface SwapApiConfig {
15567
+ basePath?: string;
15568
+ apiKey?: string;
15569
+ headers?: Record<string, string>;
15570
+ }
15571
+ interface SwapProviderEntry {
15572
+ provider: SwapProvider;
15573
+ apiConfig?: SwapApiConfig;
15574
+ }
15575
+ interface SwapProviderConfig {
15576
+ provider: SwapProvider;
15577
+ slippageMode: "DYNAMIC" | "FIXED";
15578
+ slippageBps: number;
15579
+ platformFeeBps: number;
15580
+ directRoutesOnly?: boolean;
15581
+ apiConfig?: SwapApiConfig;
15582
+ fallbackProviders?: SwapProviderEntry[];
15583
+ }
15584
+ interface SwapOpts {
15585
+ swapConfig?: SwapProviderConfig;
15586
+ swapIxs?: {
15587
+ instructions: TransactionInstruction[];
15588
+ lookupTables: AddressLookupTableAccount[];
15589
+ };
15590
+ }
15591
+ interface SwapQuoteResult {
15592
+ inAmount: string;
15593
+ outAmount: string;
15594
+ otherAmountThreshold: string;
15595
+ slippageBps: number;
15596
+ platformFee?: {
15597
+ amount: string;
15598
+ feeBps: number;
15599
+ };
15600
+ priceImpactPct?: string;
15601
+ contextSlot?: number;
15602
+ timeTaken?: number;
15603
+ }
15604
+ interface SwapIxsResult {
15605
+ swapInstructions: TransactionInstruction[];
15606
+ setupInstructions: TransactionInstruction[];
15607
+ addressLookupTableAddresses: AddressLookupTableAccount[];
15608
+ quoteResponse: SwapQuoteResult;
15609
+ }
15554
15610
  interface MakeDepositIxOpts {
15555
15611
  wrapAndUnwrapSol?: boolean;
15556
15612
  wSolBalanceUi?: number;
@@ -15816,19 +15872,7 @@ interface MakeLoopTxParams {
15816
15872
  borrowBank: BankType;
15817
15873
  tokenProgram: PublicKey;
15818
15874
  };
15819
- swapOpts: {
15820
- jupiterOptions?: {
15821
- slippageMode: "DYNAMIC" | "FIXED";
15822
- slippageBps: number;
15823
- platformFeeBps: number;
15824
- directRoutesOnly?: boolean;
15825
- configParams?: ConfigurationParameters;
15826
- };
15827
- swapIxs?: {
15828
- instructions: TransactionInstruction[];
15829
- lookupTables: AddressLookupTableAccount[];
15830
- };
15831
- };
15875
+ swapOpts: SwapOpts;
15832
15876
  addressLookupTableAccounts?: AddressLookupTableAccount[];
15833
15877
  overrideInferAccounts?: {
15834
15878
  group?: PublicKey;
@@ -15857,19 +15901,7 @@ interface MakeRepayWithCollatTxParams {
15857
15901
  totalPositionAmount: number;
15858
15902
  repayAmount?: number;
15859
15903
  };
15860
- swapOpts: {
15861
- jupiterOptions?: {
15862
- slippageMode: "DYNAMIC" | "FIXED";
15863
- slippageBps: number;
15864
- platformFeeBps: number;
15865
- directRoutesOnly?: boolean;
15866
- configParams?: ConfigurationParameters;
15867
- };
15868
- swapIxs?: {
15869
- instructions: TransactionInstruction[];
15870
- lookupTables: AddressLookupTableAccount[];
15871
- };
15872
- };
15904
+ swapOpts: SwapOpts;
15873
15905
  addressLookupTableAccounts?: AddressLookupTableAccount[];
15874
15906
  overrideInferAccounts?: {
15875
15907
  group?: PublicKey;
@@ -15896,15 +15928,7 @@ interface MakeSwapCollateralTxParams {
15896
15928
  depositBank: BankType;
15897
15929
  tokenProgram: PublicKey;
15898
15930
  };
15899
- swapOpts: {
15900
- jupiterOptions?: {
15901
- slippageMode: "DYNAMIC" | "FIXED";
15902
- slippageBps: number;
15903
- platformFeeBps: number;
15904
- directRoutesOnly?: boolean;
15905
- configParams?: ConfigurationParameters;
15906
- };
15907
- };
15931
+ swapOpts: SwapOpts;
15908
15932
  addressLookupTableAccounts?: AddressLookupTableAccount[];
15909
15933
  overrideInferAccounts?: {
15910
15934
  group?: PublicKey;
@@ -15931,15 +15955,7 @@ interface MakeSwapDebtTxParams {
15931
15955
  borrowBank: BankType;
15932
15956
  tokenProgram: PublicKey;
15933
15957
  };
15934
- swapOpts: {
15935
- jupiterOptions?: {
15936
- slippageMode: "DYNAMIC" | "FIXED";
15937
- slippageBps: number;
15938
- platformFeeBps: number;
15939
- directRoutesOnly?: boolean;
15940
- configParams?: ConfigurationParameters;
15941
- };
15942
- };
15958
+ swapOpts: SwapOpts;
15943
15959
  addressLookupTableAccounts?: AddressLookupTableAccount[];
15944
15960
  overrideInferAccounts?: {
15945
15961
  group?: PublicKey;
@@ -15956,35 +15972,6 @@ interface MakeSetupIxParams {
15956
15972
  tokenProgram: PublicKey;
15957
15973
  }[];
15958
15974
  }
15959
- interface MakeMintStakedLstIxParams {
15960
- amount: Amount;
15961
- authority: PublicKey;
15962
- stakeAccountPk: PublicKey;
15963
- validator: PublicKey;
15964
- connection: Connection;
15965
- }
15966
- interface MakeMintStakedLstTxParams extends MakeMintStakedLstIxParams {
15967
- luts: AddressLookupTableAccount[];
15968
- blockhash?: string;
15969
- }
15970
- interface MakeRedeemStakedLstIxParams {
15971
- amount: Amount;
15972
- authority: PublicKey;
15973
- validator: PublicKey;
15974
- connection: Connection;
15975
- }
15976
- interface MakeRedeemStakedLstTxParams extends MakeRedeemStakedLstIxParams {
15977
- luts: AddressLookupTableAccount[];
15978
- blockhash?: string;
15979
- }
15980
- interface MakeMergeStakeAccountsTxParams {
15981
- authority: PublicKey;
15982
- sourceStakeAccount: PublicKey;
15983
- destinationStakeAccount: PublicKey;
15984
- connection: Connection;
15985
- luts: AddressLookupTableAccount[];
15986
- blockhash?: string;
15987
- }
15988
15975
 
15989
15976
  /**
15990
15977
  * A combination of banks that need to be cranked
@@ -17211,19 +17198,76 @@ interface ComputeMaxWithdrawForBankParams {
17211
17198
  */
17212
17199
  declare function computeMaxWithdrawForBank(params: ComputeMaxWithdrawForBankParams): BigNumber$1;
17213
17200
 
17201
+ declare function toJupiterConfig(apiConfig?: SwapApiConfig): ConfigurationParameters | undefined;
17214
17202
  type GetJupiterSwapIxsForFlashloanParams = {
17215
17203
  quoteParams: QuoteGetRequest;
17216
17204
  authority: PublicKey;
17217
17205
  connection: Connection;
17218
17206
  destinationTokenAccount: PublicKey;
17219
- configParams?: ConfigurationParameters;
17207
+ apiConfig?: SwapApiConfig;
17208
+ maxSwapAccounts?: number;
17220
17209
  };
17221
- declare const getJupiterSwapIxsForFlashloan: ({ quoteParams, authority, connection, destinationTokenAccount, configParams, }: GetJupiterSwapIxsForFlashloanParams) => Promise<{
17222
- swapInstruction: TransactionInstruction;
17223
- addressLookupTableAddresses: AddressLookupTableAccount[];
17224
- quoteResponse: QuoteResponse;
17225
- setupInstructions: TransactionInstruction[];
17226
- }[]>;
17210
+ declare const getJupiterSwapIxsForFlashloan: ({ quoteParams, authority, connection, destinationTokenAccount, apiConfig, maxSwapAccounts, }: GetJupiterSwapIxsForFlashloanParams) => Promise<SwapIxsResult>;
17211
+
17212
+ type TitanQuoteParams = {
17213
+ inputMint: string;
17214
+ outputMint: string;
17215
+ amount: number;
17216
+ swapMode: "ExactIn" | "ExactOut";
17217
+ slippageBps?: number;
17218
+ platformFeeBps?: number;
17219
+ directRoutesOnly?: boolean;
17220
+ sizeConstraint?: number;
17221
+ maxSwapAccounts?: number;
17222
+ maxSwapTotalAccounts?: number;
17223
+ };
17224
+ type GetTitanSwapIxsParams = {
17225
+ quoteParams: TitanQuoteParams;
17226
+ authority: PublicKey;
17227
+ connection: Connection;
17228
+ destinationTokenAccount: PublicKey;
17229
+ apiConfig?: SwapApiConfig;
17230
+ };
17231
+ type GetTitanExactOutEstimateParams = {
17232
+ inputMint: string;
17233
+ outputMint: string;
17234
+ amount: number;
17235
+ slippageBps?: number;
17236
+ apiConfig?: SwapApiConfig;
17237
+ };
17238
+ declare const getTitanSwapIxsForFlashloan: ({ quoteParams, authority, connection, destinationTokenAccount, apiConfig, }: GetTitanSwapIxsParams) => Promise<SwapIxsResult>;
17239
+ declare const getTitanExactOutEstimate: (params: GetTitanExactOutEstimateParams) => Promise<{
17240
+ otherAmountThreshold: string;
17241
+ quoteResult: SwapQuoteResult;
17242
+ }>;
17243
+
17244
+ type GetSwapIxsForFlashloanParams = {
17245
+ inputMint: string;
17246
+ outputMint: string;
17247
+ amount: number;
17248
+ swapMode: "ExactIn" | "ExactOut";
17249
+ authority: PublicKey;
17250
+ connection: Connection;
17251
+ destinationTokenAccount: PublicKey;
17252
+ swapOpts: SwapOpts;
17253
+ sizeConstraint?: number;
17254
+ maxSwapAccounts?: number;
17255
+ maxSwapTotalAccounts?: number;
17256
+ };
17257
+ declare const getSwapIxsForFlashloan: (params: GetSwapIxsForFlashloanParams) => Promise<SwapIxsResult>;
17258
+ type GetExactOutEstimateParams = {
17259
+ inputMint: string;
17260
+ outputMint: string;
17261
+ amount: number;
17262
+ swapOpts: SwapOpts;
17263
+ connection: Connection;
17264
+ };
17265
+ type ExactOutEstimateResult = {
17266
+ otherAmountThreshold: string;
17267
+ quoteResult: SwapQuoteResult;
17268
+ };
17269
+ declare const getExactOutEstimate: (params: GetExactOutEstimateParams) => Promise<ExactOutEstimateResult>;
17270
+ declare function mapJupiterQuoteToSwapQuoteResult(quote: QuoteResponse): SwapQuoteResult;
17227
17271
 
17228
17272
  declare function computeClosePositionTokenAmount(position: {
17229
17273
  amount: number;
@@ -17234,6 +17278,117 @@ declare function isWholePosition(position: {
17234
17278
  isLending: boolean;
17235
17279
  }, amount: number, mintDecimals: number): boolean;
17236
17280
 
17281
+ /**
17282
+ * Synchronous flashloan TX size estimator.
17283
+ *
17284
+ * Estimates the serialized size of a V0 flashloan transaction without compiling
17285
+ * or serializing the message. This allows us to synchronously compute the byte
17286
+ * overhead of non-swap instructions and determine how much budget remains for
17287
+ * the swap IX (e.g. Titan).
17288
+ *
17289
+ * Thoroughly tested using R&D scripts (rnd-flashloan-size.ts) and cross-referenced
17290
+ * against actual serialized transaction sizes across all action types (Loop, Repay,
17291
+ * SwapCollateral, SwapDebt) and asset tag variants (Standard, Kamino, Drift).
17292
+ */
17293
+
17294
+ /**
17295
+ * Estimate the serialized size of a V0 transaction from its instructions and LUTs.
17296
+ * Simulates the key resolution logic of TransactionMessage.compileToV0Message
17297
+ * without actually compiling or serializing the message.
17298
+ */
17299
+ declare function computeV0TxSize(ixs: TransactionInstruction[], payerKey: PublicKey, luts: AddressLookupTableAccount[]): {
17300
+ size: number;
17301
+ accountCount: number;
17302
+ writableAccountCount: number;
17303
+ };
17304
+ interface FlashloanSwapConstraints {
17305
+ /** Available bytes for swap instruction(s) */
17306
+ sizeConstraint: number;
17307
+ /** Available writable account slots for swap instruction(s) */
17308
+ maxSwapWritableAccounts: number;
17309
+ /** Available total account slots for swap instruction(s) */
17310
+ maxSwapTotalAccounts: number;
17311
+ }
17312
+ /**
17313
+ * Compute the available byte budget and account budget for swap instructions
17314
+ * in a flashloan TX. Compiles a real V0 message and serializes it for an exact
17315
+ * non-swap byte count.
17316
+ *
17317
+ * @param ixs - The non-swap IXs (CU requests + primary + secondary).
17318
+ * Must NOT include BeginFL/EndFL — those are synthesized internally.
17319
+ */
17320
+ declare function computeFlashLoanNonSwapBudget({ program, marginfiAccount, ixs, bankMap, addressLookupTableAccounts, }: {
17321
+ program: MarginfiProgram;
17322
+ marginfiAccount: {
17323
+ address: PublicKey;
17324
+ authority: PublicKey;
17325
+ balances: BalanceType[];
17326
+ };
17327
+ ixs: TransactionInstruction[];
17328
+ bankMap: Map<string, BankType>;
17329
+ addressLookupTableAccounts: AddressLookupTableAccount[];
17330
+ }): FlashloanSwapConstraints;
17331
+ interface FlashloanPrecheckResult {
17332
+ /** Exact serialized size of the full flashloan TX */
17333
+ fullTxSize: number;
17334
+ /** How many bytes over MAX_TX_SIZE (negative = under budget) */
17335
+ overshoot: number;
17336
+ /** Total writable accounts in the full TX */
17337
+ writableAccounts: number;
17338
+ /** Total accounts (static + LUT) in the full TX */
17339
+ totalAccounts: number;
17340
+ }
17341
+ /**
17342
+ * Compile the full flashloan TX (all IXs + all LUTs) and return exact size info.
17343
+ * Call this AFTER receiving swap IXs but BEFORE makeFlashLoanTx to detect overflows
17344
+ * early with good diagnostics.
17345
+ *
17346
+ * Uses a dummy blockhash (same 32 bytes as a real one) so the size is exact.
17347
+ */
17348
+ declare function compileFlashloanPrecheck({ allIxs, payer, luts, sizeConstraint, swapIxCount, swapLutCount, }: {
17349
+ allIxs: TransactionInstruction[];
17350
+ payer: PublicKey;
17351
+ luts: AddressLookupTableAccount[];
17352
+ sizeConstraint: number;
17353
+ swapIxCount: number;
17354
+ swapLutCount: number;
17355
+ }): FlashloanPrecheckResult;
17356
+ type FlashloanBudgetIx = {
17357
+ type: "borrow";
17358
+ bank: BankType;
17359
+ tokenProgram: PublicKey;
17360
+ } | {
17361
+ type: "repay";
17362
+ bank: BankType;
17363
+ tokenProgram: PublicKey;
17364
+ } | {
17365
+ type: "deposit";
17366
+ bank: BankType;
17367
+ tokenProgram: PublicKey;
17368
+ } | {
17369
+ type: "withdraw";
17370
+ bank: BankType;
17371
+ tokenProgram: PublicKey;
17372
+ };
17373
+ /**
17374
+ * Compute flashloan swap constraints by building dummy primary + secondary IXs
17375
+ * and measuring the remaining TX budget. Replaces the duplicated switch/case
17376
+ * blocks in each action file.
17377
+ */
17378
+ declare function computeFlashloanSwapConstraints({ program, marginfiAccount, bankMap, addressLookupTableAccounts, bankMetadataMap, primaryIx, secondaryIx, overrideInferAccounts, }: {
17379
+ program: MarginfiProgram;
17380
+ marginfiAccount: MarginfiAccountType;
17381
+ bankMap: Map<string, BankType>;
17382
+ addressLookupTableAccounts: AddressLookupTableAccount[];
17383
+ bankMetadataMap: BankIntegrationMetadataMap;
17384
+ primaryIx: FlashloanBudgetIx;
17385
+ secondaryIx: FlashloanBudgetIx;
17386
+ overrideInferAccounts?: {
17387
+ group?: PublicKey;
17388
+ authority?: PublicKey;
17389
+ };
17390
+ }): Promise<FlashloanSwapConstraints>;
17391
+
17237
17392
  /**
17238
17393
  * Creates an instruction to close a Marginfi account.
17239
17394
  *
@@ -17568,7 +17723,7 @@ declare function makeJuplendDepositTx(params: MakeJuplendDepositTxParams): Promi
17568
17723
  declare function makeLoopTx(params: MakeLoopTxParams): Promise<{
17569
17724
  transactions: ExtendedV0Transaction[];
17570
17725
  actionTxIndex: number;
17571
- quoteResponse: QuoteResponse | undefined;
17726
+ quoteResponse: SwapQuoteResult | undefined;
17572
17727
  }>;
17573
17728
 
17574
17729
  /**
@@ -17627,7 +17782,7 @@ declare function makeRepayIx({ program, bank, tokenProgram, amount, authority, a
17627
17782
  declare function makeRepayTx(params: MakeRepayTxParams): Promise<ExtendedTransaction>;
17628
17783
  declare function makeRepayWithCollatTx(params: MakeRepayWithCollatTxParams): Promise<{
17629
17784
  transactions: ExtendedV0Transaction[];
17630
- swapQuote: QuoteResponse | undefined;
17785
+ swapQuote: SwapQuoteResult | undefined;
17631
17786
  amountToRepay: number;
17632
17787
  }>;
17633
17788
 
@@ -17655,14 +17810,14 @@ declare function makeClearEmissionsIx(program: MarginfiProgram, marginfiAccount:
17655
17810
  * oraclePrices,
17656
17811
  * withdrawOpts: { totalPositionAmount: 10, withdrawBank: jitoSolBank, tokenProgram },
17657
17812
  * depositOpts: { depositBank: mSolBank, tokenProgram },
17658
- * swapOpts: { jupiterOptions: { slippageMode: "DYNAMIC", slippageBps: 50 } },
17813
+ * swapOpts: { swapConfig: { provider: SwapProvider.JUPITER, slippageMode: "DYNAMIC", slippageBps: 50, platformFeeBps: 0 } },
17659
17814
  * // ...
17660
17815
  * });
17661
17816
  */
17662
17817
  declare function makeSwapCollateralTx(params: MakeSwapCollateralTxParams): Promise<{
17663
17818
  transactions: ExtendedV0Transaction[];
17664
17819
  actionTxIndex: number;
17665
- quoteResponse: QuoteResponse | undefined;
17820
+ quoteResponse: SwapQuoteResult | undefined;
17666
17821
  }>;
17667
17822
 
17668
17823
  /**
@@ -17680,53 +17835,16 @@ declare function makeSwapCollateralTx(params: MakeSwapCollateralTxParams): Promi
17680
17835
  * oraclePrices,
17681
17836
  * repayOpts: { totalPositionAmount: 100, repayBank: usdcBank, tokenProgram },
17682
17837
  * borrowOpts: { borrowBank: solBank, tokenProgram },
17683
- * swapOpts: { jupiterOptions: { slippageMode: "DYNAMIC", slippageBps: 50 } },
17838
+ * swapOpts: { swapConfig: { provider: SwapProvider.JUPITER, slippageMode: "DYNAMIC", slippageBps: 50, platformFeeBps: 0 } },
17684
17839
  * // ...
17685
17840
  * });
17686
17841
  */
17687
17842
  declare function makeSwapDebtTx(params: MakeSwapDebtTxParams): Promise<{
17688
17843
  transactions: ExtendedV0Transaction[];
17689
17844
  actionTxIndex: number;
17690
- quoteResponse: QuoteResponse | undefined;
17845
+ quoteResponse: SwapQuoteResult | undefined;
17691
17846
  }>;
17692
17847
 
17693
- /**
17694
- * Creates instructions to convert a native stake account into LST tokens.
17695
- *
17696
- * Steps:
17697
- * 1. Create LST ATA if needed
17698
- * 2. Split stake account if partial amount
17699
- * 3. Authorize staker + withdrawer to pool
17700
- * 4. Deposit stake into pool → user receives LST
17701
- */
17702
- declare function makeMintStakedLstIx(params: MakeMintStakedLstIxParams): Promise<InstructionsWrapper>;
17703
- /**
17704
- * Creates a versioned transaction to convert a native stake account into LST tokens.
17705
- */
17706
- declare function makeMintStakedLstTx(params: MakeMintStakedLstTxParams): Promise<ExtendedV0Transaction>;
17707
-
17708
- /**
17709
- * Creates instructions to convert LST tokens back to a native stake account.
17710
- *
17711
- * Steps:
17712
- * 1. Create new stake account (rent-exempt)
17713
- * 2. Approve pool mint authority to burn LST
17714
- * 3. Withdraw stake from pool → user receives stake account
17715
- */
17716
- declare function makeRedeemStakedLstIx(params: MakeRedeemStakedLstIxParams): Promise<InstructionsWrapper>;
17717
- /**
17718
- * Creates a versioned transaction to convert LST tokens back to a native stake account.
17719
- */
17720
- declare function makeRedeemStakedLstTx(params: MakeRedeemStakedLstTxParams): Promise<ExtendedV0Transaction>;
17721
-
17722
- /**
17723
- * Creates a versioned transaction to merge two stake accounts.
17724
- *
17725
- * The source stake account will be merged into the destination stake account.
17726
- * Both accounts must share the same authorized staker/withdrawer and vote account.
17727
- */
17728
- declare function makeMergeStakeAccountsTx(params: MakeMergeStakeAccountsTxParams): Promise<ExtendedV0Transaction>;
17729
-
17730
17848
  type MakeSmartCrankSwbFeedIxParams = {
17731
17849
  marginfiAccount: MarginfiAccountType;
17732
17850
  bankMap: Map<string, BankType>;
@@ -18525,30 +18643,6 @@ declare function validatorStakeGroupToDto(validatorStakeGroup: ValidatorStakeGro
18525
18643
 
18526
18644
  declare function dtoToValidatorStakeGroup(validatorStakeGroupDto: ValidatorStakeGroupDto): ValidatorStakeGroup;
18527
18645
 
18528
- /**
18529
- * Metadata for a staked bank entry.
18530
- * Sourced from hardcoded JSON — update via `metadata.data.ts` until dynamic fetching is implemented.
18531
- */
18532
- interface StakedBankMetadata {
18533
- bankAddress: string;
18534
- validatorVoteAccount: string;
18535
- tokenAddress: string;
18536
- tokenName: string;
18537
- tokenSymbol: string;
18538
- }
18539
- /**
18540
- * Returns a Map of bankAddress → StakedBankMetadata (lazy-cached).
18541
- *
18542
- * @remarks Uses hardcoded data. TODO: Replace with dynamic API fetch.
18543
- */
18544
- declare function getStakedBankMetadataMap(): Map<string, StakedBankMetadata>;
18545
- /**
18546
- * Returns a Record of bankAddress → validatorVoteAccount (lazy-cached).
18547
- *
18548
- * @remarks Uses hardcoded data. TODO: Replace with dynamic API fetch.
18549
- */
18550
- declare function getValidatorVoteAccountByBank(): Record<string, string>;
18551
-
18552
18646
  /**
18553
18647
  * Temporary Module for Functions Pending Refactoring
18554
18648
  *
@@ -18784,6 +18878,8 @@ declare class Bank implements BankType {
18784
18878
  readonly mint: PublicKey;
18785
18879
  readonly mintDecimals: number;
18786
18880
  readonly group: PublicKey;
18881
+ readonly mintRate: number | null;
18882
+ readonly mintPrice: number;
18787
18883
  readonly assetShareValue: BigNumber$1;
18788
18884
  readonly liabilityShareValue: BigNumber$1;
18789
18885
  readonly liquidityVault: PublicKey;
@@ -18830,7 +18926,7 @@ declare class Bank implements BankType {
18830
18926
  readonly lendingPositionCount?: BigNumber$1 | undefined;
18831
18927
  readonly borrowingPositionCount?: BigNumber$1 | undefined;
18832
18928
  readonly tokenSymbol?: string | undefined;
18833
- constructor(address: PublicKey, mint: PublicKey, mintDecimals: number, group: PublicKey, assetShareValue: BigNumber$1, liabilityShareValue: BigNumber$1, liquidityVault: PublicKey, liquidityVaultBump: number, liquidityVaultAuthorityBump: number, insuranceVault: PublicKey, insuranceVaultBump: number, insuranceVaultAuthorityBump: number, collectedInsuranceFeesOutstanding: BigNumber$1, feeVault: PublicKey, feeVaultBump: number, feeVaultAuthorityBump: number, collectedGroupFeesOutstanding: BigNumber$1, lastUpdate: number, config: BankConfig, totalAssetShares: BigNumber$1, totalLiabilityShares: BigNumber$1, emissionsActiveBorrowing: boolean, emissionsActiveLending: boolean, emissionsRate: number, emissionsMint: PublicKey, emissionsRemaining: BigNumber$1, oracleKey: PublicKey, emode: EmodeSettings, kaminoIntegrationAccounts?: {
18929
+ constructor(address: PublicKey, mint: PublicKey, mintDecimals: number, group: PublicKey, mintRate: number | null, mintPrice: number, assetShareValue: BigNumber$1, liabilityShareValue: BigNumber$1, liquidityVault: PublicKey, liquidityVaultBump: number, liquidityVaultAuthorityBump: number, insuranceVault: PublicKey, insuranceVaultBump: number, insuranceVaultAuthorityBump: number, collectedInsuranceFeesOutstanding: BigNumber$1, feeVault: PublicKey, feeVaultBump: number, feeVaultAuthorityBump: number, collectedGroupFeesOutstanding: BigNumber$1, lastUpdate: number, config: BankConfig, totalAssetShares: BigNumber$1, totalLiabilityShares: BigNumber$1, emissionsActiveBorrowing: boolean, emissionsActiveLending: boolean, emissionsRate: number, emissionsMint: PublicKey, emissionsRemaining: BigNumber$1, oracleKey: PublicKey, emode: EmodeSettings, kaminoIntegrationAccounts?: {
18834
18930
  kaminoReserve: PublicKey;
18835
18931
  kaminoObligation: PublicKey;
18836
18932
  } | undefined, driftIntegrationAccounts?: {
@@ -19053,10 +19149,14 @@ declare function getConfig(environment?: Environment, overrides?: Partial<Omit<P
19053
19149
  declare enum TransactionBuildingErrorCode {
19054
19150
  JUPITER_SWAP_SIZE_EXCEEDED_REPAY = "JUPITER_SWAP_SIZE_EXCEEDED_REPAY",
19055
19151
  JUPITER_SWAP_SIZE_EXCEEDED_LOOP = "JUPITER_SWAP_SIZE_EXCEEDED_LOOP",
19152
+ SWAP_SIZE_EXCEEDED_LOOP = "SWAP_SIZE_EXCEEDED_LOOP",
19153
+ SWAP_SIZE_EXCEEDED_REPAY = "SWAP_SIZE_EXCEEDED_REPAY",
19056
19154
  ORACLE_CRANK_FAILED = "ORACLE_CRANK_FAILED",
19057
19155
  KAMINO_RESERVE_NOT_FOUND = "KAMINO_RESERVE_NOT_FOUND",
19058
19156
  DRIFT_STATE_NOT_FOUND = "DRIFT_STATE_NOT_FOUND",
19059
- JUPLEND_STATE_NOT_FOUND = "JUPLEND_STATE_NOT_FOUND"
19157
+ JUPLEND_STATE_NOT_FOUND = "JUPLEND_STATE_NOT_FOUND",
19158
+ SWITCHBOARD_FEED_UPDATE_FAILED = "SWITCHBOARD_FEED_UPDATE_FAILED",
19159
+ SWAP_QUOTE_FAILED = "SWAP_QUOTE_FAILED"
19060
19160
  }
19061
19161
  /**
19062
19162
  * Typed details for each error code
@@ -19070,6 +19170,16 @@ interface TransactionBuildingErrorDetails {
19070
19170
  bytes: number;
19071
19171
  accountKeys: number;
19072
19172
  };
19173
+ [TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_LOOP]: {
19174
+ bytes: number;
19175
+ accountKeys: number;
19176
+ provider?: string;
19177
+ };
19178
+ [TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_REPAY]: {
19179
+ bytes: number;
19180
+ accountKeys: number;
19181
+ provider?: string;
19182
+ };
19073
19183
  [TransactionBuildingErrorCode.ORACLE_CRANK_FAILED]: {
19074
19184
  uncrankableLiabilities: Array<{
19075
19185
  bankAddress: string;
@@ -19099,6 +19209,16 @@ interface TransactionBuildingErrorDetails {
19099
19209
  bankMint: string;
19100
19210
  bankSymbol?: string;
19101
19211
  };
19212
+ [TransactionBuildingErrorCode.SWITCHBOARD_FEED_UPDATE_FAILED]: {
19213
+ oracleKeys: string[];
19214
+ reason: string;
19215
+ };
19216
+ [TransactionBuildingErrorCode.SWAP_QUOTE_FAILED]: {
19217
+ provider: string;
19218
+ inputMint: string;
19219
+ outputMint: string;
19220
+ reason: string;
19221
+ };
19102
19222
  }
19103
19223
  /**
19104
19224
  * Error thrown during transaction building in the SDK.
@@ -19114,6 +19234,8 @@ declare class TransactionBuildingError<T extends TransactionBuildingErrorCode =
19114
19234
  */
19115
19235
  static jupiterSwapSizeExceededLoop(bytes: number, accountKeys: number): TransactionBuildingError<TransactionBuildingErrorCode.JUPITER_SWAP_SIZE_EXCEEDED_LOOP>;
19116
19236
  static jupiterSwapSizeExceededRepay(bytes: number, accountKeys: number): TransactionBuildingError<TransactionBuildingErrorCode.JUPITER_SWAP_SIZE_EXCEEDED_REPAY>;
19237
+ static swapSizeExceededLoop(bytes: number, accountKeys: number, provider?: string): TransactionBuildingError<TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_LOOP>;
19238
+ static swapSizeExceededRepay(bytes: number, accountKeys: number, provider?: string): TransactionBuildingError<TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_REPAY>;
19117
19239
  /**
19118
19240
  * Failed to crank oracles for one or more banks
19119
19241
  */
@@ -19140,6 +19262,14 @@ declare class TransactionBuildingError<T extends TransactionBuildingErrorCode =
19140
19262
  * Failed to find JupLend state for a bank
19141
19263
  */
19142
19264
  static jupLendStateNotFound(bankAddress: string, bankMint: string, bankSymbol?: string): TransactionBuildingError<TransactionBuildingErrorCode.JUPLEND_STATE_NOT_FOUND>;
19265
+ /**
19266
+ * Failed to update Switchboard price feeds
19267
+ */
19268
+ static switchboardFeedUpdateFailed(oracleKeys: string[], reason: string): TransactionBuildingError<TransactionBuildingErrorCode.SWITCHBOARD_FEED_UPDATE_FAILED>;
19269
+ /**
19270
+ * Failed to get a swap quote from any provider
19271
+ */
19272
+ static swapQuoteFailed(provider: string, inputMint: string, outputMint: string, reason: string): TransactionBuildingError<TransactionBuildingErrorCode.SWAP_QUOTE_FAILED>;
19143
19273
  /**
19144
19274
  * Generic escape hatch for custom errors
19145
19275
  */
@@ -19304,6 +19434,8 @@ declare const HOURS_PER_YEAR: number;
19304
19434
  declare const MAX_U64: string;
19305
19435
 
19306
19436
  declare const MAX_TX_SIZE: number;
19437
+ declare const MAX_WRITABLE_ACCOUNTS = 64;
19438
+ declare const MAX_ACCOUNT_LOCKS = 64;
19307
19439
  declare const BUNDLE_TX_SIZE: number;
19308
19440
  declare const PRIORITY_TX_SIZE: number;
19309
19441
 
@@ -19806,7 +19938,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19806
19938
  * @param params.oraclePrices - Map of current oracle prices
19807
19939
  * @param params.depositOpts - Deposit configuration (bank, amount, mode)
19808
19940
  * @param params.borrowOpts - Borrow configuration (bank, amount)
19809
- * @param params.swapOpts - Jupiter swap configuration (slippage, fees)
19941
+ * @param params.swapOpts - Swap configuration (venue, slippage, fees)
19810
19942
  * @param params.addressLookupTableAccounts - Address lookup tables
19811
19943
  * @param params.overrideInferAccounts - Optional account overrides
19812
19944
  * @param params.additionalIxs - Additional instructions to include
@@ -19821,7 +19953,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19821
19953
  makeLoopTx(params: Omit<MakeLoopTxParams, "marginfiAccount">): Promise<{
19822
19954
  transactions: ExtendedV0Transaction[];
19823
19955
  actionTxIndex: number;
19824
- quoteResponse: QuoteResponse | undefined;
19956
+ quoteResponse: SwapQuoteResult | undefined;
19825
19957
  }>;
19826
19958
  /**
19827
19959
  * Creates a transaction to repay debt using collateral.
@@ -19838,7 +19970,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19838
19970
  * @param params.oraclePrices - Map of current oracle prices
19839
19971
  * @param params.withdrawOpts - Withdraw configuration (bank, amount)
19840
19972
  * @param params.repayOpts - Repay configuration (bank, optional amount)
19841
- * @param params.swapOpts - Jupiter swap configuration
19973
+ * @param params.swapOpts - Swap configuration (venue, slippage, fees)
19842
19974
  * @param params.addressLookupTableAccounts - Address lookup tables
19843
19975
  * @param params.overrideInferAccounts - Optional account overrides
19844
19976
  * @param params.additionalIxs - Additional instructions to include
@@ -19853,7 +19985,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19853
19985
  */
19854
19986
  makeRepayWithCollatTx(params: Omit<MakeRepayWithCollatTxParams, "marginfiAccount">): Promise<{
19855
19987
  transactions: ExtendedV0Transaction[];
19856
- swapQuote: QuoteResponse | undefined;
19988
+ swapQuote: SwapQuoteResult | undefined;
19857
19989
  amountToRepay: number;
19858
19990
  }>;
19859
19991
  /**
@@ -19872,7 +20004,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19872
20004
  * @param params.oraclePrices - Map of current oracle prices
19873
20005
  * @param params.withdrawOpts - Withdraw configuration (bank, amount, tokenProgram)
19874
20006
  * @param params.depositOpts - Deposit configuration (bank, tokenProgram)
19875
- * @param params.swapOpts - Jupiter swap configuration
20007
+ * @param params.swapOpts - Swap configuration (venue, slippage, fees)
19876
20008
  * @param params.addressLookupTableAccounts - Address lookup tables
19877
20009
  * @param params.overrideInferAccounts - Optional account overrides
19878
20010
  * @param params.additionalIxs - Additional instructions to include
@@ -19888,7 +20020,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19888
20020
  makeSwapCollateralTx(params: Omit<MakeSwapCollateralTxParams, "marginfiAccount">): Promise<{
19889
20021
  transactions: ExtendedV0Transaction[];
19890
20022
  actionTxIndex: number;
19891
- quoteResponse: QuoteResponse | undefined;
20023
+ quoteResponse: SwapQuoteResult | undefined;
19892
20024
  }>;
19893
20025
  /**
19894
20026
  * Creates a transaction to swap one debt position to another using a flash loan.
@@ -19906,7 +20038,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19906
20038
  * @param params.oraclePrices - Map of current oracle prices
19907
20039
  * @param params.repayOpts - Repay configuration (bank, amount, tokenProgram)
19908
20040
  * @param params.borrowOpts - Borrow configuration (bank, tokenProgram)
19909
- * @param params.swapOpts - Jupiter swap configuration
20041
+ * @param params.swapOpts - Swap configuration (venue, slippage, fees)
19910
20042
  * @param params.addressLookupTableAccounts - Address lookup tables
19911
20043
  * @param params.overrideInferAccounts - Optional account overrides
19912
20044
  * @param params.additionalIxs - Additional instructions to include
@@ -19921,7 +20053,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
19921
20053
  makeSwapDebtTx(params: Omit<MakeSwapDebtTxParams, "marginfiAccount">): Promise<{
19922
20054
  transactions: ExtendedV0Transaction[];
19923
20055
  actionTxIndex: number;
19924
- quoteResponse: QuoteResponse | undefined;
20056
+ quoteResponse: SwapQuoteResult | undefined;
19925
20057
  }>;
19926
20058
  /**
19927
20059
  * Creates a deposit transaction.
@@ -20220,7 +20352,7 @@ declare class MarginfiAccountWrapper {
20220
20352
  makeLoopTx(params: Omit<MakeLoopTxParams, "program" | "marginfiAccount" | "bankMap" | "oraclePrices" | "bankMetadataMap" | "addressLookupTableAccounts">): Promise<{
20221
20353
  transactions: ExtendedV0Transaction[];
20222
20354
  actionTxIndex: number;
20223
- quoteResponse: QuoteResponse | undefined;
20355
+ quoteResponse: SwapQuoteResult | undefined;
20224
20356
  }>;
20225
20357
  /**
20226
20358
  * Creates a repay with collateral transaction with auto-injected client data.
@@ -20231,7 +20363,7 @@ declare class MarginfiAccountWrapper {
20231
20363
  */
20232
20364
  makeRepayWithCollatTx(params: Omit<MakeRepayWithCollatTxParams, "program" | "marginfiAccount" | "bankMap" | "oraclePrices" | "bankMetadataMap" | "addressLookupTableAccounts">): Promise<{
20233
20365
  transactions: ExtendedV0Transaction[];
20234
- swapQuote: QuoteResponse | undefined;
20366
+ swapQuote: SwapQuoteResult | undefined;
20235
20367
  amountToRepay: number;
20236
20368
  }>;
20237
20369
  /**
@@ -20247,7 +20379,7 @@ declare class MarginfiAccountWrapper {
20247
20379
  makeSwapCollateralTx(params: Omit<MakeSwapCollateralTxParams, "program" | "marginfiAccount" | "bankMap" | "oraclePrices" | "bankMetadataMap" | "addressLookupTableAccounts">): Promise<{
20248
20380
  transactions: ExtendedV0Transaction[];
20249
20381
  actionTxIndex: number;
20250
- quoteResponse: QuoteResponse | undefined;
20382
+ quoteResponse: SwapQuoteResult | undefined;
20251
20383
  }>;
20252
20384
  /**
20253
20385
  * Creates a swap debt transaction with auto-injected client data.
@@ -20262,7 +20394,7 @@ declare class MarginfiAccountWrapper {
20262
20394
  makeSwapDebtTx(params: Omit<MakeSwapDebtTxParams, "program" | "marginfiAccount" | "bankMap" | "oraclePrices" | "bankMetadataMap" | "addressLookupTableAccounts">): Promise<{
20263
20395
  transactions: ExtendedV0Transaction[];
20264
20396
  actionTxIndex: number;
20265
- quoteResponse: QuoteResponse | undefined;
20397
+ quoteResponse: SwapQuoteResult | undefined;
20266
20398
  }>;
20267
20399
  /**
20268
20400
  * Creates a deposit transaction with auto-injected client data.
@@ -20457,35 +20589,6 @@ declare class MarginfiAccountWrapper {
20457
20589
  * @param excludedBanks - Array of excluded bank public keys (default: [])
20458
20590
  */
20459
20591
  getHealthCheckAccounts(mandatoryBanks?: PublicKey[], excludedBanks?: PublicKey[]): BankType[];
20460
- /**
20461
- * Creates a transaction to mint LST from a native stake account.
20462
- *
20463
- * Converts a native stake account (or a portion of it) into LST tokens
20464
- * by depositing the stake into the single-validator pool.
20465
- *
20466
- * @param amount - SOL amount to convert (in UI units)
20467
- * @param stakeAccountPk - The stake account to convert
20468
- * @param validator - The validator vote account
20469
- */
20470
- makeMintStakedLstTx(amount: Amount, stakeAccountPk: PublicKey, validator: PublicKey): Promise<ExtendedV0Transaction>;
20471
- /**
20472
- * Creates a transaction to redeem LST tokens back to a native stake account.
20473
- *
20474
- * Burns LST tokens and withdraws the underlying stake into a new stake account.
20475
- *
20476
- * @param amount - LST amount to redeem (in UI units)
20477
- * @param validator - The validator vote account
20478
- */
20479
- makeRedeemStakedLstTx(amount: Amount, validator: PublicKey): Promise<ExtendedV0Transaction>;
20480
- /**
20481
- * Creates a transaction to merge two stake accounts.
20482
- *
20483
- * Both accounts must share the same authorized staker/withdrawer and vote account.
20484
- *
20485
- * @param sourceStakeAccount - The stake account to merge from (will be consumed)
20486
- * @param destinationStakeAccount - The stake account to merge into
20487
- */
20488
- makeMergeStakeAccountsTx(sourceStakeAccount: PublicKey, destinationStakeAccount: PublicKey): Promise<ExtendedV0Transaction>;
20489
20592
  /**
20490
20593
  * Gets the underlying MarginfiAccount instance.
20491
20594
  * Useful for advanced operations that need direct access.
@@ -20497,4 +20600,4 @@ declare class MarginfiAccountWrapper {
20497
20600
  getClient(): Project0Client;
20498
20601
  }
20499
20602
 
20500
- 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 };
20603
+ 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, MAX_WRITABLE_ACCOUNTS, 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 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 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, 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, getSwapIxsForFlashloan, getTitanExactOutEstimate, getTitanSwapIxsForFlashloan, getTotalAccountKeys, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, 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, makePoolAddBankIx, makePoolConfigureBankIx, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx, 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 };