@0dotxyz/p0-ts-sdk 3.0.0-next.0 → 3.0.0-next.1
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 +64 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -3
- package/dist/index.d.ts +52 -3
- package/dist/index.js +62 -9
- 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;
|
|
@@ -4572,6 +4596,15 @@ declare function getAssetWeight(params: GetAssetWeightParams): BigNumber;
|
|
|
4572
4596
|
* ```
|
|
4573
4597
|
*/
|
|
4574
4598
|
declare function getLiabilityWeight(config: BankConfigType, marginRequirementType: MarginRequirementType): BigNumber;
|
|
4599
|
+
/**
|
|
4600
|
+
* The liquidator's and insurance fund's cuts of a classic liquidation against `bank`'s
|
|
4601
|
+
* liability, as fractions (0.025 = 2.5%). Mirrors `Bank::liquidator_fee` / `insurance_fee`: a
|
|
4602
|
+
* stored 0 means the program's 2.5% default.
|
|
4603
|
+
*/
|
|
4604
|
+
declare function getBankLiquidationFees(bank: BankType): {
|
|
4605
|
+
liquidatorFee: BigNumber;
|
|
4606
|
+
insuranceFee: BigNumber;
|
|
4607
|
+
};
|
|
4575
4608
|
/**
|
|
4576
4609
|
* Configuration for computing USD value from token quantity
|
|
4577
4610
|
*/
|
|
@@ -4844,6 +4877,12 @@ declare function isStandardBorrowable(bank: BankType): boolean;
|
|
|
4844
4877
|
* picking a bank to *deposit* into (e.g. the bridge bank for a collateral-swap double-hop).
|
|
4845
4878
|
*/
|
|
4846
4879
|
declare function isStandardDepositable(bank: BankType): boolean;
|
|
4880
|
+
/**
|
|
4881
|
+
* Whether the bank's oracle circuit breaker has tripped and its halt is still running at
|
|
4882
|
+
* `nowSeconds`, blocking risk-increasing actions. Mirrors `Bank::is_cb_halted`. A permanent halt
|
|
4883
|
+
* shows as `OperationalState.CircuitBroken` instead.
|
|
4884
|
+
*/
|
|
4885
|
+
declare function isBankCircuitBreakerHalted(bank: BankType, nowSeconds: number): boolean;
|
|
4847
4886
|
/** Mirrors the program's `SECONDS_PER_YEAR` (365 days, no leap adjustment). */
|
|
4848
4887
|
declare const SECONDS_PER_YEAR: number;
|
|
4849
4888
|
/**
|
|
@@ -5329,6 +5368,11 @@ declare class Bank implements BankType {
|
|
|
5329
5368
|
readonly premiumActive: boolean;
|
|
5330
5369
|
readonly premiumActivatedAt: number;
|
|
5331
5370
|
readonly kaminoEmergency: boolean;
|
|
5371
|
+
readonly liquidationLiquidatorFee: number;
|
|
5372
|
+
readonly liquidationInsuranceFee: number;
|
|
5373
|
+
readonly isCircuitBreakerEnabled: boolean;
|
|
5374
|
+
readonly cbTier: number;
|
|
5375
|
+
readonly cbHaltEndedAt: number;
|
|
5332
5376
|
readonly stakedOracleDisabled?: boolean | undefined;
|
|
5333
5377
|
readonly stakedOracleUsesOnramp?: boolean | undefined;
|
|
5334
5378
|
readonly rateLimiter?: BankRateLimiterType | undefined;
|
|
@@ -5357,7 +5401,7 @@ declare class Bank implements BankType {
|
|
|
5357
5401
|
readonly lendingPositionCount?: BigNumber | undefined;
|
|
5358
5402
|
readonly borrowingPositionCount?: BigNumber | undefined;
|
|
5359
5403
|
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?: {
|
|
5404
|
+
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
5405
|
kaminoReserve: Address;
|
|
5362
5406
|
kaminoObligation: Address;
|
|
5363
5407
|
} | undefined, driftIntegrationAccounts?: {
|
|
@@ -5456,9 +5500,12 @@ declare class BankConfig implements BankConfigType {
|
|
|
5456
5500
|
readonly operationalState: OperationalState;
|
|
5457
5501
|
readonly oracleMaxConfidence: number;
|
|
5458
5502
|
readonly fixedPrice: BigNumber;
|
|
5503
|
+
readonly cbWindowMaxUpBps: number;
|
|
5504
|
+
readonly cbWindowMaxDownBps: number;
|
|
5505
|
+
readonly cbWindowSeconds: number;
|
|
5459
5506
|
readonly configFlags?: BankConfigFlag | undefined;
|
|
5460
5507
|
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);
|
|
5508
|
+
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
5509
|
}
|
|
5463
5510
|
|
|
5464
5511
|
type MintData = {
|
|
@@ -6041,6 +6088,8 @@ declare const TRANSFER_ACCOUNT_AUTHORITY_FLAG: number;
|
|
|
6041
6088
|
declare const STAKED_ORACLE_DISABLED_FLAG: number;
|
|
6042
6089
|
/** Bank flags bit 10: staked oracle pricing includes the SPL single-pool on-ramp in NAV */
|
|
6043
6090
|
declare const STAKED_ORACLE_USES_ONRAMP_FLAG: number;
|
|
6091
|
+
/** Bank flags bit 11: the per-bank oracle circuit breaker is enabled (0.1.10) */
|
|
6092
|
+
declare const CIRCUIT_BREAKER_ENABLED_FLAG: number;
|
|
6044
6093
|
/** Bank flags bit 13: liabilities in this bank accrue the variable borrow premium */
|
|
6045
6094
|
declare const PREMIUM_ACTIVE_FLAG: number;
|
|
6046
6095
|
/** Bank flags bit 14: the Kamino bank's lending market is in emergency mode (zero initial weight) */
|
|
@@ -6642,4 +6691,4 @@ declare class MarginfiAccountWrapper {
|
|
|
6642
6691
|
getClient(): Project0Client;
|
|
6643
6692
|
}
|
|
6644
6693
|
|
|
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 };
|
|
6694
|
+
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;
|
|
@@ -4572,6 +4596,15 @@ declare function getAssetWeight(params: GetAssetWeightParams): BigNumber;
|
|
|
4572
4596
|
* ```
|
|
4573
4597
|
*/
|
|
4574
4598
|
declare function getLiabilityWeight(config: BankConfigType, marginRequirementType: MarginRequirementType): BigNumber;
|
|
4599
|
+
/**
|
|
4600
|
+
* The liquidator's and insurance fund's cuts of a classic liquidation against `bank`'s
|
|
4601
|
+
* liability, as fractions (0.025 = 2.5%). Mirrors `Bank::liquidator_fee` / `insurance_fee`: a
|
|
4602
|
+
* stored 0 means the program's 2.5% default.
|
|
4603
|
+
*/
|
|
4604
|
+
declare function getBankLiquidationFees(bank: BankType): {
|
|
4605
|
+
liquidatorFee: BigNumber;
|
|
4606
|
+
insuranceFee: BigNumber;
|
|
4607
|
+
};
|
|
4575
4608
|
/**
|
|
4576
4609
|
* Configuration for computing USD value from token quantity
|
|
4577
4610
|
*/
|
|
@@ -4844,6 +4877,12 @@ declare function isStandardBorrowable(bank: BankType): boolean;
|
|
|
4844
4877
|
* picking a bank to *deposit* into (e.g. the bridge bank for a collateral-swap double-hop).
|
|
4845
4878
|
*/
|
|
4846
4879
|
declare function isStandardDepositable(bank: BankType): boolean;
|
|
4880
|
+
/**
|
|
4881
|
+
* Whether the bank's oracle circuit breaker has tripped and its halt is still running at
|
|
4882
|
+
* `nowSeconds`, blocking risk-increasing actions. Mirrors `Bank::is_cb_halted`. A permanent halt
|
|
4883
|
+
* shows as `OperationalState.CircuitBroken` instead.
|
|
4884
|
+
*/
|
|
4885
|
+
declare function isBankCircuitBreakerHalted(bank: BankType, nowSeconds: number): boolean;
|
|
4847
4886
|
/** Mirrors the program's `SECONDS_PER_YEAR` (365 days, no leap adjustment). */
|
|
4848
4887
|
declare const SECONDS_PER_YEAR: number;
|
|
4849
4888
|
/**
|
|
@@ -5329,6 +5368,11 @@ declare class Bank implements BankType {
|
|
|
5329
5368
|
readonly premiumActive: boolean;
|
|
5330
5369
|
readonly premiumActivatedAt: number;
|
|
5331
5370
|
readonly kaminoEmergency: boolean;
|
|
5371
|
+
readonly liquidationLiquidatorFee: number;
|
|
5372
|
+
readonly liquidationInsuranceFee: number;
|
|
5373
|
+
readonly isCircuitBreakerEnabled: boolean;
|
|
5374
|
+
readonly cbTier: number;
|
|
5375
|
+
readonly cbHaltEndedAt: number;
|
|
5332
5376
|
readonly stakedOracleDisabled?: boolean | undefined;
|
|
5333
5377
|
readonly stakedOracleUsesOnramp?: boolean | undefined;
|
|
5334
5378
|
readonly rateLimiter?: BankRateLimiterType | undefined;
|
|
@@ -5357,7 +5401,7 @@ declare class Bank implements BankType {
|
|
|
5357
5401
|
readonly lendingPositionCount?: BigNumber | undefined;
|
|
5358
5402
|
readonly borrowingPositionCount?: BigNumber | undefined;
|
|
5359
5403
|
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?: {
|
|
5404
|
+
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
5405
|
kaminoReserve: Address;
|
|
5362
5406
|
kaminoObligation: Address;
|
|
5363
5407
|
} | undefined, driftIntegrationAccounts?: {
|
|
@@ -5456,9 +5500,12 @@ declare class BankConfig implements BankConfigType {
|
|
|
5456
5500
|
readonly operationalState: OperationalState;
|
|
5457
5501
|
readonly oracleMaxConfidence: number;
|
|
5458
5502
|
readonly fixedPrice: BigNumber;
|
|
5503
|
+
readonly cbWindowMaxUpBps: number;
|
|
5504
|
+
readonly cbWindowMaxDownBps: number;
|
|
5505
|
+
readonly cbWindowSeconds: number;
|
|
5459
5506
|
readonly configFlags?: BankConfigFlag | undefined;
|
|
5460
5507
|
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);
|
|
5508
|
+
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
5509
|
}
|
|
5463
5510
|
|
|
5464
5511
|
type MintData = {
|
|
@@ -6041,6 +6088,8 @@ declare const TRANSFER_ACCOUNT_AUTHORITY_FLAG: number;
|
|
|
6041
6088
|
declare const STAKED_ORACLE_DISABLED_FLAG: number;
|
|
6042
6089
|
/** Bank flags bit 10: staked oracle pricing includes the SPL single-pool on-ramp in NAV */
|
|
6043
6090
|
declare const STAKED_ORACLE_USES_ONRAMP_FLAG: number;
|
|
6091
|
+
/** Bank flags bit 11: the per-bank oracle circuit breaker is enabled (0.1.10) */
|
|
6092
|
+
declare const CIRCUIT_BREAKER_ENABLED_FLAG: number;
|
|
6044
6093
|
/** Bank flags bit 13: liabilities in this bank accrue the variable borrow premium */
|
|
6045
6094
|
declare const PREMIUM_ACTIVE_FLAG: number;
|
|
6046
6095
|
/** Bank flags bit 14: the Kamino bank's lending market is in emergency mode (zero initial weight) */
|
|
@@ -6642,4 +6691,4 @@ declare class MarginfiAccountWrapper {
|
|
|
6642
6691
|
getClient(): Project0Client;
|
|
6643
6692
|
}
|
|
6644
6693
|
|
|
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 };
|
|
6694
|
+
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.js
CHANGED
|
@@ -89,6 +89,7 @@ var FLASHLOAN_ENABLED_FLAG = 1 << 2;
|
|
|
89
89
|
var TRANSFER_ACCOUNT_AUTHORITY_FLAG = 1 << 3;
|
|
90
90
|
var STAKED_ORACLE_DISABLED_FLAG = 1 << 9;
|
|
91
91
|
var STAKED_ORACLE_USES_ONRAMP_FLAG = 1 << 10;
|
|
92
|
+
var CIRCUIT_BREAKER_ENABLED_FLAG = 1 << 11;
|
|
92
93
|
var PREMIUM_ACTIVE_FLAG = 1 << 13;
|
|
93
94
|
var KAMINO_MARKET_EMERGENCY_FLAG = 1 << 14;
|
|
94
95
|
var MAX_COSTLY_POSITIONS = 4;
|
|
@@ -11056,6 +11057,11 @@ function toBankDto(bank) {
|
|
|
11056
11057
|
premiumActive: bank.premiumActive,
|
|
11057
11058
|
premiumActivatedAt: bank.premiumActivatedAt,
|
|
11058
11059
|
kaminoEmergency: bank.kaminoEmergency,
|
|
11060
|
+
liquidationLiquidatorFee: bank.liquidationLiquidatorFee,
|
|
11061
|
+
liquidationInsuranceFee: bank.liquidationInsuranceFee,
|
|
11062
|
+
isCircuitBreakerEnabled: bank.isCircuitBreakerEnabled,
|
|
11063
|
+
cbTier: bank.cbTier,
|
|
11064
|
+
cbHaltEndedAt: bank.cbHaltEndedAt,
|
|
11059
11065
|
rateLimiter: bank.rateLimiter ? toBankRateLimiterDto(bank.rateLimiter) : void 0,
|
|
11060
11066
|
tokenSymbol: bank.tokenSymbol,
|
|
11061
11067
|
feesDestinationAccount: bank.feesDestinationAccount,
|
|
@@ -11117,7 +11123,10 @@ function toBankConfigDto(bankConfig) {
|
|
|
11117
11123
|
configFlags: bankConfig.configFlags,
|
|
11118
11124
|
oracleMaxConfidence: bankConfig.oracleMaxConfidence,
|
|
11119
11125
|
fixedPrice: bankConfig.fixedPrice.toString(),
|
|
11120
|
-
scopeEntryIndex: bankConfig.scopeEntryIndex
|
|
11126
|
+
scopeEntryIndex: bankConfig.scopeEntryIndex,
|
|
11127
|
+
cbWindowMaxUpBps: bankConfig.cbWindowMaxUpBps,
|
|
11128
|
+
cbWindowMaxDownBps: bankConfig.cbWindowMaxDownBps,
|
|
11129
|
+
cbWindowSeconds: bankConfig.cbWindowSeconds
|
|
11121
11130
|
};
|
|
11122
11131
|
}
|
|
11123
11132
|
function toInterestRateConfigDto(interestRateConfig) {
|
|
@@ -11391,6 +11400,11 @@ function parseBankRaw(address23, accountParsed, bankMetadata) {
|
|
|
11391
11400
|
premiumActive,
|
|
11392
11401
|
premiumActivatedAt: Number(accountParsed.premiumActivatedAt),
|
|
11393
11402
|
kaminoEmergency: (flags & KAMINO_MARKET_EMERGENCY_FLAG) > 0,
|
|
11403
|
+
liquidationLiquidatorFee: accountParsed.liquidationLiquidatorFee,
|
|
11404
|
+
liquidationInsuranceFee: accountParsed.liquidationInsuranceFee,
|
|
11405
|
+
isCircuitBreakerEnabled: (flags & CIRCUIT_BREAKER_ENABLED_FLAG) > 0,
|
|
11406
|
+
cbTier: accountParsed.cbTier,
|
|
11407
|
+
cbHaltEndedAt: Number(accountParsed.cbHaltEndedAt),
|
|
11394
11408
|
rateLimiter,
|
|
11395
11409
|
tokenSymbol,
|
|
11396
11410
|
kaminoIntegrationAccounts,
|
|
@@ -11437,6 +11451,11 @@ function dtoToBank(bankDto) {
|
|
|
11437
11451
|
premiumActive: bankDto.premiumActive ?? false,
|
|
11438
11452
|
premiumActivatedAt: bankDto.premiumActivatedAt ?? 0,
|
|
11439
11453
|
kaminoEmergency: bankDto.kaminoEmergency ?? false,
|
|
11454
|
+
liquidationLiquidatorFee: bankDto.liquidationLiquidatorFee ?? 0,
|
|
11455
|
+
liquidationInsuranceFee: bankDto.liquidationInsuranceFee ?? 0,
|
|
11456
|
+
isCircuitBreakerEnabled: bankDto.isCircuitBreakerEnabled ?? false,
|
|
11457
|
+
cbTier: bankDto.cbTier ?? 0,
|
|
11458
|
+
cbHaltEndedAt: bankDto.cbHaltEndedAt ?? 0,
|
|
11440
11459
|
rateLimiter: bankDto.rateLimiter ? dtoToBankRateLimiter(bankDto.rateLimiter) : void 0,
|
|
11441
11460
|
tokenSymbol: bankDto.tokenSymbol,
|
|
11442
11461
|
feesDestinationAccount: bankDto.feesDestinationAccount ? address(bankDto.feesDestinationAccount) : void 0,
|
|
@@ -11514,7 +11533,10 @@ function dtoToBankConfig(bankConfigDto) {
|
|
|
11514
11533
|
interestRateConfig: dtoToInterestRateConfig(bankConfigDto.interestRateConfig),
|
|
11515
11534
|
oracleMaxConfidence: bankConfigDto.oracleMaxConfidence,
|
|
11516
11535
|
fixedPrice: new BigNumber(bankConfigDto.fixedPrice),
|
|
11517
|
-
scopeEntryIndex: bankConfigDto.scopeEntryIndex
|
|
11536
|
+
scopeEntryIndex: bankConfigDto.scopeEntryIndex,
|
|
11537
|
+
cbWindowMaxUpBps: bankConfigDto.cbWindowMaxUpBps ?? 0,
|
|
11538
|
+
cbWindowMaxDownBps: bankConfigDto.cbWindowMaxDownBps ?? 0,
|
|
11539
|
+
cbWindowSeconds: bankConfigDto.cbWindowSeconds ?? 0
|
|
11518
11540
|
};
|
|
11519
11541
|
}
|
|
11520
11542
|
function dtoToInterestRateConfig(interestRateConfigDto) {
|
|
@@ -11596,7 +11618,10 @@ function parseBankConfigRaw(bankConfigRaw) {
|
|
|
11596
11618
|
interestRateConfig,
|
|
11597
11619
|
oracleMaxConfidence,
|
|
11598
11620
|
fixedPrice,
|
|
11599
|
-
scopeEntryIndex
|
|
11621
|
+
scopeEntryIndex,
|
|
11622
|
+
cbWindowMaxUpBps: bankConfigRaw.cbWindowMaxUpBps,
|
|
11623
|
+
cbWindowMaxDownBps: bankConfigRaw.cbWindowMaxDownBps,
|
|
11624
|
+
cbWindowSeconds: bankConfigRaw.cbWindowSeconds
|
|
11600
11625
|
};
|
|
11601
11626
|
}
|
|
11602
11627
|
function parseRiskTier(riskTierRaw) {
|
|
@@ -15455,6 +15480,15 @@ function getLiabilityWeight(config, marginRequirementType) {
|
|
|
15455
15480
|
throw new Error("Invalid margin requirement type");
|
|
15456
15481
|
}
|
|
15457
15482
|
}
|
|
15483
|
+
var DEFAULT_LIQUIDATION_FEE = new BigNumber(0.025);
|
|
15484
|
+
var U32_MAX2 = 4294967295;
|
|
15485
|
+
function getBankLiquidationFees(bank) {
|
|
15486
|
+
const toFraction = (fee) => fee === 0 ? DEFAULT_LIQUIDATION_FEE : new BigNumber(fee).div(U32_MAX2);
|
|
15487
|
+
return {
|
|
15488
|
+
liquidatorFee: toFraction(bank.liquidationLiquidatorFee),
|
|
15489
|
+
insuranceFee: toFraction(bank.liquidationInsuranceFee)
|
|
15490
|
+
};
|
|
15491
|
+
}
|
|
15458
15492
|
function computeUsdValue(params) {
|
|
15459
15493
|
const {
|
|
15460
15494
|
bank,
|
|
@@ -15579,9 +15613,9 @@ function computeInterestRates(bank) {
|
|
|
15579
15613
|
const borrowingRate = baseInterestRate.times(new BigNumber(1).plus(rateFee)).plus(fixedFee);
|
|
15580
15614
|
return { lendingRate, borrowingRate };
|
|
15581
15615
|
}
|
|
15582
|
-
var
|
|
15616
|
+
var U32_MAX3 = 4294967295;
|
|
15583
15617
|
function rateFromU32(rate) {
|
|
15584
|
-
const ratio = new BigNumber(rate).div(
|
|
15618
|
+
const ratio = new BigNumber(rate).div(U32_MAX3);
|
|
15585
15619
|
return ratio.times(10);
|
|
15586
15620
|
}
|
|
15587
15621
|
function calculateRateBetweenPoints(startX, startY, endX, endY, targetX) {
|
|
@@ -15612,7 +15646,7 @@ function computeMultipointCurve(utilizationRate, zeroUtilRate, hundredUtilRate,
|
|
|
15612
15646
|
let prevUtil = new BigNumber(0);
|
|
15613
15647
|
let prevRate = zeroRate;
|
|
15614
15648
|
for (const point of nonPaddingPoints) {
|
|
15615
|
-
const pointUtil = new BigNumber(point.util).div(
|
|
15649
|
+
const pointUtil = new BigNumber(point.util).div(U32_MAX3);
|
|
15616
15650
|
const pointRate = rateFromU32(point.rate);
|
|
15617
15651
|
if (clampedUtilizationRate.lte(pointUtil)) {
|
|
15618
15652
|
return calculateRateBetweenPoints(
|
|
@@ -15682,6 +15716,9 @@ function isStandardDepositable(bank) {
|
|
|
15682
15716
|
const { assetTag, operationalState } = bank.config;
|
|
15683
15717
|
return (assetTag === 0 /* DEFAULT */ || assetTag === 1 /* SOL */) && operationalState === "Operational" /* Operational */;
|
|
15684
15718
|
}
|
|
15719
|
+
function isBankCircuitBreakerHalted(bank, nowSeconds) {
|
|
15720
|
+
return bank.isCircuitBreakerEnabled && bank.cbTier > 0 && nowSeconds < bank.cbHaltEndedAt;
|
|
15721
|
+
}
|
|
15685
15722
|
var SECONDS_PER_DAY = 24 * 60 * 60;
|
|
15686
15723
|
var SECONDS_PER_YEAR = SECONDS_PER_DAY * 365;
|
|
15687
15724
|
var EXECUTION_HEADROOM_SECONDS = 120;
|
|
@@ -23820,7 +23857,7 @@ async function makeVaultCompleteWithdrawalTx(params) {
|
|
|
23820
23857
|
|
|
23821
23858
|
// src/models/bank.ts
|
|
23822
23859
|
var Bank = class _Bank {
|
|
23823
|
-
constructor(address23, mint, mintDecimals, group, assetShareValue, liabilityShareValue, liquidityVault, liquidityVaultBump, liquidityVaultAuthorityBump, insuranceVault, insuranceVaultBump, insuranceVaultAuthorityBump, collectedInsuranceFeesOutstanding, feeVault, feeVaultBump, feeVaultAuthorityBump, collectedGroupFeesOutstanding, lastUpdate, config, totalAssetShares, totalLiabilityShares, emissionsActiveBorrowing, emissionsActiveLending, emissionsRate, emissionsMint, emissionsRemaining, collectedProgramFeesOutstanding, oracleKey, emode, premiumTag, premiumActive, premiumActivatedAt, kaminoEmergency, stakedOracleDisabled, stakedOracleUsesOnramp, rateLimiter, kaminoIntegrationAccounts, driftIntegrationAccounts, solendIntegrationAccounts, jupLendIntegrationAccounts, stakedIntegrationAccounts, feesDestinationAccount, lendingPositionCount, borrowingPositionCount, tokenSymbol) {
|
|
23860
|
+
constructor(address23, mint, mintDecimals, group, assetShareValue, liabilityShareValue, liquidityVault, liquidityVaultBump, liquidityVaultAuthorityBump, insuranceVault, insuranceVaultBump, insuranceVaultAuthorityBump, collectedInsuranceFeesOutstanding, feeVault, feeVaultBump, feeVaultAuthorityBump, collectedGroupFeesOutstanding, lastUpdate, config, totalAssetShares, totalLiabilityShares, emissionsActiveBorrowing, emissionsActiveLending, emissionsRate, emissionsMint, emissionsRemaining, collectedProgramFeesOutstanding, oracleKey, emode, premiumTag, premiumActive, premiumActivatedAt, kaminoEmergency, liquidationLiquidatorFee, liquidationInsuranceFee, isCircuitBreakerEnabled, cbTier, cbHaltEndedAt, stakedOracleDisabled, stakedOracleUsesOnramp, rateLimiter, kaminoIntegrationAccounts, driftIntegrationAccounts, solendIntegrationAccounts, jupLendIntegrationAccounts, stakedIntegrationAccounts, feesDestinationAccount, lendingPositionCount, borrowingPositionCount, tokenSymbol) {
|
|
23824
23861
|
this.address = address23;
|
|
23825
23862
|
this.mint = mint;
|
|
23826
23863
|
this.mintDecimals = mintDecimals;
|
|
@@ -23854,6 +23891,11 @@ var Bank = class _Bank {
|
|
|
23854
23891
|
this.premiumActive = premiumActive;
|
|
23855
23892
|
this.premiumActivatedAt = premiumActivatedAt;
|
|
23856
23893
|
this.kaminoEmergency = kaminoEmergency;
|
|
23894
|
+
this.liquidationLiquidatorFee = liquidationLiquidatorFee;
|
|
23895
|
+
this.liquidationInsuranceFee = liquidationInsuranceFee;
|
|
23896
|
+
this.isCircuitBreakerEnabled = isCircuitBreakerEnabled;
|
|
23897
|
+
this.cbTier = cbTier;
|
|
23898
|
+
this.cbHaltEndedAt = cbHaltEndedAt;
|
|
23857
23899
|
this.stakedOracleDisabled = stakedOracleDisabled;
|
|
23858
23900
|
this.stakedOracleUsesOnramp = stakedOracleUsesOnramp;
|
|
23859
23901
|
this.rateLimiter = rateLimiter;
|
|
@@ -23901,6 +23943,9 @@ var Bank = class _Bank {
|
|
|
23901
23943
|
bankType.config.operationalState,
|
|
23902
23944
|
bankType.config.oracleMaxConfidence,
|
|
23903
23945
|
bankType.config.fixedPrice,
|
|
23946
|
+
bankType.config.cbWindowMaxUpBps,
|
|
23947
|
+
bankType.config.cbWindowMaxDownBps,
|
|
23948
|
+
bankType.config.cbWindowSeconds,
|
|
23904
23949
|
bankType.config.configFlags,
|
|
23905
23950
|
bankType.config.scopeEntryIndex
|
|
23906
23951
|
);
|
|
@@ -23938,6 +23983,11 @@ var Bank = class _Bank {
|
|
|
23938
23983
|
bankType.premiumActive,
|
|
23939
23984
|
bankType.premiumActivatedAt,
|
|
23940
23985
|
bankType.kaminoEmergency,
|
|
23986
|
+
bankType.liquidationLiquidatorFee,
|
|
23987
|
+
bankType.liquidationInsuranceFee,
|
|
23988
|
+
bankType.isCircuitBreakerEnabled,
|
|
23989
|
+
bankType.cbTier,
|
|
23990
|
+
bankType.cbHaltEndedAt,
|
|
23941
23991
|
bankType.stakedOracleDisabled,
|
|
23942
23992
|
bankType.stakedOracleUsesOnramp,
|
|
23943
23993
|
bankType.rateLimiter,
|
|
@@ -24082,7 +24132,7 @@ var Bank = class _Bank {
|
|
|
24082
24132
|
}
|
|
24083
24133
|
};
|
|
24084
24134
|
var BankConfig = class {
|
|
24085
|
-
constructor(assetWeightInit, assetWeightMaint, liabilityWeightInit, liabilityWeightMaint, depositLimit, borrowLimit, riskTier, totalAssetValueInitLimit, assetTag, oracleSetup, oracleKeys, oracleMaxAge, interestRateConfig, operationalState, oracleMaxConfidence, fixedPrice, configFlags, scopeEntryIndex) {
|
|
24135
|
+
constructor(assetWeightInit, assetWeightMaint, liabilityWeightInit, liabilityWeightMaint, depositLimit, borrowLimit, riskTier, totalAssetValueInitLimit, assetTag, oracleSetup, oracleKeys, oracleMaxAge, interestRateConfig, operationalState, oracleMaxConfidence, fixedPrice, cbWindowMaxUpBps, cbWindowMaxDownBps, cbWindowSeconds, configFlags, scopeEntryIndex) {
|
|
24086
24136
|
this.assetWeightInit = assetWeightInit;
|
|
24087
24137
|
this.assetWeightMaint = assetWeightMaint;
|
|
24088
24138
|
this.liabilityWeightInit = liabilityWeightInit;
|
|
@@ -24099,6 +24149,9 @@ var BankConfig = class {
|
|
|
24099
24149
|
this.operationalState = operationalState;
|
|
24100
24150
|
this.oracleMaxConfidence = oracleMaxConfidence;
|
|
24101
24151
|
this.fixedPrice = fixedPrice;
|
|
24152
|
+
this.cbWindowMaxUpBps = cbWindowMaxUpBps;
|
|
24153
|
+
this.cbWindowMaxDownBps = cbWindowMaxDownBps;
|
|
24154
|
+
this.cbWindowSeconds = cbWindowSeconds;
|
|
24102
24155
|
this.configFlags = configFlags;
|
|
24103
24156
|
this.scopeEntryIndex = scopeEntryIndex;
|
|
24104
24157
|
}
|
|
@@ -25291,6 +25344,6 @@ var HealthCache = class _HealthCache {
|
|
|
25291
25344
|
}
|
|
25292
25345
|
};
|
|
25293
25346
|
|
|
25294
|
-
export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_GROUP_NATIVE_STAKE, ADDRESS_LOOKUP_TABLE_FOR_SWAP, AccountFlags, AccountType, AssetTag, BUNDLE_TX_SIZE, Balance, Bank, BankConfig, BankConfigFlag, DEFAULT_ADDRESS, DEFAULT_BRIDGE_MINTS, DEFAULT_ORACLE_MAX_AGE, DEFAULT_REPAY_ALL_EXTRA_BUFFER_BPS, DISABLED_FLAG, EMPTY_BALANCE_THRESHOLD, EXECUTION_HEADROOM_SECONDS, EmodeEntryFlags, EmodeFlags, EmodeImpactStatus, EmodeSettings, EmodeTag, FLASHLOAN_ENABLED_FLAG, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, HealthCacheSimulationError, HealthCacheStatus, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, KAMINO_MARKET_EMERGENCY_FLAG, LST_MINT, 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, MarginRequirementType, MarginfiAccount, MarginfiAccountWrapper, MarginfiGroup, OperationalState, OracleSetup2 as OracleSetup, 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, PriceBias, Project0Client, RiskTier2 as RiskTier, 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, SwapProvider, TOKEN_2022_PROGRAM_ID, TRANSFER_ACCOUNT_AUTHORITY_FLAG, TransactionBuildingError, TransactionBuildingErrorCode, TransactionConfigMap, TransactionType, U64_MAX2 as U64_MAX, USDC_DECIMALS, USDC_MINT, USDT_MINT, V1_TRANSACTION_CONFIG, VENUE_AVAILABLE_LIQUIDITY_BUFFER, WSOL_MINT, 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, makeBeginFlashLoanIx2 as makeBeginFlashLoanIx, makeBorrowIx2 as makeBorrowIx, makeBorrowTx, makeBridgedLoopTx, makeBridgedSwapCollateralTx, makeBridgedSwapDebtTx, makeBridgedTx, makeBulkRepayTx, makeBulkWithdrawTx, makeBundleTipIx, makeCloseAccountIx2 as makeCloseAccountIx, makeCloseAccountTx, makeCloseOrderIx2 as makeCloseOrderIx, makeCloseOrderTx, makeCreateAccountIx, makeCreateAccountIxWithProjection, makeCreateAccountTx, makeCreateAccountTxWithProjection, makeCreateMissingAtaIxs, makeDepositIx2 as makeDepositIx, makeDepositTx, makeEndFlashLoanIx2 as makeEndFlashLoanIx, makeFlashLoanTx, makeLoopTx, makeMergeStakeAccountsTx, makeMintStakedLstIx, makeMintStakedLstTx, makeOrderChangesIxs, makeOrderChangesTx, makePlaceOrderIx2 as makePlaceOrderIx, makePlaceOrderTx, makePoolAddBankIx2 as makePoolAddBankIx, makePoolConfigureBankGovIx2 as makePoolConfigureBankGovIx, makePoolConfigureBankIx2 as makePoolConfigureBankIx, makePreludeTxs, makePremiumRefreshIxs, makePriorityFeeMicroIx, makePulseHealthIx2 as makePulseHealthIx, makeRedeemStakedLstIx, makeRedeemStakedLstTx, makeRefreshIntegrationBanksIxs, makeRefreshKaminoBanksIxs, makeRepayIx2 as makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeRollPtTx, makeSwapCollateralTx, makeSwapDebtTx, makeTransactionMessage, makeTransferAccountIx, makeTransferAccountTx, makeTransferPositionsTx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateOrderTx, makeVaultCompleteWithdrawalIx, makeVaultCompleteWithdrawalTx, makeVaultDepositIx, makeVaultDepositTx, makeVaultDepositWithSwapTx, makeVaultWithdrawIx, makeVaultWithdrawTx, makeWithdrawIx2 as 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 };
|
|
25347
|
+
export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_GROUP_NATIVE_STAKE, ADDRESS_LOOKUP_TABLE_FOR_SWAP, AccountFlags, AccountType, AssetTag, BUNDLE_TX_SIZE, Balance, Bank, BankConfig, BankConfigFlag, CIRCUIT_BREAKER_ENABLED_FLAG, DEFAULT_ADDRESS, DEFAULT_BRIDGE_MINTS, DEFAULT_ORACLE_MAX_AGE, DEFAULT_REPAY_ALL_EXTRA_BUFFER_BPS, DISABLED_FLAG, EMPTY_BALANCE_THRESHOLD, EXECUTION_HEADROOM_SECONDS, EmodeEntryFlags, EmodeFlags, EmodeImpactStatus, EmodeSettings, EmodeTag, FLASHLOAN_ENABLED_FLAG, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, HealthCacheSimulationError, HealthCacheStatus, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, KAMINO_MARKET_EMERGENCY_FLAG, LST_MINT, 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, MarginRequirementType, MarginfiAccount, MarginfiAccountWrapper, MarginfiGroup, OperationalState, OracleSetup2 as OracleSetup, 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, PriceBias, Project0Client, RiskTier2 as RiskTier, 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, SwapProvider, TOKEN_2022_PROGRAM_ID, TRANSFER_ACCOUNT_AUTHORITY_FLAG, TransactionBuildingError, TransactionBuildingErrorCode, TransactionConfigMap, TransactionType, U64_MAX2 as U64_MAX, USDC_DECIMALS, USDC_MINT, USDT_MINT, V1_TRANSACTION_CONFIG, VENUE_AVAILABLE_LIQUIDITY_BUFFER, WSOL_MINT, 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, makeBeginFlashLoanIx2 as makeBeginFlashLoanIx, makeBorrowIx2 as makeBorrowIx, makeBorrowTx, makeBridgedLoopTx, makeBridgedSwapCollateralTx, makeBridgedSwapDebtTx, makeBridgedTx, makeBulkRepayTx, makeBulkWithdrawTx, makeBundleTipIx, makeCloseAccountIx2 as makeCloseAccountIx, makeCloseAccountTx, makeCloseOrderIx2 as makeCloseOrderIx, makeCloseOrderTx, makeCreateAccountIx, makeCreateAccountIxWithProjection, makeCreateAccountTx, makeCreateAccountTxWithProjection, makeCreateMissingAtaIxs, makeDepositIx2 as makeDepositIx, makeDepositTx, makeEndFlashLoanIx2 as makeEndFlashLoanIx, makeFlashLoanTx, makeLoopTx, makeMergeStakeAccountsTx, makeMintStakedLstIx, makeMintStakedLstTx, makeOrderChangesIxs, makeOrderChangesTx, makePlaceOrderIx2 as makePlaceOrderIx, makePlaceOrderTx, makePoolAddBankIx2 as makePoolAddBankIx, makePoolConfigureBankGovIx2 as makePoolConfigureBankGovIx, makePoolConfigureBankIx2 as makePoolConfigureBankIx, makePreludeTxs, makePremiumRefreshIxs, makePriorityFeeMicroIx, makePulseHealthIx2 as makePulseHealthIx, makeRedeemStakedLstIx, makeRedeemStakedLstTx, makeRefreshIntegrationBanksIxs, makeRefreshKaminoBanksIxs, makeRepayIx2 as makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeRollPtTx, makeSwapCollateralTx, makeSwapDebtTx, makeTransactionMessage, makeTransferAccountIx, makeTransferAccountTx, makeTransferPositionsTx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateOrderTx, makeVaultCompleteWithdrawalIx, makeVaultCompleteWithdrawalTx, makeVaultDepositIx, makeVaultDepositTx, makeVaultDepositWithSwapTx, makeVaultWithdrawIx, makeVaultWithdrawTx, makeWithdrawIx2 as 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 };
|
|
25295
25348
|
//# sourceMappingURL=index.js.map
|
|
25296
25349
|
//# sourceMappingURL=index.js.map
|