@0dotxyz/p0-ts-sdk 3.0.0-next.0 → 3.0.0-next.2
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 +82 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -5
- package/dist/index.d.ts +60 -5
- package/dist/index.js +80 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -227,6 +227,9 @@ interface BankConfigType {
|
|
|
227
227
|
oracleMaxConfidence: number;
|
|
228
228
|
fixedPrice: BigNumber;
|
|
229
229
|
scopeEntryIndex?: number;
|
|
230
|
+
cbWindowMaxUpBps: number;
|
|
231
|
+
cbWindowMaxDownBps: number;
|
|
232
|
+
cbWindowSeconds: number;
|
|
230
233
|
}
|
|
231
234
|
interface BankType {
|
|
232
235
|
address: Address;
|
|
@@ -278,6 +281,19 @@ interface BankType {
|
|
|
278
281
|
* {@link withKaminoReserveEmergency} ORs in the reserve's `emergencyMode`.
|
|
279
282
|
*/
|
|
280
283
|
kaminoEmergency: boolean;
|
|
284
|
+
/**
|
|
285
|
+
* Liquidator's cut of a classic liquidation against this bank's liability, raw on-chain u32
|
|
286
|
+
* (`u32::MAX` = 100%, 0 = program default). Decode with {@link getBankLiquidationFees}.
|
|
287
|
+
*/
|
|
288
|
+
liquidationLiquidatorFee: number;
|
|
289
|
+
/** Insurance fund's cut of that liquidation, same encoding as `liquidationLiquidatorFee` */
|
|
290
|
+
liquidationInsuranceFee: number;
|
|
291
|
+
/** Flags bit 11: the per-bank oracle circuit breaker is enabled (0.1.10) */
|
|
292
|
+
isCircuitBreakerEnabled: boolean;
|
|
293
|
+
/** Current circuit-breaker halt tier (0 = not tripped) */
|
|
294
|
+
cbTier: number;
|
|
295
|
+
/** Unix seconds the current circuit-breaker halt ends */
|
|
296
|
+
cbHaltEndedAt: number;
|
|
281
297
|
rateLimiter?: BankRateLimiterType;
|
|
282
298
|
feesDestinationAccount?: Address;
|
|
283
299
|
lendingPositionCount?: BigNumber;
|
|
@@ -571,6 +587,9 @@ interface BankConfigDto {
|
|
|
571
587
|
oracleMaxConfidence: number;
|
|
572
588
|
fixedPrice: string;
|
|
573
589
|
scopeEntryIndex?: number;
|
|
590
|
+
cbWindowMaxUpBps?: number;
|
|
591
|
+
cbWindowMaxDownBps?: number;
|
|
592
|
+
cbWindowSeconds?: number;
|
|
574
593
|
}
|
|
575
594
|
interface RateLimitWindowDto {
|
|
576
595
|
maxOutflow: string;
|
|
@@ -633,6 +652,11 @@ interface BankTypeDto {
|
|
|
633
652
|
premiumActive?: boolean;
|
|
634
653
|
premiumActivatedAt?: number;
|
|
635
654
|
kaminoEmergency?: boolean;
|
|
655
|
+
liquidationLiquidatorFee?: number;
|
|
656
|
+
liquidationInsuranceFee?: number;
|
|
657
|
+
isCircuitBreakerEnabled?: boolean;
|
|
658
|
+
cbTier?: number;
|
|
659
|
+
cbHaltEndedAt?: number;
|
|
636
660
|
rateLimiter?: BankRateLimiterDto;
|
|
637
661
|
feesDestinationAccount?: string;
|
|
638
662
|
lendingPositionCount?: string;
|
|
@@ -830,9 +854,13 @@ declare enum HealthCacheFlags {
|
|
|
830
854
|
*/
|
|
831
855
|
ORACLE_OK = 4
|
|
832
856
|
}
|
|
857
|
+
/** Where an account's `healthCache` values come from. */
|
|
833
858
|
declare enum HealthCacheStatus {
|
|
859
|
+
/** As stored on-chain, not refreshed since the account's last instruction */
|
|
834
860
|
UNSET = 0,
|
|
861
|
+
/** Refreshed by a simulated `pulse_health`: values, prices and flags come from the program */
|
|
835
862
|
ONCHAIN = 1,
|
|
863
|
+
/** Computed locally from balances and oracle prices after the simulation failed; no prices or flags */
|
|
836
864
|
COMPUTED = 2
|
|
837
865
|
}
|
|
838
866
|
interface HealthCacheType {
|
|
@@ -1035,6 +1063,8 @@ declare enum SwapProvider {
|
|
|
1035
1063
|
DFLOW = "DFLOW"
|
|
1036
1064
|
}
|
|
1037
1065
|
interface SwapApiConfig {
|
|
1066
|
+
/** @deprecated Unused: the Jupiter adapter calls the Router `/build` endpoint and the Titan
|
|
1067
|
+
* adapter quotes over `wsUrl`. Will be removed in a future release. */
|
|
1038
1068
|
basePath?: string;
|
|
1039
1069
|
/** WebSocket endpoint (e.g. `wss://<host>/api/v1/ws`). Used by the Titan V3
|
|
1040
1070
|
* adapter, which sends the full footprint template inline over the socket to
|
|
@@ -4572,6 +4602,15 @@ declare function getAssetWeight(params: GetAssetWeightParams): BigNumber;
|
|
|
4572
4602
|
* ```
|
|
4573
4603
|
*/
|
|
4574
4604
|
declare function getLiabilityWeight(config: BankConfigType, marginRequirementType: MarginRequirementType): BigNumber;
|
|
4605
|
+
/**
|
|
4606
|
+
* The liquidator's and insurance fund's cuts of a classic liquidation against `bank`'s
|
|
4607
|
+
* liability, as fractions (0.025 = 2.5%). Mirrors `Bank::liquidator_fee` / `insurance_fee`: a
|
|
4608
|
+
* stored 0 means the program's 2.5% default.
|
|
4609
|
+
*/
|
|
4610
|
+
declare function getBankLiquidationFees(bank: BankType): {
|
|
4611
|
+
liquidatorFee: BigNumber;
|
|
4612
|
+
insuranceFee: BigNumber;
|
|
4613
|
+
};
|
|
4575
4614
|
/**
|
|
4576
4615
|
* Configuration for computing USD value from token quantity
|
|
4577
4616
|
*/
|
|
@@ -4844,6 +4883,12 @@ declare function isStandardBorrowable(bank: BankType): boolean;
|
|
|
4844
4883
|
* picking a bank to *deposit* into (e.g. the bridge bank for a collateral-swap double-hop).
|
|
4845
4884
|
*/
|
|
4846
4885
|
declare function isStandardDepositable(bank: BankType): boolean;
|
|
4886
|
+
/**
|
|
4887
|
+
* Whether the bank's oracle circuit breaker has tripped and its halt is still running at
|
|
4888
|
+
* `nowSeconds`, blocking risk-increasing actions. Mirrors `Bank::is_cb_halted`. A permanent halt
|
|
4889
|
+
* shows as `OperationalState.CircuitBroken` instead.
|
|
4890
|
+
*/
|
|
4891
|
+
declare function isBankCircuitBreakerHalted(bank: BankType, nowSeconds: number): boolean;
|
|
4847
4892
|
/** Mirrors the program's `SECONDS_PER_YEAR` (365 days, no leap adjustment). */
|
|
4848
4893
|
declare const SECONDS_PER_YEAR: number;
|
|
4849
4894
|
/**
|
|
@@ -5329,6 +5374,11 @@ declare class Bank implements BankType {
|
|
|
5329
5374
|
readonly premiumActive: boolean;
|
|
5330
5375
|
readonly premiumActivatedAt: number;
|
|
5331
5376
|
readonly kaminoEmergency: boolean;
|
|
5377
|
+
readonly liquidationLiquidatorFee: number;
|
|
5378
|
+
readonly liquidationInsuranceFee: number;
|
|
5379
|
+
readonly isCircuitBreakerEnabled: boolean;
|
|
5380
|
+
readonly cbTier: number;
|
|
5381
|
+
readonly cbHaltEndedAt: number;
|
|
5332
5382
|
readonly stakedOracleDisabled?: boolean | undefined;
|
|
5333
5383
|
readonly stakedOracleUsesOnramp?: boolean | undefined;
|
|
5334
5384
|
readonly rateLimiter?: BankRateLimiterType | undefined;
|
|
@@ -5357,7 +5407,7 @@ declare class Bank implements BankType {
|
|
|
5357
5407
|
readonly lendingPositionCount?: BigNumber | undefined;
|
|
5358
5408
|
readonly borrowingPositionCount?: BigNumber | undefined;
|
|
5359
5409
|
readonly tokenSymbol?: string | undefined;
|
|
5360
|
-
constructor(address: Address, mint: Address, mintDecimals: number, group: Address, assetShareValue: BigNumber, liabilityShareValue: BigNumber, liquidityVault: Address, liquidityVaultBump: number, liquidityVaultAuthorityBump: number, insuranceVault: Address, insuranceVaultBump: number, insuranceVaultAuthorityBump: number, collectedInsuranceFeesOutstanding: BigNumber, feeVault: Address, feeVaultBump: number, feeVaultAuthorityBump: number, collectedGroupFeesOutstanding: BigNumber, lastUpdate: number, config: BankConfig, totalAssetShares: BigNumber, totalLiabilityShares: BigNumber, emissionsActiveBorrowing: boolean, emissionsActiveLending: boolean, emissionsRate: number, emissionsMint: Address, emissionsRemaining: BigNumber, collectedProgramFeesOutstanding: BigNumber, oracleKey: Address, emode: EmodeSettings, premiumTag: number, premiumActive: boolean, premiumActivatedAt: number, kaminoEmergency: boolean, stakedOracleDisabled?: boolean | undefined, stakedOracleUsesOnramp?: boolean | undefined, rateLimiter?: BankRateLimiterType | undefined, kaminoIntegrationAccounts?: {
|
|
5410
|
+
constructor(address: Address, mint: Address, mintDecimals: number, group: Address, assetShareValue: BigNumber, liabilityShareValue: BigNumber, liquidityVault: Address, liquidityVaultBump: number, liquidityVaultAuthorityBump: number, insuranceVault: Address, insuranceVaultBump: number, insuranceVaultAuthorityBump: number, collectedInsuranceFeesOutstanding: BigNumber, feeVault: Address, feeVaultBump: number, feeVaultAuthorityBump: number, collectedGroupFeesOutstanding: BigNumber, lastUpdate: number, config: BankConfig, totalAssetShares: BigNumber, totalLiabilityShares: BigNumber, emissionsActiveBorrowing: boolean, emissionsActiveLending: boolean, emissionsRate: number, emissionsMint: Address, emissionsRemaining: BigNumber, collectedProgramFeesOutstanding: BigNumber, oracleKey: Address, emode: EmodeSettings, premiumTag: number, premiumActive: boolean, premiumActivatedAt: number, kaminoEmergency: boolean, liquidationLiquidatorFee: number, liquidationInsuranceFee: number, isCircuitBreakerEnabled: boolean, cbTier: number, cbHaltEndedAt: number, stakedOracleDisabled?: boolean | undefined, stakedOracleUsesOnramp?: boolean | undefined, rateLimiter?: BankRateLimiterType | undefined, kaminoIntegrationAccounts?: {
|
|
5361
5411
|
kaminoReserve: Address;
|
|
5362
5412
|
kaminoObligation: Address;
|
|
5363
5413
|
} | undefined, driftIntegrationAccounts?: {
|
|
@@ -5456,9 +5506,12 @@ declare class BankConfig implements BankConfigType {
|
|
|
5456
5506
|
readonly operationalState: OperationalState;
|
|
5457
5507
|
readonly oracleMaxConfidence: number;
|
|
5458
5508
|
readonly fixedPrice: BigNumber;
|
|
5509
|
+
readonly cbWindowMaxUpBps: number;
|
|
5510
|
+
readonly cbWindowMaxDownBps: number;
|
|
5511
|
+
readonly cbWindowSeconds: number;
|
|
5459
5512
|
readonly configFlags?: BankConfigFlag | undefined;
|
|
5460
5513
|
readonly scopeEntryIndex?: number | undefined;
|
|
5461
|
-
constructor(assetWeightInit: BigNumber, assetWeightMaint: BigNumber, liabilityWeightInit: BigNumber, liabilityWeightMaint: BigNumber, depositLimit: BigNumber, borrowLimit: BigNumber, riskTier: RiskTier, totalAssetValueInitLimit: BigNumber, assetTag: AssetTag, oracleSetup: OracleSetup, oracleKeys: Address[], oracleMaxAge: number, interestRateConfig: InterestRateConfig, operationalState: OperationalState, oracleMaxConfidence: number, fixedPrice: BigNumber, configFlags?: BankConfigFlag | undefined, scopeEntryIndex?: number | undefined);
|
|
5514
|
+
constructor(assetWeightInit: BigNumber, assetWeightMaint: BigNumber, liabilityWeightInit: BigNumber, liabilityWeightMaint: BigNumber, depositLimit: BigNumber, borrowLimit: BigNumber, riskTier: RiskTier, totalAssetValueInitLimit: BigNumber, assetTag: AssetTag, oracleSetup: OracleSetup, oracleKeys: Address[], oracleMaxAge: number, interestRateConfig: InterestRateConfig, operationalState: OperationalState, oracleMaxConfidence: number, fixedPrice: BigNumber, cbWindowMaxUpBps: number, cbWindowMaxDownBps: number, cbWindowSeconds: number, configFlags?: BankConfigFlag | undefined, scopeEntryIndex?: number | undefined);
|
|
5462
5515
|
}
|
|
5463
5516
|
|
|
5464
5517
|
type MintData = {
|
|
@@ -6041,6 +6094,8 @@ declare const TRANSFER_ACCOUNT_AUTHORITY_FLAG: number;
|
|
|
6041
6094
|
declare const STAKED_ORACLE_DISABLED_FLAG: number;
|
|
6042
6095
|
/** Bank flags bit 10: staked oracle pricing includes the SPL single-pool on-ramp in NAV */
|
|
6043
6096
|
declare const STAKED_ORACLE_USES_ONRAMP_FLAG: number;
|
|
6097
|
+
/** Bank flags bit 11: the per-bank oracle circuit breaker is enabled (0.1.10) */
|
|
6098
|
+
declare const CIRCUIT_BREAKER_ENABLED_FLAG: number;
|
|
6044
6099
|
/** Bank flags bit 13: liabilities in this bank accrue the variable borrow premium */
|
|
6045
6100
|
declare const PREMIUM_ACTIVE_FLAG: number;
|
|
6046
6101
|
/** Bank flags bit 14: the Kamino bank's lending market is in emergency mode (zero initial weight) */
|
|
@@ -6485,7 +6540,7 @@ declare class MarginfiAccountWrapper {
|
|
|
6485
6540
|
makeRepayIx(bankAddress: Address, amount: Amount, repayAll?: boolean, opts?: MakeRepayIxOpts): Promise<_solana_kit.Instruction<string, readonly (_solana_kit.AccountLookupMeta<string, string> | _solana_kit.AccountMeta<string>)[]>[]>;
|
|
6486
6541
|
/**
|
|
6487
6542
|
* Withdraw instructions for `amount` (UI units) from `bankAddress`; `withdrawAll` closes the
|
|
6488
|
-
* balance.
|
|
6543
|
+
* balance. `opts.groupRateLimiterEnabled` defaults to the group's limiter state.
|
|
6489
6544
|
* @throws Error if `amount` isn't positive without `withdrawAll`
|
|
6490
6545
|
*/
|
|
6491
6546
|
makeWithdrawIx(bankAddress: Address, amount: Amount, withdrawAll?: boolean, opts?: MakeWithdrawIxOpts): Promise<_solana_kit.Instruction<string, readonly (_solana_kit.AccountLookupMeta<string, string> | _solana_kit.AccountMeta<string>)[]>[]>;
|
|
@@ -6500,7 +6555,7 @@ declare class MarginfiAccountWrapper {
|
|
|
6500
6555
|
makeRepayTx(bankAddress: Address, amount: Amount, repayAll?: boolean, opts?: MakeRepayIxOpts): Promise<SolanaTransaction>;
|
|
6501
6556
|
/**
|
|
6502
6557
|
* Withdraw transaction for `amount` (UI units) from `bankAddress`; `withdrawAll` closes the
|
|
6503
|
-
* balance.
|
|
6558
|
+
* balance. `opts.groupRateLimiterEnabled` defaults to the group's limiter state.
|
|
6504
6559
|
*/
|
|
6505
6560
|
makeWithdrawTx(bankAddress: Address, amount: Amount, withdrawAll?: boolean, opts?: MakeWithdrawIxOpts): Promise<SolanaTransaction>;
|
|
6506
6561
|
/** Borrow transaction for `amount` (UI units) from `bankAddress`. */
|
|
@@ -6642,4 +6697,4 @@ declare class MarginfiAccountWrapper {
|
|
|
6642
6697
|
getClient(): Project0Client;
|
|
6643
6698
|
}
|
|
6644
6699
|
|
|
6645
|
-
export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_GROUP_NATIVE_STAKE, ADDRESS_LOOKUP_TABLE_FOR_SWAP, type AccountActiveBalanceForBank, AccountFlags, AccountType, type ActionEmodeImpact, type ActionTxParams, type ActiveEmodePair, type AddBankConfig, type Amount, type AmountType, type AppendPremiumRefreshParams, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceType, type BalanceTypeDto, Bank, type BankAddress, BankConfig, type BankConfigDto, type BankConfigFastOpt, BankConfigFlag, type BankConfigGovOpt, type BankConfigOpt, type BankConfigType, type BankIntegrationMetadata, type BankIntegrationMetadataMap, type BankMap, type BankMetadata, type BankMetrics, type BankOutflowRateLimit, type BankRateLimiterDto, type BankRateLimiterType, type BankType, type BankTypeDto, type BankVenueStates, type BridgeLeg, type BridgeOpts, type BridgedTxResult, type BuildContext, type BulkLendTxsResult, type ClassifiedPosition, type ComputeAssetHealthComponentParams, type ComputeAssetUsdValueParams, type ComputeBalanceUsdValueParams, type ComputeBankMetricsParams, type ComputeFreeCollateralFromBalancesParams, type ComputeHealthCacheStatusParams, type ComputeHealthComponentsFromBalancesParams, type ComputeLiabilityHealthComponentParams, type ComputeLiabilityUsdValueParams, type ComputeLiquidationPriceForBankParams, type ComputeMaxBorrowForBankParams, type ComputeMaxDepositForBankParams, type ComputeMaxWithdrawForBankParams, type ComputeNetApyParams, type ComputePremiumRatesParams, type ComputeUsdValueParams, ConfigRaw, DEFAULT_ADDRESS, DEFAULT_BRIDGE_MINTS, DEFAULT_ORACLE_MAX_AGE, DEFAULT_REPAY_ALL_EXTRA_BUFFER_BPS, DISABLED_FLAG, EMPTY_BALANCE_THRESHOLD, EXECUTION_HEADROOM_SECONDS, type EmodeEntry, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, type EmodeImpact, EmodeImpactStatus, type EmodePair, EmodeSettings, type EmodeSettingsDto, type EmodeSettingsType, EmodeTag, type Environment, FLASHLOAN_ENABLED_FLAG, type FlashloanActionResult, type FlashloanBudgetIx, type FlashloanPrecheckResult, type FlashloanSwapConstraints, type GetAssetWeightParams, type GetBalanceUsdValueWithPriceBiasParams, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, HealthCacheSimulationError, HealthCacheStatus, type HealthCacheType, type HealthCacheTypeDto, type InterestRateConfig, type InterestRateConfigDto, type InterestRateConfigOpt, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, KAMINO_MARKET_EMERGENCY_FLAG, LST_MINT, type LoopFlashloanDescriptor, MARGINFI_PROGRAM, MARGINFI_PROGRAM_STAGING, MARGINFI_PROGRAM_STAGING_ALT, MARGINFI_SPONSORED_SHARD_ID, MAX_ACCOUNT_LOCKS, MAX_BALANCES, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_COSTLY_POSITIONS, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeBeginFlashLoanIxParams, type MakeBorrowIxOpts, type MakeBorrowIxParams, type MakeBorrowTxParams, type MakeBridgedLoopTxParams, type MakeBridgedSwapCollateralTxParams, type MakeBridgedSwapDebtTxParams, type MakeBridgedTxParams, type MakeBulkRepayTxParams, type MakeBulkWithdrawTxParams, type MakeCloseAccountIxOpts, type MakeCloseAccountIxParams, type MakeCloseAccountTxParams, type MakeCloseOrderIxOpts, type MakeCloseOrderIxParams, type MakeCloseOrderTxParams, type MakeCreateAccountIxOpts, type MakeCreateAccountIxParams, type MakeCreateAccountTxParams, type MakeCreateMissingAtaIxsParams, type MakeDepositIxOpts, type MakeDepositIxParams, type MakeDepositTxParams, type MakeEndFlashLoanIxParams, type MakeFlashLoanTxParams, type MakeLoopTxParams, type MakeMergeStakeAccountsTxParams, type MakeMintStakedLstIxParams, type MakeMintStakedLstTxParams, type MakeOrderChangesIxsParams, type MakeOrderChangesTxParams, type MakePlaceOrderIxOpts, type MakePlaceOrderIxParams, type MakePlaceOrderTxParams, type MakePremiumRefreshIxsParams, type MakePulseHealthIxOpts, type MakePulseHealthIxParams, type MakeRedeemStakedLstIxParams, type MakeRedeemStakedLstTxParams, type MakeRepayIxOpts, type MakeRepayIxParams, type MakeRepayTxParams, type MakeRepayWithCollatTxParams, type MakeRollPtTxParams, type MakeSwapCollateralTxParams, type MakeSwapDebtTxParams, type MakeTransferAccountIxOpts, type MakeTransferAccountIxParams, type MakeTransferAccountTxParams, type MakeTransferPositionsTxParams, type MakeUpdateOrderTxParams, type MakeVaultCompleteWithdrawalIxParams, type MakeVaultCompleteWithdrawalTxParams, type MakeVaultDepositIxParams, type MakeVaultDepositTxParams, type MakeVaultDepositWithSwapTxParams, type MakeVaultWithdrawIxParams, type MakeVaultWithdrawTxParams, type MakeWithdrawIxOpts, type MakeWithdrawIxParams, type MakeWithdrawTxParams, MarginRequirementType, MarginfiAccount, type MarginfiAccountType, type MarginfiAccountTypeDto, MarginfiAccountWrapper, MarginfiGroup, type MarginfiGroupType, type MarginfiGroupTypeDto, type MintAuthorityBalance, type MintData, type MintDataMap, type MultiplierAccountState, type MultiplierAccountStates, OperationalState, type OracleConfigOpt, type OracleMultiplierBankInput, type OracleMultiplierServiceOpts, type OraclePrice, type OraclePriceDto, type OraclePriceMap, OracleSetup, type OracleSourceKey, type OrderChangesParams, type OrderTrigger, type OrderTriggerKind, type OrderTriggerParams, type 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, PREMIUM_ACTIVE_FLAG, PRIORITY_TX_SIZE, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, type PremiumAction, type PremiumCollateralBreakdown, type PremiumEntry, type PremiumImpact, type PremiumRefreshParams, type PrependOrderClosesParams, PriceBias, type PriceWithConfidence, type PriceWithConfidenceDto, Project0Client, type Project0Config, Project0ConfigRaw, type ProviderSwapRoute, type PythOracleServiceOpts, type RateLimitWindowDto, type RateLimitWindowType, type RatePoint, type RatePointDto, type ResolvedPinnedSwapRoute, RiskTier, type RollPtOpts, type RollQuoteSimResult, type RollQuoteSimulator, type RollQuoteTokenBalance, SECONDS_PER_YEAR, SEND_PIPELINE_ROOM, SINGLE_POOL_PROGRAM_ID, SIZING_BLOCKHASH, STAKED_ORACLE_DISABLED_FLAG, STAKED_ORACLE_USES_ONRAMP_FLAG, STAKE_ACCOUNT_SIZE, 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 SimulateAccountHealthCacheWithFallbackParams, type SimulationResultRaw, type SolanaTransaction, type StakedBankMetadata, type SwapAdapter, type SwapApiConfig, type SwapCandidate, type SwapEngineRequest, type SwapEngineResult, type SwapEngineRunner, type SwapFlowRpc, type SwapFlowTxParams, type SwapFlowTxResult, type SwapOpts, SwapProvider, type SwapProviderConfig, type SwapProviderEntry, type SwapQuoteResult, TOKEN_2022_PROGRAM_ID, TRANSFER_ACCOUNT_AUTHORITY_FLAG, type TransactionBuilderResult, TransactionBuildingError, TransactionBuildingErrorCode, type TransactionBuildingErrorDetails, TransactionConfigMap, type TransactionFormat, TransactionType, type TransferPositionSide, type TransferPositionsResult, type TxFootprint, type TypedAmount, U64_MAX, USDC_DECIMALS, USDC_MINT, USDT_MINT, V1_TRANSACTION_CONFIG, VENUE_AVAILABLE_LIQUIDITY_BUFFER, WSOL_MINT, type WrapSolOpts, type WrappedI80F48, ZERO_ORACLE_KEY, addOracleToBanksIx, adjustPriceComponent, appendPremiumRefresh, aprToApy, apyToApr, balanceToDto, bigNumberToWrappedI80F48, bpsToPercentile, buildCollateralLegIxs, buildOrderTrigger, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, classifyAndValidate, compareAddressBytes, compileFlashloanPrecheck, composeRemainingAccounts, computeAccountValue, computeAccrualProjectionSeconds, computeActiveEmodePairs, computeAssetHealthComponent, computeAssetUsdValue, 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, computeHealthAccounts, computeHealthCacheStatus, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeInterestRates, computeLiabilityHealthComponent, computeLiabilityUsdValue, computeLiquidationPriceForBank, computeLoopingParams, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxDepositForBank, computeMaxLeverage, computeMaxWithdrawForBank, computeNetApy, computeOracleMultiplier, computeOracleMultipliers, computeOrderPairNetValue, computePremiumBreakdown, computePremiumImpact, computePremiumRatesByBank, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computePtMultiplier, computeQuantity, computeQuantityUi, computeRateLimitWindowRemainingCapacity, computeRateLimiterRemainingCapacity, computeRemainingCapacity, computeStakedBankMultipliers, computeTvl, computeUsdValue, computeUtilizationRate, computeVenueAvailableLiquidity, configureScopeOracleIx, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeBank, decodeMarginfiAccount, decodeMultiplierAccount, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, deriveOrderPda, deserializeInstruction, deserializeSwapEngineRequest, deserializeSwapEngineResult, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankRateLimiter, dtoToEmodeSettings, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, exceedsCostlyPositionLimit, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchGammaLpVault, fetchGammaWithdrawReceipt, fetchGlobalFeeWallet, fetchMarginfiAccountActiveBalancesForBank, fetchMarginfiAccountAddresses, fetchMarginfiAccountAddressesHoldingBank, fetchMultipleBanks, fetchMultiplierAccountStates, fetchMultiplierAccountStatesFromAPI, fetchOracleData, fetchOracleMultipliers, fetchOracleMultipliersFromAPI, fetchOracleMultipliersFromChain, fetchOrderFees, fetchOrdersForAccount, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchScopeOracleData, fetchScopeOraclePricesFromAPI, fetchScopeOraclePricesFromChain, filterRouteSetupIxs, findRandomAvailableAccountIndex, fitsInOneTransaction, freezeBankConfigIx, generateDummyMarginfiAccount, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getAssetWeight, getBalance, getBalanceUsdValueWithPriceBias, getConfig, getEffectiveDepositLimit, getEmodePairs, getFallbackPricesByFeedId, getFallbackPricesForMints, getHealthCacheStatusDescription, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getOracleMultiplierBankInput, getOracleSourceFromBank, getOracleSourceFromOracleSetup, getOracleSourceNameFromKey, getPrice, getPriceWithConfidence, getStakedBankMetadataMap, getSwapAdapter, getTotalAccountKeys, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, getValidatorVoteAccountByBank, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isBorrowLimitActive, isBridgeConflictError, isCostlyBank, isDecomposableSwapError, isDepositIx, isDepositLimitActive, isFlashloan, isGroupRateLimiterEnabled, isStandardBorrowable, isStandardDepositable, isWeightedPrice, isWholePosition, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx, makeBorrowIx, makeBorrowTx, makeBridgedLoopTx, makeBridgedSwapCollateralTx, makeBridgedSwapDebtTx, makeBridgedTx, makeBulkRepayTx, makeBulkWithdrawTx, makeBundleTipIx, makeCloseAccountIx, makeCloseAccountTx, makeCloseOrderIx, makeCloseOrderTx, makeCreateAccountIx, makeCreateAccountIxWithProjection, makeCreateAccountTx, makeCreateAccountTxWithProjection, makeCreateMissingAtaIxs, makeDepositIx, makeDepositTx, makeEndFlashLoanIx, makeFlashLoanTx, makeLoopTx, makeMergeStakeAccountsTx, makeMintStakedLstIx, makeMintStakedLstTx, makeOrderChangesIxs, makeOrderChangesTx, makePlaceOrderIx, makePlaceOrderTx, makePoolAddBankIx, makePoolConfigureBankGovIx, makePoolConfigureBankIx, makePreludeTxs, makePremiumRefreshIxs, makePriorityFeeMicroIx, makePulseHealthIx, makeRedeemStakedLstIx, makeRedeemStakedLstTx, makeRefreshIntegrationBanksIxs, makeRefreshKaminoBanksIxs, makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeRollPtTx, makeSwapCollateralTx, makeSwapDebtTx, makeTransactionMessage, makeTransferAccountIx, makeTransferAccountTx, makeTransferPositionsTx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateOrderTx, makeVaultCompleteWithdrawalIx, makeVaultCompleteWithdrawalTx, makeVaultDepositIx, makeVaultDepositTx, makeVaultDepositWithSwapTx, makeVaultWithdrawIx, makeVaultWithdrawTx, makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapPythBanksToOraclePrices, marginfiAccountToDto, maxSlippageU32ToPercent, nativeToUi, needsPremiumRefresh, oraclePriceToDto, parseEmodeTag, parseOraclePriceData as parsePriceInfo, parseRpcPythPriceData, patchDepositAmount, percentToMaxSlippageU32, prependOrderCloses, rateFromU32, requireBank, requireTokenProgram, resolveAmount, resolveOrderLegs, resolvePinnedSwapRoute, resolveVaultTokenProgram, runSwapEngine, selectLutsForAccountAction, selectLutsForBanks, serializeInstruction, serializeSwapEngineRequest, serializeSwapEngineResult, setOraclePriceIx, shortenAddress, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, swapEngineProvidersFromOpts, swapEngineQuoteFieldsFromOpts, toAccountRole, toBankConfigDto, toBankDto, toBankRateLimiterDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toNumber, uiToNative, uiToNativeBigNumber, withKaminoReserveEmergency, withLookupTables, wrappedI80F48toBigNumber };
|
|
6700
|
+
export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_GROUP_NATIVE_STAKE, ADDRESS_LOOKUP_TABLE_FOR_SWAP, type AccountActiveBalanceForBank, AccountFlags, AccountType, type ActionEmodeImpact, type ActionTxParams, type ActiveEmodePair, type AddBankConfig, type Amount, type AmountType, type AppendPremiumRefreshParams, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceType, type BalanceTypeDto, Bank, type BankAddress, BankConfig, type BankConfigDto, type BankConfigFastOpt, BankConfigFlag, type BankConfigGovOpt, type BankConfigOpt, type BankConfigType, type BankIntegrationMetadata, type BankIntegrationMetadataMap, type BankMap, type BankMetadata, type BankMetrics, type BankOutflowRateLimit, type BankRateLimiterDto, type BankRateLimiterType, type BankType, type BankTypeDto, type BankVenueStates, type BridgeLeg, type BridgeOpts, type BridgedTxResult, type BuildContext, type BulkLendTxsResult, CIRCUIT_BREAKER_ENABLED_FLAG, type ClassifiedPosition, type ComputeAssetHealthComponentParams, type ComputeAssetUsdValueParams, type ComputeBalanceUsdValueParams, type ComputeBankMetricsParams, type ComputeFreeCollateralFromBalancesParams, type ComputeHealthCacheStatusParams, type ComputeHealthComponentsFromBalancesParams, type ComputeLiabilityHealthComponentParams, type ComputeLiabilityUsdValueParams, type ComputeLiquidationPriceForBankParams, type ComputeMaxBorrowForBankParams, type ComputeMaxDepositForBankParams, type ComputeMaxWithdrawForBankParams, type ComputeNetApyParams, type ComputePremiumRatesParams, type ComputeUsdValueParams, ConfigRaw, DEFAULT_ADDRESS, DEFAULT_BRIDGE_MINTS, DEFAULT_ORACLE_MAX_AGE, DEFAULT_REPAY_ALL_EXTRA_BUFFER_BPS, DISABLED_FLAG, EMPTY_BALANCE_THRESHOLD, EXECUTION_HEADROOM_SECONDS, type EmodeEntry, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, type EmodeImpact, EmodeImpactStatus, type EmodePair, EmodeSettings, type EmodeSettingsDto, type EmodeSettingsType, EmodeTag, type Environment, FLASHLOAN_ENABLED_FLAG, type FlashloanActionResult, type FlashloanBudgetIx, type FlashloanPrecheckResult, type FlashloanSwapConstraints, type GetAssetWeightParams, type GetBalanceUsdValueWithPriceBiasParams, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, HealthCacheSimulationError, HealthCacheStatus, type HealthCacheType, type HealthCacheTypeDto, type InterestRateConfig, type InterestRateConfigDto, type InterestRateConfigOpt, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, KAMINO_MARKET_EMERGENCY_FLAG, LST_MINT, type LoopFlashloanDescriptor, MARGINFI_PROGRAM, MARGINFI_PROGRAM_STAGING, MARGINFI_PROGRAM_STAGING_ALT, MARGINFI_SPONSORED_SHARD_ID, MAX_ACCOUNT_LOCKS, MAX_BALANCES, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_COSTLY_POSITIONS, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeBeginFlashLoanIxParams, type MakeBorrowIxOpts, type MakeBorrowIxParams, type MakeBorrowTxParams, type MakeBridgedLoopTxParams, type MakeBridgedSwapCollateralTxParams, type MakeBridgedSwapDebtTxParams, type MakeBridgedTxParams, type MakeBulkRepayTxParams, type MakeBulkWithdrawTxParams, type MakeCloseAccountIxOpts, type MakeCloseAccountIxParams, type MakeCloseAccountTxParams, type MakeCloseOrderIxOpts, type MakeCloseOrderIxParams, type MakeCloseOrderTxParams, type MakeCreateAccountIxOpts, type MakeCreateAccountIxParams, type MakeCreateAccountTxParams, type MakeCreateMissingAtaIxsParams, type MakeDepositIxOpts, type MakeDepositIxParams, type MakeDepositTxParams, type MakeEndFlashLoanIxParams, type MakeFlashLoanTxParams, type MakeLoopTxParams, type MakeMergeStakeAccountsTxParams, type MakeMintStakedLstIxParams, type MakeMintStakedLstTxParams, type MakeOrderChangesIxsParams, type MakeOrderChangesTxParams, type MakePlaceOrderIxOpts, type MakePlaceOrderIxParams, type MakePlaceOrderTxParams, type MakePremiumRefreshIxsParams, type MakePulseHealthIxOpts, type MakePulseHealthIxParams, type MakeRedeemStakedLstIxParams, type MakeRedeemStakedLstTxParams, type MakeRepayIxOpts, type MakeRepayIxParams, type MakeRepayTxParams, type MakeRepayWithCollatTxParams, type MakeRollPtTxParams, type MakeSwapCollateralTxParams, type MakeSwapDebtTxParams, type MakeTransferAccountIxOpts, type MakeTransferAccountIxParams, type MakeTransferAccountTxParams, type MakeTransferPositionsTxParams, type MakeUpdateOrderTxParams, type MakeVaultCompleteWithdrawalIxParams, type MakeVaultCompleteWithdrawalTxParams, type MakeVaultDepositIxParams, type MakeVaultDepositTxParams, type MakeVaultDepositWithSwapTxParams, type MakeVaultWithdrawIxParams, type MakeVaultWithdrawTxParams, type MakeWithdrawIxOpts, type MakeWithdrawIxParams, type MakeWithdrawTxParams, MarginRequirementType, MarginfiAccount, type MarginfiAccountType, type MarginfiAccountTypeDto, MarginfiAccountWrapper, MarginfiGroup, type MarginfiGroupType, type MarginfiGroupTypeDto, type MintAuthorityBalance, type MintData, type MintDataMap, type MultiplierAccountState, type MultiplierAccountStates, OperationalState, type OracleConfigOpt, type OracleMultiplierBankInput, type OracleMultiplierServiceOpts, type OraclePrice, type OraclePriceDto, type OraclePriceMap, OracleSetup, type OracleSourceKey, type OrderChangesParams, type OrderTrigger, type OrderTriggerKind, type OrderTriggerParams, type 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, PREMIUM_ACTIVE_FLAG, PRIORITY_TX_SIZE, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, type PremiumAction, type PremiumCollateralBreakdown, type PremiumEntry, type PremiumImpact, type PremiumRefreshParams, type PrependOrderClosesParams, PriceBias, type PriceWithConfidence, type PriceWithConfidenceDto, Project0Client, type Project0Config, Project0ConfigRaw, type ProviderSwapRoute, type PythOracleServiceOpts, type RateLimitWindowDto, type RateLimitWindowType, type RatePoint, type RatePointDto, type ResolvedPinnedSwapRoute, RiskTier, type RollPtOpts, type RollQuoteSimResult, type RollQuoteSimulator, type RollQuoteTokenBalance, SECONDS_PER_YEAR, SEND_PIPELINE_ROOM, SINGLE_POOL_PROGRAM_ID, SIZING_BLOCKHASH, STAKED_ORACLE_DISABLED_FLAG, STAKED_ORACLE_USES_ONRAMP_FLAG, STAKE_ACCOUNT_SIZE, 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 SimulateAccountHealthCacheWithFallbackParams, type SimulationResultRaw, type SolanaTransaction, type StakedBankMetadata, type SwapAdapter, type SwapApiConfig, type SwapCandidate, type SwapEngineRequest, type SwapEngineResult, type SwapEngineRunner, type SwapFlowRpc, type SwapFlowTxParams, type SwapFlowTxResult, type SwapOpts, SwapProvider, type SwapProviderConfig, type SwapProviderEntry, type SwapQuoteResult, TOKEN_2022_PROGRAM_ID, TRANSFER_ACCOUNT_AUTHORITY_FLAG, type TransactionBuilderResult, TransactionBuildingError, TransactionBuildingErrorCode, type TransactionBuildingErrorDetails, TransactionConfigMap, type TransactionFormat, TransactionType, type TransferPositionSide, type TransferPositionsResult, type TxFootprint, type TypedAmount, U64_MAX, USDC_DECIMALS, USDC_MINT, USDT_MINT, V1_TRANSACTION_CONFIG, VENUE_AVAILABLE_LIQUIDITY_BUFFER, WSOL_MINT, type WrapSolOpts, type WrappedI80F48, ZERO_ORACLE_KEY, addOracleToBanksIx, adjustPriceComponent, appendPremiumRefresh, aprToApy, apyToApr, balanceToDto, bigNumberToWrappedI80F48, bpsToPercentile, buildCollateralLegIxs, buildOrderTrigger, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, classifyAndValidate, compareAddressBytes, compileFlashloanPrecheck, composeRemainingAccounts, computeAccountValue, computeAccrualProjectionSeconds, computeActiveEmodePairs, computeAssetHealthComponent, computeAssetUsdValue, 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, computeHealthAccounts, computeHealthCacheStatus, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeInterestRates, computeLiabilityHealthComponent, computeLiabilityUsdValue, computeLiquidationPriceForBank, computeLoopingParams, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxDepositForBank, computeMaxLeverage, computeMaxWithdrawForBank, computeNetApy, computeOracleMultiplier, computeOracleMultipliers, computeOrderPairNetValue, computePremiumBreakdown, computePremiumImpact, computePremiumRatesByBank, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computePtMultiplier, computeQuantity, computeQuantityUi, computeRateLimitWindowRemainingCapacity, computeRateLimiterRemainingCapacity, computeRemainingCapacity, computeStakedBankMultipliers, computeTvl, computeUsdValue, computeUtilizationRate, computeVenueAvailableLiquidity, configureScopeOracleIx, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeBank, decodeMarginfiAccount, decodeMultiplierAccount, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, deriveOrderPda, deserializeInstruction, deserializeSwapEngineRequest, deserializeSwapEngineResult, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankRateLimiter, dtoToEmodeSettings, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, exceedsCostlyPositionLimit, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchGammaLpVault, fetchGammaWithdrawReceipt, fetchGlobalFeeWallet, fetchMarginfiAccountActiveBalancesForBank, fetchMarginfiAccountAddresses, fetchMarginfiAccountAddressesHoldingBank, fetchMultipleBanks, fetchMultiplierAccountStates, fetchMultiplierAccountStatesFromAPI, fetchOracleData, fetchOracleMultipliers, fetchOracleMultipliersFromAPI, fetchOracleMultipliersFromChain, fetchOrderFees, fetchOrdersForAccount, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchScopeOracleData, fetchScopeOraclePricesFromAPI, fetchScopeOraclePricesFromChain, filterRouteSetupIxs, findRandomAvailableAccountIndex, fitsInOneTransaction, freezeBankConfigIx, generateDummyMarginfiAccount, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getAssetWeight, getBalance, getBalanceUsdValueWithPriceBias, getBankLiquidationFees, getConfig, getEffectiveDepositLimit, getEmodePairs, getFallbackPricesByFeedId, getFallbackPricesForMints, getHealthCacheStatusDescription, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getOracleMultiplierBankInput, getOracleSourceFromBank, getOracleSourceFromOracleSetup, getOracleSourceNameFromKey, getPrice, getPriceWithConfidence, getStakedBankMetadataMap, getSwapAdapter, getTotalAccountKeys, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, getValidatorVoteAccountByBank, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isBankCircuitBreakerHalted, isBorrowLimitActive, isBridgeConflictError, isCostlyBank, isDecomposableSwapError, isDepositIx, isDepositLimitActive, isFlashloan, isGroupRateLimiterEnabled, isStandardBorrowable, isStandardDepositable, isWeightedPrice, isWholePosition, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx, makeBorrowIx, makeBorrowTx, makeBridgedLoopTx, makeBridgedSwapCollateralTx, makeBridgedSwapDebtTx, makeBridgedTx, makeBulkRepayTx, makeBulkWithdrawTx, makeBundleTipIx, makeCloseAccountIx, makeCloseAccountTx, makeCloseOrderIx, makeCloseOrderTx, makeCreateAccountIx, makeCreateAccountIxWithProjection, makeCreateAccountTx, makeCreateAccountTxWithProjection, makeCreateMissingAtaIxs, makeDepositIx, makeDepositTx, makeEndFlashLoanIx, makeFlashLoanTx, makeLoopTx, makeMergeStakeAccountsTx, makeMintStakedLstIx, makeMintStakedLstTx, makeOrderChangesIxs, makeOrderChangesTx, makePlaceOrderIx, makePlaceOrderTx, makePoolAddBankIx, makePoolConfigureBankGovIx, makePoolConfigureBankIx, makePreludeTxs, makePremiumRefreshIxs, makePriorityFeeMicroIx, makePulseHealthIx, makeRedeemStakedLstIx, makeRedeemStakedLstTx, makeRefreshIntegrationBanksIxs, makeRefreshKaminoBanksIxs, makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeRollPtTx, makeSwapCollateralTx, makeSwapDebtTx, makeTransactionMessage, makeTransferAccountIx, makeTransferAccountTx, makeTransferPositionsTx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateOrderTx, makeVaultCompleteWithdrawalIx, makeVaultCompleteWithdrawalTx, makeVaultDepositIx, makeVaultDepositTx, makeVaultDepositWithSwapTx, makeVaultWithdrawIx, makeVaultWithdrawTx, makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapPythBanksToOraclePrices, marginfiAccountToDto, maxSlippageU32ToPercent, nativeToUi, needsPremiumRefresh, oraclePriceToDto, parseEmodeTag, parseOraclePriceData as parsePriceInfo, parseRpcPythPriceData, patchDepositAmount, percentToMaxSlippageU32, prependOrderCloses, rateFromU32, requireBank, requireTokenProgram, resolveAmount, resolveOrderLegs, resolvePinnedSwapRoute, resolveVaultTokenProgram, runSwapEngine, selectLutsForAccountAction, selectLutsForBanks, serializeInstruction, serializeSwapEngineRequest, serializeSwapEngineResult, setOraclePriceIx, shortenAddress, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, swapEngineProvidersFromOpts, swapEngineQuoteFieldsFromOpts, toAccountRole, toBankConfigDto, toBankDto, toBankRateLimiterDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toNumber, uiToNative, uiToNativeBigNumber, withKaminoReserveEmergency, withLookupTables, wrappedI80F48toBigNumber };
|
package/dist/index.d.ts
CHANGED
|
@@ -227,6 +227,9 @@ interface BankConfigType {
|
|
|
227
227
|
oracleMaxConfidence: number;
|
|
228
228
|
fixedPrice: BigNumber;
|
|
229
229
|
scopeEntryIndex?: number;
|
|
230
|
+
cbWindowMaxUpBps: number;
|
|
231
|
+
cbWindowMaxDownBps: number;
|
|
232
|
+
cbWindowSeconds: number;
|
|
230
233
|
}
|
|
231
234
|
interface BankType {
|
|
232
235
|
address: Address;
|
|
@@ -278,6 +281,19 @@ interface BankType {
|
|
|
278
281
|
* {@link withKaminoReserveEmergency} ORs in the reserve's `emergencyMode`.
|
|
279
282
|
*/
|
|
280
283
|
kaminoEmergency: boolean;
|
|
284
|
+
/**
|
|
285
|
+
* Liquidator's cut of a classic liquidation against this bank's liability, raw on-chain u32
|
|
286
|
+
* (`u32::MAX` = 100%, 0 = program default). Decode with {@link getBankLiquidationFees}.
|
|
287
|
+
*/
|
|
288
|
+
liquidationLiquidatorFee: number;
|
|
289
|
+
/** Insurance fund's cut of that liquidation, same encoding as `liquidationLiquidatorFee` */
|
|
290
|
+
liquidationInsuranceFee: number;
|
|
291
|
+
/** Flags bit 11: the per-bank oracle circuit breaker is enabled (0.1.10) */
|
|
292
|
+
isCircuitBreakerEnabled: boolean;
|
|
293
|
+
/** Current circuit-breaker halt tier (0 = not tripped) */
|
|
294
|
+
cbTier: number;
|
|
295
|
+
/** Unix seconds the current circuit-breaker halt ends */
|
|
296
|
+
cbHaltEndedAt: number;
|
|
281
297
|
rateLimiter?: BankRateLimiterType;
|
|
282
298
|
feesDestinationAccount?: Address;
|
|
283
299
|
lendingPositionCount?: BigNumber;
|
|
@@ -571,6 +587,9 @@ interface BankConfigDto {
|
|
|
571
587
|
oracleMaxConfidence: number;
|
|
572
588
|
fixedPrice: string;
|
|
573
589
|
scopeEntryIndex?: number;
|
|
590
|
+
cbWindowMaxUpBps?: number;
|
|
591
|
+
cbWindowMaxDownBps?: number;
|
|
592
|
+
cbWindowSeconds?: number;
|
|
574
593
|
}
|
|
575
594
|
interface RateLimitWindowDto {
|
|
576
595
|
maxOutflow: string;
|
|
@@ -633,6 +652,11 @@ interface BankTypeDto {
|
|
|
633
652
|
premiumActive?: boolean;
|
|
634
653
|
premiumActivatedAt?: number;
|
|
635
654
|
kaminoEmergency?: boolean;
|
|
655
|
+
liquidationLiquidatorFee?: number;
|
|
656
|
+
liquidationInsuranceFee?: number;
|
|
657
|
+
isCircuitBreakerEnabled?: boolean;
|
|
658
|
+
cbTier?: number;
|
|
659
|
+
cbHaltEndedAt?: number;
|
|
636
660
|
rateLimiter?: BankRateLimiterDto;
|
|
637
661
|
feesDestinationAccount?: string;
|
|
638
662
|
lendingPositionCount?: string;
|
|
@@ -830,9 +854,13 @@ declare enum HealthCacheFlags {
|
|
|
830
854
|
*/
|
|
831
855
|
ORACLE_OK = 4
|
|
832
856
|
}
|
|
857
|
+
/** Where an account's `healthCache` values come from. */
|
|
833
858
|
declare enum HealthCacheStatus {
|
|
859
|
+
/** As stored on-chain, not refreshed since the account's last instruction */
|
|
834
860
|
UNSET = 0,
|
|
861
|
+
/** Refreshed by a simulated `pulse_health`: values, prices and flags come from the program */
|
|
835
862
|
ONCHAIN = 1,
|
|
863
|
+
/** Computed locally from balances and oracle prices after the simulation failed; no prices or flags */
|
|
836
864
|
COMPUTED = 2
|
|
837
865
|
}
|
|
838
866
|
interface HealthCacheType {
|
|
@@ -1035,6 +1063,8 @@ declare enum SwapProvider {
|
|
|
1035
1063
|
DFLOW = "DFLOW"
|
|
1036
1064
|
}
|
|
1037
1065
|
interface SwapApiConfig {
|
|
1066
|
+
/** @deprecated Unused: the Jupiter adapter calls the Router `/build` endpoint and the Titan
|
|
1067
|
+
* adapter quotes over `wsUrl`. Will be removed in a future release. */
|
|
1038
1068
|
basePath?: string;
|
|
1039
1069
|
/** WebSocket endpoint (e.g. `wss://<host>/api/v1/ws`). Used by the Titan V3
|
|
1040
1070
|
* adapter, which sends the full footprint template inline over the socket to
|
|
@@ -4572,6 +4602,15 @@ declare function getAssetWeight(params: GetAssetWeightParams): BigNumber;
|
|
|
4572
4602
|
* ```
|
|
4573
4603
|
*/
|
|
4574
4604
|
declare function getLiabilityWeight(config: BankConfigType, marginRequirementType: MarginRequirementType): BigNumber;
|
|
4605
|
+
/**
|
|
4606
|
+
* The liquidator's and insurance fund's cuts of a classic liquidation against `bank`'s
|
|
4607
|
+
* liability, as fractions (0.025 = 2.5%). Mirrors `Bank::liquidator_fee` / `insurance_fee`: a
|
|
4608
|
+
* stored 0 means the program's 2.5% default.
|
|
4609
|
+
*/
|
|
4610
|
+
declare function getBankLiquidationFees(bank: BankType): {
|
|
4611
|
+
liquidatorFee: BigNumber;
|
|
4612
|
+
insuranceFee: BigNumber;
|
|
4613
|
+
};
|
|
4575
4614
|
/**
|
|
4576
4615
|
* Configuration for computing USD value from token quantity
|
|
4577
4616
|
*/
|
|
@@ -4844,6 +4883,12 @@ declare function isStandardBorrowable(bank: BankType): boolean;
|
|
|
4844
4883
|
* picking a bank to *deposit* into (e.g. the bridge bank for a collateral-swap double-hop).
|
|
4845
4884
|
*/
|
|
4846
4885
|
declare function isStandardDepositable(bank: BankType): boolean;
|
|
4886
|
+
/**
|
|
4887
|
+
* Whether the bank's oracle circuit breaker has tripped and its halt is still running at
|
|
4888
|
+
* `nowSeconds`, blocking risk-increasing actions. Mirrors `Bank::is_cb_halted`. A permanent halt
|
|
4889
|
+
* shows as `OperationalState.CircuitBroken` instead.
|
|
4890
|
+
*/
|
|
4891
|
+
declare function isBankCircuitBreakerHalted(bank: BankType, nowSeconds: number): boolean;
|
|
4847
4892
|
/** Mirrors the program's `SECONDS_PER_YEAR` (365 days, no leap adjustment). */
|
|
4848
4893
|
declare const SECONDS_PER_YEAR: number;
|
|
4849
4894
|
/**
|
|
@@ -5329,6 +5374,11 @@ declare class Bank implements BankType {
|
|
|
5329
5374
|
readonly premiumActive: boolean;
|
|
5330
5375
|
readonly premiumActivatedAt: number;
|
|
5331
5376
|
readonly kaminoEmergency: boolean;
|
|
5377
|
+
readonly liquidationLiquidatorFee: number;
|
|
5378
|
+
readonly liquidationInsuranceFee: number;
|
|
5379
|
+
readonly isCircuitBreakerEnabled: boolean;
|
|
5380
|
+
readonly cbTier: number;
|
|
5381
|
+
readonly cbHaltEndedAt: number;
|
|
5332
5382
|
readonly stakedOracleDisabled?: boolean | undefined;
|
|
5333
5383
|
readonly stakedOracleUsesOnramp?: boolean | undefined;
|
|
5334
5384
|
readonly rateLimiter?: BankRateLimiterType | undefined;
|
|
@@ -5357,7 +5407,7 @@ declare class Bank implements BankType {
|
|
|
5357
5407
|
readonly lendingPositionCount?: BigNumber | undefined;
|
|
5358
5408
|
readonly borrowingPositionCount?: BigNumber | undefined;
|
|
5359
5409
|
readonly tokenSymbol?: string | undefined;
|
|
5360
|
-
constructor(address: Address, mint: Address, mintDecimals: number, group: Address, assetShareValue: BigNumber, liabilityShareValue: BigNumber, liquidityVault: Address, liquidityVaultBump: number, liquidityVaultAuthorityBump: number, insuranceVault: Address, insuranceVaultBump: number, insuranceVaultAuthorityBump: number, collectedInsuranceFeesOutstanding: BigNumber, feeVault: Address, feeVaultBump: number, feeVaultAuthorityBump: number, collectedGroupFeesOutstanding: BigNumber, lastUpdate: number, config: BankConfig, totalAssetShares: BigNumber, totalLiabilityShares: BigNumber, emissionsActiveBorrowing: boolean, emissionsActiveLending: boolean, emissionsRate: number, emissionsMint: Address, emissionsRemaining: BigNumber, collectedProgramFeesOutstanding: BigNumber, oracleKey: Address, emode: EmodeSettings, premiumTag: number, premiumActive: boolean, premiumActivatedAt: number, kaminoEmergency: boolean, stakedOracleDisabled?: boolean | undefined, stakedOracleUsesOnramp?: boolean | undefined, rateLimiter?: BankRateLimiterType | undefined, kaminoIntegrationAccounts?: {
|
|
5410
|
+
constructor(address: Address, mint: Address, mintDecimals: number, group: Address, assetShareValue: BigNumber, liabilityShareValue: BigNumber, liquidityVault: Address, liquidityVaultBump: number, liquidityVaultAuthorityBump: number, insuranceVault: Address, insuranceVaultBump: number, insuranceVaultAuthorityBump: number, collectedInsuranceFeesOutstanding: BigNumber, feeVault: Address, feeVaultBump: number, feeVaultAuthorityBump: number, collectedGroupFeesOutstanding: BigNumber, lastUpdate: number, config: BankConfig, totalAssetShares: BigNumber, totalLiabilityShares: BigNumber, emissionsActiveBorrowing: boolean, emissionsActiveLending: boolean, emissionsRate: number, emissionsMint: Address, emissionsRemaining: BigNumber, collectedProgramFeesOutstanding: BigNumber, oracleKey: Address, emode: EmodeSettings, premiumTag: number, premiumActive: boolean, premiumActivatedAt: number, kaminoEmergency: boolean, liquidationLiquidatorFee: number, liquidationInsuranceFee: number, isCircuitBreakerEnabled: boolean, cbTier: number, cbHaltEndedAt: number, stakedOracleDisabled?: boolean | undefined, stakedOracleUsesOnramp?: boolean | undefined, rateLimiter?: BankRateLimiterType | undefined, kaminoIntegrationAccounts?: {
|
|
5361
5411
|
kaminoReserve: Address;
|
|
5362
5412
|
kaminoObligation: Address;
|
|
5363
5413
|
} | undefined, driftIntegrationAccounts?: {
|
|
@@ -5456,9 +5506,12 @@ declare class BankConfig implements BankConfigType {
|
|
|
5456
5506
|
readonly operationalState: OperationalState;
|
|
5457
5507
|
readonly oracleMaxConfidence: number;
|
|
5458
5508
|
readonly fixedPrice: BigNumber;
|
|
5509
|
+
readonly cbWindowMaxUpBps: number;
|
|
5510
|
+
readonly cbWindowMaxDownBps: number;
|
|
5511
|
+
readonly cbWindowSeconds: number;
|
|
5459
5512
|
readonly configFlags?: BankConfigFlag | undefined;
|
|
5460
5513
|
readonly scopeEntryIndex?: number | undefined;
|
|
5461
|
-
constructor(assetWeightInit: BigNumber, assetWeightMaint: BigNumber, liabilityWeightInit: BigNumber, liabilityWeightMaint: BigNumber, depositLimit: BigNumber, borrowLimit: BigNumber, riskTier: RiskTier, totalAssetValueInitLimit: BigNumber, assetTag: AssetTag, oracleSetup: OracleSetup, oracleKeys: Address[], oracleMaxAge: number, interestRateConfig: InterestRateConfig, operationalState: OperationalState, oracleMaxConfidence: number, fixedPrice: BigNumber, configFlags?: BankConfigFlag | undefined, scopeEntryIndex?: number | undefined);
|
|
5514
|
+
constructor(assetWeightInit: BigNumber, assetWeightMaint: BigNumber, liabilityWeightInit: BigNumber, liabilityWeightMaint: BigNumber, depositLimit: BigNumber, borrowLimit: BigNumber, riskTier: RiskTier, totalAssetValueInitLimit: BigNumber, assetTag: AssetTag, oracleSetup: OracleSetup, oracleKeys: Address[], oracleMaxAge: number, interestRateConfig: InterestRateConfig, operationalState: OperationalState, oracleMaxConfidence: number, fixedPrice: BigNumber, cbWindowMaxUpBps: number, cbWindowMaxDownBps: number, cbWindowSeconds: number, configFlags?: BankConfigFlag | undefined, scopeEntryIndex?: number | undefined);
|
|
5462
5515
|
}
|
|
5463
5516
|
|
|
5464
5517
|
type MintData = {
|
|
@@ -6041,6 +6094,8 @@ declare const TRANSFER_ACCOUNT_AUTHORITY_FLAG: number;
|
|
|
6041
6094
|
declare const STAKED_ORACLE_DISABLED_FLAG: number;
|
|
6042
6095
|
/** Bank flags bit 10: staked oracle pricing includes the SPL single-pool on-ramp in NAV */
|
|
6043
6096
|
declare const STAKED_ORACLE_USES_ONRAMP_FLAG: number;
|
|
6097
|
+
/** Bank flags bit 11: the per-bank oracle circuit breaker is enabled (0.1.10) */
|
|
6098
|
+
declare const CIRCUIT_BREAKER_ENABLED_FLAG: number;
|
|
6044
6099
|
/** Bank flags bit 13: liabilities in this bank accrue the variable borrow premium */
|
|
6045
6100
|
declare const PREMIUM_ACTIVE_FLAG: number;
|
|
6046
6101
|
/** Bank flags bit 14: the Kamino bank's lending market is in emergency mode (zero initial weight) */
|
|
@@ -6485,7 +6540,7 @@ declare class MarginfiAccountWrapper {
|
|
|
6485
6540
|
makeRepayIx(bankAddress: Address, amount: Amount, repayAll?: boolean, opts?: MakeRepayIxOpts): Promise<_solana_kit.Instruction<string, readonly (_solana_kit.AccountLookupMeta<string, string> | _solana_kit.AccountMeta<string>)[]>[]>;
|
|
6486
6541
|
/**
|
|
6487
6542
|
* Withdraw instructions for `amount` (UI units) from `bankAddress`; `withdrawAll` closes the
|
|
6488
|
-
* balance.
|
|
6543
|
+
* balance. `opts.groupRateLimiterEnabled` defaults to the group's limiter state.
|
|
6489
6544
|
* @throws Error if `amount` isn't positive without `withdrawAll`
|
|
6490
6545
|
*/
|
|
6491
6546
|
makeWithdrawIx(bankAddress: Address, amount: Amount, withdrawAll?: boolean, opts?: MakeWithdrawIxOpts): Promise<_solana_kit.Instruction<string, readonly (_solana_kit.AccountLookupMeta<string, string> | _solana_kit.AccountMeta<string>)[]>[]>;
|
|
@@ -6500,7 +6555,7 @@ declare class MarginfiAccountWrapper {
|
|
|
6500
6555
|
makeRepayTx(bankAddress: Address, amount: Amount, repayAll?: boolean, opts?: MakeRepayIxOpts): Promise<SolanaTransaction>;
|
|
6501
6556
|
/**
|
|
6502
6557
|
* Withdraw transaction for `amount` (UI units) from `bankAddress`; `withdrawAll` closes the
|
|
6503
|
-
* balance.
|
|
6558
|
+
* balance. `opts.groupRateLimiterEnabled` defaults to the group's limiter state.
|
|
6504
6559
|
*/
|
|
6505
6560
|
makeWithdrawTx(bankAddress: Address, amount: Amount, withdrawAll?: boolean, opts?: MakeWithdrawIxOpts): Promise<SolanaTransaction>;
|
|
6506
6561
|
/** Borrow transaction for `amount` (UI units) from `bankAddress`. */
|
|
@@ -6642,4 +6697,4 @@ declare class MarginfiAccountWrapper {
|
|
|
6642
6697
|
getClient(): Project0Client;
|
|
6643
6698
|
}
|
|
6644
6699
|
|
|
6645
|
-
export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_GROUP_NATIVE_STAKE, ADDRESS_LOOKUP_TABLE_FOR_SWAP, type AccountActiveBalanceForBank, AccountFlags, AccountType, type ActionEmodeImpact, type ActionTxParams, type ActiveEmodePair, type AddBankConfig, type Amount, type AmountType, type AppendPremiumRefreshParams, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceType, type BalanceTypeDto, Bank, type BankAddress, BankConfig, type BankConfigDto, type BankConfigFastOpt, BankConfigFlag, type BankConfigGovOpt, type BankConfigOpt, type BankConfigType, type BankIntegrationMetadata, type BankIntegrationMetadataMap, type BankMap, type BankMetadata, type BankMetrics, type BankOutflowRateLimit, type BankRateLimiterDto, type BankRateLimiterType, type BankType, type BankTypeDto, type BankVenueStates, type BridgeLeg, type BridgeOpts, type BridgedTxResult, type BuildContext, type BulkLendTxsResult, type ClassifiedPosition, type ComputeAssetHealthComponentParams, type ComputeAssetUsdValueParams, type ComputeBalanceUsdValueParams, type ComputeBankMetricsParams, type ComputeFreeCollateralFromBalancesParams, type ComputeHealthCacheStatusParams, type ComputeHealthComponentsFromBalancesParams, type ComputeLiabilityHealthComponentParams, type ComputeLiabilityUsdValueParams, type ComputeLiquidationPriceForBankParams, type ComputeMaxBorrowForBankParams, type ComputeMaxDepositForBankParams, type ComputeMaxWithdrawForBankParams, type ComputeNetApyParams, type ComputePremiumRatesParams, type ComputeUsdValueParams, ConfigRaw, DEFAULT_ADDRESS, DEFAULT_BRIDGE_MINTS, DEFAULT_ORACLE_MAX_AGE, DEFAULT_REPAY_ALL_EXTRA_BUFFER_BPS, DISABLED_FLAG, EMPTY_BALANCE_THRESHOLD, EXECUTION_HEADROOM_SECONDS, type EmodeEntry, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, type EmodeImpact, EmodeImpactStatus, type EmodePair, EmodeSettings, type EmodeSettingsDto, type EmodeSettingsType, EmodeTag, type Environment, FLASHLOAN_ENABLED_FLAG, type FlashloanActionResult, type FlashloanBudgetIx, type FlashloanPrecheckResult, type FlashloanSwapConstraints, type GetAssetWeightParams, type GetBalanceUsdValueWithPriceBiasParams, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, HealthCacheSimulationError, HealthCacheStatus, type HealthCacheType, type HealthCacheTypeDto, type InterestRateConfig, type InterestRateConfigDto, type InterestRateConfigOpt, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, KAMINO_MARKET_EMERGENCY_FLAG, LST_MINT, type LoopFlashloanDescriptor, MARGINFI_PROGRAM, MARGINFI_PROGRAM_STAGING, MARGINFI_PROGRAM_STAGING_ALT, MARGINFI_SPONSORED_SHARD_ID, MAX_ACCOUNT_LOCKS, MAX_BALANCES, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_COSTLY_POSITIONS, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeBeginFlashLoanIxParams, type MakeBorrowIxOpts, type MakeBorrowIxParams, type MakeBorrowTxParams, type MakeBridgedLoopTxParams, type MakeBridgedSwapCollateralTxParams, type MakeBridgedSwapDebtTxParams, type MakeBridgedTxParams, type MakeBulkRepayTxParams, type MakeBulkWithdrawTxParams, type MakeCloseAccountIxOpts, type MakeCloseAccountIxParams, type MakeCloseAccountTxParams, type MakeCloseOrderIxOpts, type MakeCloseOrderIxParams, type MakeCloseOrderTxParams, type MakeCreateAccountIxOpts, type MakeCreateAccountIxParams, type MakeCreateAccountTxParams, type MakeCreateMissingAtaIxsParams, type MakeDepositIxOpts, type MakeDepositIxParams, type MakeDepositTxParams, type MakeEndFlashLoanIxParams, type MakeFlashLoanTxParams, type MakeLoopTxParams, type MakeMergeStakeAccountsTxParams, type MakeMintStakedLstIxParams, type MakeMintStakedLstTxParams, type MakeOrderChangesIxsParams, type MakeOrderChangesTxParams, type MakePlaceOrderIxOpts, type MakePlaceOrderIxParams, type MakePlaceOrderTxParams, type MakePremiumRefreshIxsParams, type MakePulseHealthIxOpts, type MakePulseHealthIxParams, type MakeRedeemStakedLstIxParams, type MakeRedeemStakedLstTxParams, type MakeRepayIxOpts, type MakeRepayIxParams, type MakeRepayTxParams, type MakeRepayWithCollatTxParams, type MakeRollPtTxParams, type MakeSwapCollateralTxParams, type MakeSwapDebtTxParams, type MakeTransferAccountIxOpts, type MakeTransferAccountIxParams, type MakeTransferAccountTxParams, type MakeTransferPositionsTxParams, type MakeUpdateOrderTxParams, type MakeVaultCompleteWithdrawalIxParams, type MakeVaultCompleteWithdrawalTxParams, type MakeVaultDepositIxParams, type MakeVaultDepositTxParams, type MakeVaultDepositWithSwapTxParams, type MakeVaultWithdrawIxParams, type MakeVaultWithdrawTxParams, type MakeWithdrawIxOpts, type MakeWithdrawIxParams, type MakeWithdrawTxParams, MarginRequirementType, MarginfiAccount, type MarginfiAccountType, type MarginfiAccountTypeDto, MarginfiAccountWrapper, MarginfiGroup, type MarginfiGroupType, type MarginfiGroupTypeDto, type MintAuthorityBalance, type MintData, type MintDataMap, type MultiplierAccountState, type MultiplierAccountStates, OperationalState, type OracleConfigOpt, type OracleMultiplierBankInput, type OracleMultiplierServiceOpts, type OraclePrice, type OraclePriceDto, type OraclePriceMap, OracleSetup, type OracleSourceKey, type OrderChangesParams, type OrderTrigger, type OrderTriggerKind, type OrderTriggerParams, type 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, PREMIUM_ACTIVE_FLAG, PRIORITY_TX_SIZE, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, type PremiumAction, type PremiumCollateralBreakdown, type PremiumEntry, type PremiumImpact, type PremiumRefreshParams, type PrependOrderClosesParams, PriceBias, type PriceWithConfidence, type PriceWithConfidenceDto, Project0Client, type Project0Config, Project0ConfigRaw, type ProviderSwapRoute, type PythOracleServiceOpts, type RateLimitWindowDto, type RateLimitWindowType, type RatePoint, type RatePointDto, type ResolvedPinnedSwapRoute, RiskTier, type RollPtOpts, type RollQuoteSimResult, type RollQuoteSimulator, type RollQuoteTokenBalance, SECONDS_PER_YEAR, SEND_PIPELINE_ROOM, SINGLE_POOL_PROGRAM_ID, SIZING_BLOCKHASH, STAKED_ORACLE_DISABLED_FLAG, STAKED_ORACLE_USES_ONRAMP_FLAG, STAKE_ACCOUNT_SIZE, 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 SimulateAccountHealthCacheWithFallbackParams, type SimulationResultRaw, type SolanaTransaction, type StakedBankMetadata, type SwapAdapter, type SwapApiConfig, type SwapCandidate, type SwapEngineRequest, type SwapEngineResult, type SwapEngineRunner, type SwapFlowRpc, type SwapFlowTxParams, type SwapFlowTxResult, type SwapOpts, SwapProvider, type SwapProviderConfig, type SwapProviderEntry, type SwapQuoteResult, TOKEN_2022_PROGRAM_ID, TRANSFER_ACCOUNT_AUTHORITY_FLAG, type TransactionBuilderResult, TransactionBuildingError, TransactionBuildingErrorCode, type TransactionBuildingErrorDetails, TransactionConfigMap, type TransactionFormat, TransactionType, type TransferPositionSide, type TransferPositionsResult, type TxFootprint, type TypedAmount, U64_MAX, USDC_DECIMALS, USDC_MINT, USDT_MINT, V1_TRANSACTION_CONFIG, VENUE_AVAILABLE_LIQUIDITY_BUFFER, WSOL_MINT, type WrapSolOpts, type WrappedI80F48, ZERO_ORACLE_KEY, addOracleToBanksIx, adjustPriceComponent, appendPremiumRefresh, aprToApy, apyToApr, balanceToDto, bigNumberToWrappedI80F48, bpsToPercentile, buildCollateralLegIxs, buildOrderTrigger, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, classifyAndValidate, compareAddressBytes, compileFlashloanPrecheck, composeRemainingAccounts, computeAccountValue, computeAccrualProjectionSeconds, computeActiveEmodePairs, computeAssetHealthComponent, computeAssetUsdValue, 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, computeHealthAccounts, computeHealthCacheStatus, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeInterestRates, computeLiabilityHealthComponent, computeLiabilityUsdValue, computeLiquidationPriceForBank, computeLoopingParams, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxDepositForBank, computeMaxLeverage, computeMaxWithdrawForBank, computeNetApy, computeOracleMultiplier, computeOracleMultipliers, computeOrderPairNetValue, computePremiumBreakdown, computePremiumImpact, computePremiumRatesByBank, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computePtMultiplier, computeQuantity, computeQuantityUi, computeRateLimitWindowRemainingCapacity, computeRateLimiterRemainingCapacity, computeRemainingCapacity, computeStakedBankMultipliers, computeTvl, computeUsdValue, computeUtilizationRate, computeVenueAvailableLiquidity, configureScopeOracleIx, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeBank, decodeMarginfiAccount, decodeMultiplierAccount, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, deriveOrderPda, deserializeInstruction, deserializeSwapEngineRequest, deserializeSwapEngineResult, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankRateLimiter, dtoToEmodeSettings, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, exceedsCostlyPositionLimit, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchGammaLpVault, fetchGammaWithdrawReceipt, fetchGlobalFeeWallet, fetchMarginfiAccountActiveBalancesForBank, fetchMarginfiAccountAddresses, fetchMarginfiAccountAddressesHoldingBank, fetchMultipleBanks, fetchMultiplierAccountStates, fetchMultiplierAccountStatesFromAPI, fetchOracleData, fetchOracleMultipliers, fetchOracleMultipliersFromAPI, fetchOracleMultipliersFromChain, fetchOrderFees, fetchOrdersForAccount, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchScopeOracleData, fetchScopeOraclePricesFromAPI, fetchScopeOraclePricesFromChain, filterRouteSetupIxs, findRandomAvailableAccountIndex, fitsInOneTransaction, freezeBankConfigIx, generateDummyMarginfiAccount, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getAssetWeight, getBalance, getBalanceUsdValueWithPriceBias, getConfig, getEffectiveDepositLimit, getEmodePairs, getFallbackPricesByFeedId, getFallbackPricesForMints, getHealthCacheStatusDescription, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getOracleMultiplierBankInput, getOracleSourceFromBank, getOracleSourceFromOracleSetup, getOracleSourceNameFromKey, getPrice, getPriceWithConfidence, getStakedBankMetadataMap, getSwapAdapter, getTotalAccountKeys, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, getValidatorVoteAccountByBank, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isBorrowLimitActive, isBridgeConflictError, isCostlyBank, isDecomposableSwapError, isDepositIx, isDepositLimitActive, isFlashloan, isGroupRateLimiterEnabled, isStandardBorrowable, isStandardDepositable, isWeightedPrice, isWholePosition, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx, makeBorrowIx, makeBorrowTx, makeBridgedLoopTx, makeBridgedSwapCollateralTx, makeBridgedSwapDebtTx, makeBridgedTx, makeBulkRepayTx, makeBulkWithdrawTx, makeBundleTipIx, makeCloseAccountIx, makeCloseAccountTx, makeCloseOrderIx, makeCloseOrderTx, makeCreateAccountIx, makeCreateAccountIxWithProjection, makeCreateAccountTx, makeCreateAccountTxWithProjection, makeCreateMissingAtaIxs, makeDepositIx, makeDepositTx, makeEndFlashLoanIx, makeFlashLoanTx, makeLoopTx, makeMergeStakeAccountsTx, makeMintStakedLstIx, makeMintStakedLstTx, makeOrderChangesIxs, makeOrderChangesTx, makePlaceOrderIx, makePlaceOrderTx, makePoolAddBankIx, makePoolConfigureBankGovIx, makePoolConfigureBankIx, makePreludeTxs, makePremiumRefreshIxs, makePriorityFeeMicroIx, makePulseHealthIx, makeRedeemStakedLstIx, makeRedeemStakedLstTx, makeRefreshIntegrationBanksIxs, makeRefreshKaminoBanksIxs, makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeRollPtTx, makeSwapCollateralTx, makeSwapDebtTx, makeTransactionMessage, makeTransferAccountIx, makeTransferAccountTx, makeTransferPositionsTx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateOrderTx, makeVaultCompleteWithdrawalIx, makeVaultCompleteWithdrawalTx, makeVaultDepositIx, makeVaultDepositTx, makeVaultDepositWithSwapTx, makeVaultWithdrawIx, makeVaultWithdrawTx, makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapPythBanksToOraclePrices, marginfiAccountToDto, maxSlippageU32ToPercent, nativeToUi, needsPremiumRefresh, oraclePriceToDto, parseEmodeTag, parseOraclePriceData as parsePriceInfo, parseRpcPythPriceData, patchDepositAmount, percentToMaxSlippageU32, prependOrderCloses, rateFromU32, requireBank, requireTokenProgram, resolveAmount, resolveOrderLegs, resolvePinnedSwapRoute, resolveVaultTokenProgram, runSwapEngine, selectLutsForAccountAction, selectLutsForBanks, serializeInstruction, serializeSwapEngineRequest, serializeSwapEngineResult, setOraclePriceIx, shortenAddress, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, swapEngineProvidersFromOpts, swapEngineQuoteFieldsFromOpts, toAccountRole, toBankConfigDto, toBankDto, toBankRateLimiterDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toNumber, uiToNative, uiToNativeBigNumber, withKaminoReserveEmergency, withLookupTables, wrappedI80F48toBigNumber };
|
|
6700
|
+
export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_GROUP_NATIVE_STAKE, ADDRESS_LOOKUP_TABLE_FOR_SWAP, type AccountActiveBalanceForBank, AccountFlags, AccountType, type ActionEmodeImpact, type ActionTxParams, type ActiveEmodePair, type AddBankConfig, type Amount, type AmountType, type AppendPremiumRefreshParams, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceType, type BalanceTypeDto, Bank, type BankAddress, BankConfig, type BankConfigDto, type BankConfigFastOpt, BankConfigFlag, type BankConfigGovOpt, type BankConfigOpt, type BankConfigType, type BankIntegrationMetadata, type BankIntegrationMetadataMap, type BankMap, type BankMetadata, type BankMetrics, type BankOutflowRateLimit, type BankRateLimiterDto, type BankRateLimiterType, type BankType, type BankTypeDto, type BankVenueStates, type BridgeLeg, type BridgeOpts, type BridgedTxResult, type BuildContext, type BulkLendTxsResult, CIRCUIT_BREAKER_ENABLED_FLAG, type ClassifiedPosition, type ComputeAssetHealthComponentParams, type ComputeAssetUsdValueParams, type ComputeBalanceUsdValueParams, type ComputeBankMetricsParams, type ComputeFreeCollateralFromBalancesParams, type ComputeHealthCacheStatusParams, type ComputeHealthComponentsFromBalancesParams, type ComputeLiabilityHealthComponentParams, type ComputeLiabilityUsdValueParams, type ComputeLiquidationPriceForBankParams, type ComputeMaxBorrowForBankParams, type ComputeMaxDepositForBankParams, type ComputeMaxWithdrawForBankParams, type ComputeNetApyParams, type ComputePremiumRatesParams, type ComputeUsdValueParams, ConfigRaw, DEFAULT_ADDRESS, DEFAULT_BRIDGE_MINTS, DEFAULT_ORACLE_MAX_AGE, DEFAULT_REPAY_ALL_EXTRA_BUFFER_BPS, DISABLED_FLAG, EMPTY_BALANCE_THRESHOLD, EXECUTION_HEADROOM_SECONDS, type EmodeEntry, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, type EmodeImpact, EmodeImpactStatus, type EmodePair, EmodeSettings, type EmodeSettingsDto, type EmodeSettingsType, EmodeTag, type Environment, FLASHLOAN_ENABLED_FLAG, type FlashloanActionResult, type FlashloanBudgetIx, type FlashloanPrecheckResult, type FlashloanSwapConstraints, type GetAssetWeightParams, type GetBalanceUsdValueWithPriceBiasParams, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, HealthCacheSimulationError, HealthCacheStatus, type HealthCacheType, type HealthCacheTypeDto, type InterestRateConfig, type InterestRateConfigDto, type InterestRateConfigOpt, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, KAMINO_MARKET_EMERGENCY_FLAG, LST_MINT, type LoopFlashloanDescriptor, MARGINFI_PROGRAM, MARGINFI_PROGRAM_STAGING, MARGINFI_PROGRAM_STAGING_ALT, MARGINFI_SPONSORED_SHARD_ID, MAX_ACCOUNT_LOCKS, MAX_BALANCES, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_COSTLY_POSITIONS, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeBeginFlashLoanIxParams, type MakeBorrowIxOpts, type MakeBorrowIxParams, type MakeBorrowTxParams, type MakeBridgedLoopTxParams, type MakeBridgedSwapCollateralTxParams, type MakeBridgedSwapDebtTxParams, type MakeBridgedTxParams, type MakeBulkRepayTxParams, type MakeBulkWithdrawTxParams, type MakeCloseAccountIxOpts, type MakeCloseAccountIxParams, type MakeCloseAccountTxParams, type MakeCloseOrderIxOpts, type MakeCloseOrderIxParams, type MakeCloseOrderTxParams, type MakeCreateAccountIxOpts, type MakeCreateAccountIxParams, type MakeCreateAccountTxParams, type MakeCreateMissingAtaIxsParams, type MakeDepositIxOpts, type MakeDepositIxParams, type MakeDepositTxParams, type MakeEndFlashLoanIxParams, type MakeFlashLoanTxParams, type MakeLoopTxParams, type MakeMergeStakeAccountsTxParams, type MakeMintStakedLstIxParams, type MakeMintStakedLstTxParams, type MakeOrderChangesIxsParams, type MakeOrderChangesTxParams, type MakePlaceOrderIxOpts, type MakePlaceOrderIxParams, type MakePlaceOrderTxParams, type MakePremiumRefreshIxsParams, type MakePulseHealthIxOpts, type MakePulseHealthIxParams, type MakeRedeemStakedLstIxParams, type MakeRedeemStakedLstTxParams, type MakeRepayIxOpts, type MakeRepayIxParams, type MakeRepayTxParams, type MakeRepayWithCollatTxParams, type MakeRollPtTxParams, type MakeSwapCollateralTxParams, type MakeSwapDebtTxParams, type MakeTransferAccountIxOpts, type MakeTransferAccountIxParams, type MakeTransferAccountTxParams, type MakeTransferPositionsTxParams, type MakeUpdateOrderTxParams, type MakeVaultCompleteWithdrawalIxParams, type MakeVaultCompleteWithdrawalTxParams, type MakeVaultDepositIxParams, type MakeVaultDepositTxParams, type MakeVaultDepositWithSwapTxParams, type MakeVaultWithdrawIxParams, type MakeVaultWithdrawTxParams, type MakeWithdrawIxOpts, type MakeWithdrawIxParams, type MakeWithdrawTxParams, MarginRequirementType, MarginfiAccount, type MarginfiAccountType, type MarginfiAccountTypeDto, MarginfiAccountWrapper, MarginfiGroup, type MarginfiGroupType, type MarginfiGroupTypeDto, type MintAuthorityBalance, type MintData, type MintDataMap, type MultiplierAccountState, type MultiplierAccountStates, OperationalState, type OracleConfigOpt, type OracleMultiplierBankInput, type OracleMultiplierServiceOpts, type OraclePrice, type OraclePriceDto, type OraclePriceMap, OracleSetup, type OracleSourceKey, type OrderChangesParams, type OrderTrigger, type OrderTriggerKind, type OrderTriggerParams, type 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, PREMIUM_ACTIVE_FLAG, PRIORITY_TX_SIZE, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, type PremiumAction, type PremiumCollateralBreakdown, type PremiumEntry, type PremiumImpact, type PremiumRefreshParams, type PrependOrderClosesParams, PriceBias, type PriceWithConfidence, type PriceWithConfidenceDto, Project0Client, type Project0Config, Project0ConfigRaw, type ProviderSwapRoute, type PythOracleServiceOpts, type RateLimitWindowDto, type RateLimitWindowType, type RatePoint, type RatePointDto, type ResolvedPinnedSwapRoute, RiskTier, type RollPtOpts, type RollQuoteSimResult, type RollQuoteSimulator, type RollQuoteTokenBalance, SECONDS_PER_YEAR, SEND_PIPELINE_ROOM, SINGLE_POOL_PROGRAM_ID, SIZING_BLOCKHASH, STAKED_ORACLE_DISABLED_FLAG, STAKED_ORACLE_USES_ONRAMP_FLAG, STAKE_ACCOUNT_SIZE, 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 SimulateAccountHealthCacheWithFallbackParams, type SimulationResultRaw, type SolanaTransaction, type StakedBankMetadata, type SwapAdapter, type SwapApiConfig, type SwapCandidate, type SwapEngineRequest, type SwapEngineResult, type SwapEngineRunner, type SwapFlowRpc, type SwapFlowTxParams, type SwapFlowTxResult, type SwapOpts, SwapProvider, type SwapProviderConfig, type SwapProviderEntry, type SwapQuoteResult, TOKEN_2022_PROGRAM_ID, TRANSFER_ACCOUNT_AUTHORITY_FLAG, type TransactionBuilderResult, TransactionBuildingError, TransactionBuildingErrorCode, type TransactionBuildingErrorDetails, TransactionConfigMap, type TransactionFormat, TransactionType, type TransferPositionSide, type TransferPositionsResult, type TxFootprint, type TypedAmount, U64_MAX, USDC_DECIMALS, USDC_MINT, USDT_MINT, V1_TRANSACTION_CONFIG, VENUE_AVAILABLE_LIQUIDITY_BUFFER, WSOL_MINT, type WrapSolOpts, type WrappedI80F48, ZERO_ORACLE_KEY, addOracleToBanksIx, adjustPriceComponent, appendPremiumRefresh, aprToApy, apyToApr, balanceToDto, bigNumberToWrappedI80F48, bpsToPercentile, buildCollateralLegIxs, buildOrderTrigger, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, classifyAndValidate, compareAddressBytes, compileFlashloanPrecheck, composeRemainingAccounts, computeAccountValue, computeAccrualProjectionSeconds, computeActiveEmodePairs, computeAssetHealthComponent, computeAssetUsdValue, 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, computeHealthAccounts, computeHealthCacheStatus, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeInterestRates, computeLiabilityHealthComponent, computeLiabilityUsdValue, computeLiquidationPriceForBank, computeLoopingParams, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxDepositForBank, computeMaxLeverage, computeMaxWithdrawForBank, computeNetApy, computeOracleMultiplier, computeOracleMultipliers, computeOrderPairNetValue, computePremiumBreakdown, computePremiumImpact, computePremiumRatesByBank, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computePtMultiplier, computeQuantity, computeQuantityUi, computeRateLimitWindowRemainingCapacity, computeRateLimiterRemainingCapacity, computeRemainingCapacity, computeStakedBankMultipliers, computeTvl, computeUsdValue, computeUtilizationRate, computeVenueAvailableLiquidity, configureScopeOracleIx, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeBank, decodeMarginfiAccount, decodeMultiplierAccount, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, deriveOrderPda, deserializeInstruction, deserializeSwapEngineRequest, deserializeSwapEngineResult, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankRateLimiter, dtoToEmodeSettings, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, exceedsCostlyPositionLimit, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchGammaLpVault, fetchGammaWithdrawReceipt, fetchGlobalFeeWallet, fetchMarginfiAccountActiveBalancesForBank, fetchMarginfiAccountAddresses, fetchMarginfiAccountAddressesHoldingBank, fetchMultipleBanks, fetchMultiplierAccountStates, fetchMultiplierAccountStatesFromAPI, fetchOracleData, fetchOracleMultipliers, fetchOracleMultipliersFromAPI, fetchOracleMultipliersFromChain, fetchOrderFees, fetchOrdersForAccount, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchScopeOracleData, fetchScopeOraclePricesFromAPI, fetchScopeOraclePricesFromChain, filterRouteSetupIxs, findRandomAvailableAccountIndex, fitsInOneTransaction, freezeBankConfigIx, generateDummyMarginfiAccount, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getAssetWeight, getBalance, getBalanceUsdValueWithPriceBias, getBankLiquidationFees, getConfig, getEffectiveDepositLimit, getEmodePairs, getFallbackPricesByFeedId, getFallbackPricesForMints, getHealthCacheStatusDescription, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getOracleMultiplierBankInput, getOracleSourceFromBank, getOracleSourceFromOracleSetup, getOracleSourceNameFromKey, getPrice, getPriceWithConfidence, getStakedBankMetadataMap, getSwapAdapter, getTotalAccountKeys, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, getValidatorVoteAccountByBank, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isBankCircuitBreakerHalted, isBorrowLimitActive, isBridgeConflictError, isCostlyBank, isDecomposableSwapError, isDepositIx, isDepositLimitActive, isFlashloan, isGroupRateLimiterEnabled, isStandardBorrowable, isStandardDepositable, isWeightedPrice, isWholePosition, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx, makeBorrowIx, makeBorrowTx, makeBridgedLoopTx, makeBridgedSwapCollateralTx, makeBridgedSwapDebtTx, makeBridgedTx, makeBulkRepayTx, makeBulkWithdrawTx, makeBundleTipIx, makeCloseAccountIx, makeCloseAccountTx, makeCloseOrderIx, makeCloseOrderTx, makeCreateAccountIx, makeCreateAccountIxWithProjection, makeCreateAccountTx, makeCreateAccountTxWithProjection, makeCreateMissingAtaIxs, makeDepositIx, makeDepositTx, makeEndFlashLoanIx, makeFlashLoanTx, makeLoopTx, makeMergeStakeAccountsTx, makeMintStakedLstIx, makeMintStakedLstTx, makeOrderChangesIxs, makeOrderChangesTx, makePlaceOrderIx, makePlaceOrderTx, makePoolAddBankIx, makePoolConfigureBankGovIx, makePoolConfigureBankIx, makePreludeTxs, makePremiumRefreshIxs, makePriorityFeeMicroIx, makePulseHealthIx, makeRedeemStakedLstIx, makeRedeemStakedLstTx, makeRefreshIntegrationBanksIxs, makeRefreshKaminoBanksIxs, makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeRollPtTx, makeSwapCollateralTx, makeSwapDebtTx, makeTransactionMessage, makeTransferAccountIx, makeTransferAccountTx, makeTransferPositionsTx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateOrderTx, makeVaultCompleteWithdrawalIx, makeVaultCompleteWithdrawalTx, makeVaultDepositIx, makeVaultDepositTx, makeVaultDepositWithSwapTx, makeVaultWithdrawIx, makeVaultWithdrawTx, makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapPythBanksToOraclePrices, marginfiAccountToDto, maxSlippageU32ToPercent, nativeToUi, needsPremiumRefresh, oraclePriceToDto, parseEmodeTag, parseOraclePriceData as parsePriceInfo, parseRpcPythPriceData, patchDepositAmount, percentToMaxSlippageU32, prependOrderCloses, rateFromU32, requireBank, requireTokenProgram, resolveAmount, resolveOrderLegs, resolvePinnedSwapRoute, resolveVaultTokenProgram, runSwapEngine, selectLutsForAccountAction, selectLutsForBanks, serializeInstruction, serializeSwapEngineRequest, serializeSwapEngineResult, setOraclePriceIx, shortenAddress, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, swapEngineProvidersFromOpts, swapEngineQuoteFieldsFromOpts, toAccountRole, toBankConfigDto, toBankDto, toBankRateLimiterDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toNumber, uiToNative, uiToNativeBigNumber, withKaminoReserveEmergency, withLookupTables, wrappedI80F48toBigNumber };
|