@0dotxyz/p0-ts-sdk 2.3.0-alpha.3 → 2.3.0-alpha.4
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 +272 -281
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -61
- package/dist/index.d.ts +41 -61
- package/dist/index.js +272 -281
- package/dist/index.js.map +1 -1
- package/dist/vendor.cjs +278 -95
- package/dist/vendor.cjs.map +1 -1
- package/dist/vendor.d.cts +150 -4
- package/dist/vendor.d.ts +150 -4
- package/dist/vendor.js +276 -96
- package/dist/vendor.js.map +1 -1
- package/package.json +1 -1
package/dist/vendor.d.cts
CHANGED
|
@@ -27206,11 +27206,11 @@ interface TitanSwapQuoteResult {
|
|
|
27206
27206
|
timeTaken?: number;
|
|
27207
27207
|
}
|
|
27208
27208
|
declare function buildSwapQuoteResult(route: {
|
|
27209
|
-
inAmount: number;
|
|
27210
|
-
outAmount: number;
|
|
27209
|
+
inAmount: number | bigint;
|
|
27210
|
+
outAmount: number | bigint;
|
|
27211
27211
|
slippageBps: number;
|
|
27212
27212
|
platformFee?: {
|
|
27213
|
-
amount: number;
|
|
27213
|
+
amount: number | bigint;
|
|
27214
27214
|
fee_bps: number;
|
|
27215
27215
|
};
|
|
27216
27216
|
contextSlot?: number;
|
|
@@ -27613,6 +27613,106 @@ interface ExponentStripContext {
|
|
|
27613
27613
|
computeStrippedPtNative(syInNative: bigint): bigint;
|
|
27614
27614
|
}
|
|
27615
27615
|
|
|
27616
|
+
/**
|
|
27617
|
+
* Accounts required by `wrapper_merge` — the core instruction that merges PT **and**
|
|
27618
|
+
* redeems the resulting SY into the underlying **base** token in one go (so the buy leg can
|
|
27619
|
+
* swap a normal token, not the un-swappable SY). The 16 fixed accounts mirror the IDL's
|
|
27620
|
+
* `WrapperMerge` struct (same vault-side fields as `merge`, minus the SY destination order);
|
|
27621
|
+
* `remainingAccounts` is the assembled `[...redeem, ...cpi]` list and `redeemSyAccountsUntil`
|
|
27622
|
+
* marks the boundary between them.
|
|
27623
|
+
*/
|
|
27624
|
+
interface ExponentWrapperMergeAccounts {
|
|
27625
|
+
/** Position owner / signer (the marginfi account authority). */
|
|
27626
|
+
owner: PublicKey;
|
|
27627
|
+
/** Owner's SY token account (intermediate; the redeem consumes it). */
|
|
27628
|
+
syAta: PublicKey;
|
|
27629
|
+
/** The maturity vault address. */
|
|
27630
|
+
vault: PublicKey;
|
|
27631
|
+
/** `Vault.escrow_sy`. */
|
|
27632
|
+
escrowSy: PublicKey;
|
|
27633
|
+
/** Owner's YT token account (source; empty/0 after maturity). */
|
|
27634
|
+
ytAta: PublicKey;
|
|
27635
|
+
/** Owner's PT token account (source; holds the withdrawn PT). */
|
|
27636
|
+
ptAta: PublicKey;
|
|
27637
|
+
/** `Vault.mint_yt`. */
|
|
27638
|
+
mintYt: PublicKey;
|
|
27639
|
+
/** `Vault.mint_pt`. */
|
|
27640
|
+
mintPt: PublicKey;
|
|
27641
|
+
/** `Vault.authority`. */
|
|
27642
|
+
authority: PublicKey;
|
|
27643
|
+
/** `Vault.address_lookup_table`. */
|
|
27644
|
+
addressLookupTable: PublicKey;
|
|
27645
|
+
/** `Vault.yield_position` (the vault robot yield position). */
|
|
27646
|
+
yieldPosition: PublicKey;
|
|
27647
|
+
/** `Vault.sy_program`. */
|
|
27648
|
+
syProgram: PublicKey;
|
|
27649
|
+
/** SPL token program for the PT/YT/SY mints (defaults to classic Token). */
|
|
27650
|
+
tokenProgram?: PublicKey;
|
|
27651
|
+
/**
|
|
27652
|
+
* Assembled SY-program remaining accounts: the flavor's `redeem_sy` accounts first
|
|
27653
|
+
* (count = `redeemSyAccountsUntil`), then the vault's deduped `withdraw_sy ++ get_sy_state`
|
|
27654
|
+
* CPI accounts. The redeem's first account is the owner and keeps its signer flag.
|
|
27655
|
+
*/
|
|
27656
|
+
remainingAccounts: AccountMeta$1[];
|
|
27657
|
+
/** Number of leading `remainingAccounts` that are the flavor redeem accounts. */
|
|
27658
|
+
redeemSyAccountsUntil: number;
|
|
27659
|
+
}
|
|
27660
|
+
interface ResolveExponentWrapperMergeContextParams {
|
|
27661
|
+
connection: Connection;
|
|
27662
|
+
/** Position owner / signer (the marginfi account authority). */
|
|
27663
|
+
owner: PublicKey;
|
|
27664
|
+
/** The maturity vault, or… */
|
|
27665
|
+
vault?: PublicKey;
|
|
27666
|
+
/** …the `MarketTwo` address (its `vault` is read). One of `vault`/`market` is required. */
|
|
27667
|
+
market?: PublicKey;
|
|
27668
|
+
/**
|
|
27669
|
+
* The flavor's underlying **base** token (e.g. bulkSOL). Required — it isn't on the
|
|
27670
|
+
* vault; the caller supplies it (config). The redeem unwraps SY into this token.
|
|
27671
|
+
*/
|
|
27672
|
+
baseMint: PublicKey;
|
|
27673
|
+
/** Token program for the base mint (defaults to classic Token). */
|
|
27674
|
+
baseTokenProgram?: PublicKey;
|
|
27675
|
+
/** Token program for the PT/YT mints (Exponent uses classic Token). */
|
|
27676
|
+
ptYtTokenProgram?: PublicKey;
|
|
27677
|
+
/** Token program for the SY mint (may be token-2022). Defaults to classic Token. */
|
|
27678
|
+
syTokenProgram?: PublicKey;
|
|
27679
|
+
}
|
|
27680
|
+
/**
|
|
27681
|
+
* Resolved inputs for the roll's redeem leg: the `wrapper_merge` accounts, the SPL
|
|
27682
|
+
* stake-pool refresh that must run before it (so the SY↔base rate is current), the base
|
|
27683
|
+
* token the swap leg consumes, and a helper to size the redeemed base from the vault rates.
|
|
27684
|
+
*/
|
|
27685
|
+
interface ExponentWrapperMergeContext {
|
|
27686
|
+
vaultAddress: PublicKey;
|
|
27687
|
+
vault: ExponentVault;
|
|
27688
|
+
wrapperMergeAccounts: ExponentWrapperMergeAccounts;
|
|
27689
|
+
/**
|
|
27690
|
+
* Instruction(s) the flavor requires *before* `wrapper_merge` (for an SPL-stake-pool LST
|
|
27691
|
+
* like bulkSOL, the stake pool's `UpdateStakePoolBalance` refresh). Empty for flavors that
|
|
27692
|
+
* need none.
|
|
27693
|
+
*/
|
|
27694
|
+
preInstructions: TransactionInstruction[];
|
|
27695
|
+
/** The vault's address lookup table — add it to the transaction's lookup tables. */
|
|
27696
|
+
addressLookupTable: AddressLookupTableAccount;
|
|
27697
|
+
/** The redeemed underlying base token (swap-leg input). */
|
|
27698
|
+
baseToken: {
|
|
27699
|
+
mint: PublicKey;
|
|
27700
|
+
decimals: number;
|
|
27701
|
+
tokenProgram: PublicKey;
|
|
27702
|
+
};
|
|
27703
|
+
/** ATAs the bundle touches and must create idempotently (sy, pt, yt, base). */
|
|
27704
|
+
setupMints: {
|
|
27705
|
+
mint: PublicKey;
|
|
27706
|
+
tokenProgram: PublicKey;
|
|
27707
|
+
}[];
|
|
27708
|
+
/**
|
|
27709
|
+
* Native base the wrapper yields for a native PT amount: `merge` gives
|
|
27710
|
+
* `sy = floor(pt × sy_for_pt / pt_supply)`, then the redeem gives
|
|
27711
|
+
* `base = floor(sy × sy_exchange_rate)`. Feed into the swap-engine input sizing.
|
|
27712
|
+
*/
|
|
27713
|
+
computeRedeemedBaseNative(ptAmountNative: bigint): bigint;
|
|
27714
|
+
}
|
|
27715
|
+
|
|
27616
27716
|
/**
|
|
27617
27717
|
* Exponent Finance program IDs (mainnet), taken from the official SDK's
|
|
27618
27718
|
* `@exponent-labs/exponent-sdk` `environment.js`.
|
|
@@ -28272,6 +28372,18 @@ declare function resolveExponentTradePtContext(params: ResolveExponentTradePtCon
|
|
|
28272
28372
|
* address lookup table, and exposes the last-seen SY exchange rate for sizing the minted PT.
|
|
28273
28373
|
*/
|
|
28274
28374
|
declare function resolveExponentStripContext(params: ResolveExponentStripContextParams): Promise<ExponentStripContext>;
|
|
28375
|
+
/**
|
|
28376
|
+
* Resolve everything the roll's redeem leg needs to turn matured PT into the underlying
|
|
28377
|
+
* **base** token via `wrapper_merge` (merge PT → SY, then CPI-redeem SY → base, in one ix) —
|
|
28378
|
+
* so the buy leg swaps a normal token, not the un-swappable SY.
|
|
28379
|
+
*
|
|
28380
|
+
* Decodes the maturity `Vault`, derives the owner's SY/PT/YT/base token accounts, assembles
|
|
28381
|
+
* the flavor redeem accounts (all derivable: the generic SY state is `get_sy_state[0]`, the
|
|
28382
|
+
* SPL stake pool is `get_sy_state[3]`, the base escrow is `ATA(syState, baseMint)`), appends
|
|
28383
|
+
* the vault's `withdraw_sy ++ get_sy_state` CPI accounts, and builds the stake-pool refresh
|
|
28384
|
+
* that must run first. Validated byte-for-byte against the Exponent SDK's `ixMergeToBase`.
|
|
28385
|
+
*/
|
|
28386
|
+
declare function resolveExponentWrapperMergeContext(params: ResolveExponentWrapperMergeContextParams): Promise<ExponentWrapperMergeContext>;
|
|
28275
28387
|
|
|
28276
28388
|
/**
|
|
28277
28389
|
* Build the Exponent `merge(amount)` instruction — redeems `amount` PT (post-maturity,
|
|
@@ -28327,5 +28439,39 @@ declare function makeExponentTradePtIx(accounts: ExponentTradePtAccounts, args:
|
|
|
28327
28439
|
* @param amountNative SY amount to strip, in native units (u64)
|
|
28328
28440
|
*/
|
|
28329
28441
|
declare function makeExponentStripIx(accounts: ExponentStripAccounts, amountNative: bigint): TransactionInstruction;
|
|
28442
|
+
/**
|
|
28443
|
+
* Build the Exponent `wrapper_merge(amount_py, redeem_sy_accounts_until)` instruction —
|
|
28444
|
+
* redeems `amountPyNative` PT into the underlying base token at the owner's base ATA.
|
|
28445
|
+
*
|
|
28446
|
+
* The remaining accounts are `[...flavor redeem accounts, ...vault SY-CPI accounts]`;
|
|
28447
|
+
* `redeemSyAccountsUntil` tells the program where the redeem accounts end. The redeem's first
|
|
28448
|
+
* account is the owner and keeps its signer flag (the SY-CPI accounts are forced non-signer,
|
|
28449
|
+
* resolved upstream). The transaction must carry the vault's address lookup table.
|
|
28450
|
+
*
|
|
28451
|
+
* @param accounts resolved wrapper-merge accounts (see {@link ExponentWrapperMergeAccounts})
|
|
28452
|
+
* @param args `amountPyNative` (u64) PT to redeem + `redeemSyAccountsUntil` (u8)
|
|
28453
|
+
*/
|
|
28454
|
+
declare function makeExponentWrapperMergeIx(accounts: ExponentWrapperMergeAccounts, args: {
|
|
28455
|
+
amountPyNative: bigint;
|
|
28456
|
+
redeemSyAccountsUntil: number;
|
|
28457
|
+
}): TransactionInstruction;
|
|
28458
|
+
/**
|
|
28459
|
+
* Build the SPL Stake Pool `UpdateStakePoolBalance` instruction — refreshes a stake pool's
|
|
28460
|
+
* total-lamports / pool-token-supply so the pool↔token exchange rate is current for the
|
|
28461
|
+
* epoch. An SPL-stake-pool SY flavor (e.g. bulkSOL) requires this immediately before
|
|
28462
|
+
* `wrapper_merge`, otherwise the redeem reads a stale SY↔base rate.
|
|
28463
|
+
*
|
|
28464
|
+
* Account order matches the SPL Stake Pool program's `UpdateStakePoolBalance`.
|
|
28465
|
+
*/
|
|
28466
|
+
declare function makeSplStakePoolUpdateBalanceIx(accounts: {
|
|
28467
|
+
stakePoolProgram: PublicKey;
|
|
28468
|
+
stakePool: PublicKey;
|
|
28469
|
+
withdrawAuthority: PublicKey;
|
|
28470
|
+
validatorList: PublicKey;
|
|
28471
|
+
reserveStake: PublicKey;
|
|
28472
|
+
managerFeeAccount: PublicKey;
|
|
28473
|
+
poolMint: PublicKey;
|
|
28474
|
+
tokenProgram?: PublicKey;
|
|
28475
|
+
}): TransactionInstruction;
|
|
28330
28476
|
|
|
28331
|
-
export { ACCOUNT_SIZE, ACCOUNT_TYPE_SIZE, ASSOCIATED_TOKEN_PROGRAM_ID, type Account, AccountLayout, type AccountMeta, AccountState, AccountType, type ApproveInstructionData, type Base, type ClientRequest, type CloseAccountInstructionData, ConnectionClosed, CorpAction, CurvePointFields, DEFAULT_RECENT_SLOT_DURATION_MS, DRIFT_IDL, DRIFT_PROGRAM_ID, type DriftIdlType, type DriftInterestRateCurvePoint, DriftRewards, DriftRewardsJSON, DriftSpotBalanceType, DriftSpotMarket, DriftSpotMarketJSON, type DriftSpotMarketRaw, type DriftState, type DriftStateJSON, DriftUser, DriftUserJSON, type DriftUserRaw, DriftUserStats, DriftUserStatsJSON, EXPONENT_CLMM_PROGRAM_ID, EXPONENT_CORE_IDL, EXPONENT_CORE_PROGRAM_ID, EXPONENT_EVENT_AUTHORITY_SEED, EXPONENT_GENERIC_SY_PROGRAM_ID, EXPONENT_JITO_RESTAKING_SY_PROGRAM_ID, EXPONENT_KAMINO_SY_PROGRAM_ID, EXPONENT_MARGINFI_SY_PROGRAM_ID, EXPONENT_NUMBER_DENOM, EXPONENT_ORDERBOOK_PROGRAM_ID, EXPONENT_PERENA_SY_PROGRAM_ID, EXPONENT_VAULTS_PROGRAM_ID, type Ema, ErrorResponse, type ExponentCpiInterfaceContext, type ExponentMarketTwo, type ExponentMarketTwoCpiAccounts, type ExponentMergeAccounts, type ExponentMergeContext, type ExponentStripAccounts, type ExponentStripContext, type ExponentTradePtAccounts, type ExponentTradePtContext, type ExponentVault, ExtensionType, FARMS_PROGRAM_ID, FarmStateJSON, FarmStateRaw, FeeStructure, FeeStructureJSON, HistoricalIndexData, HistoricalOracleData, type InitializeAccountInstructionData, type Instruction, InsuranceFund, JUP_EXCHANGE_PRICES_PRECISION, JUP_LEND_IDL, JUP_LEND_PROGRAM_ID, JUP_LIQUIDITY_IDL, JUP_LIQUIDITY_PROGRAM_ID, JUP_MAX_REWARDS_RATE, JUP_REWARDS_PROGRAM_ID, JUP_SECONDS_PER_YEAR, type JupLendIdlType, type JupLendInterestRateCurvePoint, type JupLendRewardsResult, JupLendingRewardsRateModel, JupLendingRewardsRateModelJSON, type JupLendingRewardsRateModelRaw, JupLendingState, JupLendingStateJSON, type JupLendingStateRaw, type JupLiquidityIdlType, JupRateModel, JupRateModelJSON, type JupRateModelRaw, JupTokenReserve, JupTokenReserveJSON, type JupTokenReserveRaw, KFARMS_IDL, KLEND_ACCOUNT_CODER, KLEND_IDL, KLEND_PROGRAM_ID, type KaminoReserveCurveData, type KfarmsIdlType, type KlendIdlType, type KlendInterestRateCurvePoint, LENGTH_SIZE, MAX_SLOT_DIFFERENCE, MEMO_PROGRAM_ID, MINT_SIZE, MULTISIG_SIZE, type Mint, MintLayout, type Multisig, MultisigLayout, NATIVE_MINT, ONE, ONE_HUNDRED_PCT_IN_BPS, ONE_YEAR, ObligationJSON, ObligationRaw, OracleGuardRails, OracleGuardRailsJSON, PERCENTAGE_PRECISION, PERCENTAGE_PRECISION_EXP, type PlatformFee, PoolBalance, type Price, type PriceComponent, type PriceData, PriceStatus, PriceType, type Pubkey, type QuoteSwapStreamResponse, type QuoteUpdateParams, REFRESH_OBLIGATION_DISCRIMINATOR, type RawAccount, type RawMint, type RawMultisig, type RefreshObligationAccounts, type RequestData, ReserveJSON, ReserveRaw, type ResolveExponentMergeContextParams, type ResolveExponentStripContextParams, type ResolveExponentTradePtContextParams, type ResponseData, type ResponseError, type ResponseSuccess, type ResponseWithStream, RewardInfoFields, type RoutePlanStep, SEED_BASE_REFERRER_STATE, SEED_BASE_REFERRER_TOKEN_STATE, SEED_BASE_SHORT_URL, SEED_BASE_USER_METADATA, SEED_DRIFT_SIGNER, SEED_DRIFT_STATE, SEED_FEE_RECEIVER, SEED_F_TOKEN_MINT, SEED_LENDING, SEED_LENDING_ADMIN, SEED_LENDING_MARKET_AUTH, SEED_LENDING_REWARDS_RATE_MODEL, SEED_LIQUIDITY, SEED_RATE_MODEL, SEED_RESERVE, SEED_RESERVE_COLL_MINT, SEED_RESERVE_COLL_SUPPLY, SEED_RESERVE_LIQ_SUPPLY, SEED_SPOT_MARKET, SEED_SPOT_MARKET_VAULT, SEED_USER, SEED_USER_CLAIM, SEED_USER_STATE, SEED_USER_STATS, SEED_USER_SUPPLY_POSITION, SLOTS_PER_DAY, SLOTS_PER_HOUR, SLOTS_PER_MINUTE, SLOTS_PER_SECOND, SLOTS_PER_YEAR, SPOT_MARKET_RATE_PRECISION, SPOT_MARKET_RATE_PRECISION_EXP, SPOT_MARKET_UTILIZATION_PRECISION, SPOT_MARKET_UTILIZATION_PRECISION_EXP, type SerializedInstruction, type SerializedSwapRoute, type ServerMessage, SinglePoolInstruction, SplAccountType, SpotPosition, type StakeAccount, type StopStreamRequest, type StopStreamResponse, type StreamData, type StreamDataPayload, type StreamEnd, StreamError, type StreamStart, SwapMode, type SwapParams, type SwapQuoteRequest, type SwapQuotes, type SwapRoute, SwapVersion, type SyncNativeInstructionData, TEN, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, TYPE_SIZE, type TitanGatewayQuoteParams, type TitanGatewayQuoteResponse, type TitanProxyExactOutResponse, type TitanProxySwapQuoteResponse, type TitanSwapQuoteResult, type TitanTemplateLut, type TitanTransactionTemplate, TokenAccountNotFoundError, TokenError, TokenInstruction, TokenInvalidAccountError, TokenInvalidAccountOwnerError, TokenInvalidAccountSizeError, TokenInvalidInstructionDataError, TokenInvalidInstructionKeysError, TokenInvalidInstructionProgramError, TokenInvalidInstructionTypeError, TokenInvalidMintError, TokenInvalidOwnerError, TokenOwnerOffCurveError, TokenUnsupportedInstructionError, type TransactionParams, type TransactionTemplate, type TransactionTemplateLut, type TransferCheckedInstructionData, type Uint64, V1Client, ZERO, addSigners, approveInstructionData, buildSwapQuoteResult, buildTitanTemplate, calculateAPYFromAPR, calculateDriftBorrowAPR, calculateDriftBorrowAPY, calculateDriftBorrowRate, calculateDriftDepositRate, calculateDriftInterestRate, calculateDriftLendingAPR, calculateDriftLendingAPY, calculateDriftUtilization, calculateJupLendBorrowRate, calculateJupLendLiquiditySupplyRate, calculateJupLendNewExchangePrice, calculateJupLendRewardsRate, calculateJupLendRewardsRateForExchangePrice, calculateJupLendSupplyAPY, calculateJupLendSupplyRate, calculateJupLendTotalAssets, calculateKaminoEstimatedBorrowRate, calculateKaminoEstimatedSupplyRate, calculateKaminoSupplyAPY, calculateRewardApy, calculateSlotAdjustmentFactor, calculateUtilizationRatio, closeAccountInstructionData, createAccountIx, createApproveInstruction, createAssociatedTokenAccountIdempotentInstruction, createAssociatedTokenAccountInstruction, createCloseAccountInstruction, createInitializeAccountInstruction, createMemoInstruction, createPoolOnrampIx, createSyncNativeInstruction, createTransferCheckedInstruction, decodeDriftSpotMarketData, decodeDriftStateData, decodeDriftUserData, decodeDriftUserStatsData, decodeExponentMarketTwo, decodeExponentMarketVault, decodeExponentVault, decodeFarmDataRaw, decodeJupLendingRewardsRateModelData, decodeJupLendingStateData, decodeJupRateModelData, decodeJupTokenReserveData, decodeKlendObligationData, decodeKlendReserveData, deriveBaseObligation, deriveDriftSigner, deriveDriftSpotMarket, deriveDriftSpotMarketVault, deriveDriftState, deriveDriftUser, deriveDriftUserStats, deriveExponentEventAuthority, deriveFeeReceiver, deriveJupLendClaimAccount, deriveJupLendFTokenMint, deriveJupLendLending, deriveJupLendLendingAdmin, deriveJupLendLendingPdas, deriveJupLendLendingRewardsRateModel, deriveJupLendLiquidity, deriveJupLendLiquiditySupplyPositionPda, deriveJupLendLiquidityVaultAta, deriveJupLendRateModel, deriveJupLendTokenReserve, deriveLendingMarketAuthority, deriveObligation, deriveReferrerState, deriveReferrerTokenState, deriveReserveCollateralMint, deriveReserveCollateralSupply, deriveReserveLiquiditySupply, deriveShortUrl, deriveUserMetadata, deriveUserState, deserializeSerializedInstruction, deserializeTitanWireInstruction, driftRewardsRawToDto, driftSpotMarketRawToDto, driftStateRawToDto, driftUserRawToDto, driftUserStatsRawToDto, dtoToDriftRewardsRaw, dtoToDriftSpotMarketRaw, dtoToDriftStateRaw, dtoToDriftUserRaw, dtoToDriftUserStatsRaw, dtoToFarmRaw, dtoToJupLendingRewardsRateModelRaw, dtoToJupLendingStateRaw, dtoToJupRateModelRaw, dtoToJupTokenReserveRaw, dtoToObligationRaw, dtoToReserveRaw, encodeTitanTemplate, exponentBuyPtArgs, exponentNumberToBigNumber, farmRawToDto, fetchExponentMarketTwo, fetchExponentVault, fetchExponentVaultFromMarket, fetchTitanQuoteSwapV3, findMplMetadataAddress, findPoolAddress, findPoolMintAddress, findPoolMintAddressByVoteAccount, findPoolMintAuthorityAddress, findPoolMplAuthorityAddress, findPoolOnRampAddress, findPoolStakeAddress, findPoolStakeAuthorityAddress, generateDriftReserveCurve, generateJupLendSupplyCurve, generateKaminoReserveCurve, getAccount, getAccountLen, getAllDerivedDriftAccounts, getAllDerivedJupLendAccounts, getAllDerivedKaminoAccounts, getAllRequiredMarkets, getAssociatedTokenAddressSync, getDriftRewards, getDriftTokenAmount, getFixedHostInterestRate, getJupLendRewards, getKaminoBorrowRate, getKaminoTotalSupply, getMinimumBalanceForRentExemptAccount, getMinimumBalanceForRentExemptAccountWithExtensions, getMint, getMintDecimals, getMultipleAccounts, getProtocolTakeRatePct, getReserveRewardsApy, getRewardPerTimeUnitSecond, getStakeAccount, initializeAccountInstructionData, initializeStakedPoolIxs, initializeStakedPoolTx, instructionToTitanWire, interpolateLinear, jupLendingRewardsRateModelRawToDto, jupLendingStateRawToDto, jupRateModelRawToDto, jupTokenReserveRawToDto, layout, lutToTitanWire, makeExponentMergeIx, makeExponentStripIx, makeExponentTradePtIx, makeRefreshObligationIx, makeRefreshReservesBatchIx, makeRefreshingIxs, makeUpdateJupLendRate, makeUpdateJupLendRateIx, makeUpdateSpotMarketCumulativeInterestIx, makeUpdateSpotMarketIx, obligationRawToDto, parsePriceData, parsePriceInfo, replenishPoolIx, reserveRawToDto, resolveExponentMergeContext, resolveExponentStripContext, resolveExponentTradePtContext, resolveLookupTables, scaledSupplies, selectBestRoute, selectGatewayRoute, slotAdjustmentFactor, syncNativeInstructionData, transferCheckedInstructionData, truncateBorrowCurve, unpackAccount };
|
|
28477
|
+
export { ACCOUNT_SIZE, ACCOUNT_TYPE_SIZE, ASSOCIATED_TOKEN_PROGRAM_ID, type Account, AccountLayout, type AccountMeta, AccountState, AccountType, type ApproveInstructionData, type Base, type ClientRequest, type CloseAccountInstructionData, ConnectionClosed, CorpAction, CurvePointFields, DEFAULT_RECENT_SLOT_DURATION_MS, DRIFT_IDL, DRIFT_PROGRAM_ID, type DriftIdlType, type DriftInterestRateCurvePoint, DriftRewards, DriftRewardsJSON, DriftSpotBalanceType, DriftSpotMarket, DriftSpotMarketJSON, type DriftSpotMarketRaw, type DriftState, type DriftStateJSON, DriftUser, DriftUserJSON, type DriftUserRaw, DriftUserStats, DriftUserStatsJSON, EXPONENT_CLMM_PROGRAM_ID, EXPONENT_CORE_IDL, EXPONENT_CORE_PROGRAM_ID, EXPONENT_EVENT_AUTHORITY_SEED, EXPONENT_GENERIC_SY_PROGRAM_ID, EXPONENT_JITO_RESTAKING_SY_PROGRAM_ID, EXPONENT_KAMINO_SY_PROGRAM_ID, EXPONENT_MARGINFI_SY_PROGRAM_ID, EXPONENT_NUMBER_DENOM, EXPONENT_ORDERBOOK_PROGRAM_ID, EXPONENT_PERENA_SY_PROGRAM_ID, EXPONENT_VAULTS_PROGRAM_ID, type Ema, ErrorResponse, type ExponentCpiInterfaceContext, type ExponentMarketTwo, type ExponentMarketTwoCpiAccounts, type ExponentMergeAccounts, type ExponentMergeContext, type ExponentStripAccounts, type ExponentStripContext, type ExponentTradePtAccounts, type ExponentTradePtContext, type ExponentVault, type ExponentWrapperMergeAccounts, type ExponentWrapperMergeContext, ExtensionType, FARMS_PROGRAM_ID, FarmStateJSON, FarmStateRaw, FeeStructure, FeeStructureJSON, HistoricalIndexData, HistoricalOracleData, type InitializeAccountInstructionData, type Instruction, InsuranceFund, JUP_EXCHANGE_PRICES_PRECISION, JUP_LEND_IDL, JUP_LEND_PROGRAM_ID, JUP_LIQUIDITY_IDL, JUP_LIQUIDITY_PROGRAM_ID, JUP_MAX_REWARDS_RATE, JUP_REWARDS_PROGRAM_ID, JUP_SECONDS_PER_YEAR, type JupLendIdlType, type JupLendInterestRateCurvePoint, type JupLendRewardsResult, JupLendingRewardsRateModel, JupLendingRewardsRateModelJSON, type JupLendingRewardsRateModelRaw, JupLendingState, JupLendingStateJSON, type JupLendingStateRaw, type JupLiquidityIdlType, JupRateModel, JupRateModelJSON, type JupRateModelRaw, JupTokenReserve, JupTokenReserveJSON, type JupTokenReserveRaw, KFARMS_IDL, KLEND_ACCOUNT_CODER, KLEND_IDL, KLEND_PROGRAM_ID, type KaminoReserveCurveData, type KfarmsIdlType, type KlendIdlType, type KlendInterestRateCurvePoint, LENGTH_SIZE, MAX_SLOT_DIFFERENCE, MEMO_PROGRAM_ID, MINT_SIZE, MULTISIG_SIZE, type Mint, MintLayout, type Multisig, MultisigLayout, NATIVE_MINT, ONE, ONE_HUNDRED_PCT_IN_BPS, ONE_YEAR, ObligationJSON, ObligationRaw, OracleGuardRails, OracleGuardRailsJSON, PERCENTAGE_PRECISION, PERCENTAGE_PRECISION_EXP, type PlatformFee, PoolBalance, type Price, type PriceComponent, type PriceData, PriceStatus, PriceType, type Pubkey, type QuoteSwapStreamResponse, type QuoteUpdateParams, REFRESH_OBLIGATION_DISCRIMINATOR, type RawAccount, type RawMint, type RawMultisig, type RefreshObligationAccounts, type RequestData, ReserveJSON, ReserveRaw, type ResolveExponentMergeContextParams, type ResolveExponentStripContextParams, type ResolveExponentTradePtContextParams, type ResolveExponentWrapperMergeContextParams, type ResponseData, type ResponseError, type ResponseSuccess, type ResponseWithStream, RewardInfoFields, type RoutePlanStep, SEED_BASE_REFERRER_STATE, SEED_BASE_REFERRER_TOKEN_STATE, SEED_BASE_SHORT_URL, SEED_BASE_USER_METADATA, SEED_DRIFT_SIGNER, SEED_DRIFT_STATE, SEED_FEE_RECEIVER, SEED_F_TOKEN_MINT, SEED_LENDING, SEED_LENDING_ADMIN, SEED_LENDING_MARKET_AUTH, SEED_LENDING_REWARDS_RATE_MODEL, SEED_LIQUIDITY, SEED_RATE_MODEL, SEED_RESERVE, SEED_RESERVE_COLL_MINT, SEED_RESERVE_COLL_SUPPLY, SEED_RESERVE_LIQ_SUPPLY, SEED_SPOT_MARKET, SEED_SPOT_MARKET_VAULT, SEED_USER, SEED_USER_CLAIM, SEED_USER_STATE, SEED_USER_STATS, SEED_USER_SUPPLY_POSITION, SLOTS_PER_DAY, SLOTS_PER_HOUR, SLOTS_PER_MINUTE, SLOTS_PER_SECOND, SLOTS_PER_YEAR, SPOT_MARKET_RATE_PRECISION, SPOT_MARKET_RATE_PRECISION_EXP, SPOT_MARKET_UTILIZATION_PRECISION, SPOT_MARKET_UTILIZATION_PRECISION_EXP, type SerializedInstruction, type SerializedSwapRoute, type ServerMessage, SinglePoolInstruction, SplAccountType, SpotPosition, type StakeAccount, type StopStreamRequest, type StopStreamResponse, type StreamData, type StreamDataPayload, type StreamEnd, StreamError, type StreamStart, SwapMode, type SwapParams, type SwapQuoteRequest, type SwapQuotes, type SwapRoute, SwapVersion, type SyncNativeInstructionData, TEN, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, TYPE_SIZE, type TitanGatewayQuoteParams, type TitanGatewayQuoteResponse, type TitanProxyExactOutResponse, type TitanProxySwapQuoteResponse, type TitanSwapQuoteResult, type TitanTemplateLut, type TitanTransactionTemplate, TokenAccountNotFoundError, TokenError, TokenInstruction, TokenInvalidAccountError, TokenInvalidAccountOwnerError, TokenInvalidAccountSizeError, TokenInvalidInstructionDataError, TokenInvalidInstructionKeysError, TokenInvalidInstructionProgramError, TokenInvalidInstructionTypeError, TokenInvalidMintError, TokenInvalidOwnerError, TokenOwnerOffCurveError, TokenUnsupportedInstructionError, type TransactionParams, type TransactionTemplate, type TransactionTemplateLut, type TransferCheckedInstructionData, type Uint64, V1Client, ZERO, addSigners, approveInstructionData, buildSwapQuoteResult, buildTitanTemplate, calculateAPYFromAPR, calculateDriftBorrowAPR, calculateDriftBorrowAPY, calculateDriftBorrowRate, calculateDriftDepositRate, calculateDriftInterestRate, calculateDriftLendingAPR, calculateDriftLendingAPY, calculateDriftUtilization, calculateJupLendBorrowRate, calculateJupLendLiquiditySupplyRate, calculateJupLendNewExchangePrice, calculateJupLendRewardsRate, calculateJupLendRewardsRateForExchangePrice, calculateJupLendSupplyAPY, calculateJupLendSupplyRate, calculateJupLendTotalAssets, calculateKaminoEstimatedBorrowRate, calculateKaminoEstimatedSupplyRate, calculateKaminoSupplyAPY, calculateRewardApy, calculateSlotAdjustmentFactor, calculateUtilizationRatio, closeAccountInstructionData, createAccountIx, createApproveInstruction, createAssociatedTokenAccountIdempotentInstruction, createAssociatedTokenAccountInstruction, createCloseAccountInstruction, createInitializeAccountInstruction, createMemoInstruction, createPoolOnrampIx, createSyncNativeInstruction, createTransferCheckedInstruction, decodeDriftSpotMarketData, decodeDriftStateData, decodeDriftUserData, decodeDriftUserStatsData, decodeExponentMarketTwo, decodeExponentMarketVault, decodeExponentVault, decodeFarmDataRaw, decodeJupLendingRewardsRateModelData, decodeJupLendingStateData, decodeJupRateModelData, decodeJupTokenReserveData, decodeKlendObligationData, decodeKlendReserveData, deriveBaseObligation, deriveDriftSigner, deriveDriftSpotMarket, deriveDriftSpotMarketVault, deriveDriftState, deriveDriftUser, deriveDriftUserStats, deriveExponentEventAuthority, deriveFeeReceiver, deriveJupLendClaimAccount, deriveJupLendFTokenMint, deriveJupLendLending, deriveJupLendLendingAdmin, deriveJupLendLendingPdas, deriveJupLendLendingRewardsRateModel, deriveJupLendLiquidity, deriveJupLendLiquiditySupplyPositionPda, deriveJupLendLiquidityVaultAta, deriveJupLendRateModel, deriveJupLendTokenReserve, deriveLendingMarketAuthority, deriveObligation, deriveReferrerState, deriveReferrerTokenState, deriveReserveCollateralMint, deriveReserveCollateralSupply, deriveReserveLiquiditySupply, deriveShortUrl, deriveUserMetadata, deriveUserState, deserializeSerializedInstruction, deserializeTitanWireInstruction, driftRewardsRawToDto, driftSpotMarketRawToDto, driftStateRawToDto, driftUserRawToDto, driftUserStatsRawToDto, dtoToDriftRewardsRaw, dtoToDriftSpotMarketRaw, dtoToDriftStateRaw, dtoToDriftUserRaw, dtoToDriftUserStatsRaw, dtoToFarmRaw, dtoToJupLendingRewardsRateModelRaw, dtoToJupLendingStateRaw, dtoToJupRateModelRaw, dtoToJupTokenReserveRaw, dtoToObligationRaw, dtoToReserveRaw, encodeTitanTemplate, exponentBuyPtArgs, exponentNumberToBigNumber, farmRawToDto, fetchExponentMarketTwo, fetchExponentVault, fetchExponentVaultFromMarket, fetchTitanQuoteSwapV3, findMplMetadataAddress, findPoolAddress, findPoolMintAddress, findPoolMintAddressByVoteAccount, findPoolMintAuthorityAddress, findPoolMplAuthorityAddress, findPoolOnRampAddress, findPoolStakeAddress, findPoolStakeAuthorityAddress, generateDriftReserveCurve, generateJupLendSupplyCurve, generateKaminoReserveCurve, getAccount, getAccountLen, getAllDerivedDriftAccounts, getAllDerivedJupLendAccounts, getAllDerivedKaminoAccounts, getAllRequiredMarkets, getAssociatedTokenAddressSync, getDriftRewards, getDriftTokenAmount, getFixedHostInterestRate, getJupLendRewards, getKaminoBorrowRate, getKaminoTotalSupply, getMinimumBalanceForRentExemptAccount, getMinimumBalanceForRentExemptAccountWithExtensions, getMint, getMintDecimals, getMultipleAccounts, getProtocolTakeRatePct, getReserveRewardsApy, getRewardPerTimeUnitSecond, getStakeAccount, initializeAccountInstructionData, initializeStakedPoolIxs, initializeStakedPoolTx, instructionToTitanWire, interpolateLinear, jupLendingRewardsRateModelRawToDto, jupLendingStateRawToDto, jupRateModelRawToDto, jupTokenReserveRawToDto, layout, lutToTitanWire, makeExponentMergeIx, makeExponentStripIx, makeExponentTradePtIx, makeExponentWrapperMergeIx, makeRefreshObligationIx, makeRefreshReservesBatchIx, makeRefreshingIxs, makeSplStakePoolUpdateBalanceIx, makeUpdateJupLendRate, makeUpdateJupLendRateIx, makeUpdateSpotMarketCumulativeInterestIx, makeUpdateSpotMarketIx, obligationRawToDto, parsePriceData, parsePriceInfo, replenishPoolIx, reserveRawToDto, resolveExponentMergeContext, resolveExponentStripContext, resolveExponentTradePtContext, resolveExponentWrapperMergeContext, resolveLookupTables, scaledSupplies, selectBestRoute, selectGatewayRoute, slotAdjustmentFactor, syncNativeInstructionData, transferCheckedInstructionData, truncateBorrowCurve, unpackAccount };
|
package/dist/vendor.d.ts
CHANGED
|
@@ -27206,11 +27206,11 @@ interface TitanSwapQuoteResult {
|
|
|
27206
27206
|
timeTaken?: number;
|
|
27207
27207
|
}
|
|
27208
27208
|
declare function buildSwapQuoteResult(route: {
|
|
27209
|
-
inAmount: number;
|
|
27210
|
-
outAmount: number;
|
|
27209
|
+
inAmount: number | bigint;
|
|
27210
|
+
outAmount: number | bigint;
|
|
27211
27211
|
slippageBps: number;
|
|
27212
27212
|
platformFee?: {
|
|
27213
|
-
amount: number;
|
|
27213
|
+
amount: number | bigint;
|
|
27214
27214
|
fee_bps: number;
|
|
27215
27215
|
};
|
|
27216
27216
|
contextSlot?: number;
|
|
@@ -27613,6 +27613,106 @@ interface ExponentStripContext {
|
|
|
27613
27613
|
computeStrippedPtNative(syInNative: bigint): bigint;
|
|
27614
27614
|
}
|
|
27615
27615
|
|
|
27616
|
+
/**
|
|
27617
|
+
* Accounts required by `wrapper_merge` — the core instruction that merges PT **and**
|
|
27618
|
+
* redeems the resulting SY into the underlying **base** token in one go (so the buy leg can
|
|
27619
|
+
* swap a normal token, not the un-swappable SY). The 16 fixed accounts mirror the IDL's
|
|
27620
|
+
* `WrapperMerge` struct (same vault-side fields as `merge`, minus the SY destination order);
|
|
27621
|
+
* `remainingAccounts` is the assembled `[...redeem, ...cpi]` list and `redeemSyAccountsUntil`
|
|
27622
|
+
* marks the boundary between them.
|
|
27623
|
+
*/
|
|
27624
|
+
interface ExponentWrapperMergeAccounts {
|
|
27625
|
+
/** Position owner / signer (the marginfi account authority). */
|
|
27626
|
+
owner: PublicKey;
|
|
27627
|
+
/** Owner's SY token account (intermediate; the redeem consumes it). */
|
|
27628
|
+
syAta: PublicKey;
|
|
27629
|
+
/** The maturity vault address. */
|
|
27630
|
+
vault: PublicKey;
|
|
27631
|
+
/** `Vault.escrow_sy`. */
|
|
27632
|
+
escrowSy: PublicKey;
|
|
27633
|
+
/** Owner's YT token account (source; empty/0 after maturity). */
|
|
27634
|
+
ytAta: PublicKey;
|
|
27635
|
+
/** Owner's PT token account (source; holds the withdrawn PT). */
|
|
27636
|
+
ptAta: PublicKey;
|
|
27637
|
+
/** `Vault.mint_yt`. */
|
|
27638
|
+
mintYt: PublicKey;
|
|
27639
|
+
/** `Vault.mint_pt`. */
|
|
27640
|
+
mintPt: PublicKey;
|
|
27641
|
+
/** `Vault.authority`. */
|
|
27642
|
+
authority: PublicKey;
|
|
27643
|
+
/** `Vault.address_lookup_table`. */
|
|
27644
|
+
addressLookupTable: PublicKey;
|
|
27645
|
+
/** `Vault.yield_position` (the vault robot yield position). */
|
|
27646
|
+
yieldPosition: PublicKey;
|
|
27647
|
+
/** `Vault.sy_program`. */
|
|
27648
|
+
syProgram: PublicKey;
|
|
27649
|
+
/** SPL token program for the PT/YT/SY mints (defaults to classic Token). */
|
|
27650
|
+
tokenProgram?: PublicKey;
|
|
27651
|
+
/**
|
|
27652
|
+
* Assembled SY-program remaining accounts: the flavor's `redeem_sy` accounts first
|
|
27653
|
+
* (count = `redeemSyAccountsUntil`), then the vault's deduped `withdraw_sy ++ get_sy_state`
|
|
27654
|
+
* CPI accounts. The redeem's first account is the owner and keeps its signer flag.
|
|
27655
|
+
*/
|
|
27656
|
+
remainingAccounts: AccountMeta$1[];
|
|
27657
|
+
/** Number of leading `remainingAccounts` that are the flavor redeem accounts. */
|
|
27658
|
+
redeemSyAccountsUntil: number;
|
|
27659
|
+
}
|
|
27660
|
+
interface ResolveExponentWrapperMergeContextParams {
|
|
27661
|
+
connection: Connection;
|
|
27662
|
+
/** Position owner / signer (the marginfi account authority). */
|
|
27663
|
+
owner: PublicKey;
|
|
27664
|
+
/** The maturity vault, or… */
|
|
27665
|
+
vault?: PublicKey;
|
|
27666
|
+
/** …the `MarketTwo` address (its `vault` is read). One of `vault`/`market` is required. */
|
|
27667
|
+
market?: PublicKey;
|
|
27668
|
+
/**
|
|
27669
|
+
* The flavor's underlying **base** token (e.g. bulkSOL). Required — it isn't on the
|
|
27670
|
+
* vault; the caller supplies it (config). The redeem unwraps SY into this token.
|
|
27671
|
+
*/
|
|
27672
|
+
baseMint: PublicKey;
|
|
27673
|
+
/** Token program for the base mint (defaults to classic Token). */
|
|
27674
|
+
baseTokenProgram?: PublicKey;
|
|
27675
|
+
/** Token program for the PT/YT mints (Exponent uses classic Token). */
|
|
27676
|
+
ptYtTokenProgram?: PublicKey;
|
|
27677
|
+
/** Token program for the SY mint (may be token-2022). Defaults to classic Token. */
|
|
27678
|
+
syTokenProgram?: PublicKey;
|
|
27679
|
+
}
|
|
27680
|
+
/**
|
|
27681
|
+
* Resolved inputs for the roll's redeem leg: the `wrapper_merge` accounts, the SPL
|
|
27682
|
+
* stake-pool refresh that must run before it (so the SY↔base rate is current), the base
|
|
27683
|
+
* token the swap leg consumes, and a helper to size the redeemed base from the vault rates.
|
|
27684
|
+
*/
|
|
27685
|
+
interface ExponentWrapperMergeContext {
|
|
27686
|
+
vaultAddress: PublicKey;
|
|
27687
|
+
vault: ExponentVault;
|
|
27688
|
+
wrapperMergeAccounts: ExponentWrapperMergeAccounts;
|
|
27689
|
+
/**
|
|
27690
|
+
* Instruction(s) the flavor requires *before* `wrapper_merge` (for an SPL-stake-pool LST
|
|
27691
|
+
* like bulkSOL, the stake pool's `UpdateStakePoolBalance` refresh). Empty for flavors that
|
|
27692
|
+
* need none.
|
|
27693
|
+
*/
|
|
27694
|
+
preInstructions: TransactionInstruction[];
|
|
27695
|
+
/** The vault's address lookup table — add it to the transaction's lookup tables. */
|
|
27696
|
+
addressLookupTable: AddressLookupTableAccount;
|
|
27697
|
+
/** The redeemed underlying base token (swap-leg input). */
|
|
27698
|
+
baseToken: {
|
|
27699
|
+
mint: PublicKey;
|
|
27700
|
+
decimals: number;
|
|
27701
|
+
tokenProgram: PublicKey;
|
|
27702
|
+
};
|
|
27703
|
+
/** ATAs the bundle touches and must create idempotently (sy, pt, yt, base). */
|
|
27704
|
+
setupMints: {
|
|
27705
|
+
mint: PublicKey;
|
|
27706
|
+
tokenProgram: PublicKey;
|
|
27707
|
+
}[];
|
|
27708
|
+
/**
|
|
27709
|
+
* Native base the wrapper yields for a native PT amount: `merge` gives
|
|
27710
|
+
* `sy = floor(pt × sy_for_pt / pt_supply)`, then the redeem gives
|
|
27711
|
+
* `base = floor(sy × sy_exchange_rate)`. Feed into the swap-engine input sizing.
|
|
27712
|
+
*/
|
|
27713
|
+
computeRedeemedBaseNative(ptAmountNative: bigint): bigint;
|
|
27714
|
+
}
|
|
27715
|
+
|
|
27616
27716
|
/**
|
|
27617
27717
|
* Exponent Finance program IDs (mainnet), taken from the official SDK's
|
|
27618
27718
|
* `@exponent-labs/exponent-sdk` `environment.js`.
|
|
@@ -28272,6 +28372,18 @@ declare function resolveExponentTradePtContext(params: ResolveExponentTradePtCon
|
|
|
28272
28372
|
* address lookup table, and exposes the last-seen SY exchange rate for sizing the minted PT.
|
|
28273
28373
|
*/
|
|
28274
28374
|
declare function resolveExponentStripContext(params: ResolveExponentStripContextParams): Promise<ExponentStripContext>;
|
|
28375
|
+
/**
|
|
28376
|
+
* Resolve everything the roll's redeem leg needs to turn matured PT into the underlying
|
|
28377
|
+
* **base** token via `wrapper_merge` (merge PT → SY, then CPI-redeem SY → base, in one ix) —
|
|
28378
|
+
* so the buy leg swaps a normal token, not the un-swappable SY.
|
|
28379
|
+
*
|
|
28380
|
+
* Decodes the maturity `Vault`, derives the owner's SY/PT/YT/base token accounts, assembles
|
|
28381
|
+
* the flavor redeem accounts (all derivable: the generic SY state is `get_sy_state[0]`, the
|
|
28382
|
+
* SPL stake pool is `get_sy_state[3]`, the base escrow is `ATA(syState, baseMint)`), appends
|
|
28383
|
+
* the vault's `withdraw_sy ++ get_sy_state` CPI accounts, and builds the stake-pool refresh
|
|
28384
|
+
* that must run first. Validated byte-for-byte against the Exponent SDK's `ixMergeToBase`.
|
|
28385
|
+
*/
|
|
28386
|
+
declare function resolveExponentWrapperMergeContext(params: ResolveExponentWrapperMergeContextParams): Promise<ExponentWrapperMergeContext>;
|
|
28275
28387
|
|
|
28276
28388
|
/**
|
|
28277
28389
|
* Build the Exponent `merge(amount)` instruction — redeems `amount` PT (post-maturity,
|
|
@@ -28327,5 +28439,39 @@ declare function makeExponentTradePtIx(accounts: ExponentTradePtAccounts, args:
|
|
|
28327
28439
|
* @param amountNative SY amount to strip, in native units (u64)
|
|
28328
28440
|
*/
|
|
28329
28441
|
declare function makeExponentStripIx(accounts: ExponentStripAccounts, amountNative: bigint): TransactionInstruction;
|
|
28442
|
+
/**
|
|
28443
|
+
* Build the Exponent `wrapper_merge(amount_py, redeem_sy_accounts_until)` instruction —
|
|
28444
|
+
* redeems `amountPyNative` PT into the underlying base token at the owner's base ATA.
|
|
28445
|
+
*
|
|
28446
|
+
* The remaining accounts are `[...flavor redeem accounts, ...vault SY-CPI accounts]`;
|
|
28447
|
+
* `redeemSyAccountsUntil` tells the program where the redeem accounts end. The redeem's first
|
|
28448
|
+
* account is the owner and keeps its signer flag (the SY-CPI accounts are forced non-signer,
|
|
28449
|
+
* resolved upstream). The transaction must carry the vault's address lookup table.
|
|
28450
|
+
*
|
|
28451
|
+
* @param accounts resolved wrapper-merge accounts (see {@link ExponentWrapperMergeAccounts})
|
|
28452
|
+
* @param args `amountPyNative` (u64) PT to redeem + `redeemSyAccountsUntil` (u8)
|
|
28453
|
+
*/
|
|
28454
|
+
declare function makeExponentWrapperMergeIx(accounts: ExponentWrapperMergeAccounts, args: {
|
|
28455
|
+
amountPyNative: bigint;
|
|
28456
|
+
redeemSyAccountsUntil: number;
|
|
28457
|
+
}): TransactionInstruction;
|
|
28458
|
+
/**
|
|
28459
|
+
* Build the SPL Stake Pool `UpdateStakePoolBalance` instruction — refreshes a stake pool's
|
|
28460
|
+
* total-lamports / pool-token-supply so the pool↔token exchange rate is current for the
|
|
28461
|
+
* epoch. An SPL-stake-pool SY flavor (e.g. bulkSOL) requires this immediately before
|
|
28462
|
+
* `wrapper_merge`, otherwise the redeem reads a stale SY↔base rate.
|
|
28463
|
+
*
|
|
28464
|
+
* Account order matches the SPL Stake Pool program's `UpdateStakePoolBalance`.
|
|
28465
|
+
*/
|
|
28466
|
+
declare function makeSplStakePoolUpdateBalanceIx(accounts: {
|
|
28467
|
+
stakePoolProgram: PublicKey;
|
|
28468
|
+
stakePool: PublicKey;
|
|
28469
|
+
withdrawAuthority: PublicKey;
|
|
28470
|
+
validatorList: PublicKey;
|
|
28471
|
+
reserveStake: PublicKey;
|
|
28472
|
+
managerFeeAccount: PublicKey;
|
|
28473
|
+
poolMint: PublicKey;
|
|
28474
|
+
tokenProgram?: PublicKey;
|
|
28475
|
+
}): TransactionInstruction;
|
|
28330
28476
|
|
|
28331
|
-
export { ACCOUNT_SIZE, ACCOUNT_TYPE_SIZE, ASSOCIATED_TOKEN_PROGRAM_ID, type Account, AccountLayout, type AccountMeta, AccountState, AccountType, type ApproveInstructionData, type Base, type ClientRequest, type CloseAccountInstructionData, ConnectionClosed, CorpAction, CurvePointFields, DEFAULT_RECENT_SLOT_DURATION_MS, DRIFT_IDL, DRIFT_PROGRAM_ID, type DriftIdlType, type DriftInterestRateCurvePoint, DriftRewards, DriftRewardsJSON, DriftSpotBalanceType, DriftSpotMarket, DriftSpotMarketJSON, type DriftSpotMarketRaw, type DriftState, type DriftStateJSON, DriftUser, DriftUserJSON, type DriftUserRaw, DriftUserStats, DriftUserStatsJSON, EXPONENT_CLMM_PROGRAM_ID, EXPONENT_CORE_IDL, EXPONENT_CORE_PROGRAM_ID, EXPONENT_EVENT_AUTHORITY_SEED, EXPONENT_GENERIC_SY_PROGRAM_ID, EXPONENT_JITO_RESTAKING_SY_PROGRAM_ID, EXPONENT_KAMINO_SY_PROGRAM_ID, EXPONENT_MARGINFI_SY_PROGRAM_ID, EXPONENT_NUMBER_DENOM, EXPONENT_ORDERBOOK_PROGRAM_ID, EXPONENT_PERENA_SY_PROGRAM_ID, EXPONENT_VAULTS_PROGRAM_ID, type Ema, ErrorResponse, type ExponentCpiInterfaceContext, type ExponentMarketTwo, type ExponentMarketTwoCpiAccounts, type ExponentMergeAccounts, type ExponentMergeContext, type ExponentStripAccounts, type ExponentStripContext, type ExponentTradePtAccounts, type ExponentTradePtContext, type ExponentVault, ExtensionType, FARMS_PROGRAM_ID, FarmStateJSON, FarmStateRaw, FeeStructure, FeeStructureJSON, HistoricalIndexData, HistoricalOracleData, type InitializeAccountInstructionData, type Instruction, InsuranceFund, JUP_EXCHANGE_PRICES_PRECISION, JUP_LEND_IDL, JUP_LEND_PROGRAM_ID, JUP_LIQUIDITY_IDL, JUP_LIQUIDITY_PROGRAM_ID, JUP_MAX_REWARDS_RATE, JUP_REWARDS_PROGRAM_ID, JUP_SECONDS_PER_YEAR, type JupLendIdlType, type JupLendInterestRateCurvePoint, type JupLendRewardsResult, JupLendingRewardsRateModel, JupLendingRewardsRateModelJSON, type JupLendingRewardsRateModelRaw, JupLendingState, JupLendingStateJSON, type JupLendingStateRaw, type JupLiquidityIdlType, JupRateModel, JupRateModelJSON, type JupRateModelRaw, JupTokenReserve, JupTokenReserveJSON, type JupTokenReserveRaw, KFARMS_IDL, KLEND_ACCOUNT_CODER, KLEND_IDL, KLEND_PROGRAM_ID, type KaminoReserveCurveData, type KfarmsIdlType, type KlendIdlType, type KlendInterestRateCurvePoint, LENGTH_SIZE, MAX_SLOT_DIFFERENCE, MEMO_PROGRAM_ID, MINT_SIZE, MULTISIG_SIZE, type Mint, MintLayout, type Multisig, MultisigLayout, NATIVE_MINT, ONE, ONE_HUNDRED_PCT_IN_BPS, ONE_YEAR, ObligationJSON, ObligationRaw, OracleGuardRails, OracleGuardRailsJSON, PERCENTAGE_PRECISION, PERCENTAGE_PRECISION_EXP, type PlatformFee, PoolBalance, type Price, type PriceComponent, type PriceData, PriceStatus, PriceType, type Pubkey, type QuoteSwapStreamResponse, type QuoteUpdateParams, REFRESH_OBLIGATION_DISCRIMINATOR, type RawAccount, type RawMint, type RawMultisig, type RefreshObligationAccounts, type RequestData, ReserveJSON, ReserveRaw, type ResolveExponentMergeContextParams, type ResolveExponentStripContextParams, type ResolveExponentTradePtContextParams, type ResponseData, type ResponseError, type ResponseSuccess, type ResponseWithStream, RewardInfoFields, type RoutePlanStep, SEED_BASE_REFERRER_STATE, SEED_BASE_REFERRER_TOKEN_STATE, SEED_BASE_SHORT_URL, SEED_BASE_USER_METADATA, SEED_DRIFT_SIGNER, SEED_DRIFT_STATE, SEED_FEE_RECEIVER, SEED_F_TOKEN_MINT, SEED_LENDING, SEED_LENDING_ADMIN, SEED_LENDING_MARKET_AUTH, SEED_LENDING_REWARDS_RATE_MODEL, SEED_LIQUIDITY, SEED_RATE_MODEL, SEED_RESERVE, SEED_RESERVE_COLL_MINT, SEED_RESERVE_COLL_SUPPLY, SEED_RESERVE_LIQ_SUPPLY, SEED_SPOT_MARKET, SEED_SPOT_MARKET_VAULT, SEED_USER, SEED_USER_CLAIM, SEED_USER_STATE, SEED_USER_STATS, SEED_USER_SUPPLY_POSITION, SLOTS_PER_DAY, SLOTS_PER_HOUR, SLOTS_PER_MINUTE, SLOTS_PER_SECOND, SLOTS_PER_YEAR, SPOT_MARKET_RATE_PRECISION, SPOT_MARKET_RATE_PRECISION_EXP, SPOT_MARKET_UTILIZATION_PRECISION, SPOT_MARKET_UTILIZATION_PRECISION_EXP, type SerializedInstruction, type SerializedSwapRoute, type ServerMessage, SinglePoolInstruction, SplAccountType, SpotPosition, type StakeAccount, type StopStreamRequest, type StopStreamResponse, type StreamData, type StreamDataPayload, type StreamEnd, StreamError, type StreamStart, SwapMode, type SwapParams, type SwapQuoteRequest, type SwapQuotes, type SwapRoute, SwapVersion, type SyncNativeInstructionData, TEN, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, TYPE_SIZE, type TitanGatewayQuoteParams, type TitanGatewayQuoteResponse, type TitanProxyExactOutResponse, type TitanProxySwapQuoteResponse, type TitanSwapQuoteResult, type TitanTemplateLut, type TitanTransactionTemplate, TokenAccountNotFoundError, TokenError, TokenInstruction, TokenInvalidAccountError, TokenInvalidAccountOwnerError, TokenInvalidAccountSizeError, TokenInvalidInstructionDataError, TokenInvalidInstructionKeysError, TokenInvalidInstructionProgramError, TokenInvalidInstructionTypeError, TokenInvalidMintError, TokenInvalidOwnerError, TokenOwnerOffCurveError, TokenUnsupportedInstructionError, type TransactionParams, type TransactionTemplate, type TransactionTemplateLut, type TransferCheckedInstructionData, type Uint64, V1Client, ZERO, addSigners, approveInstructionData, buildSwapQuoteResult, buildTitanTemplate, calculateAPYFromAPR, calculateDriftBorrowAPR, calculateDriftBorrowAPY, calculateDriftBorrowRate, calculateDriftDepositRate, calculateDriftInterestRate, calculateDriftLendingAPR, calculateDriftLendingAPY, calculateDriftUtilization, calculateJupLendBorrowRate, calculateJupLendLiquiditySupplyRate, calculateJupLendNewExchangePrice, calculateJupLendRewardsRate, calculateJupLendRewardsRateForExchangePrice, calculateJupLendSupplyAPY, calculateJupLendSupplyRate, calculateJupLendTotalAssets, calculateKaminoEstimatedBorrowRate, calculateKaminoEstimatedSupplyRate, calculateKaminoSupplyAPY, calculateRewardApy, calculateSlotAdjustmentFactor, calculateUtilizationRatio, closeAccountInstructionData, createAccountIx, createApproveInstruction, createAssociatedTokenAccountIdempotentInstruction, createAssociatedTokenAccountInstruction, createCloseAccountInstruction, createInitializeAccountInstruction, createMemoInstruction, createPoolOnrampIx, createSyncNativeInstruction, createTransferCheckedInstruction, decodeDriftSpotMarketData, decodeDriftStateData, decodeDriftUserData, decodeDriftUserStatsData, decodeExponentMarketTwo, decodeExponentMarketVault, decodeExponentVault, decodeFarmDataRaw, decodeJupLendingRewardsRateModelData, decodeJupLendingStateData, decodeJupRateModelData, decodeJupTokenReserveData, decodeKlendObligationData, decodeKlendReserveData, deriveBaseObligation, deriveDriftSigner, deriveDriftSpotMarket, deriveDriftSpotMarketVault, deriveDriftState, deriveDriftUser, deriveDriftUserStats, deriveExponentEventAuthority, deriveFeeReceiver, deriveJupLendClaimAccount, deriveJupLendFTokenMint, deriveJupLendLending, deriveJupLendLendingAdmin, deriveJupLendLendingPdas, deriveJupLendLendingRewardsRateModel, deriveJupLendLiquidity, deriveJupLendLiquiditySupplyPositionPda, deriveJupLendLiquidityVaultAta, deriveJupLendRateModel, deriveJupLendTokenReserve, deriveLendingMarketAuthority, deriveObligation, deriveReferrerState, deriveReferrerTokenState, deriveReserveCollateralMint, deriveReserveCollateralSupply, deriveReserveLiquiditySupply, deriveShortUrl, deriveUserMetadata, deriveUserState, deserializeSerializedInstruction, deserializeTitanWireInstruction, driftRewardsRawToDto, driftSpotMarketRawToDto, driftStateRawToDto, driftUserRawToDto, driftUserStatsRawToDto, dtoToDriftRewardsRaw, dtoToDriftSpotMarketRaw, dtoToDriftStateRaw, dtoToDriftUserRaw, dtoToDriftUserStatsRaw, dtoToFarmRaw, dtoToJupLendingRewardsRateModelRaw, dtoToJupLendingStateRaw, dtoToJupRateModelRaw, dtoToJupTokenReserveRaw, dtoToObligationRaw, dtoToReserveRaw, encodeTitanTemplate, exponentBuyPtArgs, exponentNumberToBigNumber, farmRawToDto, fetchExponentMarketTwo, fetchExponentVault, fetchExponentVaultFromMarket, fetchTitanQuoteSwapV3, findMplMetadataAddress, findPoolAddress, findPoolMintAddress, findPoolMintAddressByVoteAccount, findPoolMintAuthorityAddress, findPoolMplAuthorityAddress, findPoolOnRampAddress, findPoolStakeAddress, findPoolStakeAuthorityAddress, generateDriftReserveCurve, generateJupLendSupplyCurve, generateKaminoReserveCurve, getAccount, getAccountLen, getAllDerivedDriftAccounts, getAllDerivedJupLendAccounts, getAllDerivedKaminoAccounts, getAllRequiredMarkets, getAssociatedTokenAddressSync, getDriftRewards, getDriftTokenAmount, getFixedHostInterestRate, getJupLendRewards, getKaminoBorrowRate, getKaminoTotalSupply, getMinimumBalanceForRentExemptAccount, getMinimumBalanceForRentExemptAccountWithExtensions, getMint, getMintDecimals, getMultipleAccounts, getProtocolTakeRatePct, getReserveRewardsApy, getRewardPerTimeUnitSecond, getStakeAccount, initializeAccountInstructionData, initializeStakedPoolIxs, initializeStakedPoolTx, instructionToTitanWire, interpolateLinear, jupLendingRewardsRateModelRawToDto, jupLendingStateRawToDto, jupRateModelRawToDto, jupTokenReserveRawToDto, layout, lutToTitanWire, makeExponentMergeIx, makeExponentStripIx, makeExponentTradePtIx, makeRefreshObligationIx, makeRefreshReservesBatchIx, makeRefreshingIxs, makeUpdateJupLendRate, makeUpdateJupLendRateIx, makeUpdateSpotMarketCumulativeInterestIx, makeUpdateSpotMarketIx, obligationRawToDto, parsePriceData, parsePriceInfo, replenishPoolIx, reserveRawToDto, resolveExponentMergeContext, resolveExponentStripContext, resolveExponentTradePtContext, resolveLookupTables, scaledSupplies, selectBestRoute, selectGatewayRoute, slotAdjustmentFactor, syncNativeInstructionData, transferCheckedInstructionData, truncateBorrowCurve, unpackAccount };
|
|
28477
|
+
export { ACCOUNT_SIZE, ACCOUNT_TYPE_SIZE, ASSOCIATED_TOKEN_PROGRAM_ID, type Account, AccountLayout, type AccountMeta, AccountState, AccountType, type ApproveInstructionData, type Base, type ClientRequest, type CloseAccountInstructionData, ConnectionClosed, CorpAction, CurvePointFields, DEFAULT_RECENT_SLOT_DURATION_MS, DRIFT_IDL, DRIFT_PROGRAM_ID, type DriftIdlType, type DriftInterestRateCurvePoint, DriftRewards, DriftRewardsJSON, DriftSpotBalanceType, DriftSpotMarket, DriftSpotMarketJSON, type DriftSpotMarketRaw, type DriftState, type DriftStateJSON, DriftUser, DriftUserJSON, type DriftUserRaw, DriftUserStats, DriftUserStatsJSON, EXPONENT_CLMM_PROGRAM_ID, EXPONENT_CORE_IDL, EXPONENT_CORE_PROGRAM_ID, EXPONENT_EVENT_AUTHORITY_SEED, EXPONENT_GENERIC_SY_PROGRAM_ID, EXPONENT_JITO_RESTAKING_SY_PROGRAM_ID, EXPONENT_KAMINO_SY_PROGRAM_ID, EXPONENT_MARGINFI_SY_PROGRAM_ID, EXPONENT_NUMBER_DENOM, EXPONENT_ORDERBOOK_PROGRAM_ID, EXPONENT_PERENA_SY_PROGRAM_ID, EXPONENT_VAULTS_PROGRAM_ID, type Ema, ErrorResponse, type ExponentCpiInterfaceContext, type ExponentMarketTwo, type ExponentMarketTwoCpiAccounts, type ExponentMergeAccounts, type ExponentMergeContext, type ExponentStripAccounts, type ExponentStripContext, type ExponentTradePtAccounts, type ExponentTradePtContext, type ExponentVault, type ExponentWrapperMergeAccounts, type ExponentWrapperMergeContext, ExtensionType, FARMS_PROGRAM_ID, FarmStateJSON, FarmStateRaw, FeeStructure, FeeStructureJSON, HistoricalIndexData, HistoricalOracleData, type InitializeAccountInstructionData, type Instruction, InsuranceFund, JUP_EXCHANGE_PRICES_PRECISION, JUP_LEND_IDL, JUP_LEND_PROGRAM_ID, JUP_LIQUIDITY_IDL, JUP_LIQUIDITY_PROGRAM_ID, JUP_MAX_REWARDS_RATE, JUP_REWARDS_PROGRAM_ID, JUP_SECONDS_PER_YEAR, type JupLendIdlType, type JupLendInterestRateCurvePoint, type JupLendRewardsResult, JupLendingRewardsRateModel, JupLendingRewardsRateModelJSON, type JupLendingRewardsRateModelRaw, JupLendingState, JupLendingStateJSON, type JupLendingStateRaw, type JupLiquidityIdlType, JupRateModel, JupRateModelJSON, type JupRateModelRaw, JupTokenReserve, JupTokenReserveJSON, type JupTokenReserveRaw, KFARMS_IDL, KLEND_ACCOUNT_CODER, KLEND_IDL, KLEND_PROGRAM_ID, type KaminoReserveCurveData, type KfarmsIdlType, type KlendIdlType, type KlendInterestRateCurvePoint, LENGTH_SIZE, MAX_SLOT_DIFFERENCE, MEMO_PROGRAM_ID, MINT_SIZE, MULTISIG_SIZE, type Mint, MintLayout, type Multisig, MultisigLayout, NATIVE_MINT, ONE, ONE_HUNDRED_PCT_IN_BPS, ONE_YEAR, ObligationJSON, ObligationRaw, OracleGuardRails, OracleGuardRailsJSON, PERCENTAGE_PRECISION, PERCENTAGE_PRECISION_EXP, type PlatformFee, PoolBalance, type Price, type PriceComponent, type PriceData, PriceStatus, PriceType, type Pubkey, type QuoteSwapStreamResponse, type QuoteUpdateParams, REFRESH_OBLIGATION_DISCRIMINATOR, type RawAccount, type RawMint, type RawMultisig, type RefreshObligationAccounts, type RequestData, ReserveJSON, ReserveRaw, type ResolveExponentMergeContextParams, type ResolveExponentStripContextParams, type ResolveExponentTradePtContextParams, type ResolveExponentWrapperMergeContextParams, type ResponseData, type ResponseError, type ResponseSuccess, type ResponseWithStream, RewardInfoFields, type RoutePlanStep, SEED_BASE_REFERRER_STATE, SEED_BASE_REFERRER_TOKEN_STATE, SEED_BASE_SHORT_URL, SEED_BASE_USER_METADATA, SEED_DRIFT_SIGNER, SEED_DRIFT_STATE, SEED_FEE_RECEIVER, SEED_F_TOKEN_MINT, SEED_LENDING, SEED_LENDING_ADMIN, SEED_LENDING_MARKET_AUTH, SEED_LENDING_REWARDS_RATE_MODEL, SEED_LIQUIDITY, SEED_RATE_MODEL, SEED_RESERVE, SEED_RESERVE_COLL_MINT, SEED_RESERVE_COLL_SUPPLY, SEED_RESERVE_LIQ_SUPPLY, SEED_SPOT_MARKET, SEED_SPOT_MARKET_VAULT, SEED_USER, SEED_USER_CLAIM, SEED_USER_STATE, SEED_USER_STATS, SEED_USER_SUPPLY_POSITION, SLOTS_PER_DAY, SLOTS_PER_HOUR, SLOTS_PER_MINUTE, SLOTS_PER_SECOND, SLOTS_PER_YEAR, SPOT_MARKET_RATE_PRECISION, SPOT_MARKET_RATE_PRECISION_EXP, SPOT_MARKET_UTILIZATION_PRECISION, SPOT_MARKET_UTILIZATION_PRECISION_EXP, type SerializedInstruction, type SerializedSwapRoute, type ServerMessage, SinglePoolInstruction, SplAccountType, SpotPosition, type StakeAccount, type StopStreamRequest, type StopStreamResponse, type StreamData, type StreamDataPayload, type StreamEnd, StreamError, type StreamStart, SwapMode, type SwapParams, type SwapQuoteRequest, type SwapQuotes, type SwapRoute, SwapVersion, type SyncNativeInstructionData, TEN, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, TYPE_SIZE, type TitanGatewayQuoteParams, type TitanGatewayQuoteResponse, type TitanProxyExactOutResponse, type TitanProxySwapQuoteResponse, type TitanSwapQuoteResult, type TitanTemplateLut, type TitanTransactionTemplate, TokenAccountNotFoundError, TokenError, TokenInstruction, TokenInvalidAccountError, TokenInvalidAccountOwnerError, TokenInvalidAccountSizeError, TokenInvalidInstructionDataError, TokenInvalidInstructionKeysError, TokenInvalidInstructionProgramError, TokenInvalidInstructionTypeError, TokenInvalidMintError, TokenInvalidOwnerError, TokenOwnerOffCurveError, TokenUnsupportedInstructionError, type TransactionParams, type TransactionTemplate, type TransactionTemplateLut, type TransferCheckedInstructionData, type Uint64, V1Client, ZERO, addSigners, approveInstructionData, buildSwapQuoteResult, buildTitanTemplate, calculateAPYFromAPR, calculateDriftBorrowAPR, calculateDriftBorrowAPY, calculateDriftBorrowRate, calculateDriftDepositRate, calculateDriftInterestRate, calculateDriftLendingAPR, calculateDriftLendingAPY, calculateDriftUtilization, calculateJupLendBorrowRate, calculateJupLendLiquiditySupplyRate, calculateJupLendNewExchangePrice, calculateJupLendRewardsRate, calculateJupLendRewardsRateForExchangePrice, calculateJupLendSupplyAPY, calculateJupLendSupplyRate, calculateJupLendTotalAssets, calculateKaminoEstimatedBorrowRate, calculateKaminoEstimatedSupplyRate, calculateKaminoSupplyAPY, calculateRewardApy, calculateSlotAdjustmentFactor, calculateUtilizationRatio, closeAccountInstructionData, createAccountIx, createApproveInstruction, createAssociatedTokenAccountIdempotentInstruction, createAssociatedTokenAccountInstruction, createCloseAccountInstruction, createInitializeAccountInstruction, createMemoInstruction, createPoolOnrampIx, createSyncNativeInstruction, createTransferCheckedInstruction, decodeDriftSpotMarketData, decodeDriftStateData, decodeDriftUserData, decodeDriftUserStatsData, decodeExponentMarketTwo, decodeExponentMarketVault, decodeExponentVault, decodeFarmDataRaw, decodeJupLendingRewardsRateModelData, decodeJupLendingStateData, decodeJupRateModelData, decodeJupTokenReserveData, decodeKlendObligationData, decodeKlendReserveData, deriveBaseObligation, deriveDriftSigner, deriveDriftSpotMarket, deriveDriftSpotMarketVault, deriveDriftState, deriveDriftUser, deriveDriftUserStats, deriveExponentEventAuthority, deriveFeeReceiver, deriveJupLendClaimAccount, deriveJupLendFTokenMint, deriveJupLendLending, deriveJupLendLendingAdmin, deriveJupLendLendingPdas, deriveJupLendLendingRewardsRateModel, deriveJupLendLiquidity, deriveJupLendLiquiditySupplyPositionPda, deriveJupLendLiquidityVaultAta, deriveJupLendRateModel, deriveJupLendTokenReserve, deriveLendingMarketAuthority, deriveObligation, deriveReferrerState, deriveReferrerTokenState, deriveReserveCollateralMint, deriveReserveCollateralSupply, deriveReserveLiquiditySupply, deriveShortUrl, deriveUserMetadata, deriveUserState, deserializeSerializedInstruction, deserializeTitanWireInstruction, driftRewardsRawToDto, driftSpotMarketRawToDto, driftStateRawToDto, driftUserRawToDto, driftUserStatsRawToDto, dtoToDriftRewardsRaw, dtoToDriftSpotMarketRaw, dtoToDriftStateRaw, dtoToDriftUserRaw, dtoToDriftUserStatsRaw, dtoToFarmRaw, dtoToJupLendingRewardsRateModelRaw, dtoToJupLendingStateRaw, dtoToJupRateModelRaw, dtoToJupTokenReserveRaw, dtoToObligationRaw, dtoToReserveRaw, encodeTitanTemplate, exponentBuyPtArgs, exponentNumberToBigNumber, farmRawToDto, fetchExponentMarketTwo, fetchExponentVault, fetchExponentVaultFromMarket, fetchTitanQuoteSwapV3, findMplMetadataAddress, findPoolAddress, findPoolMintAddress, findPoolMintAddressByVoteAccount, findPoolMintAuthorityAddress, findPoolMplAuthorityAddress, findPoolOnRampAddress, findPoolStakeAddress, findPoolStakeAuthorityAddress, generateDriftReserveCurve, generateJupLendSupplyCurve, generateKaminoReserveCurve, getAccount, getAccountLen, getAllDerivedDriftAccounts, getAllDerivedJupLendAccounts, getAllDerivedKaminoAccounts, getAllRequiredMarkets, getAssociatedTokenAddressSync, getDriftRewards, getDriftTokenAmount, getFixedHostInterestRate, getJupLendRewards, getKaminoBorrowRate, getKaminoTotalSupply, getMinimumBalanceForRentExemptAccount, getMinimumBalanceForRentExemptAccountWithExtensions, getMint, getMintDecimals, getMultipleAccounts, getProtocolTakeRatePct, getReserveRewardsApy, getRewardPerTimeUnitSecond, getStakeAccount, initializeAccountInstructionData, initializeStakedPoolIxs, initializeStakedPoolTx, instructionToTitanWire, interpolateLinear, jupLendingRewardsRateModelRawToDto, jupLendingStateRawToDto, jupRateModelRawToDto, jupTokenReserveRawToDto, layout, lutToTitanWire, makeExponentMergeIx, makeExponentStripIx, makeExponentTradePtIx, makeExponentWrapperMergeIx, makeRefreshObligationIx, makeRefreshReservesBatchIx, makeRefreshingIxs, makeSplStakePoolUpdateBalanceIx, makeUpdateJupLendRate, makeUpdateJupLendRateIx, makeUpdateSpotMarketCumulativeInterestIx, makeUpdateSpotMarketIx, obligationRawToDto, parsePriceData, parsePriceInfo, replenishPoolIx, reserveRawToDto, resolveExponentMergeContext, resolveExponentStripContext, resolveExponentTradePtContext, resolveExponentWrapperMergeContext, resolveLookupTables, scaledSupplies, selectBestRoute, selectGatewayRoute, slotAdjustmentFactor, syncNativeInstructionData, transferCheckedInstructionData, truncateBorrowCurve, unpackAccount };
|