@0dotxyz/p0-ts-sdk 2.9.0-alpha.0 → 2.9.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.cjs +151 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +123 -24
- package/dist/index.d.ts +123 -24
- package/dist/index.js +148 -43
- package/dist/index.js.map +1 -1
- package/dist/instructions.d.cts +1 -1
- package/dist/instructions.d.ts +1 -1
- package/dist/{types-CvvHQs7G.d.cts → types-B5hbKbQJ.d.cts} +7 -1
- package/dist/{types-Auh-s318.d.ts → types-C3ArshQA.d.ts} +7 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as superstruct from 'superstruct';
|
|
2
2
|
import { Infer } from 'superstruct';
|
|
3
|
-
import { b as BankType, R as RiskTier, A as AssetTag, c as BankConfigFlag, d as OperationalState, e as OracleSetup, E as EmodeTag, f as EmodeEntryFlags, g as EmodeFlags, W as WrappedI80F48, I as InterestRateConfigRaw, h as OperationalStateRaw, i as OracleSetupRaw, j as RiskTierRaw, M as MarginfiProgram, k as BankConfigOpt, l as InterestRateConfig, m as BankConfigType, n as BankConfigRaw, a as BankConfigOptRaw, o as EmodeSettingsType, p as BankRateLimiterType, q as BankRaw, r as BankRateLimiterRaw, s as EmodeSettingsRaw, t as MarginfiIdlType, H as HealthCacheFlags, u as HealthCacheStatus, v as AccountFlags, w as MarginfiAccountType, x as OraclePrice, P as PriceWithConfidence, y as PriceBias, z as OraclePriceDto, C as BankIntegrationMetadataMap, D as OrderType, F as BalanceType, G as HealthCacheType, J as EmodePair, K as ActiveEmodePair, L as ActionEmodeImpact, N as MarginRequirementType, Q as EmodeImpactStatus, O as OrderTrigger, S as Amount, T as TypedAmount, U as BankVaultType, V as RateLimitWindowType, X as BankIntegrationMetadataMapDto, Y as BankIntegrationMetadataDto, Z as BankIntegrationMetadata, _ as Bank, $ as Environment, a0 as Project0Config, a1 as MintData } from './types-
|
|
4
|
-
export { aA as AccountType, aF as AmountType, az as BankAddress, a2 as BankConfig, B as BankConfigCompactRaw, aC as BankMap, ay as BankMetadata, a5 as BankMetadataRaw, aq as ComputeAssetUsdValueParams, ao as ComputeLiabilityUsdValueParams, am as ComputeUsdValueParams, aa as EmodeConfigRaw, ad as EmodeEntry, af as EmodeImpact, a3 as EmodeSettings, ah as GetAssetWeightParams, a7 as InterestRateConfigCompactRaw, ac as InterestRateConfigOpt, a8 as InterestRateConfigOptRaw, aB as KaminoStates, av as MARGINFI_IDL, aE as MintDataMap, ae as OracleConfigOpt, a9 as OracleConfigOptRaw, aD as OraclePriceMap, at as OrderTriggerKind, au as PriceWithConfidenceDto, aw as Program, a4 as RateLimitWindowRaw, ab as RatePoint, a6 as RatePointRaw, ax as Wallet, ar as computeAssetUsdValue, ap as computeLiabilityUsdValue, al as computeLoopingParams, ak as computeMaxLeverage, as as computeTvl, an as computeUsdValue, ai as getAssetWeight, aj as getLiabilityWeight, ag as isWeightedPrice, aG as resolveAmount } from './types-
|
|
3
|
+
import { b as BankType, R as RiskTier, A as AssetTag, c as BankConfigFlag, d as OperationalState, e as OracleSetup, E as EmodeTag, f as EmodeEntryFlags, g as EmodeFlags, W as WrappedI80F48, I as InterestRateConfigRaw, h as OperationalStateRaw, i as OracleSetupRaw, j as RiskTierRaw, M as MarginfiProgram, k as BankConfigOpt, l as InterestRateConfig, m as BankConfigType, n as BankConfigRaw, a as BankConfigOptRaw, o as EmodeSettingsType, p as BankRateLimiterType, q as BankRaw, r as BankRateLimiterRaw, s as EmodeSettingsRaw, t as MarginfiIdlType, H as HealthCacheFlags, u as HealthCacheStatus, v as AccountFlags, w as MarginfiAccountType, x as OraclePrice, P as PriceWithConfidence, y as PriceBias, z as OraclePriceDto, C as BankIntegrationMetadataMap, D as OrderType, F as BalanceType, G as HealthCacheType, J as EmodePair, K as ActiveEmodePair, L as ActionEmodeImpact, N as MarginRequirementType, Q as EmodeImpactStatus, O as OrderTrigger, S as Amount, T as TypedAmount, U as BankVaultType, V as RateLimitWindowType, X as BankIntegrationMetadataMapDto, Y as BankIntegrationMetadataDto, Z as BankIntegrationMetadata, _ as Bank, $ as Environment, a0 as Project0Config, a1 as MintData } from './types-C3ArshQA.js';
|
|
4
|
+
export { aA as AccountType, aF as AmountType, az as BankAddress, a2 as BankConfig, B as BankConfigCompactRaw, aC as BankMap, ay as BankMetadata, a5 as BankMetadataRaw, aq as ComputeAssetUsdValueParams, ao as ComputeLiabilityUsdValueParams, am as ComputeUsdValueParams, aa as EmodeConfigRaw, ad as EmodeEntry, af as EmodeImpact, a3 as EmodeSettings, ah as GetAssetWeightParams, a7 as InterestRateConfigCompactRaw, ac as InterestRateConfigOpt, a8 as InterestRateConfigOptRaw, aB as KaminoStates, av as MARGINFI_IDL, aE as MintDataMap, ae as OracleConfigOpt, a9 as OracleConfigOptRaw, aD as OraclePriceMap, at as OrderTriggerKind, au as PriceWithConfidenceDto, aw as Program, a4 as RateLimitWindowRaw, ab as RatePoint, a6 as RatePointRaw, ax as Wallet, ar as computeAssetUsdValue, ap as computeLiabilityUsdValue, al as computeLoopingParams, ak as computeMaxLeverage, as as computeTvl, an as computeUsdValue, ai as getAssetWeight, aj as getLiabilityWeight, ag as isWeightedPrice, aG as resolveAmount } from './types-C3ArshQA.js';
|
|
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';
|
|
@@ -661,6 +661,8 @@ interface MarginfiAccountTypeDto {
|
|
|
661
661
|
accountFlags: AccountFlags[];
|
|
662
662
|
emissionsDestinationAccount: string;
|
|
663
663
|
healthCache: HealthCacheTypeDto;
|
|
664
|
+
/** Optional so DTOs cached before the field existed still parse (defaults to 0). */
|
|
665
|
+
activeOrders?: number;
|
|
664
666
|
}
|
|
665
667
|
|
|
666
668
|
interface SimulationResultRaw {
|
|
@@ -1655,6 +1657,31 @@ declare function getBalanceUsdValueWithPriceBias(params: GetBalanceUsdValueWithP
|
|
|
1655
1657
|
assets: BigNumber$1;
|
|
1656
1658
|
liabilities: BigNumber$1;
|
|
1657
1659
|
};
|
|
1660
|
+
interface OrderPairLegValueInput {
|
|
1661
|
+
balance: BalanceType;
|
|
1662
|
+
bank: BankType;
|
|
1663
|
+
oraclePrice: OraclePrice;
|
|
1664
|
+
assetShareValueMultiplier?: BigNumber$1;
|
|
1665
|
+
}
|
|
1666
|
+
/**
|
|
1667
|
+
* Values an order's collateral/debt pair the way the program's trigger does
|
|
1668
|
+
* (`get_tagged_account_health_components`): Equity requirement, so the time-weighted (EMA) price
|
|
1669
|
+
* at weight 1, with the collateral at the low end of the confidence band and the debt at the high
|
|
1670
|
+
* end. Isolated-tier collateral counts as 0. Take-profit fires at `netUsd >= takeProfit`, stop-loss
|
|
1671
|
+
* at `netUsd <= stopLoss`.
|
|
1672
|
+
*
|
|
1673
|
+
* @param params.collateral - The order's asset-side balance with its bank and oracle price
|
|
1674
|
+
* @param params.debt - The order's liability-side balance with its bank and oracle price
|
|
1675
|
+
* @returns USD values of both legs and the net value the trigger compares against
|
|
1676
|
+
*/
|
|
1677
|
+
declare function computeOrderPairNetValue(params: {
|
|
1678
|
+
collateral: OrderPairLegValueInput;
|
|
1679
|
+
debt: OrderPairLegValueInput;
|
|
1680
|
+
}): {
|
|
1681
|
+
collateralUsd: BigNumber$1;
|
|
1682
|
+
debtUsd: BigNumber$1;
|
|
1683
|
+
netUsd: BigNumber$1;
|
|
1684
|
+
};
|
|
1658
1685
|
/**
|
|
1659
1686
|
* Computes the native token quantities for a balance.
|
|
1660
1687
|
*
|
|
@@ -1764,6 +1791,19 @@ declare function getActiveBalances(balances: BalanceType[]): BalanceType[];
|
|
|
1764
1791
|
* ```
|
|
1765
1792
|
*/
|
|
1766
1793
|
declare function getBalance(bankAddress: PublicKey, balances: BalanceType[]): BalanceType;
|
|
1794
|
+
/**
|
|
1795
|
+
* Maps an order's balance tags to the collateral (asset) and debt (liability) banks of the
|
|
1796
|
+
* account that owns it, without throwing: a leg whose tagged balance was closed comes back null
|
|
1797
|
+
* (the order is orphaned and can no longer execute). The tag order in `order.tags` follows the
|
|
1798
|
+
* caller-supplied bank key order at placement time, so the side is inferred from the balances.
|
|
1799
|
+
*
|
|
1800
|
+
* @param marginfiAccount - The parsed marginfi account that owns the order
|
|
1801
|
+
* @param order - The order whose bank pair to resolve
|
|
1802
|
+
*/
|
|
1803
|
+
declare function resolveOrderLegs(marginfiAccount: MarginfiAccountType, order: Pick<OrderType, "tags">): {
|
|
1804
|
+
collateralBank: PublicKey | null;
|
|
1805
|
+
debtBank: PublicKey | null;
|
|
1806
|
+
};
|
|
1767
1807
|
|
|
1768
1808
|
/**
|
|
1769
1809
|
* Account-Level Metrics
|
|
@@ -2129,13 +2169,6 @@ declare const fetchMarginfiAccountData: (program: MarginfiProgram, marginfiAccou
|
|
|
2129
2169
|
marginfiAccount: MarginfiAccountType;
|
|
2130
2170
|
error?: HealthCacheSimulationError;
|
|
2131
2171
|
}>;
|
|
2132
|
-
/**
|
|
2133
|
-
* Fetches a single order account by address. Returns null if the order does not exist.
|
|
2134
|
-
*
|
|
2135
|
-
* @param program - The marginfi Anchor program (connection is taken from its provider)
|
|
2136
|
-
* @param orderAddress - The order PDA (see {@link deriveOrderPda})
|
|
2137
|
-
*/
|
|
2138
|
-
declare const fetchOrder: (program: MarginfiProgram, orderAddress: PublicKey) => Promise<OrderType | null>;
|
|
2139
2172
|
/**
|
|
2140
2173
|
* Fetches all open orders for a marginfi account.
|
|
2141
2174
|
*
|
|
@@ -2144,18 +2177,17 @@ declare const fetchOrder: (program: MarginfiProgram, orderAddress: PublicKey) =>
|
|
|
2144
2177
|
*/
|
|
2145
2178
|
declare const fetchOrdersForAccount: (program: MarginfiProgram, marginfiAccount: PublicKey) => Promise<OrderType[]>;
|
|
2146
2179
|
/**
|
|
2147
|
-
*
|
|
2148
|
-
* account that owns it. The tag order in `order.tags` follows the caller-supplied bank key
|
|
2149
|
-
* order at placement time, so the side is inferred from the tagged balances themselves.
|
|
2180
|
+
* Fetches the order fees from the program's global `FeeState`.
|
|
2150
2181
|
*
|
|
2151
|
-
*
|
|
2152
|
-
*
|
|
2153
|
-
*
|
|
2182
|
+
* - `placementFeeLamports`: flat SOL fee charged by `place_order` (and again on every update).
|
|
2183
|
+
* - `executionMaxFee`: the share of the pair's net value a keeper may keep on a take-profit.
|
|
2184
|
+
*
|
|
2185
|
+
* @param program - The marginfi Anchor program
|
|
2154
2186
|
*/
|
|
2155
|
-
declare const
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
}
|
|
2187
|
+
declare const fetchOrderFees: (program: MarginfiProgram) => Promise<{
|
|
2188
|
+
placementFeeLamports: number;
|
|
2189
|
+
executionMaxFee: BigNumber$1;
|
|
2190
|
+
}>;
|
|
2159
2191
|
/**
|
|
2160
2192
|
* Generates a random available account index that doesn't collide with existing accounts.
|
|
2161
2193
|
* Account indices are 0-255 (u8 range).
|
|
@@ -2249,6 +2281,27 @@ interface ComputeMaxBorrowForBankParams {
|
|
|
2249
2281
|
* ```
|
|
2250
2282
|
*/
|
|
2251
2283
|
declare function computeMaxBorrowForBank(params: ComputeMaxBorrowForBankParams): BigNumber$1;
|
|
2284
|
+
/**
|
|
2285
|
+
* The binding window of a bank's own outflow (withdraws + borrows) rate limiter.
|
|
2286
|
+
*/
|
|
2287
|
+
interface BankOutflowRateLimit {
|
|
2288
|
+
window: "hourly" | "daily";
|
|
2289
|
+
/** Remaining outflow in underlying UI units, clamped at 0 */
|
|
2290
|
+
remaining: BigNumber$1;
|
|
2291
|
+
}
|
|
2292
|
+
/**
|
|
2293
|
+
* The tighter of a bank's hourly and daily outflow windows, in the underlying UI units that
|
|
2294
|
+
* {@link computeMaxWithdrawForBank} and {@link computeMaxBorrowForBank} clamp to.
|
|
2295
|
+
*
|
|
2296
|
+
* Every venue's withdraw records the underlying token amount on the bank limiter (Kamino and
|
|
2297
|
+
* Solend the redeemed liquidity, Drift `token_amount`, JupLend `native_outflow`), except STAKED
|
|
2298
|
+
* banks, which record the LST amount — multiplied here by the LST→SOL rate to reach the SDK's
|
|
2299
|
+
* SOL-equivalent space.
|
|
2300
|
+
*
|
|
2301
|
+
* @returns The window with the least remaining capacity, or `null` when the bank has no rate
|
|
2302
|
+
* limiter enabled
|
|
2303
|
+
*/
|
|
2304
|
+
declare function computeBankOutflowRateLimit(bank: BankType, assetShareValueMultiplier?: BigNumber$1): BankOutflowRateLimit | null;
|
|
2252
2305
|
/**
|
|
2253
2306
|
* Configuration for computing maximum withdraw amount for a bank
|
|
2254
2307
|
*/
|
|
@@ -3449,7 +3502,9 @@ declare function makeBulkRepayTx(params: MakeBulkRepayTxParams): Promise<BulkLen
|
|
|
3449
3502
|
/**
|
|
3450
3503
|
* Converts USD-equity thresholds into the on-chain `OrderTrigger` argument.
|
|
3451
3504
|
*
|
|
3452
|
-
* @throws
|
|
3505
|
+
* @throws {TransactionBuildingError} `ORDER_INVALID_TRIGGER` if neither threshold is set, a
|
|
3506
|
+
* threshold is not above 0, or take-profit ≤ stop-loss; `ORDER_INVALID_SLIPPAGE` via
|
|
3507
|
+
* {@link percentToMaxSlippageU32}
|
|
3453
3508
|
*/
|
|
3454
3509
|
declare function buildOrderTrigger(params: OrderTriggerParams): OrderTrigger;
|
|
3455
3510
|
/**
|
|
@@ -5445,7 +5500,9 @@ declare enum TransactionBuildingErrorCode {
|
|
|
5445
5500
|
TRANSFER_POSITIONS_INVALID_SELECTION = "TRANSFER_POSITIONS_INVALID_SELECTION",
|
|
5446
5501
|
TRANSFER_POSITIONS_UNSUPPORTED_BANK = "TRANSFER_POSITIONS_UNSUPPORTED_BANK",
|
|
5447
5502
|
TRANSFER_POSITIONS_UNSPLITTABLE = "TRANSFER_POSITIONS_UNSPLITTABLE",
|
|
5448
|
-
BRIDGE_CONFLICT = "BRIDGE_CONFLICT"
|
|
5503
|
+
BRIDGE_CONFLICT = "BRIDGE_CONFLICT",
|
|
5504
|
+
ORDER_INVALID_TRIGGER = "ORDER_INVALID_TRIGGER",
|
|
5505
|
+
ORDER_INVALID_SLIPPAGE = "ORDER_INVALID_SLIPPAGE"
|
|
5449
5506
|
}
|
|
5450
5507
|
/**
|
|
5451
5508
|
* Typed details for each error code
|
|
@@ -5525,6 +5582,15 @@ interface TransactionBuildingErrorDetails {
|
|
|
5525
5582
|
/** Whether the bridge token would have been held as collateral ("deposit") or debt ("borrow"). */
|
|
5526
5583
|
bridgeTokenSide: "deposit" | "borrow";
|
|
5527
5584
|
};
|
|
5585
|
+
[TransactionBuildingErrorCode.ORDER_INVALID_TRIGGER]: {
|
|
5586
|
+
reason: string;
|
|
5587
|
+
takeProfitUsd?: string;
|
|
5588
|
+
stopLossUsd?: string;
|
|
5589
|
+
};
|
|
5590
|
+
[TransactionBuildingErrorCode.ORDER_INVALID_SLIPPAGE]: {
|
|
5591
|
+
maxSlippagePercent: number;
|
|
5592
|
+
maxAllowedPercent: number;
|
|
5593
|
+
};
|
|
5528
5594
|
}
|
|
5529
5595
|
/**
|
|
5530
5596
|
* Error thrown during transaction building in the SDK.
|
|
@@ -5594,6 +5660,16 @@ declare class TransactionBuildingError<T extends TransactionBuildingErrorCode =
|
|
|
5594
5660
|
mint: string;
|
|
5595
5661
|
symbol?: string;
|
|
5596
5662
|
}>, bridgeTokenSide: "deposit" | "borrow"): TransactionBuildingError<TransactionBuildingErrorCode.BRIDGE_CONFLICT>;
|
|
5663
|
+
/**
|
|
5664
|
+
* The order trigger can't be placed: no threshold set, a threshold not above 0, or take-profit
|
|
5665
|
+
* at or below stop-loss (the program rejects all three with `InvalidOrderTakeProfitOrStopLoss`).
|
|
5666
|
+
*/
|
|
5667
|
+
static orderInvalidTrigger(reason: string, takeProfitUsd?: string, stopLossUsd?: string): TransactionBuildingError<TransactionBuildingErrorCode.ORDER_INVALID_TRIGGER>;
|
|
5668
|
+
/**
|
|
5669
|
+
* The order's max slippage is outside (0, cap]. The program accepts 0, but a keeper can't
|
|
5670
|
+
* execute an order that allows no slippage, so the SDK rejects it.
|
|
5671
|
+
*/
|
|
5672
|
+
static orderInvalidSlippage(maxSlippagePercent: number, maxAllowedPercent: number): TransactionBuildingError<TransactionBuildingErrorCode.ORDER_INVALID_SLIPPAGE>;
|
|
5597
5673
|
/**
|
|
5598
5674
|
* Generic escape hatch for custom errors
|
|
5599
5675
|
*/
|
|
@@ -5736,7 +5812,9 @@ declare function bpsToPercentile(bps: number): number;
|
|
|
5736
5812
|
* Converts a slippage tolerance in percent to the on-chain u32 representation
|
|
5737
5813
|
* (a fraction of `u32::MAX`, where 100% = `u32::MAX`).
|
|
5738
5814
|
*
|
|
5739
|
-
* @param percent - Slippage in percent, must be in (0, 10] (protocol cap)
|
|
5815
|
+
* @param percent - Slippage in percent, must be in (0, 10] (protocol cap). The program accepts 0,
|
|
5816
|
+
* but a keeper can't execute an order that allows no slippage, so 0 is rejected.
|
|
5817
|
+
* @throws {TransactionBuildingError} `ORDER_INVALID_SLIPPAGE` if `percent` is outside (0, 10]
|
|
5740
5818
|
*/
|
|
5741
5819
|
declare function percentToMaxSlippageU32(percent: number): number;
|
|
5742
5820
|
/**
|
|
@@ -5909,7 +5987,8 @@ declare class MarginfiAccount implements MarginfiAccountType {
|
|
|
5909
5987
|
readonly accountFlags: AccountFlags[];
|
|
5910
5988
|
readonly emissionsDestinationAccount: PublicKey;
|
|
5911
5989
|
healthCache: HealthCache;
|
|
5912
|
-
|
|
5990
|
+
readonly activeOrders: number;
|
|
5991
|
+
constructor(address: PublicKey, group: PublicKey, authority: PublicKey, balances: Balance[], accountFlags: AccountFlags[], emissionsDestinationAccount: PublicKey, healthCache: HealthCache, activeOrders?: number);
|
|
5913
5992
|
/**
|
|
5914
5993
|
* Fetches a marginfi account from on-chain data.
|
|
5915
5994
|
*
|
|
@@ -6550,6 +6629,12 @@ declare class MarginfiAccount implements MarginfiAccountType {
|
|
|
6550
6629
|
* @see {@link makePlaceOrderTx} for detailed implementation
|
|
6551
6630
|
*/
|
|
6552
6631
|
makePlaceOrderTx(params: Omit<MakePlaceOrderTxParams, "marginfiAccount">): Promise<ExtendedV0Transaction>;
|
|
6632
|
+
/**
|
|
6633
|
+
* Creates a close-order instruction for this marginfi account.
|
|
6634
|
+
*
|
|
6635
|
+
* @see {@link makeCloseOrderIx} for detailed implementation
|
|
6636
|
+
*/
|
|
6637
|
+
makeCloseOrderIx(params: Omit<MakeCloseOrderIxParams, "marginfiAccount">): Promise<InstructionsWrapper>;
|
|
6553
6638
|
/**
|
|
6554
6639
|
* Creates a transaction closing an existing order.
|
|
6555
6640
|
*
|
|
@@ -7054,6 +7139,20 @@ declare class MarginfiAccountWrapper {
|
|
|
7054
7139
|
* @returns Promise resolving to a TransactionBuilderResult
|
|
7055
7140
|
*/
|
|
7056
7141
|
makeBorrowTx(bankAddress: PublicKey, amount: Amount, opts?: MakeBorrowIxOpts): Promise<TransactionBuilderResult>;
|
|
7142
|
+
/**
|
|
7143
|
+
* Creates a place-order instruction, for composing into a larger transaction.
|
|
7144
|
+
*
|
|
7145
|
+
* @param collateralBank - Bank of the asset-side balance
|
|
7146
|
+
* @param debtBank - Bank of the liability-side balance
|
|
7147
|
+
* @param trigger - USD pair-equity thresholds and max slippage
|
|
7148
|
+
*/
|
|
7149
|
+
makePlaceOrderIx(collateralBank: PublicKey, debtBank: PublicKey, trigger: OrderTriggerParams): Promise<InstructionsWrapper>;
|
|
7150
|
+
/**
|
|
7151
|
+
* Creates a close-order instruction, for composing into a larger transaction.
|
|
7152
|
+
*
|
|
7153
|
+
* @param order - The order PDA (from `fetchOrdersForAccount` or `deriveOrderPda`)
|
|
7154
|
+
*/
|
|
7155
|
+
makeCloseOrderIx(order: PublicKey): Promise<InstructionsWrapper>;
|
|
7057
7156
|
/**
|
|
7058
7157
|
* Creates a transaction placing a take-profit / stop-loss order on a collateral/debt pair.
|
|
7059
7158
|
*
|
|
@@ -7245,4 +7344,4 @@ declare class MarginfiAccountWrapper {
|
|
|
7245
7344
|
getClient(): Project0Client;
|
|
7246
7345
|
}
|
|
7247
7346
|
|
|
7248
|
-
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, BankConfigFlag, BankConfigOpt, BankConfigOptRaw, BankConfigRaw, type BankConfigRawDto, BankConfigType, BankIntegrationMetadata, BankIntegrationMetadataDto, BankIntegrationMetadataMap, BankIntegrationMetadataMapDto, type BankMetrics, 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, 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, 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_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, PRIORITY_TX_SIZE, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, type PanicStateCache, 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, 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, computeBalanceUsdValue, computeBankAvailableLiquidity, computeBankBorrowApy, computeBankBorrowCapRemaining, computeBankDepositCapRemaining, computeBankMetrics, computeBankPoolSize, computeBankProjectedAvailableLiquidity, computeBankRateLimitRemaining, computeBankSupplyApy, computeBankTotalBorrows, computeBankTotalBorrowsUsd, computeBankTotalDeposits, computeBankTotalDepositsUsd, computeBaseInterestRate, computeBorrowEstimateForRepay, computeClaimedEmissions, computeClosePositionTokenAmount, computeEmodeImpacts, computeFlashLoanNonSwapBudget, computeFlashloanSwapConstraints, computeFreeCollateralFromBalances, computeFreeCollateralFromCache, computeGroupRateLimitRemainingUsd, computeHealthAccountMetas, computeHealthCacheStatus, computeHealthCheckAccounts, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeInterestRates, computeLiabilityHealthComponent, computeLiquidationPriceForBank, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxDepositForBank, computeMaxWithdrawForBank, computeNetApy, computeOracleMultiplier, computeOracleMultipliers, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computePtMultiplier, computeQuantity, computeQuantityUi, computeRateLimitWindowRemainingCapacity, computeRateLimiterRemainingCapacity, computeRemainingCapacity, computeStakedBankMultipliers, computeTotalOutstandingEmissions, computeUtilizationRate, computeV0TxSize, computeVenueAvailableLiquidity, configureScopeOracleIx, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeAccountRaw, decodeBankRaw, decodeInstruction, decodeMultiplierAccount, decompileV0Transaction, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, deriveOrderPda, deserializeInstruction, deserializeLut, deserializeSwapEngineRequest, deserializeSwapEngineResult, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankMetadata, dtoToBankMetadataMap, dtoToBankRateLimiter, dtoToBankRateLimiterRaw, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchGammaLpVault, fetchGammaWithdrawReceipt, fetchMarginfiAccountActiveBalancesForBank, fetchMarginfiAccountAddresses, fetchMarginfiAccountAddressesHoldingBank, fetchMarginfiAccountData, fetchMultipleBanks, fetchMultiplierAccountStates, fetchMultiplierAccountStatesFromAPI, fetchNativeStakeAccounts, fetchOracleData, fetchOracleMultipliers, fetchOracleMultipliersFromAPI, fetchOracleMultipliersFromChain, fetchOrder, fetchOrdersForAccount, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchScopeOracleData, fetchScopeOraclePricesFromAPI, fetchScopeOraclePricesFromChain, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, findRandomAvailableAccountIndex, 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, 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, makePoolConfigureBankIx, 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, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRateLimiterRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseHealthCacheRaw, parseMarginfiAccountRaw, parseOperationalState, parseOracleSetup, parseOrderRaw, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseRpcPythPriceData, patchDepositAmount, percentToMaxSlippageU32, requireBank, requireTokenProgram, resolveBridgeCandidateBanks, resolveOrderBanks, 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, wrappedI80F48toBigNumber };
|
|
7347
|
+
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, BankConfigFlag, 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, 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, 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_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, PRIORITY_TX_SIZE, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, type PanicStateCache, 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, 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, computeBalanceUsdValue, computeBankAvailableLiquidity, computeBankBorrowApy, computeBankBorrowCapRemaining, computeBankDepositCapRemaining, computeBankMetrics, computeBankOutflowRateLimit, computeBankPoolSize, computeBankProjectedAvailableLiquidity, computeBankRateLimitRemaining, computeBankSupplyApy, computeBankTotalBorrows, computeBankTotalBorrowsUsd, computeBankTotalDeposits, computeBankTotalDepositsUsd, computeBaseInterestRate, computeBorrowEstimateForRepay, computeClaimedEmissions, computeClosePositionTokenAmount, computeEmodeImpacts, computeFlashLoanNonSwapBudget, computeFlashloanSwapConstraints, computeFreeCollateralFromBalances, computeFreeCollateralFromCache, computeGroupRateLimitRemainingUsd, computeHealthAccountMetas, computeHealthCacheStatus, computeHealthCheckAccounts, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeInterestRates, computeLiabilityHealthComponent, computeLiquidationPriceForBank, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxDepositForBank, computeMaxWithdrawForBank, computeNetApy, computeOracleMultiplier, computeOracleMultipliers, computeOrderPairNetValue, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computePtMultiplier, computeQuantity, computeQuantityUi, computeRateLimitWindowRemainingCapacity, computeRateLimiterRemainingCapacity, computeRemainingCapacity, computeStakedBankMultipliers, computeTotalOutstandingEmissions, computeUtilizationRate, computeV0TxSize, computeVenueAvailableLiquidity, configureScopeOracleIx, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeAccountRaw, decodeBankRaw, decodeInstruction, decodeMultiplierAccount, decompileV0Transaction, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, deriveOrderPda, deserializeInstruction, deserializeLut, deserializeSwapEngineRequest, deserializeSwapEngineResult, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankMetadata, dtoToBankMetadataMap, dtoToBankRateLimiter, dtoToBankRateLimiterRaw, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, 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, 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, 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, makePoolConfigureBankIx, 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, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRateLimiterRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseHealthCacheRaw, parseMarginfiAccountRaw, parseOperationalState, parseOracleSetup, parseOrderRaw, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseRpcPythPriceData, patchDepositAmount, percentToMaxSlippageU32, 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, wrappedI80F48toBigNumber };
|