@0dotxyz/p0-ts-sdk 2.10.0 → 2.11.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
@@ -1,7 +1,7 @@
1
1
  import * as superstruct from 'superstruct';
2
2
  import { Infer } from 'superstruct';
3
- import { c as BankType, R as RiskTier, A as AssetTag, d as BankConfigFlag, e as OperationalState, f as OracleSetup, E as EmodeTag, g as EmodeEntryFlags, h as EmodeFlags, W as WrappedI80F48, I as InterestRateConfigRaw, i as OperationalStateRaw, j as OracleSetupRaw, k as RiskTierRaw, M as MarginfiProgram, l as InterestRateConfig, m as BankConfigType, n as BankConfigRaw, o as BankConfigOpt, p as BankConfigOptRaw, q as EmodeSettingsType, r as BankRateLimiterType, s as BankRaw, t as BankRateLimiterRaw, u as EmodeSettingsRaw, v as MarginfiIdlType, H as HealthCacheFlags, w as HealthCacheStatus, x as AccountFlags, y as MarginfiAccountType, z as OraclePrice, P as PriceWithConfidence, C as PriceBias, D as OraclePriceDto, F as BankIntegrationMetadataMap, G as OrderType, J as BalanceType, K as HealthCacheType, L as EmodePair, N as ActiveEmodePair, Q as ActionEmodeImpact, S as MarginRequirementType, a as BankConfigFastRaw, b as BankConfigGovRaw, T as Amount, U as EmodeImpactStatus, O as OrderTrigger, V as TypedAmount, X as BankVaultType, Y as RateLimitWindowType, Z as BankIntegrationMetadataMapDto, _ as BankIntegrationMetadataDto, $ as BankIntegrationMetadata, a0 as Bank, a1 as Environment, a2 as Project0Config, a3 as MintData } from './types-DQD0k0pr.cjs';
4
- export { aC as AccountType, aH as AmountType, aB as BankAddress, a4 as BankConfig, B as BankConfigCompactRaw, aE as BankMap, aA as BankMetadata, a7 as BankMetadataRaw, as as ComputeAssetUsdValueParams, aq as ComputeLiabilityUsdValueParams, ao as ComputeUsdValueParams, ac as EmodeConfigRaw, af as EmodeEntry, ah as EmodeImpact, a5 as EmodeSettings, aj as GetAssetWeightParams, a9 as InterestRateConfigCompactRaw, ae as InterestRateConfigOpt, aa as InterestRateConfigOptRaw, aD as KaminoStates, ax as MARGINFI_IDL, aG as MintDataMap, ag as OracleConfigOpt, ab as OracleConfigOptRaw, aF as OraclePriceMap, av as OrderTriggerKind, aw as PriceWithConfidenceDto, ay as Program, a6 as RateLimitWindowRaw, ad as RatePoint, a8 as RatePointRaw, az as Wallet, at as computeAssetUsdValue, ar as computeLiabilityUsdValue, an as computeLoopingParams, am as computeMaxLeverage, au as computeTvl, ap as computeUsdValue, ak as getAssetWeight, al as getLiabilityWeight, ai as isWeightedPrice, aI as resolveAmount } from './types-DQD0k0pr.cjs';
3
+ import { c as BankType, R as RiskTier, A as AssetTag, d as BankConfigFlag, e as OperationalState, f as OracleSetup, E as EmodeTag, g as EmodeEntryFlags, h as EmodeFlags, W as WrappedI80F48, I as InterestRateConfigRaw, i as OperationalStateRaw, j as OracleSetupRaw, k as RiskTierRaw, M as MarginfiProgram, l as InterestRateConfig, m as BankConfigType, n as BankConfigRaw, o as BankConfigOpt, p as BankConfigOptRaw, q as EmodeSettingsType, r as BankRateLimiterType, s as BankRaw, t as BankRateLimiterRaw, u as EmodeSettingsRaw, v as MarginfiIdlType, H as HealthCacheFlags, w as HealthCacheStatus, x as AccountFlags, y as MarginfiAccountType, z as OraclePrice, P as PriceWithConfidence, C as PriceBias, D as OraclePriceDto, F as BankIntegrationMetadataMap, G as OrderType, J as BalanceType, K as HealthCacheType, L as EmodePair, N as ActiveEmodePair, Q as ActionEmodeImpact, S as MarginRequirementType, a as BankConfigFastRaw, b as BankConfigGovRaw, T as Amount, U as EmodeImpactStatus, O as OrderTrigger, V as TypedAmount, X as BankVaultType, Y as RateLimitWindowType, Z as BankIntegrationMetadataMapDto, _ as BankIntegrationMetadataDto, $ as BankIntegrationMetadata, a0 as Bank, a1 as Environment, a2 as Project0Config, a3 as MintData } from './types-BO-ZFk04.cjs';
4
+ export { aC as AccountType, aH as AmountType, aB as BankAddress, a4 as BankConfig, B as BankConfigCompactRaw, aE as BankMap, aA as BankMetadata, a7 as BankMetadataRaw, as as ComputeAssetUsdValueParams, aq as ComputeLiabilityUsdValueParams, ao as ComputeUsdValueParams, ac as EmodeConfigRaw, af as EmodeEntry, ah as EmodeImpact, a5 as EmodeSettings, aj as GetAssetWeightParams, a9 as InterestRateConfigCompactRaw, ae as InterestRateConfigOpt, aa as InterestRateConfigOptRaw, aD as KaminoStates, ax as MARGINFI_IDL, aG as MintDataMap, ag as OracleConfigOpt, ab as OracleConfigOptRaw, aF as OraclePriceMap, av as OrderTriggerKind, aw as PriceWithConfidenceDto, ay as Program, a6 as RateLimitWindowRaw, ad as RatePoint, a8 as RatePointRaw, az as Wallet, at as computeAssetUsdValue, ar as computeLiabilityUsdValue, an as computeLoopingParams, am as computeMaxLeverage, au as computeTvl, ap as computeUsdValue, ak as getAssetWeight, al as getLiabilityWeight, ai as isWeightedPrice, aI as resolveAmount } from './types-BO-ZFk04.cjs';
5
5
  import * as _solana_web3_js from '@solana/web3.js';
6
6
  import { VersionedTransaction, Transaction, PublicKey, TransactionError, TransactionInstruction, Keypair, Signer, AddressLookupTableAccount, Blockhash, TransactionMessage, Connection, AccountInfo } from '@solana/web3.js';
7
7
  import { Idl, Instruction, Address } from '@coral-xyz/anchor';
@@ -2776,7 +2776,7 @@ declare const getTitanExactOutEstimate: (params: GetTitanExactOutEstimateParams)
2776
2776
  interface ResolvedPinnedSwapRoute {
2777
2777
  swapInstructions: TransactionInstruction[];
2778
2778
  setupInstructions: TransactionInstruction[];
2779
- lookupTables: AddressLookupTableAccount[];
2779
+ swapLuts: AddressLookupTableAccount[];
2780
2780
  quoteResponse: SwapQuoteResult;
2781
2781
  /** The route's guaranteed min-out (native) — what sizes the follow-up amount (deposit patch). */
2782
2782
  outputAmountNative: BN;
@@ -2787,13 +2787,15 @@ interface ResolvedPinnedSwapRoute {
2787
2787
  *
2788
2788
  * - `otherAmountThreshold` (min-out) must be a positive integer — it becomes the loop's deposit
2789
2789
  * byte-patch, exactly like an engine-selected route's min-out.
2790
- * - `inAmount` must equal the flow's swap input (e.g. the loop's borrow, native units) — a
2791
- * mismatch means the route was quoted for a different size than the flow will actually swap.
2790
+ * - `inAmount` must equal `expectedInAmountNative`, the flow's swap input (e.g. the loop's borrow,
2791
+ * native units) — a mismatch means the route was quoted for a different size than the flow will
2792
+ * actually swap. Omit it when the route's input sets the swap's size, as in a debt swap, which
2793
+ * borrows what the route takes in.
2792
2794
  *
2793
2795
  * Throws plain `Error`s (not `TransactionBuildingError`) so caller-input mistakes are never
2794
2796
  * classified as decomposable swap failures (which would wrongly engage the bridged fallback).
2795
2797
  */
2796
- declare function resolvePinnedSwapRoute(swapIxs: NonNullable<SwapOpts["swapIxs"]>, expectedInAmountNative: BN | number): ResolvedPinnedSwapRoute;
2798
+ declare function resolvePinnedSwapRoute(swapIxs: NonNullable<SwapOpts["swapIxs"]>, expectedInAmountNative?: BN | number): ResolvedPinnedSwapRoute;
2797
2799
  type GetSwapIxsForFlashloanParams = {
2798
2800
  inputMint: string;
2799
2801
  outputMint: string;
@@ -2826,10 +2828,18 @@ type ExactOutEstimateResult = {
2826
2828
  declare const getExactOutEstimate: (params: GetExactOutEstimateParams) => Promise<ExactOutEstimateResult>;
2827
2829
  declare function mapJupiterQuoteToSwapQuoteResult(quote: QuoteResponse): SwapQuoteResult;
2828
2830
 
2831
+ /**
2832
+ * The position's `amount` (UI units) rounded to whole native units: down for a deposit (no more
2833
+ * can be withdrawn), up for a debt (no less repays it).
2834
+ */
2829
2835
  declare function computeClosePositionTokenAmount(position: {
2830
2836
  amount: number;
2831
2837
  isLending: boolean;
2832
2838
  }, mintDecimals: number): number;
2839
+ /**
2840
+ * Whether `amount` (UI units) covers the whole position: at least
2841
+ * {@link computeClosePositionTokenAmount}.
2842
+ */
2833
2843
  declare function isWholePosition(position: {
2834
2844
  amount: number;
2835
2845
  isLending: boolean;
@@ -3721,6 +3731,8 @@ interface ComposeBridgedSwapParams {
3721
3731
  feePayer: PublicKey;
3722
3732
  /** Override the bundle-size ceiling (default {@link MAX_BRIDGED_BUNDLE_TXS}). */
3723
3733
  maxBundleTxs?: number;
3734
+ /** Bundle slots to leave for transactions the caller appends, e.g. order changes. */
3735
+ reservedTxs?: number;
3724
3736
  }
3725
3737
  interface ComposeBridgedSwapResult {
3726
3738
  /** The atomic bundle: `[mergedSetup?, firstLegCrank?, firstLegFL, secondLegCrank?, secondLegFL]`. */
@@ -3810,7 +3822,7 @@ declare function buildCollateralLegIxs(ctx: BuildContext, position: ClassifiedPo
3810
3822
  * Atomically move a selected set of positions from account A to account B in a single flashloan.
3811
3823
  * Per position: collateral → `withdraw(A)` + `deposit(B)`; debt → `borrow(B)` + `repay(A)`. Returns
3812
3824
  * unsigned transactions ordered for sequential execution (setup/refresh + crank first, then the
3813
- * flashloan); the caller signs and sends them.
3825
+ * flashloan, then the order closes); the caller signs and sends them.
3814
3826
  *
3815
3827
  * The whole transfer must fit one v0 transaction — the selection is capped at `maxPositions`
3816
3828
  * (default 5), and the built flashloan is size-checked, throwing `TRANSFER_POSITIONS_UNSPLITTABLE`
@@ -3857,7 +3869,7 @@ declare function makeBulkWithdrawTx(params: MakeBulkWithdrawTxParams): Promise<B
3857
3869
  * Repay the FULL debt of every given bank from the wallet, packing as many
3858
3870
  * repays per transaction as fit, followed by the premium refresh while
3859
3871
  * premium-bearing debt remains. Most batches are a single transaction; one
3860
- * that splits with a premium refresh in it must land as one bundle.
3872
+ * that splits with a premium refresh or order closes in it must land as one bundle.
3861
3873
  */
3862
3874
  declare function makeBulkRepayTx(params: MakeBulkRepayTxParams): Promise<BulkLendTxsResult>;
3863
3875
 
@@ -3903,6 +3915,47 @@ declare function makeCloseOrderTx(params: MakeCloseOrderTxParams): Promise<Exten
3903
3915
  * balance are unaffected. The flat anti-spam fee is charged again.
3904
3916
  */
3905
3917
  declare function makeUpdateOrderTx(params: MakePlaceOrderTxParams): Promise<ExtendedV0Transaction>;
3918
+ /**
3919
+ * Instructions closing `ordersToClose`, then placing `placeOrder`, for composing with an action.
3920
+ * The closes return the rent to the authority.
3921
+ *
3922
+ * @param params - The account, the orders to close and the order to place
3923
+ * @returns The closes, then the placement
3924
+ * @throws {TransactionBuildingError} `ORDER_INVALID_TRIGGER` / `ORDER_INVALID_SLIPPAGE` for an
3925
+ * invalid `placeOrder.trigger`
3926
+ */
3927
+ declare function makeOrderChangesIxs(params: MakeOrderChangesIxParams): Promise<TransactionInstruction[]>;
3928
+ /**
3929
+ * Puts the closes of `ordersToClose` in front of an action that lands in one transaction. Unlike
3930
+ * the premium refresh they can't be left out, so builders call this before `appendPremiumRefresh`,
3931
+ * which then only adds the refresh if it still fits.
3932
+ *
3933
+ * @param params - The builder's params: program, account (before the action), orders to close and
3934
+ * authority
3935
+ * @param actionIxs - The action's instructions
3936
+ * @param luts - The lookup tables the transaction compiles with
3937
+ * @returns The closes, then the action's instructions
3938
+ * @throws {TransactionBuildingError} `ORDER_CLOSES_DONT_FIT` if the closes don't fit next to the
3939
+ * action
3940
+ */
3941
+ declare function prependOrderCloses(params: OrderChangesParams & {
3942
+ program: MarginfiProgram;
3943
+ marginfiAccount: MarginfiAccountType;
3944
+ authority: PublicKey;
3945
+ }, actionIxs: TransactionInstruction[], luts: AddressLookupTableAccount[]): Promise<TransactionInstruction[]>;
3946
+ /**
3947
+ * Builds the transaction that closes `ordersToClose`, then places `placeOrder`, after a
3948
+ * multi-transaction action, to send in the same atomic bundle. Also adds order changes to an
3949
+ * action built earlier without rebuilding it, e.g. a loop's take-profit / stop-loss set after its
3950
+ * quote.
3951
+ *
3952
+ * @param params - The account, the orders to close, the order to place and the lookup tables
3953
+ * @returns The transaction to run after the action, none when there's nothing to change
3954
+ * @throws {TransactionBuildingError} `ORDER_CLOSES_DONT_FIT` if the changes don't fit in one
3955
+ * transaction; `ORDER_INVALID_TRIGGER` / `ORDER_INVALID_SLIPPAGE` for an invalid
3956
+ * `placeOrder.trigger`
3957
+ */
3958
+ declare function makeOrderChangesTx(params: MakeOrderChangesTxParams): Promise<ExtendedV0Transaction | undefined>;
3906
3959
 
3907
3960
  /**
3908
3961
  * Creates instructions to refresh Kamino lending protocol reserves and obligations.
@@ -4165,8 +4218,8 @@ interface SwapOpts {
4165
4218
  * Pin an exact, caller-reviewed swap route instead of running the swap engine.
4166
4219
  *
4167
4220
  * The caller owns ATA setup for the route, the route's input amount MUST equal the flow's swap
4168
- * input (e.g. the loop's borrow amount), and the route MUST pay out to the flow's destination
4169
- * token account. `quoteResponse.otherAmountThreshold` (guaranteed min-out, native units) sizes
4221
+ * input (the loop's borrow, the collateral swap's withdrawal; a debt swap borrows what the route
4222
+ * takes in), and the route MUST pay out to the flow's destination token account. `quoteResponse.otherAmountThreshold` (guaranteed min-out, native units) sizes
4170
4223
  * the follow-up amount — e.g. the loop's deposit byte-patch — exactly like an engine-selected
4171
4224
  * route would. For dynamic caller-controlled routing (inspect/veto routes at build time),
4172
4225
  * prefer `swapEngineRunner`.
@@ -4272,21 +4325,32 @@ interface PremiumRefreshParams {
4272
4325
  bankMap: Map<string, BankType>;
4273
4326
  bankMetadataMap: BankIntegrationMetadataMap;
4274
4327
  }
4275
- interface MakeDepositTxParams extends MakeDepositIxParams, PremiumRefreshParams {
4328
+ /**
4329
+ * Orders a transaction builder closes with its action, e.g. every order on a bank the action
4330
+ * touches: an order covers its two balances in full, so it mustn't fire on the changed position.
4331
+ * Single-transaction builders put the closes in front of the action and flashloan builders in one
4332
+ * transaction after it, throwing `ORDER_CLOSES_DONT_FIT` when they don't fit; bulk builders pack
4333
+ * them in with the action. A result of more than one transaction sets `mustBeAtomicBundle`.
4334
+ */
4335
+ interface OrderChangesParams {
4336
+ /** Order PDAs to close (see `deriveOrderPda`) */
4337
+ ordersToClose?: PublicKey[];
4338
+ }
4339
+ interface MakeDepositTxParams extends MakeDepositIxParams, PremiumRefreshParams, OrderChangesParams {
4276
4340
  luts: AddressLookupTableAccount[];
4277
4341
  blockhash?: string;
4278
4342
  }
4279
- interface MakeJuplendDepositTxParams extends MakeJuplendDepositIxParams, PremiumRefreshParams {
4343
+ interface MakeJuplendDepositTxParams extends MakeJuplendDepositIxParams, PremiumRefreshParams, OrderChangesParams {
4280
4344
  luts: AddressLookupTableAccount[];
4281
4345
  connection: Connection;
4282
4346
  blockhash?: string;
4283
4347
  }
4284
- interface MakeDriftDepositTxParams extends MakeDriftDepositIxParams, PremiumRefreshParams {
4348
+ interface MakeDriftDepositTxParams extends MakeDriftDepositIxParams, PremiumRefreshParams, OrderChangesParams {
4285
4349
  luts: AddressLookupTableAccount[];
4286
4350
  connection: Connection;
4287
4351
  blockhash?: string;
4288
4352
  }
4289
- interface MakeKaminoDepositTxParams extends MakeKaminoDepositIxParams, PremiumRefreshParams {
4353
+ interface MakeKaminoDepositTxParams extends MakeKaminoDepositIxParams, PremiumRefreshParams, OrderChangesParams {
4290
4354
  luts: AddressLookupTableAccount[];
4291
4355
  connection: Connection;
4292
4356
  blockhash?: string;
@@ -4313,7 +4377,7 @@ interface MakeRepayIxParams {
4313
4377
  isSync?: boolean;
4314
4378
  opts?: MakeRepayIxOpts;
4315
4379
  }
4316
- interface MakeRepayTxParams extends MakeRepayIxParams, PremiumRefreshParams {
4380
+ interface MakeRepayTxParams extends MakeRepayIxParams, PremiumRefreshParams, OrderChangesParams {
4317
4381
  luts: AddressLookupTableAccount[];
4318
4382
  }
4319
4383
  interface MakeWithdrawIxOpts {
@@ -4381,13 +4445,13 @@ interface MakeWithdrawIxParams {
4381
4445
  withdrawAll?: boolean;
4382
4446
  opts?: MakeWithdrawIxOpts;
4383
4447
  }
4384
- interface MakeWithdrawTxParams extends MakeWithdrawIxParams {
4448
+ interface MakeWithdrawTxParams extends MakeWithdrawIxParams, OrderChangesParams {
4385
4449
  connection: Connection;
4386
4450
  oraclePrices: Map<string, OraclePrice>;
4387
4451
  assetShareValueMultiplierByBank: Map<string, BigNumber$1>;
4388
4452
  luts: AddressLookupTableAccount[];
4389
4453
  }
4390
- interface MakeKaminoWithdrawTxParams extends Omit<MakeKaminoWithdrawIxParams, "cTokenAmount"> {
4454
+ interface MakeKaminoWithdrawTxParams extends Omit<MakeKaminoWithdrawIxParams, "cTokenAmount">, OrderChangesParams {
4391
4455
  amount: Amount | TypedAmount;
4392
4456
  connection: Connection;
4393
4457
  oraclePrices: Map<string, OraclePrice>;
@@ -4420,20 +4484,20 @@ interface MakeBorrowIxParams {
4420
4484
  isSync?: boolean;
4421
4485
  opts?: MakeBorrowIxOpts;
4422
4486
  }
4423
- interface MakeBorrowTxParams extends MakeBorrowIxParams {
4487
+ interface MakeBorrowTxParams extends MakeBorrowIxParams, OrderChangesParams {
4424
4488
  connection: Connection;
4425
4489
  oraclePrices: Map<string, OraclePrice>;
4426
4490
  assetShareValueMultiplierByBank: Map<string, BigNumber$1>;
4427
4491
  bankMetadataMap: BankIntegrationMetadataMap;
4428
4492
  luts: AddressLookupTableAccount[];
4429
4493
  }
4430
- interface MakeJuplendWithdrawTxParams extends MakeJuplendWithdrawIxParams {
4494
+ interface MakeJuplendWithdrawTxParams extends MakeJuplendWithdrawIxParams, OrderChangesParams {
4431
4495
  connection: Connection;
4432
4496
  oraclePrices: Map<string, OraclePrice>;
4433
4497
  assetShareValueMultiplierByBank: Map<string, BigNumber$1>;
4434
4498
  luts: AddressLookupTableAccount[];
4435
4499
  }
4436
- interface MakeDriftWithdrawTxParams extends MakeDriftWithdrawIxParams {
4500
+ interface MakeDriftWithdrawTxParams extends MakeDriftWithdrawIxParams, OrderChangesParams {
4437
4501
  connection: Connection;
4438
4502
  oraclePrices: Map<string, OraclePrice>;
4439
4503
  assetShareValueMultiplierByBank: Map<string, BigNumber$1>;
@@ -4480,7 +4544,7 @@ interface MakeFlashLoanTxParams {
4480
4544
  signers?: Signer[];
4481
4545
  }
4482
4546
  type TransferPositionSide = "collateral" | "debt";
4483
- interface MakeTransferPositionsTxParams {
4547
+ interface MakeTransferPositionsTxParams extends OrderChangesParams {
4484
4548
  program: MarginfiProgram;
4485
4549
  connection: Connection;
4486
4550
  /** Source account A (positions move out of this account). */
@@ -4494,6 +4558,8 @@ interface MakeTransferPositionsTxParams {
4494
4558
  accountIndex?: number;
4495
4559
  thirdPartyId?: number;
4496
4560
  };
4561
+ /** Orders to close on the destination account (`ordersToClose` closes the source's). */
4562
+ destinationOrdersToClose?: PublicKey[];
4497
4563
  bankMap: Map<string, BankType>;
4498
4564
  oraclePrices: Map<string, OraclePrice>;
4499
4565
  bankMetadataMap: BankIntegrationMetadataMap;
@@ -4513,7 +4579,7 @@ interface MakeTransferPositionsTxParams {
4513
4579
  };
4514
4580
  }
4515
4581
  interface TransferPositionsResult {
4516
- /** Ordered for execution: [setup/crank txs…, flashloan tx]. */
4582
+ /** Ordered for execution: [setup/crank txs…, flashloan tx, order txs…]. */
4517
4583
  transactions: ExtendedV0Transaction[];
4518
4584
  /** Index of the flashloan tx in `transactions`. */
4519
4585
  actionTxIndex: number;
@@ -4522,7 +4588,7 @@ interface TransferPositionsResult {
4522
4588
  /** Whether all transactions must land atomically in one bundle. */
4523
4589
  mustBeAtomicBundle: boolean;
4524
4590
  }
4525
- interface MakeBulkWithdrawTxParams {
4591
+ interface MakeBulkWithdrawTxParams extends OrderChangesParams {
4526
4592
  program: MarginfiProgram;
4527
4593
  connection: Connection;
4528
4594
  marginfiAccount: MarginfiAccountType;
@@ -4540,7 +4606,7 @@ interface MakeBulkWithdrawTxParams {
4540
4606
  authority?: PublicKey;
4541
4607
  };
4542
4608
  }
4543
- interface MakeBulkRepayTxParams {
4609
+ interface MakeBulkRepayTxParams extends OrderChangesParams {
4544
4610
  program: MarginfiProgram;
4545
4611
  connection: Connection;
4546
4612
  marginfiAccount: MarginfiAccountType;
@@ -4567,7 +4633,7 @@ interface BulkLendTxsResult {
4567
4633
  /** Whether all transactions must land atomically in one bundle. */
4568
4634
  mustBeAtomicBundle: boolean;
4569
4635
  }
4570
- interface MakeLoopTxParams {
4636
+ interface MakeLoopTxParams extends OrderChangesParams {
4571
4637
  program: MarginfiProgram;
4572
4638
  marginfiAccount: MarginfiAccountType;
4573
4639
  connection: Connection;
@@ -4606,6 +4672,12 @@ interface MakeLoopTxParams {
4606
4672
  * `swapOpts.swapIxs` instead.
4607
4673
  */
4608
4674
  swapEngineRunner?: SwapEngineRunner;
4675
+ /**
4676
+ * Places a take-profit / stop-loss order with this trigger on the loop's pair (deposit bank as
4677
+ * collateral, borrow bank as debt) after the loop. Put the pair's existing order in
4678
+ * `ordersToClose` to replace it.
4679
+ */
4680
+ placeOrder?: OrderTriggerParams;
4609
4681
  }
4610
4682
  /**
4611
4683
  * Describes a loop flashloan that has been built up to — but not including — the swap.
@@ -4629,7 +4701,7 @@ interface LoopFlashloanDescriptor {
4629
4701
  maxSwapTotalAccounts: number;
4630
4702
  luts: AddressLookupTableAccount[];
4631
4703
  }
4632
- interface MakeRepayWithCollatTxParams {
4704
+ interface MakeRepayWithCollatTxParams extends OrderChangesParams {
4633
4705
  program: MarginfiProgram;
4634
4706
  marginfiAccount: MarginfiAccountType;
4635
4707
  connection: Connection;
@@ -4659,7 +4731,7 @@ interface MakeRepayWithCollatTxParams {
4659
4731
  /** See `MakeLoopTxParams.swapEngineRunner`. */
4660
4732
  swapEngineRunner?: SwapEngineRunner;
4661
4733
  }
4662
- interface MakeSwapCollateralTxParams {
4734
+ interface MakeSwapCollateralTxParams extends OrderChangesParams {
4663
4735
  program: MarginfiProgram;
4664
4736
  marginfiAccount: MarginfiAccountType;
4665
4737
  connection: Connection;
@@ -4700,7 +4772,7 @@ interface MakeSwapCollateralTxParams {
4700
4772
  * vault's `pt_redemption_rate`; the SY → PT price is quoted by simulating a standalone
4701
4773
  * `trade_pt`, so the deposit is sized to the guaranteed minimum out.
4702
4774
  */
4703
- interface MakeRollPtTxParams {
4775
+ interface MakeRollPtTxParams extends OrderChangesParams {
4704
4776
  program: MarginfiProgram;
4705
4777
  marginfiAccount: MarginfiAccountType;
4706
4778
  connection: Connection;
@@ -4784,7 +4856,7 @@ interface RollPtOpts {
4784
4856
  */
4785
4857
  lookupTable?: PublicKey;
4786
4858
  }
4787
- interface MakeSwapDebtTxParams {
4859
+ interface MakeSwapDebtTxParams extends OrderChangesParams {
4788
4860
  program: MarginfiProgram;
4789
4861
  marginfiAccount: MarginfiAccountType;
4790
4862
  connection: Connection;
@@ -4866,6 +4938,17 @@ interface MakeCloseOrderTxParams extends MakeCloseOrderIxParams {
4866
4938
  luts: AddressLookupTableAccount[];
4867
4939
  blockhash?: string;
4868
4940
  }
4941
+ interface MakeOrderChangesIxParams extends OrderChangesParams {
4942
+ program: MarginfiProgram;
4943
+ marginfiAccount: MarginfiAccountType;
4944
+ /** Placed after the closes; close the pair's existing order in the same call to replace it. */
4945
+ placeOrder?: Omit<MakePlaceOrderIxParams, "program" | "marginfiAccount">;
4946
+ }
4947
+ interface MakeOrderChangesTxParams extends MakeOrderChangesIxParams {
4948
+ connection: Connection;
4949
+ luts: AddressLookupTableAccount[];
4950
+ blockhash?: string;
4951
+ }
4869
4952
 
4870
4953
  /**
4871
4954
  * Vault PDA Utilities
@@ -5317,21 +5400,24 @@ declare function getValidatorVoteAccountByBank(): Record<string, string>;
5317
5400
  */
5318
5401
  interface StakedBankLike {
5319
5402
  address: PublicKey;
5403
+ stakedOracleUsesOnramp?: boolean;
5320
5404
  }
5321
5405
  /**
5322
- * Computes the asset-share multiplier (LST → SOL ratio) for each staked bank.
5406
+ * Computes the asset-share multiplier (SOL per LST) for each staked bank, as the program prices it:
5407
+ * - with on-ramp pricing (`stakedOracleUsesOnramp`): the lamports of the pool's stake account and
5408
+ * on-ramp above rent, over the LST supply plus the pool's 1 SOL phantom supply;
5409
+ * - otherwise: the pool's delegated stake above its 1 SOL bootstrap, over the LST supply. This
5410
+ * legacy rate is slightly below what the pool redeems an LST for, since it leaves out
5411
+ * undelegated and on-ramp lamports.
5323
5412
  *
5324
- * For each staked bank:
5325
- * multiplier = max(stakeLamports - LAMPORTS_PER_SOL, 0) / lstMintSupply
5326
- *
5327
- * Banks whose metadata cannot be resolved, or whose pool accounts cannot be
5328
- * fetched, default to a multiplier of 1.
5413
+ * Banks whose metadata cannot be resolved, whose pool stake account or LST mint cannot be
5414
+ * fetched, or whose LST supply is zero default to a multiplier of 1.
5329
5415
  *
5330
5416
  * @param stakedBanks - Banks with `assetTag === AssetTag.STAKED`
5331
5417
  * @param connection - Solana RPC connection
5332
5418
  * @returns Map of bank address (base58) → BigNumber multiplier
5333
5419
  */
5334
- declare function computeStakedBankMultipliers(stakedBanks: StakedBankLike[], connection: Connection): Promise<Map<string, BigNumber$1>>;
5420
+ declare function computeStakedBankMultipliers(stakedBanks: StakedBankLike[], connection: Connection): Promise<Map<string, BigNumber>>;
5335
5421
 
5336
5422
  /**
5337
5423
  * Creates instructions to convert a native stake account into LST tokens.
@@ -5765,6 +5851,7 @@ declare enum TransactionBuildingErrorCode {
5765
5851
  BRIDGE_CONFLICT = "BRIDGE_CONFLICT",
5766
5852
  ORDER_INVALID_TRIGGER = "ORDER_INVALID_TRIGGER",
5767
5853
  ORDER_INVALID_SLIPPAGE = "ORDER_INVALID_SLIPPAGE",
5854
+ ORDER_CLOSES_DONT_FIT = "ORDER_CLOSES_DONT_FIT",
5768
5855
  COSTLY_POSITION_LIMIT_EXCEEDED = "COSTLY_POSITION_LIMIT_EXCEEDED",
5769
5856
  ACCOUNT_DISABLED = "ACCOUNT_DISABLED"
5770
5857
  }
@@ -5855,6 +5942,9 @@ interface TransactionBuildingErrorDetails {
5855
5942
  maxSlippagePercent: number;
5856
5943
  maxAllowedPercent: number;
5857
5944
  };
5945
+ [TransactionBuildingErrorCode.ORDER_CLOSES_DONT_FIT]: {
5946
+ orderAddresses: string[];
5947
+ };
5858
5948
  [TransactionBuildingErrorCode.COSTLY_POSITION_LIMIT_EXCEEDED]: {
5859
5949
  /** Integration/staked bank the action would open a position in */
5860
5950
  bankAddress: string;
@@ -5948,6 +6038,13 @@ declare class TransactionBuildingError<T extends TransactionBuildingErrorCode =
5948
6038
  * execute an order that allows no slippage, so the SDK rejects it.
5949
6039
  */
5950
6040
  static orderInvalidSlippage(maxSlippagePercent: number, maxAllowedPercent: number): TransactionBuildingError<TransactionBuildingErrorCode.ORDER_INVALID_SLIPPAGE>;
6041
+ /**
6042
+ * Closing the orders an action touches doesn't fit in one transaction: next to the action, or in
6043
+ * the one order transaction after a multi-transaction action. Builders throw rather than leave the
6044
+ * closes out, since an order on a changed position can still fire: close the orders on their own
6045
+ * first, then retry the action.
6046
+ */
6047
+ static orderClosesDontFit(orderAddresses: string[]): TransactionBuildingError<TransactionBuildingErrorCode.ORDER_CLOSES_DONT_FIT>;
5951
6048
  /**
5952
6049
  * The marginfi account is disabled (e.g. already transferred to a new account), so it can't act.
5953
6050
  */
@@ -7657,4 +7754,4 @@ declare class MarginfiAccountWrapper {
7657
7754
  getClient(): Project0Client;
7658
7755
  }
7659
7756
 
7660
- export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_GROUP_NATIVE_STAKE, ADDRESS_LOOKUP_TABLE_FOR_SWAP, type AccountActiveBalanceForBank, AccountFlags, ActionEmodeImpact, ActiveEmodePair, type ActiveStakePoolMap, Amount, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceRaw, BalanceType, type BalanceTypeDto, Bank, type BankConfigDto, BankConfigFastRaw, BankConfigFlag, BankConfigGovRaw, BankConfigOpt, BankConfigOptRaw, BankConfigRaw, type BankConfigRawDto, BankConfigType, BankIntegrationMetadata, BankIntegrationMetadataDto, BankIntegrationMetadataMap, BankIntegrationMetadataMapDto, type BankMetrics, type BankOutflowRateLimit, type BankRateLimiterDto, BankRateLimiterRaw, type BankRateLimiterRawDto, BankRateLimiterType, BankRaw, type BankRawDto, BankType, type BankTypeDto, BankVaultType, type BankVenueStates, type BridgeOpts, type BridgeTokenSide, type BridgedSwapLeg, type BridgedTxResult, type BuildContext, type BulkLendTxsResult, type ClassifiedPosition, type ComposeBridgedSwapParams, type ComposeBridgedSwapResult, type ComputeAssetHealthComponentParams, type ComputeBalanceUsdValueParams, type ComputeBankMetricsParams, type ComputeFreeCollateralFromBalancesParams, type ComputeHealthCacheStatusParams, type ComputeHealthComponentsFromBalancesParams, type ComputeLiabilityHealthComponentParams, type ComputeLiquidationPriceForBankParams, type ComputeMaxBorrowForBankParams, type ComputeMaxDepositForBankParams, type ComputeMaxWithdrawForBankParams, type ComputeNetApyParams, type ComputePremiumRatesParams, ConfigRaw, DEFAULT_BRIDGE_MINTS, DEFAULT_ORACLE_MAX_AGE, DEFAULT_REPAY_ALL_EXTRA_BUFFER_BPS, DISABLED_FLAG, type DriftBankInput, type DriftMetadata, type DriftStateByBank, type DriftStateJsonByBank, EMPTY_HEALTH_CACHE, EXECUTION_HEADROOM_SECONDS, type EmodeConfigRawDto, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, EmodeImpactStatus, EmodePair, type EmodeSettingsDto, EmodeSettingsRaw, type EmodeSettingsRawDto, EmodeSettingsType, EmodeTag, 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 GetBalanceUsdValueWithPriceBiasParams, type GetExactOutEstimateParams, type GetSwapIxsForFlashloanParams, type GetTitanExactOutEstimateParams, type GetTitanSwapIxsParams, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, type HealthCacheRaw, HealthCacheSimulationError, HealthCacheStatus, HealthCacheType, type HealthCacheTypeDto, type InstructionsWrapper, type IntegrationType, InterestRateConfig, type InterestRateConfigDto, InterestRateConfigRaw, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, type JupLendBankInput, type JupLendMetadata, type JupLendStateByBank, type JupLendStateJsonByBank, KAMINO_MARKET_EMERGENCY_FLAG, type KaminoBankInput, type KaminoMetadata, type KaminoStateByBank, type KaminoStateJsonByBank, LST_MINT, type LoopFlashloanDescriptor, MARGINFI_PROGRAM, MARGINFI_PROGRAM_STAGING, MARGINFI_PROGRAM_STAGING_ALT, MARGINFI_SPONSORED_SHARD_ID, MAX_ACCOUNT_LOCKS, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_COSTLY_POSITIONS, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeAccountTransferToNewAccountTxParams, type MakeBorrowIxOpts, type MakeBorrowIxParams, type MakeBorrowTxParams, type MakeBridgedLoopTxParams, type MakeBridgedSwapCollateralTxParams, type MakeBridgedSwapDebtTxParams, type MakeBulkRepayTxParams, type MakeBulkWithdrawTxParams, type MakeCloseAccountIxParams, type MakeCloseAccountTxParams, type MakeCloseOrderIxParams, type MakeCloseOrderTxParams, 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 MakePlaceOrderIxParams, type MakePlaceOrderTxParams, type MakeRedeemStakedLstIxParams, type MakeRedeemStakedLstTxParams, type MakeRepayIxOpts, type MakeRepayIxParams, type MakeRepayTxParams, type MakeRepayWithCollatTxParams, type MakeRollPtTxParams, type MakeSetupIxParams, type MakeSwapCollateralTxParams, type MakeSwapDebtTxParams, type MakeTransferPositionsTxParams, type MakeVaultCompleteWithdrawalIxParams, type MakeVaultCompleteWithdrawalTxParams, type MakeVaultDepositIxParams, type MakeVaultDepositTxParams, type MakeVaultDepositWithSwapTxParams, type MakeVaultWithdrawIxParams, type MakeVaultWithdrawTxParams, type MakeWithdrawIxOpts, type MakeWithdrawIxParams, type MakeWithdrawTxParams, MarginRequirementType, type MarginRequirementTypeRaw, MarginfiAccount, type MarginfiAccountRaw, MarginfiAccountType, type MarginfiAccountTypeDto, MarginfiAccountWrapper, MarginfiGroup, type MarginfiGroupRaw, type MarginfiGroupType, type MarginfiGroupTypeDto, MarginfiIdlType, MarginfiProgram, type MintAuthorityBalance, MintData, type MultiplierAccountState, type MultiplierAccountStates, OperationalState, OperationalStateRaw, type OracleMultiplierBankInput, type OracleMultiplierServiceOpts, OraclePrice, OraclePriceDto, OracleSetup, OracleSetupRaw, type OracleSourceKey, type OrderRaw, OrderTrigger, type OrderTriggerParams, type OrderTriggerTypeRaw, OrderType, 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, PDA_ORDER_SEED, PDA_REBALANCE_FEE_POOL_SEED, PREMIUM_ACTIVE_FLAG, PRIORITY_TX_SIZE, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, type PanicStateCache, type PremiumAction, type PremiumCollateralBreakdown, type PremiumEntry, type PremiumImpact, type PremiumRefreshParams, PriceBias, PriceWithConfidence, Project0Client, Project0Config, Project0ConfigRaw, type ProviderSwapRoute, type PythOracleServiceOpts, type RateLimitWindowDto, type RateLimitWindowRawDto, RateLimitWindowType, type RatePointDto, type ResolveBridgeCandidateBanksParams, type ResolvedPinnedSwapRoute, RiskTier, RiskTierRaw, type RollPtOpts, type RollQuoteSimResult, type RollQuoteSimulator, type RollQuoteTokenBalance, SECONDS_PER_YEAR, SINGLE_POOL_PROGRAM_ID, STAKED_ORACLE_DISABLED_FLAG, STAKED_ORACLE_USES_ONRAMP_FLAG, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWAP_ADAPTERS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, type ScopeOracleServiceOpts, type SerializedInstruction, type SerializedLut, type SerializedSwapEngineRequest, type SerializedSwapEngineResult, type SerializedTxFootprint, type SharedBridgeLegContext, type SimulateAccountHealthCacheWithFallbackParams, type SimulationResultRaw, type SolanaTransaction, type StakeAccount, type StakePoolMevMap, type StakedBankMetadata, type SwapAdapter, type SwapApiConfig, type SwapCandidate, type SwapEngineRequest, type SwapEngineResult, type SwapEngineRunner, type SwapIxsResult, type SwapOpts, SwapProvider, type SwapProviderConfig, type SwapProviderEntry, type SwapQuoteResult, TRANSFER_ACCOUNT_AUTHORITY_FLAG, type TitanQuoteParams, TransactionArenaKeyMap, type TransactionBuilderResult, TransactionBuildingError, TransactionBuildingErrorCode, type TransactionBuildingErrorDetails, TransactionConfigMap, TransactionType, type TransferPositionSide, type TransferPositionsResult, type TxFootprint, TypedAmount, U64_MAX, USDC_DECIMALS, USDC_MINT, USDT_MINT, VENUE_AVAILABLE_LIQUIDITY_BUFFER, type ValidatorRateData, type ValidatorStakeGroup, type ValidatorStakeGroupDto, WSOL_MINT, type WithdrawWindowCache, WrappedI80F48, ZERO_ORACLE_KEY, accountConflictsWithBridgeBank, accountFlagToBN, addOracleToBanksIx, addTransactionMetadata, adjustPriceComponent, appendPremiumRefresh, aprToApy, apyToApr, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankMetadataMapToDto, bankMetadataToDto, bankRateLimiterRawToDto, bankRawToDto, bigNumberToWrappedI80F48, bpsToPercentile, buildCollateralLegIxs, buildOrderTrigger, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, checkJupiterFeeAccount, checkTitanFeeAccount, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, classifyAndValidate, compileFlashloanPrecheck, composeBridgedSwap, composeRemainingAccounts, computeAccountValue, computeAccrualProjectionSeconds, computeActiveEmodePairs, computeAssetHealthComponent, computeBalancePremium, computeBalanceUsdValue, computeBankAvailableLiquidity, computeBankBorrowApy, computeBankBorrowCapRemaining, computeBankDepositCapRemaining, computeBankMetrics, computeBankOutflowRateLimit, computeBankPoolSize, computeBankProjectedAvailableLiquidity, computeBankRateLimitRemaining, computeBankSupplyApy, computeBankTotalBorrows, computeBankTotalBorrowsUsd, computeBankTotalDeposits, computeBankTotalDepositsUsd, computeBaseInterestRate, computeBorrowEstimateForRepay, computeClosePositionTokenAmount, computeEmodeImpacts, computeFlashLoanNonSwapBudget, computeFlashloanSwapConstraints, computeFreeCollateralFromBalances, computeFreeCollateralFromCache, computeGroupRateLimitRemainingUsd, computeHealthAccountMetas, computeHealthCacheStatus, computeHealthCheckAccounts, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeInterestRates, computeLiabilityHealthComponent, computeLiquidationPriceForBank, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxDepositForBank, computeMaxWithdrawForBank, computeNetApy, computeOracleMultiplier, computeOracleMultipliers, computeOrderPairNetValue, computePremiumBreakdown, computePremiumImpact, computePremiumRatesByBank, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computePtMultiplier, computeQuantity, computeQuantityUi, computeRateLimitWindowRemainingCapacity, computeRateLimiterRemainingCapacity, computeRemainingCapacity, computeStakedBankMultipliers, computeUtilizationRate, computeV0TxSize, computeVenueAvailableLiquidity, configureScopeOracleIx, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeAccountRaw, decodeBankRaw, decodeInstruction, decodeMultiplierAccount, decompileV0Transaction, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, deriveOrderPda, deriveRebalanceFeePool, deserializeInstruction, deserializeLut, deserializeSwapEngineRequest, deserializeSwapEngineResult, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankMetadata, dtoToBankMetadataMap, dtoToBankRateLimiter, dtoToBankRateLimiterRaw, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, exceedsCostlyPositionLimit, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchGammaLpVault, fetchGammaWithdrawReceipt, fetchMarginfiAccountActiveBalancesForBank, fetchMarginfiAccountAddresses, fetchMarginfiAccountAddressesHoldingBank, fetchMarginfiAccountData, fetchMultipleBanks, fetchMultiplierAccountStates, fetchMultiplierAccountStatesFromAPI, fetchNativeStakeAccounts, fetchOracleData, fetchOracleMultipliers, fetchOracleMultipliersFromAPI, fetchOracleMultipliersFromChain, fetchOrderFees, fetchOrdersForAccount, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchScopeOracleData, fetchScopeOraclePricesFromAPI, fetchScopeOraclePricesFromChain, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, findRandomAvailableAccountIndex, fitsInOneTransaction, freezeBankConfigIx, generateDummyAccount, getAccountKeys, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getBalance, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getBirdeyeFallbackPricesByFeedId, getBirdeyePricesForMints, getConfig, getDriftCTokenMultiplier, getDriftMetadata, getDriftStatesDto, getEffectiveDepositLimit, getEmodePairs, getExactOutEstimate, getFallbackPricesByFeedId, getFallbackPricesForMints, getHealthCacheStatusDescription, getHealthSimulationTransactions, getJupLendFTokenMultiplier, getJupLendMetadata, getJupLendStatesDto, getJupiterReferralFeeAccount, getJupiterSwapIxsForFlashloan, getKaminoCTokenMultiplier, getKaminoMetadata, getKaminoStatesDto, getLiabilityQuantity, getLiabilityShares, getOracleMultiplierBankInput, getOracleSourceFromBank, getOracleSourceFromOracleSetup, getOracleSourceNameFromKey, getPrice, getPriceWithConfidence, getStakedBankMetadataMap, getSwapAdapter, getSwapIxsForFlashloan, getTitanExactOutEstimate, getTitanSwapIxsForFlashloan, getTotalAccountKeys, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, getValidatorVoteAccountByBank, getWritableAccountKeys, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isBorrowLimitActive, isBridgeConflictError, isCostlyBank, isDecomposableSwapError, isDepositIx, isDepositLimitActive, isFlashloan, isGroupRateLimiterEnabled, isStandardBorrowable, isStandardDepositable, isV0Tx, isWholePosition, makeAccountTransferToNewAccountTx, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx, makeBorrowIx, makeBorrowTx, makeBridgedLoopTx, makeBridgedSwapCollateralTx, makeBridgedSwapDebtTx, makeBulkRepayTx, makeBulkWithdrawTx, makeBundleTipIx, makeCloseMarginfiAccountIx, makeCloseMarginfiAccountTx, makeCloseOrderIx, makeCloseOrderTx, makeCreateAccountIxWithProjection, makeCreateAccountTxWithProjection, makeCreateMarginfiAccountIx, makeCreateMarginfiAccountTx, makeDepositIx, makeDepositTx, makeDriftDepositIx, makeDriftDepositTx, makeDriftWithdrawIx, makeDriftWithdrawTx, makeEndFlashLoanIx, makeFlashLoanTx, makeJuplendDepositIx, makeJuplendDepositTx, makeJuplendWithdrawIx, makeJuplendWithdrawTx, makeKaminoDepositIx, makeKaminoDepositTx, makeKaminoWithdrawIx, makeKaminoWithdrawTx, makeLoopTx, makeMergeStakeAccountsTx, makeMintStakedLstIx, makeMintStakedLstTx, makePlaceOrderIx, makePlaceOrderTx, makePoolAddBankIx, makePoolConfigureBankGovIx, makePoolConfigureBankIx, makePreludeTxs, makePremiumRefreshIxs, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx, makeRedeemStakedLstIx, makeRedeemStakedLstTx, makeRefreshIntegrationBanksIxs, makeRefreshKaminoBanksIxs, makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeRollPtTx, makeSetupIx, makeSwapCollateralTx, makeSwapDebtTx, makeTransferPositionsTx, makeTxPriorityIx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateOrderTx, makeVaultCompleteWithdrawalIx, makeVaultCompleteWithdrawalTx, makeVaultDepositIx, makeVaultDepositTx, makeVaultDepositWithSwapTx, makeVaultWithdrawIx, makeVaultWithdrawTx, makeVersionedTransaction, makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapJupiterQuoteToSwapQuoteResult, mapPythBanksToOraclePrices, marginfiAccountToDto, maxSlippageU32ToPercent, mergeBridgeQuotes, mergeBridgeQuotesDebt, mergeBridgeQuotesLoop, nativeToUi, needsPremiumRefresh, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRateLimiterRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseHealthCacheRaw, parseMarginfiAccountRaw, parseOperationalState, parseOracleSetup, parseOrderRaw, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseRpcPythPriceData, patchDepositAmount, percentToMaxSlippageU32, rateFromU32, requireBank, requireTokenProgram, resolveBridgeCandidateBanks, resolveOrderLegs, resolvePinnedSwapRoute, resolveTokenProgramForMint, resolveVaultTokenProgram, runSwapEngine, selectLutsForAccountAction, selectLutsForBanks, selectSwapBridges, serializeBankConfigOpt, serializeInstruction, serializeInterestRateConfig, serializeLut, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, serializeSwapEngineRequest, serializeSwapEngineResult, setOraclePriceIx, sharedBridgeLegContext, shortenAddress, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, swapEngineProvidersFromOpts, swapEngineQuoteFieldsFromOpts, toBankConfigDto, toBankDto, toBankRateLimiterDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toJupiterConfig, toNumber, tryBridgeCandidates, uiToNative, uiToNativeBigNumber, validatorStakeGroupToDto, withKaminoReserveEmergency, wrappedI80F48toBigNumber };
7757
+ export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_GROUP_NATIVE_STAKE, ADDRESS_LOOKUP_TABLE_FOR_SWAP, type AccountActiveBalanceForBank, AccountFlags, ActionEmodeImpact, ActiveEmodePair, type ActiveStakePoolMap, Amount, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceRaw, BalanceType, type BalanceTypeDto, Bank, type BankConfigDto, BankConfigFastRaw, BankConfigFlag, BankConfigGovRaw, BankConfigOpt, BankConfigOptRaw, BankConfigRaw, type BankConfigRawDto, BankConfigType, BankIntegrationMetadata, BankIntegrationMetadataDto, BankIntegrationMetadataMap, BankIntegrationMetadataMapDto, type BankMetrics, type BankOutflowRateLimit, type BankRateLimiterDto, BankRateLimiterRaw, type BankRateLimiterRawDto, BankRateLimiterType, BankRaw, type BankRawDto, BankType, type BankTypeDto, BankVaultType, type BankVenueStates, type BridgeOpts, type BridgeTokenSide, type BridgedSwapLeg, type BridgedTxResult, type BuildContext, type BulkLendTxsResult, type ClassifiedPosition, type ComposeBridgedSwapParams, type ComposeBridgedSwapResult, type ComputeAssetHealthComponentParams, type ComputeBalanceUsdValueParams, type ComputeBankMetricsParams, type ComputeFreeCollateralFromBalancesParams, type ComputeHealthCacheStatusParams, type ComputeHealthComponentsFromBalancesParams, type ComputeLiabilityHealthComponentParams, type ComputeLiquidationPriceForBankParams, type ComputeMaxBorrowForBankParams, type ComputeMaxDepositForBankParams, type ComputeMaxWithdrawForBankParams, type ComputeNetApyParams, type ComputePremiumRatesParams, ConfigRaw, DEFAULT_BRIDGE_MINTS, DEFAULT_ORACLE_MAX_AGE, DEFAULT_REPAY_ALL_EXTRA_BUFFER_BPS, DISABLED_FLAG, type DriftBankInput, type DriftMetadata, type DriftStateByBank, type DriftStateJsonByBank, EMPTY_HEALTH_CACHE, EXECUTION_HEADROOM_SECONDS, type EmodeConfigRawDto, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, EmodeImpactStatus, EmodePair, type EmodeSettingsDto, EmodeSettingsRaw, type EmodeSettingsRawDto, EmodeSettingsType, EmodeTag, 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 GetBalanceUsdValueWithPriceBiasParams, type GetExactOutEstimateParams, type GetSwapIxsForFlashloanParams, type GetTitanExactOutEstimateParams, type GetTitanSwapIxsParams, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, type HealthCacheRaw, HealthCacheSimulationError, HealthCacheStatus, HealthCacheType, type HealthCacheTypeDto, type InstructionsWrapper, type IntegrationType, InterestRateConfig, type InterestRateConfigDto, InterestRateConfigRaw, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, type JupLendBankInput, type JupLendMetadata, type JupLendStateByBank, type JupLendStateJsonByBank, KAMINO_MARKET_EMERGENCY_FLAG, type KaminoBankInput, type KaminoMetadata, type KaminoStateByBank, type KaminoStateJsonByBank, LST_MINT, type LoopFlashloanDescriptor, MARGINFI_PROGRAM, MARGINFI_PROGRAM_STAGING, MARGINFI_PROGRAM_STAGING_ALT, MARGINFI_SPONSORED_SHARD_ID, MAX_ACCOUNT_LOCKS, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_COSTLY_POSITIONS, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeAccountTransferToNewAccountTxParams, type MakeBorrowIxOpts, type MakeBorrowIxParams, type MakeBorrowTxParams, type MakeBridgedLoopTxParams, type MakeBridgedSwapCollateralTxParams, type MakeBridgedSwapDebtTxParams, type MakeBulkRepayTxParams, type MakeBulkWithdrawTxParams, type MakeCloseAccountIxParams, type MakeCloseAccountTxParams, type MakeCloseOrderIxParams, type MakeCloseOrderTxParams, 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 MakeOrderChangesIxParams, type MakeOrderChangesTxParams, type MakePlaceOrderIxParams, type MakePlaceOrderTxParams, type MakeRedeemStakedLstIxParams, type MakeRedeemStakedLstTxParams, type MakeRepayIxOpts, type MakeRepayIxParams, type MakeRepayTxParams, type MakeRepayWithCollatTxParams, type MakeRollPtTxParams, type MakeSetupIxParams, type MakeSwapCollateralTxParams, type MakeSwapDebtTxParams, type MakeTransferPositionsTxParams, type MakeVaultCompleteWithdrawalIxParams, type MakeVaultCompleteWithdrawalTxParams, type MakeVaultDepositIxParams, type MakeVaultDepositTxParams, type MakeVaultDepositWithSwapTxParams, type MakeVaultWithdrawIxParams, type MakeVaultWithdrawTxParams, type MakeWithdrawIxOpts, type MakeWithdrawIxParams, type MakeWithdrawTxParams, MarginRequirementType, type MarginRequirementTypeRaw, MarginfiAccount, type MarginfiAccountRaw, MarginfiAccountType, type MarginfiAccountTypeDto, MarginfiAccountWrapper, MarginfiGroup, type MarginfiGroupRaw, type MarginfiGroupType, type MarginfiGroupTypeDto, MarginfiIdlType, MarginfiProgram, type MintAuthorityBalance, MintData, type MultiplierAccountState, type MultiplierAccountStates, OperationalState, OperationalStateRaw, type OracleMultiplierBankInput, type OracleMultiplierServiceOpts, OraclePrice, OraclePriceDto, OracleSetup, OracleSetupRaw, type OracleSourceKey, type OrderChangesParams, type OrderRaw, OrderTrigger, type OrderTriggerParams, type OrderTriggerTypeRaw, OrderType, 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, PDA_ORDER_SEED, PDA_REBALANCE_FEE_POOL_SEED, PREMIUM_ACTIVE_FLAG, PRIORITY_TX_SIZE, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, type PanicStateCache, type PremiumAction, type PremiumCollateralBreakdown, type PremiumEntry, type PremiumImpact, type PremiumRefreshParams, PriceBias, PriceWithConfidence, Project0Client, Project0Config, Project0ConfigRaw, type ProviderSwapRoute, type PythOracleServiceOpts, type RateLimitWindowDto, type RateLimitWindowRawDto, RateLimitWindowType, type RatePointDto, type ResolveBridgeCandidateBanksParams, type ResolvedPinnedSwapRoute, RiskTier, RiskTierRaw, type RollPtOpts, type RollQuoteSimResult, type RollQuoteSimulator, type RollQuoteTokenBalance, SECONDS_PER_YEAR, SINGLE_POOL_PROGRAM_ID, STAKED_ORACLE_DISABLED_FLAG, STAKED_ORACLE_USES_ONRAMP_FLAG, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWAP_ADAPTERS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, type ScopeOracleServiceOpts, type SerializedInstruction, type SerializedLut, type SerializedSwapEngineRequest, type SerializedSwapEngineResult, type SerializedTxFootprint, type SharedBridgeLegContext, type SimulateAccountHealthCacheWithFallbackParams, type SimulationResultRaw, type SolanaTransaction, type StakeAccount, type StakePoolMevMap, type StakedBankMetadata, type SwapAdapter, type SwapApiConfig, type SwapCandidate, type SwapEngineRequest, type SwapEngineResult, type SwapEngineRunner, type SwapIxsResult, type SwapOpts, SwapProvider, type SwapProviderConfig, type SwapProviderEntry, type SwapQuoteResult, TRANSFER_ACCOUNT_AUTHORITY_FLAG, type TitanQuoteParams, TransactionArenaKeyMap, type TransactionBuilderResult, TransactionBuildingError, TransactionBuildingErrorCode, type TransactionBuildingErrorDetails, TransactionConfigMap, TransactionType, type TransferPositionSide, type TransferPositionsResult, type TxFootprint, TypedAmount, U64_MAX, USDC_DECIMALS, USDC_MINT, USDT_MINT, VENUE_AVAILABLE_LIQUIDITY_BUFFER, type ValidatorRateData, type ValidatorStakeGroup, type ValidatorStakeGroupDto, WSOL_MINT, type WithdrawWindowCache, WrappedI80F48, ZERO_ORACLE_KEY, accountConflictsWithBridgeBank, accountFlagToBN, addOracleToBanksIx, addTransactionMetadata, adjustPriceComponent, appendPremiumRefresh, aprToApy, apyToApr, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankMetadataMapToDto, bankMetadataToDto, bankRateLimiterRawToDto, bankRawToDto, bigNumberToWrappedI80F48, bpsToPercentile, buildCollateralLegIxs, buildOrderTrigger, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, checkJupiterFeeAccount, checkTitanFeeAccount, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, classifyAndValidate, compileFlashloanPrecheck, composeBridgedSwap, composeRemainingAccounts, computeAccountValue, computeAccrualProjectionSeconds, computeActiveEmodePairs, computeAssetHealthComponent, computeBalancePremium, computeBalanceUsdValue, computeBankAvailableLiquidity, computeBankBorrowApy, computeBankBorrowCapRemaining, computeBankDepositCapRemaining, computeBankMetrics, computeBankOutflowRateLimit, computeBankPoolSize, computeBankProjectedAvailableLiquidity, computeBankRateLimitRemaining, computeBankSupplyApy, computeBankTotalBorrows, computeBankTotalBorrowsUsd, computeBankTotalDeposits, computeBankTotalDepositsUsd, computeBaseInterestRate, computeBorrowEstimateForRepay, computeClosePositionTokenAmount, computeEmodeImpacts, computeFlashLoanNonSwapBudget, computeFlashloanSwapConstraints, computeFreeCollateralFromBalances, computeFreeCollateralFromCache, computeGroupRateLimitRemainingUsd, computeHealthAccountMetas, computeHealthCacheStatus, computeHealthCheckAccounts, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeInterestRates, computeLiabilityHealthComponent, computeLiquidationPriceForBank, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxDepositForBank, computeMaxWithdrawForBank, computeNetApy, computeOracleMultiplier, computeOracleMultipliers, computeOrderPairNetValue, computePremiumBreakdown, computePremiumImpact, computePremiumRatesByBank, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computePtMultiplier, computeQuantity, computeQuantityUi, computeRateLimitWindowRemainingCapacity, computeRateLimiterRemainingCapacity, computeRemainingCapacity, computeStakedBankMultipliers, computeUtilizationRate, computeV0TxSize, computeVenueAvailableLiquidity, configureScopeOracleIx, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeAccountRaw, decodeBankRaw, decodeInstruction, decodeMultiplierAccount, decompileV0Transaction, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, deriveOrderPda, deriveRebalanceFeePool, deserializeInstruction, deserializeLut, deserializeSwapEngineRequest, deserializeSwapEngineResult, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankMetadata, dtoToBankMetadataMap, dtoToBankRateLimiter, dtoToBankRateLimiterRaw, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, exceedsCostlyPositionLimit, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchGammaLpVault, fetchGammaWithdrawReceipt, fetchMarginfiAccountActiveBalancesForBank, fetchMarginfiAccountAddresses, fetchMarginfiAccountAddressesHoldingBank, fetchMarginfiAccountData, fetchMultipleBanks, fetchMultiplierAccountStates, fetchMultiplierAccountStatesFromAPI, fetchNativeStakeAccounts, fetchOracleData, fetchOracleMultipliers, fetchOracleMultipliersFromAPI, fetchOracleMultipliersFromChain, fetchOrderFees, fetchOrdersForAccount, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchScopeOracleData, fetchScopeOraclePricesFromAPI, fetchScopeOraclePricesFromChain, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, findRandomAvailableAccountIndex, fitsInOneTransaction, freezeBankConfigIx, generateDummyAccount, getAccountKeys, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getBalance, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getBirdeyeFallbackPricesByFeedId, getBirdeyePricesForMints, getConfig, getDriftCTokenMultiplier, getDriftMetadata, getDriftStatesDto, getEffectiveDepositLimit, getEmodePairs, getExactOutEstimate, getFallbackPricesByFeedId, getFallbackPricesForMints, getHealthCacheStatusDescription, getHealthSimulationTransactions, getJupLendFTokenMultiplier, getJupLendMetadata, getJupLendStatesDto, getJupiterReferralFeeAccount, getJupiterSwapIxsForFlashloan, getKaminoCTokenMultiplier, getKaminoMetadata, getKaminoStatesDto, getLiabilityQuantity, getLiabilityShares, getOracleMultiplierBankInput, getOracleSourceFromBank, getOracleSourceFromOracleSetup, getOracleSourceNameFromKey, getPrice, getPriceWithConfidence, getStakedBankMetadataMap, getSwapAdapter, getSwapIxsForFlashloan, getTitanExactOutEstimate, getTitanSwapIxsForFlashloan, getTotalAccountKeys, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, getValidatorVoteAccountByBank, getWritableAccountKeys, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isBorrowLimitActive, isBridgeConflictError, isCostlyBank, isDecomposableSwapError, isDepositIx, isDepositLimitActive, isFlashloan, isGroupRateLimiterEnabled, isStandardBorrowable, isStandardDepositable, isV0Tx, isWholePosition, makeAccountTransferToNewAccountTx, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx, makeBorrowIx, makeBorrowTx, makeBridgedLoopTx, makeBridgedSwapCollateralTx, makeBridgedSwapDebtTx, makeBulkRepayTx, makeBulkWithdrawTx, makeBundleTipIx, makeCloseMarginfiAccountIx, makeCloseMarginfiAccountTx, makeCloseOrderIx, makeCloseOrderTx, makeCreateAccountIxWithProjection, makeCreateAccountTxWithProjection, makeCreateMarginfiAccountIx, makeCreateMarginfiAccountTx, makeDepositIx, makeDepositTx, makeDriftDepositIx, makeDriftDepositTx, makeDriftWithdrawIx, makeDriftWithdrawTx, makeEndFlashLoanIx, makeFlashLoanTx, makeJuplendDepositIx, makeJuplendDepositTx, makeJuplendWithdrawIx, makeJuplendWithdrawTx, makeKaminoDepositIx, makeKaminoDepositTx, makeKaminoWithdrawIx, makeKaminoWithdrawTx, makeLoopTx, makeMergeStakeAccountsTx, makeMintStakedLstIx, makeMintStakedLstTx, makeOrderChangesIxs, makeOrderChangesTx, makePlaceOrderIx, makePlaceOrderTx, makePoolAddBankIx, makePoolConfigureBankGovIx, makePoolConfigureBankIx, makePreludeTxs, makePremiumRefreshIxs, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx, makeRedeemStakedLstIx, makeRedeemStakedLstTx, makeRefreshIntegrationBanksIxs, makeRefreshKaminoBanksIxs, makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeRollPtTx, makeSetupIx, makeSwapCollateralTx, makeSwapDebtTx, makeTransferPositionsTx, makeTxPriorityIx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateOrderTx, makeVaultCompleteWithdrawalIx, makeVaultCompleteWithdrawalTx, makeVaultDepositIx, makeVaultDepositTx, makeVaultDepositWithSwapTx, makeVaultWithdrawIx, makeVaultWithdrawTx, makeVersionedTransaction, makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapJupiterQuoteToSwapQuoteResult, mapPythBanksToOraclePrices, marginfiAccountToDto, maxSlippageU32ToPercent, mergeBridgeQuotes, mergeBridgeQuotesDebt, mergeBridgeQuotesLoop, nativeToUi, needsPremiumRefresh, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRateLimiterRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseHealthCacheRaw, parseMarginfiAccountRaw, parseOperationalState, parseOracleSetup, parseOrderRaw, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseRpcPythPriceData, patchDepositAmount, percentToMaxSlippageU32, prependOrderCloses, rateFromU32, requireBank, requireTokenProgram, resolveBridgeCandidateBanks, resolveOrderLegs, resolvePinnedSwapRoute, resolveTokenProgramForMint, resolveVaultTokenProgram, runSwapEngine, selectLutsForAccountAction, selectLutsForBanks, selectSwapBridges, serializeBankConfigOpt, serializeInstruction, serializeInterestRateConfig, serializeLut, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, serializeSwapEngineRequest, serializeSwapEngineResult, setOraclePriceIx, sharedBridgeLegContext, shortenAddress, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, swapEngineProvidersFromOpts, swapEngineQuoteFieldsFromOpts, toBankConfigDto, toBankDto, toBankRateLimiterDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toJupiterConfig, toNumber, tryBridgeCandidates, uiToNative, uiToNativeBigNumber, validatorStakeGroupToDto, withKaminoReserveEmergency, wrappedI80F48toBigNumber };