@0dotxyz/p0-ts-sdk 3.0.0-next.2 → 3.0.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vendor.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _solana_kit from '@solana/kit';
2
2
  import { Address, ReadonlyUint8Array, Instruction as Instruction$1, ProgramDerivedAddress, Rpc, GetMultipleAccountsApi, AccountRole, AddressesByLookupTableAddress, AccountMeta as AccountMeta$1 } from '@solana/kit';
3
- import { K as KaminoReserve, e as KaminoObligation, f as KaminoFarmState, g as KaminoInterestRateBasis, h as KaminoBorrowRateCurvePoint, i as KaminoFarmRewardInfo, j as KaminoObligationJSON, k as KaminoReserveJSON, l as KaminoFarmStateJSON, m as KaminoBankInput, b as KaminoStates, n as KaminoStatesJSON, D as DriftSpotMarket, o as DriftUser, p as DriftUserStats, S as SpotBalanceType, q as DriftRewards, r as DriftSpotMarketJSON, s as DriftUserJSON, t as DriftRewardsJSON, u as DriftUserStatsJSON, v as DriftBankInput, c as DriftStates, w as DriftStatesJSON, x as JupLendingState, J as JupTokenReserve, y as JupRateModel, z as JupLendingRewardsRateModel, A as JupLendingStateJSON, B as JupTokenReserveJSON, C as JupLendingRewardsRateModelJSON, E as JupRateModelJSON, F as JupLendBankInput, d as JupLendStates, H as JupLendStatesJSON, G as GammaLpVault, a as GammaWithdrawReceipt } from './types-DvtvVd73.cjs';
4
- export { T as DriftSpotPosition, V as DriftSpotPositionJSON, U as DriftUserFees, Q as KaminoFarmTokenInfo, O as KaminoObligationCollateral, P as KaminoObligationLiquidity, L as KaminoReserveCollateral, M as KaminoReserveConfig, I as KaminoReserveLiquidity, N as KaminoReserveTokenInfo, R as KaminoRewardCurvePoint } from './types-DvtvVd73.cjs';
3
+ import { K as KaminoReserve, g as KaminoObligation, h as KaminoFarmState, i as KaminoInterestRateBasis, j as KaminoBorrowRateCurvePoint, k as KaminoFarmRewardInfo, l as KaminoObligationJSON, m as KaminoReserveJSON, n as KaminoFarmStateJSON, o as KaminoBankInput, d as KaminoStates, p as KaminoStatesJSON, D as DriftSpotMarket, q as DriftUser, r as DriftUserStats, S as SpotBalanceType, s as DriftRewards, t as DriftSpotMarketJSON, u as DriftUserJSON, v as DriftRewardsJSON, w as DriftUserStatsJSON, x as DriftBankInput, e as DriftStates, y as DriftStatesJSON, z as JupLendingState, J as JupTokenReserve, A as JupRateModel, B as JupLendingRewardsRateModel, C as JupLendingStateJSON, E as JupTokenReserveJSON, F as JupLendingRewardsRateModelJSON, H as JupRateModelJSON, I as JupLendBankInput, f as JupLendStates, L as JupLendStatesJSON, G as GammaLpVault, a as GammaWithdrawReceipt, b as GammaDepositPolicy, c as GammaWithdrawalPolicy } from './types-ChkgWMym.cjs';
4
+ export { V as DriftSpotPosition, X as DriftSpotPositionJSON, W as DriftUserFees, T as KaminoFarmTokenInfo, Q as KaminoObligationCollateral, R as KaminoObligationLiquidity, N as KaminoReserveCollateral, O as KaminoReserveConfig, M as KaminoReserveLiquidity, P as KaminoReserveTokenInfo, U as KaminoRewardCurvePoint } from './types-ChkgWMym.cjs';
5
5
  import { Decimal } from 'decimal.js';
6
6
 
7
7
  /**
@@ -751,6 +751,20 @@ declare function decodeGammaLpVault(data: ReadonlyUint8Array): GammaLpVault;
751
751
  * @throws if the discriminator doesn't match
752
752
  */
753
753
  declare function decodeGammaWithdrawReceipt(data: ReadonlyUint8Array): GammaWithdrawReceipt;
754
+ /**
755
+ * Decodes a Gamma `DepositPolicy` account (a vault's deposit cap + pause switch).
756
+ * @throws if the discriminator doesn't match
757
+ */
758
+ declare function decodeGammaDepositPolicy(data: ReadonlyUint8Array): GammaDepositPolicy;
759
+ /**
760
+ * Decodes a Gamma `WithdrawalPolicy` account (a vault's withdrawal fee + rolling caps).
761
+ * @throws if the discriminator doesn't match
762
+ */
763
+ declare function decodeGammaWithdrawalPolicy(data: ReadonlyUint8Array): GammaWithdrawalPolicy;
764
+ /** `lpVault`'s deposit policy PDA. */
765
+ declare function deriveGammaDepositPolicy(lpVault: Address): Promise<ProgramDerivedAddress>;
766
+ /** `lpVault`'s withdrawal policy PDA. */
767
+ declare function deriveGammaWithdrawalPolicy(lpVault: Address): Promise<ProgramDerivedAddress>;
754
768
  /** `user`'s withdraw receipt PDA for `lpVault`. */
755
769
  declare function deriveGammaWithdrawReceipt(user: Address, lpVault: Address): Promise<ProgramDerivedAddress>;
756
770
  /** `user`'s withdraw escrow PDA for `lpVault` (owner of the escrow token accounts). */
@@ -1275,4 +1289,4 @@ declare function selectGatewayRoute(raw: TitanGatewayQuoteResponse, swapMode: "E
1275
1289
  /** Deserialize a Titan wire instruction (raw bytes), dropping the `jitodontfront` marker account. */
1276
1290
  declare function deserializeTitanWireInstruction(ix: Instruction): Instruction$1;
1277
1291
 
1278
- export { type AccountMeta, type ClientRequest, ConnectionClosed, DEFAULT_RECENT_SLOT_DURATION_MS, DRIFT_PROGRAM_ADDRESS, DriftBankInput, type DriftInterestRateCurvePoint, DriftRewards, DriftRewardsJSON, DriftSpotMarket, DriftSpotMarketJSON, DriftStates, DriftStatesJSON, DriftUser, DriftUserJSON, DriftUserStats, DriftUserStatsJSON, ErrorResponse, FARMS_PROGRAM_ADDRESS, Fraction, GAMMA_VAULT_PROGRAM_ADDRESS, GammaLpVault, GammaWithdrawReceipt, type Instruction, JUP_EXCHANGE_PRICES_PRECISION, LENDING_PROGRAM_ADDRESS as JUP_LEND_PROGRAM_ADDRESS, LIQUIDITY_PROGRAM_ADDRESS as JUP_LIQUIDITY_PROGRAM_ADDRESS, JUP_MAX_REWARDS_RATE, JUP_REWARDS_PROGRAM_ADDRESS, JUP_SECONDS_PER_YEAR, JupLendBankInput, type JupLendInterestRateCurvePoint, type JupLendRewardsResult, JupLendStates, JupLendStatesJSON, JupLendingRewardsRateModel, JupLendingRewardsRateModelJSON, JupLendingState, JupLendingStateJSON, JupRateModel, JupRateModelJSON, JupTokenReserve, JupTokenReserveJSON, KAMINO_LENDING_PROGRAM_ADDRESS, KaminoBankInput, KaminoBorrowRateCurvePoint, KaminoFarmRewardInfo, KaminoFarmState, KaminoFarmStateJSON, KaminoInterestRateBasis, KaminoObligation, KaminoObligationJSON, type KaminoRateBasis, KaminoReserve, type KaminoReserveCurveData, KaminoReserveJSON, KaminoStates, KaminoStatesJSON, type KlendInterestRateCurvePoint, MARINADE_PROGRAM_ADDRESS, MARINADE_STATE_DISCRIMINATOR, MARINADE_STATE_MIN_SIZE, type MarinadeState, ONE_HUNDRED_PCT_IN_BPS, ONE_YEAR, PERCENTAGE_PRECISION, type PlatformFee, type Pubkey, type QuoteSwapStreamResponse, type QuoteUpdateParams, type RequestData, type ResponseData, type ResponseError, type ResponseSuccess, type ResponseWithStream, type RoutePlanStep, SANCTUM_SPL_MULTI_STAKE_POOL_PROGRAM_ADDRESS, SANCTUM_SPL_STAKE_POOL_PROGRAM_ADDRESS, SCOPE_MAX_ENTRIES, SCOPE_PROGRAM_ADDRESS, SECONDS_PER_YEAR, SINGLE_POOL_PROGRAM_ADDRESS, SLOTS_PER_DAY, SLOTS_PER_HOUR, SLOTS_PER_MINUTE, SLOTS_PER_SECOND, SLOTS_PER_YEAR, SPL_STAKE_POOL_PROGRAM_ADDRESS, SPOT_MARKET_RATE_PRECISION, SPOT_MARKET_UTILIZATION_PRECISION, type ScopeDatedPrice, type SerializedInstruction, type SerializedSwapRoute, type ServerMessage, SpotBalanceType, type StakePool, type StopStreamRequest, type StopStreamResponse, type StreamData, type StreamDataPayload, type StreamEnd, StreamError, type StreamStart, SwapMode, type SwapParams, type SwapQuoteRequest, type SwapQuotes, type SwapRoute, SwapVersion, type TitanGatewayQuoteParams, type TitanGatewayQuoteResponse, type TitanProxyExactOutResponse, type TitanProxySwapQuoteResponse, type TitanSwapQuoteResult, type TitanTemplateLut, type TitanTransactionTemplate, type TransactionConfigParams, type TransactionParams, type TransactionTemplate, type TransactionTemplateLut, type Uint64, V1Client, 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, decodeDriftSpotMarket, decodeDriftUser, decodeDriftUserStats, decodeGammaLpVault, decodeGammaWithdrawReceipt, decodeJupLendingRewardsRateModel, decodeJupLendingState, decodeJupRateModel, decodeJupTokenReserve, decodeKaminoFarmState, decodeKlendObligation, decodeKlendReserve, decodeMarinadeState, decodeScopePriceAtIndex, decodeStakePool, deriveDriftSigner, deriveDriftSpotMarket, deriveDriftSpotMarketVault, deriveDriftState, deriveDriftUser, deriveDriftUserStats, deriveFeeReceiver, deriveGammaWithdrawEscrow, deriveGammaWithdrawReceipt, deriveJupLendLendingRewardsRateModel, deriveJupLendRateModel, deriveLendingMarketAuthority, deriveObligation, deriveReserveCollateralMint, deriveReserveCollateralSupply, deriveReserveLiquiditySupply, deriveUserState, deserializeSerializedInstruction, deserializeTitanWireInstruction, driftRewardsRawToDto, driftSpotMarketRawToDto, driftUserRawToDto, driftUserStatsRawToDto, dtoToDriftRewardsRaw, dtoToDriftSpotMarketRaw, dtoToDriftUserRaw, dtoToDriftUserStatsRaw, dtoToJupLendingRewardsRateModelRaw, dtoToJupLendingStateRaw, dtoToJupRateModelRaw, dtoToJupTokenReserveRaw, dtoToKaminoFarmState, dtoToKaminoObligation, dtoToKaminoReserve, encodeTitanTemplate, fetchDriftStates, fetchDriftStatesDto, fetchJupLendStates, fetchJupLendStatesDto, fetchKaminoStates, fetchKaminoStatesDto, fetchTitanQuoteSwapV3, findPoolAddress, findPoolMintAddress, findPoolMintAuthorityAddress, findPoolOnRampAddress, findPoolStakeAddress, findPoolStakeAuthorityAddress, generateDriftReserveCurve, generateJupLendSupplyCurve, generateKaminoReserveCurve, generateKaminoReserveCurveFromReserve, getAllDerivedDriftAccounts, getAllDerivedJupLendAccounts, getAllRequiredMarkets, getDriftCTokenMultiplier, getDriftRewards, getDriftTokenAmount, getFixedHostInterestRate, getJupLendFTokenMultiplier, getJupLendRewards, getKaminoBorrowRate, getKaminoCTokenMultiplier, getKaminoInterestRateBasis, getKaminoRateBasis, getKaminoTotalSupply, getProtocolTakeRatePct, getReserveRewardsApy, getRewardPerTimeUnitSecond, interpolateLinear, isJitoDontFront, jupLendingRewardsRateModelRawToDto, jupLendingStateRawToDto, jupRateModelRawToDto, jupTokenReserveRawToDto, kaminoFarmStateToDto, kaminoObligationToDto, kaminoReserveToDto, makeRefreshObligationIx, makeRefreshReserveIx, makeRefreshReservesBatchIx, makeRefreshingIxs, makeSinglePoolDepositStakeIx, makeSinglePoolWithdrawStakeIx, makeUpdateJupLendRateIx, makeUpdateSpotMarketCumulativeInterestIx, resolveLookupTables, scaledSupplies, selectBestRoute, selectGatewayRoute, slotAdjustmentFactor, titanAccountRole, truncateBorrowCurve };
1292
+ export { type AccountMeta, type ClientRequest, ConnectionClosed, DEFAULT_RECENT_SLOT_DURATION_MS, DRIFT_PROGRAM_ADDRESS, DriftBankInput, type DriftInterestRateCurvePoint, DriftRewards, DriftRewardsJSON, DriftSpotMarket, DriftSpotMarketJSON, DriftStates, DriftStatesJSON, DriftUser, DriftUserJSON, DriftUserStats, DriftUserStatsJSON, ErrorResponse, FARMS_PROGRAM_ADDRESS, Fraction, GAMMA_VAULT_PROGRAM_ADDRESS, GammaDepositPolicy, GammaLpVault, GammaWithdrawReceipt, GammaWithdrawalPolicy, type Instruction, JUP_EXCHANGE_PRICES_PRECISION, LENDING_PROGRAM_ADDRESS as JUP_LEND_PROGRAM_ADDRESS, LIQUIDITY_PROGRAM_ADDRESS as JUP_LIQUIDITY_PROGRAM_ADDRESS, JUP_MAX_REWARDS_RATE, JUP_REWARDS_PROGRAM_ADDRESS, JUP_SECONDS_PER_YEAR, JupLendBankInput, type JupLendInterestRateCurvePoint, type JupLendRewardsResult, JupLendStates, JupLendStatesJSON, JupLendingRewardsRateModel, JupLendingRewardsRateModelJSON, JupLendingState, JupLendingStateJSON, JupRateModel, JupRateModelJSON, JupTokenReserve, JupTokenReserveJSON, KAMINO_LENDING_PROGRAM_ADDRESS, KaminoBankInput, KaminoBorrowRateCurvePoint, KaminoFarmRewardInfo, KaminoFarmState, KaminoFarmStateJSON, KaminoInterestRateBasis, KaminoObligation, KaminoObligationJSON, type KaminoRateBasis, KaminoReserve, type KaminoReserveCurveData, KaminoReserveJSON, KaminoStates, KaminoStatesJSON, type KlendInterestRateCurvePoint, MARINADE_PROGRAM_ADDRESS, MARINADE_STATE_DISCRIMINATOR, MARINADE_STATE_MIN_SIZE, type MarinadeState, ONE_HUNDRED_PCT_IN_BPS, ONE_YEAR, PERCENTAGE_PRECISION, type PlatformFee, type Pubkey, type QuoteSwapStreamResponse, type QuoteUpdateParams, type RequestData, type ResponseData, type ResponseError, type ResponseSuccess, type ResponseWithStream, type RoutePlanStep, SANCTUM_SPL_MULTI_STAKE_POOL_PROGRAM_ADDRESS, SANCTUM_SPL_STAKE_POOL_PROGRAM_ADDRESS, SCOPE_MAX_ENTRIES, SCOPE_PROGRAM_ADDRESS, SECONDS_PER_YEAR, SINGLE_POOL_PROGRAM_ADDRESS, SLOTS_PER_DAY, SLOTS_PER_HOUR, SLOTS_PER_MINUTE, SLOTS_PER_SECOND, SLOTS_PER_YEAR, SPL_STAKE_POOL_PROGRAM_ADDRESS, SPOT_MARKET_RATE_PRECISION, SPOT_MARKET_UTILIZATION_PRECISION, type ScopeDatedPrice, type SerializedInstruction, type SerializedSwapRoute, type ServerMessage, SpotBalanceType, type StakePool, type StopStreamRequest, type StopStreamResponse, type StreamData, type StreamDataPayload, type StreamEnd, StreamError, type StreamStart, SwapMode, type SwapParams, type SwapQuoteRequest, type SwapQuotes, type SwapRoute, SwapVersion, type TitanGatewayQuoteParams, type TitanGatewayQuoteResponse, type TitanProxyExactOutResponse, type TitanProxySwapQuoteResponse, type TitanSwapQuoteResult, type TitanTemplateLut, type TitanTransactionTemplate, type TransactionConfigParams, type TransactionParams, type TransactionTemplate, type TransactionTemplateLut, type Uint64, V1Client, 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, decodeDriftSpotMarket, decodeDriftUser, decodeDriftUserStats, decodeGammaDepositPolicy, decodeGammaLpVault, decodeGammaWithdrawReceipt, decodeGammaWithdrawalPolicy, decodeJupLendingRewardsRateModel, decodeJupLendingState, decodeJupRateModel, decodeJupTokenReserve, decodeKaminoFarmState, decodeKlendObligation, decodeKlendReserve, decodeMarinadeState, decodeScopePriceAtIndex, decodeStakePool, deriveDriftSigner, deriveDriftSpotMarket, deriveDriftSpotMarketVault, deriveDriftState, deriveDriftUser, deriveDriftUserStats, deriveFeeReceiver, deriveGammaDepositPolicy, deriveGammaWithdrawEscrow, deriveGammaWithdrawReceipt, deriveGammaWithdrawalPolicy, deriveJupLendLendingRewardsRateModel, deriveJupLendRateModel, deriveLendingMarketAuthority, deriveObligation, deriveReserveCollateralMint, deriveReserveCollateralSupply, deriveReserveLiquiditySupply, deriveUserState, deserializeSerializedInstruction, deserializeTitanWireInstruction, driftRewardsRawToDto, driftSpotMarketRawToDto, driftUserRawToDto, driftUserStatsRawToDto, dtoToDriftRewardsRaw, dtoToDriftSpotMarketRaw, dtoToDriftUserRaw, dtoToDriftUserStatsRaw, dtoToJupLendingRewardsRateModelRaw, dtoToJupLendingStateRaw, dtoToJupRateModelRaw, dtoToJupTokenReserveRaw, dtoToKaminoFarmState, dtoToKaminoObligation, dtoToKaminoReserve, encodeTitanTemplate, fetchDriftStates, fetchDriftStatesDto, fetchJupLendStates, fetchJupLendStatesDto, fetchKaminoStates, fetchKaminoStatesDto, fetchTitanQuoteSwapV3, findPoolAddress, findPoolMintAddress, findPoolMintAuthorityAddress, findPoolOnRampAddress, findPoolStakeAddress, findPoolStakeAuthorityAddress, generateDriftReserveCurve, generateJupLendSupplyCurve, generateKaminoReserveCurve, generateKaminoReserveCurveFromReserve, getAllDerivedDriftAccounts, getAllDerivedJupLendAccounts, getAllRequiredMarkets, getDriftCTokenMultiplier, getDriftRewards, getDriftTokenAmount, getFixedHostInterestRate, getJupLendFTokenMultiplier, getJupLendRewards, getKaminoBorrowRate, getKaminoCTokenMultiplier, getKaminoInterestRateBasis, getKaminoRateBasis, getKaminoTotalSupply, getProtocolTakeRatePct, getReserveRewardsApy, getRewardPerTimeUnitSecond, interpolateLinear, isJitoDontFront, jupLendingRewardsRateModelRawToDto, jupLendingStateRawToDto, jupRateModelRawToDto, jupTokenReserveRawToDto, kaminoFarmStateToDto, kaminoObligationToDto, kaminoReserveToDto, makeRefreshObligationIx, makeRefreshReserveIx, makeRefreshReservesBatchIx, makeRefreshingIxs, makeSinglePoolDepositStakeIx, makeSinglePoolWithdrawStakeIx, makeUpdateJupLendRateIx, makeUpdateSpotMarketCumulativeInterestIx, resolveLookupTables, scaledSupplies, selectBestRoute, selectGatewayRoute, slotAdjustmentFactor, titanAccountRole, truncateBorrowCurve };
package/dist/vendor.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _solana_kit from '@solana/kit';
2
2
  import { Address, ReadonlyUint8Array, Instruction as Instruction$1, ProgramDerivedAddress, Rpc, GetMultipleAccountsApi, AccountRole, AddressesByLookupTableAddress, AccountMeta as AccountMeta$1 } from '@solana/kit';
3
- import { K as KaminoReserve, e as KaminoObligation, f as KaminoFarmState, g as KaminoInterestRateBasis, h as KaminoBorrowRateCurvePoint, i as KaminoFarmRewardInfo, j as KaminoObligationJSON, k as KaminoReserveJSON, l as KaminoFarmStateJSON, m as KaminoBankInput, b as KaminoStates, n as KaminoStatesJSON, D as DriftSpotMarket, o as DriftUser, p as DriftUserStats, S as SpotBalanceType, q as DriftRewards, r as DriftSpotMarketJSON, s as DriftUserJSON, t as DriftRewardsJSON, u as DriftUserStatsJSON, v as DriftBankInput, c as DriftStates, w as DriftStatesJSON, x as JupLendingState, J as JupTokenReserve, y as JupRateModel, z as JupLendingRewardsRateModel, A as JupLendingStateJSON, B as JupTokenReserveJSON, C as JupLendingRewardsRateModelJSON, E as JupRateModelJSON, F as JupLendBankInput, d as JupLendStates, H as JupLendStatesJSON, G as GammaLpVault, a as GammaWithdrawReceipt } from './types-DvtvVd73.js';
4
- export { T as DriftSpotPosition, V as DriftSpotPositionJSON, U as DriftUserFees, Q as KaminoFarmTokenInfo, O as KaminoObligationCollateral, P as KaminoObligationLiquidity, L as KaminoReserveCollateral, M as KaminoReserveConfig, I as KaminoReserveLiquidity, N as KaminoReserveTokenInfo, R as KaminoRewardCurvePoint } from './types-DvtvVd73.js';
3
+ import { K as KaminoReserve, g as KaminoObligation, h as KaminoFarmState, i as KaminoInterestRateBasis, j as KaminoBorrowRateCurvePoint, k as KaminoFarmRewardInfo, l as KaminoObligationJSON, m as KaminoReserveJSON, n as KaminoFarmStateJSON, o as KaminoBankInput, d as KaminoStates, p as KaminoStatesJSON, D as DriftSpotMarket, q as DriftUser, r as DriftUserStats, S as SpotBalanceType, s as DriftRewards, t as DriftSpotMarketJSON, u as DriftUserJSON, v as DriftRewardsJSON, w as DriftUserStatsJSON, x as DriftBankInput, e as DriftStates, y as DriftStatesJSON, z as JupLendingState, J as JupTokenReserve, A as JupRateModel, B as JupLendingRewardsRateModel, C as JupLendingStateJSON, E as JupTokenReserveJSON, F as JupLendingRewardsRateModelJSON, H as JupRateModelJSON, I as JupLendBankInput, f as JupLendStates, L as JupLendStatesJSON, G as GammaLpVault, a as GammaWithdrawReceipt, b as GammaDepositPolicy, c as GammaWithdrawalPolicy } from './types-ChkgWMym.js';
4
+ export { V as DriftSpotPosition, X as DriftSpotPositionJSON, W as DriftUserFees, T as KaminoFarmTokenInfo, Q as KaminoObligationCollateral, R as KaminoObligationLiquidity, N as KaminoReserveCollateral, O as KaminoReserveConfig, M as KaminoReserveLiquidity, P as KaminoReserveTokenInfo, U as KaminoRewardCurvePoint } from './types-ChkgWMym.js';
5
5
  import { Decimal } from 'decimal.js';
6
6
 
7
7
  /**
@@ -751,6 +751,20 @@ declare function decodeGammaLpVault(data: ReadonlyUint8Array): GammaLpVault;
751
751
  * @throws if the discriminator doesn't match
752
752
  */
753
753
  declare function decodeGammaWithdrawReceipt(data: ReadonlyUint8Array): GammaWithdrawReceipt;
754
+ /**
755
+ * Decodes a Gamma `DepositPolicy` account (a vault's deposit cap + pause switch).
756
+ * @throws if the discriminator doesn't match
757
+ */
758
+ declare function decodeGammaDepositPolicy(data: ReadonlyUint8Array): GammaDepositPolicy;
759
+ /**
760
+ * Decodes a Gamma `WithdrawalPolicy` account (a vault's withdrawal fee + rolling caps).
761
+ * @throws if the discriminator doesn't match
762
+ */
763
+ declare function decodeGammaWithdrawalPolicy(data: ReadonlyUint8Array): GammaWithdrawalPolicy;
764
+ /** `lpVault`'s deposit policy PDA. */
765
+ declare function deriveGammaDepositPolicy(lpVault: Address): Promise<ProgramDerivedAddress>;
766
+ /** `lpVault`'s withdrawal policy PDA. */
767
+ declare function deriveGammaWithdrawalPolicy(lpVault: Address): Promise<ProgramDerivedAddress>;
754
768
  /** `user`'s withdraw receipt PDA for `lpVault`. */
755
769
  declare function deriveGammaWithdrawReceipt(user: Address, lpVault: Address): Promise<ProgramDerivedAddress>;
756
770
  /** `user`'s withdraw escrow PDA for `lpVault` (owner of the escrow token accounts). */
@@ -1275,4 +1289,4 @@ declare function selectGatewayRoute(raw: TitanGatewayQuoteResponse, swapMode: "E
1275
1289
  /** Deserialize a Titan wire instruction (raw bytes), dropping the `jitodontfront` marker account. */
1276
1290
  declare function deserializeTitanWireInstruction(ix: Instruction): Instruction$1;
1277
1291
 
1278
- export { type AccountMeta, type ClientRequest, ConnectionClosed, DEFAULT_RECENT_SLOT_DURATION_MS, DRIFT_PROGRAM_ADDRESS, DriftBankInput, type DriftInterestRateCurvePoint, DriftRewards, DriftRewardsJSON, DriftSpotMarket, DriftSpotMarketJSON, DriftStates, DriftStatesJSON, DriftUser, DriftUserJSON, DriftUserStats, DriftUserStatsJSON, ErrorResponse, FARMS_PROGRAM_ADDRESS, Fraction, GAMMA_VAULT_PROGRAM_ADDRESS, GammaLpVault, GammaWithdrawReceipt, type Instruction, JUP_EXCHANGE_PRICES_PRECISION, LENDING_PROGRAM_ADDRESS as JUP_LEND_PROGRAM_ADDRESS, LIQUIDITY_PROGRAM_ADDRESS as JUP_LIQUIDITY_PROGRAM_ADDRESS, JUP_MAX_REWARDS_RATE, JUP_REWARDS_PROGRAM_ADDRESS, JUP_SECONDS_PER_YEAR, JupLendBankInput, type JupLendInterestRateCurvePoint, type JupLendRewardsResult, JupLendStates, JupLendStatesJSON, JupLendingRewardsRateModel, JupLendingRewardsRateModelJSON, JupLendingState, JupLendingStateJSON, JupRateModel, JupRateModelJSON, JupTokenReserve, JupTokenReserveJSON, KAMINO_LENDING_PROGRAM_ADDRESS, KaminoBankInput, KaminoBorrowRateCurvePoint, KaminoFarmRewardInfo, KaminoFarmState, KaminoFarmStateJSON, KaminoInterestRateBasis, KaminoObligation, KaminoObligationJSON, type KaminoRateBasis, KaminoReserve, type KaminoReserveCurveData, KaminoReserveJSON, KaminoStates, KaminoStatesJSON, type KlendInterestRateCurvePoint, MARINADE_PROGRAM_ADDRESS, MARINADE_STATE_DISCRIMINATOR, MARINADE_STATE_MIN_SIZE, type MarinadeState, ONE_HUNDRED_PCT_IN_BPS, ONE_YEAR, PERCENTAGE_PRECISION, type PlatformFee, type Pubkey, type QuoteSwapStreamResponse, type QuoteUpdateParams, type RequestData, type ResponseData, type ResponseError, type ResponseSuccess, type ResponseWithStream, type RoutePlanStep, SANCTUM_SPL_MULTI_STAKE_POOL_PROGRAM_ADDRESS, SANCTUM_SPL_STAKE_POOL_PROGRAM_ADDRESS, SCOPE_MAX_ENTRIES, SCOPE_PROGRAM_ADDRESS, SECONDS_PER_YEAR, SINGLE_POOL_PROGRAM_ADDRESS, SLOTS_PER_DAY, SLOTS_PER_HOUR, SLOTS_PER_MINUTE, SLOTS_PER_SECOND, SLOTS_PER_YEAR, SPL_STAKE_POOL_PROGRAM_ADDRESS, SPOT_MARKET_RATE_PRECISION, SPOT_MARKET_UTILIZATION_PRECISION, type ScopeDatedPrice, type SerializedInstruction, type SerializedSwapRoute, type ServerMessage, SpotBalanceType, type StakePool, type StopStreamRequest, type StopStreamResponse, type StreamData, type StreamDataPayload, type StreamEnd, StreamError, type StreamStart, SwapMode, type SwapParams, type SwapQuoteRequest, type SwapQuotes, type SwapRoute, SwapVersion, type TitanGatewayQuoteParams, type TitanGatewayQuoteResponse, type TitanProxyExactOutResponse, type TitanProxySwapQuoteResponse, type TitanSwapQuoteResult, type TitanTemplateLut, type TitanTransactionTemplate, type TransactionConfigParams, type TransactionParams, type TransactionTemplate, type TransactionTemplateLut, type Uint64, V1Client, 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, decodeDriftSpotMarket, decodeDriftUser, decodeDriftUserStats, decodeGammaLpVault, decodeGammaWithdrawReceipt, decodeJupLendingRewardsRateModel, decodeJupLendingState, decodeJupRateModel, decodeJupTokenReserve, decodeKaminoFarmState, decodeKlendObligation, decodeKlendReserve, decodeMarinadeState, decodeScopePriceAtIndex, decodeStakePool, deriveDriftSigner, deriveDriftSpotMarket, deriveDriftSpotMarketVault, deriveDriftState, deriveDriftUser, deriveDriftUserStats, deriveFeeReceiver, deriveGammaWithdrawEscrow, deriveGammaWithdrawReceipt, deriveJupLendLendingRewardsRateModel, deriveJupLendRateModel, deriveLendingMarketAuthority, deriveObligation, deriveReserveCollateralMint, deriveReserveCollateralSupply, deriveReserveLiquiditySupply, deriveUserState, deserializeSerializedInstruction, deserializeTitanWireInstruction, driftRewardsRawToDto, driftSpotMarketRawToDto, driftUserRawToDto, driftUserStatsRawToDto, dtoToDriftRewardsRaw, dtoToDriftSpotMarketRaw, dtoToDriftUserRaw, dtoToDriftUserStatsRaw, dtoToJupLendingRewardsRateModelRaw, dtoToJupLendingStateRaw, dtoToJupRateModelRaw, dtoToJupTokenReserveRaw, dtoToKaminoFarmState, dtoToKaminoObligation, dtoToKaminoReserve, encodeTitanTemplate, fetchDriftStates, fetchDriftStatesDto, fetchJupLendStates, fetchJupLendStatesDto, fetchKaminoStates, fetchKaminoStatesDto, fetchTitanQuoteSwapV3, findPoolAddress, findPoolMintAddress, findPoolMintAuthorityAddress, findPoolOnRampAddress, findPoolStakeAddress, findPoolStakeAuthorityAddress, generateDriftReserveCurve, generateJupLendSupplyCurve, generateKaminoReserveCurve, generateKaminoReserveCurveFromReserve, getAllDerivedDriftAccounts, getAllDerivedJupLendAccounts, getAllRequiredMarkets, getDriftCTokenMultiplier, getDriftRewards, getDriftTokenAmount, getFixedHostInterestRate, getJupLendFTokenMultiplier, getJupLendRewards, getKaminoBorrowRate, getKaminoCTokenMultiplier, getKaminoInterestRateBasis, getKaminoRateBasis, getKaminoTotalSupply, getProtocolTakeRatePct, getReserveRewardsApy, getRewardPerTimeUnitSecond, interpolateLinear, isJitoDontFront, jupLendingRewardsRateModelRawToDto, jupLendingStateRawToDto, jupRateModelRawToDto, jupTokenReserveRawToDto, kaminoFarmStateToDto, kaminoObligationToDto, kaminoReserveToDto, makeRefreshObligationIx, makeRefreshReserveIx, makeRefreshReservesBatchIx, makeRefreshingIxs, makeSinglePoolDepositStakeIx, makeSinglePoolWithdrawStakeIx, makeUpdateJupLendRateIx, makeUpdateSpotMarketCumulativeInterestIx, resolveLookupTables, scaledSupplies, selectBestRoute, selectGatewayRoute, slotAdjustmentFactor, titanAccountRole, truncateBorrowCurve };
1292
+ export { type AccountMeta, type ClientRequest, ConnectionClosed, DEFAULT_RECENT_SLOT_DURATION_MS, DRIFT_PROGRAM_ADDRESS, DriftBankInput, type DriftInterestRateCurvePoint, DriftRewards, DriftRewardsJSON, DriftSpotMarket, DriftSpotMarketJSON, DriftStates, DriftStatesJSON, DriftUser, DriftUserJSON, DriftUserStats, DriftUserStatsJSON, ErrorResponse, FARMS_PROGRAM_ADDRESS, Fraction, GAMMA_VAULT_PROGRAM_ADDRESS, GammaDepositPolicy, GammaLpVault, GammaWithdrawReceipt, GammaWithdrawalPolicy, type Instruction, JUP_EXCHANGE_PRICES_PRECISION, LENDING_PROGRAM_ADDRESS as JUP_LEND_PROGRAM_ADDRESS, LIQUIDITY_PROGRAM_ADDRESS as JUP_LIQUIDITY_PROGRAM_ADDRESS, JUP_MAX_REWARDS_RATE, JUP_REWARDS_PROGRAM_ADDRESS, JUP_SECONDS_PER_YEAR, JupLendBankInput, type JupLendInterestRateCurvePoint, type JupLendRewardsResult, JupLendStates, JupLendStatesJSON, JupLendingRewardsRateModel, JupLendingRewardsRateModelJSON, JupLendingState, JupLendingStateJSON, JupRateModel, JupRateModelJSON, JupTokenReserve, JupTokenReserveJSON, KAMINO_LENDING_PROGRAM_ADDRESS, KaminoBankInput, KaminoBorrowRateCurvePoint, KaminoFarmRewardInfo, KaminoFarmState, KaminoFarmStateJSON, KaminoInterestRateBasis, KaminoObligation, KaminoObligationJSON, type KaminoRateBasis, KaminoReserve, type KaminoReserveCurveData, KaminoReserveJSON, KaminoStates, KaminoStatesJSON, type KlendInterestRateCurvePoint, MARINADE_PROGRAM_ADDRESS, MARINADE_STATE_DISCRIMINATOR, MARINADE_STATE_MIN_SIZE, type MarinadeState, ONE_HUNDRED_PCT_IN_BPS, ONE_YEAR, PERCENTAGE_PRECISION, type PlatformFee, type Pubkey, type QuoteSwapStreamResponse, type QuoteUpdateParams, type RequestData, type ResponseData, type ResponseError, type ResponseSuccess, type ResponseWithStream, type RoutePlanStep, SANCTUM_SPL_MULTI_STAKE_POOL_PROGRAM_ADDRESS, SANCTUM_SPL_STAKE_POOL_PROGRAM_ADDRESS, SCOPE_MAX_ENTRIES, SCOPE_PROGRAM_ADDRESS, SECONDS_PER_YEAR, SINGLE_POOL_PROGRAM_ADDRESS, SLOTS_PER_DAY, SLOTS_PER_HOUR, SLOTS_PER_MINUTE, SLOTS_PER_SECOND, SLOTS_PER_YEAR, SPL_STAKE_POOL_PROGRAM_ADDRESS, SPOT_MARKET_RATE_PRECISION, SPOT_MARKET_UTILIZATION_PRECISION, type ScopeDatedPrice, type SerializedInstruction, type SerializedSwapRoute, type ServerMessage, SpotBalanceType, type StakePool, type StopStreamRequest, type StopStreamResponse, type StreamData, type StreamDataPayload, type StreamEnd, StreamError, type StreamStart, SwapMode, type SwapParams, type SwapQuoteRequest, type SwapQuotes, type SwapRoute, SwapVersion, type TitanGatewayQuoteParams, type TitanGatewayQuoteResponse, type TitanProxyExactOutResponse, type TitanProxySwapQuoteResponse, type TitanSwapQuoteResult, type TitanTemplateLut, type TitanTransactionTemplate, type TransactionConfigParams, type TransactionParams, type TransactionTemplate, type TransactionTemplateLut, type Uint64, V1Client, 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, decodeDriftSpotMarket, decodeDriftUser, decodeDriftUserStats, decodeGammaDepositPolicy, decodeGammaLpVault, decodeGammaWithdrawReceipt, decodeGammaWithdrawalPolicy, decodeJupLendingRewardsRateModel, decodeJupLendingState, decodeJupRateModel, decodeJupTokenReserve, decodeKaminoFarmState, decodeKlendObligation, decodeKlendReserve, decodeMarinadeState, decodeScopePriceAtIndex, decodeStakePool, deriveDriftSigner, deriveDriftSpotMarket, deriveDriftSpotMarketVault, deriveDriftState, deriveDriftUser, deriveDriftUserStats, deriveFeeReceiver, deriveGammaDepositPolicy, deriveGammaWithdrawEscrow, deriveGammaWithdrawReceipt, deriveGammaWithdrawalPolicy, deriveJupLendLendingRewardsRateModel, deriveJupLendRateModel, deriveLendingMarketAuthority, deriveObligation, deriveReserveCollateralMint, deriveReserveCollateralSupply, deriveReserveLiquiditySupply, deriveUserState, deserializeSerializedInstruction, deserializeTitanWireInstruction, driftRewardsRawToDto, driftSpotMarketRawToDto, driftUserRawToDto, driftUserStatsRawToDto, dtoToDriftRewardsRaw, dtoToDriftSpotMarketRaw, dtoToDriftUserRaw, dtoToDriftUserStatsRaw, dtoToJupLendingRewardsRateModelRaw, dtoToJupLendingStateRaw, dtoToJupRateModelRaw, dtoToJupTokenReserveRaw, dtoToKaminoFarmState, dtoToKaminoObligation, dtoToKaminoReserve, encodeTitanTemplate, fetchDriftStates, fetchDriftStatesDto, fetchJupLendStates, fetchJupLendStatesDto, fetchKaminoStates, fetchKaminoStatesDto, fetchTitanQuoteSwapV3, findPoolAddress, findPoolMintAddress, findPoolMintAuthorityAddress, findPoolOnRampAddress, findPoolStakeAddress, findPoolStakeAuthorityAddress, generateDriftReserveCurve, generateJupLendSupplyCurve, generateKaminoReserveCurve, generateKaminoReserveCurveFromReserve, getAllDerivedDriftAccounts, getAllDerivedJupLendAccounts, getAllRequiredMarkets, getDriftCTokenMultiplier, getDriftRewards, getDriftTokenAmount, getFixedHostInterestRate, getJupLendFTokenMultiplier, getJupLendRewards, getKaminoBorrowRate, getKaminoCTokenMultiplier, getKaminoInterestRateBasis, getKaminoRateBasis, getKaminoTotalSupply, getProtocolTakeRatePct, getReserveRewardsApy, getRewardPerTimeUnitSecond, interpolateLinear, isJitoDontFront, jupLendingRewardsRateModelRawToDto, jupLendingStateRawToDto, jupRateModelRawToDto, jupTokenReserveRawToDto, kaminoFarmStateToDto, kaminoObligationToDto, kaminoReserveToDto, makeRefreshObligationIx, makeRefreshReserveIx, makeRefreshReservesBatchIx, makeRefreshingIxs, makeSinglePoolDepositStakeIx, makeSinglePoolWithdrawStakeIx, makeUpdateJupLendRateIx, makeUpdateSpotMarketCumulativeInterestIx, resolveLookupTables, scaledSupplies, selectBestRoute, selectGatewayRoute, slotAdjustmentFactor, titanAccountRole, truncateBorrowCurve };
package/dist/vendor.js CHANGED
@@ -3074,6 +3074,25 @@ async function fetchJupLendStatesDto(rpc, banks) {
3074
3074
  ])
3075
3075
  );
3076
3076
  }
3077
+ var DEPOSIT_POLICY_DISCRIMINATOR = new Uint8Array([
3078
+ 159,
3079
+ 243,
3080
+ 65,
3081
+ 242,
3082
+ 81,
3083
+ 27,
3084
+ 41,
3085
+ 167
3086
+ ]);
3087
+ function getDepositPolicyDecoder() {
3088
+ return getStructDecoder([
3089
+ ["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
3090
+ ["lpVault", getAddressDecoder()],
3091
+ ["capacityAssets", getU64Decoder()],
3092
+ ["depositsPaused", getBooleanDecoder()],
3093
+ ["bump", getU8Decoder()]
3094
+ ]);
3095
+ }
3077
3096
  var LP_VAULT_DISCRIMINATOR = new Uint8Array([
3078
3097
  189,
3079
3098
  45,
@@ -3107,6 +3126,30 @@ function getLpVaultDecoder() {
3107
3126
  ["keeperAuthority", getAddressDecoder()]
3108
3127
  ]);
3109
3128
  }
3129
+ var WITHDRAWAL_POLICY_DISCRIMINATOR = new Uint8Array([
3130
+ 52,
3131
+ 231,
3132
+ 68,
3133
+ 59,
3134
+ 247,
3135
+ 250,
3136
+ 119,
3137
+ 244
3138
+ ]);
3139
+ function getWithdrawalPolicyDecoder() {
3140
+ return getStructDecoder([
3141
+ ["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
3142
+ ["lpVault", getAddressDecoder()],
3143
+ ["withdrawalFeeBps", getU16Decoder()],
3144
+ ["hourlyWithdrawalCapBps", getU16Decoder()],
3145
+ ["dailyWithdrawalCapBps", getU16Decoder()],
3146
+ ["hourlyWithdrawnAssets", getU64Decoder()],
3147
+ ["dailyWithdrawnAssets", getU64Decoder()],
3148
+ ["hourlyWindowStart", getI64Decoder()],
3149
+ ["dailyWindowStart", getI64Decoder()],
3150
+ ["bump", getU8Decoder()]
3151
+ ]);
3152
+ }
3110
3153
  var WITHDRAW_RECEIPT_DISCRIMINATOR = new Uint8Array([
3111
3154
  132,
3112
3155
  238,
@@ -3144,6 +3187,52 @@ async function findCompleteWithdrawalWithdrawEscrowPda(seeds, config = {}) {
3144
3187
  ]
3145
3188
  });
3146
3189
  }
3190
+ async function findDepositPolicyPda(seeds, config = {}) {
3191
+ const {
3192
+ programAddress = "GaMmanX9i4jGmqDZZD2tbD6B2v9p21btenPneMXnTczV"
3193
+ } = config;
3194
+ return await getProgramDerivedAddress({
3195
+ programAddress,
3196
+ seeds: [
3197
+ getBytesEncoder().encode(
3198
+ new Uint8Array([100, 101, 112, 111, 115, 105, 116, 95, 112, 111, 108, 105, 99, 121])
3199
+ ),
3200
+ getAddressEncoder().encode(seeds.lpVault)
3201
+ ]
3202
+ });
3203
+ }
3204
+ async function findWithdrawalPolicyPda(seeds, config = {}) {
3205
+ const {
3206
+ programAddress = "GaMmanX9i4jGmqDZZD2tbD6B2v9p21btenPneMXnTczV"
3207
+ } = config;
3208
+ return await getProgramDerivedAddress({
3209
+ programAddress,
3210
+ seeds: [
3211
+ getBytesEncoder().encode(
3212
+ new Uint8Array([
3213
+ 119,
3214
+ 105,
3215
+ 116,
3216
+ 104,
3217
+ 100,
3218
+ 114,
3219
+ 97,
3220
+ 119,
3221
+ 97,
3222
+ 108,
3223
+ 95,
3224
+ 112,
3225
+ 111,
3226
+ 108,
3227
+ 105,
3228
+ 99,
3229
+ 121
3230
+ ])
3231
+ ),
3232
+ getAddressEncoder().encode(seeds.lpVault)
3233
+ ]
3234
+ });
3235
+ }
3147
3236
  async function findWithdrawReceiptPda(seeds, config = {}) {
3148
3237
  const {
3149
3238
  programAddress = "GaMmanX9i4jGmqDZZD2tbD6B2v9p21btenPneMXnTczV"
@@ -3190,6 +3279,28 @@ function decodeGammaWithdrawReceipt(data) {
3190
3279
  "Gamma WithdrawReceipt"
3191
3280
  );
3192
3281
  }
3282
+ function decodeGammaDepositPolicy(data) {
3283
+ return decodeAccountData(
3284
+ data,
3285
+ DEPOSIT_POLICY_DISCRIMINATOR,
3286
+ getDepositPolicyDecoder(),
3287
+ "Gamma DepositPolicy"
3288
+ );
3289
+ }
3290
+ function decodeGammaWithdrawalPolicy(data) {
3291
+ return decodeAccountData(
3292
+ data,
3293
+ WITHDRAWAL_POLICY_DISCRIMINATOR,
3294
+ getWithdrawalPolicyDecoder(),
3295
+ "Gamma WithdrawalPolicy"
3296
+ );
3297
+ }
3298
+ function deriveGammaDepositPolicy(lpVault) {
3299
+ return findDepositPolicyPda({ lpVault });
3300
+ }
3301
+ function deriveGammaWithdrawalPolicy(lpVault) {
3302
+ return findWithdrawalPolicyPda({ lpVault });
3303
+ }
3193
3304
  function deriveGammaWithdrawReceipt(user, lpVault) {
3194
3305
  return findWithdrawReceiptPda({ crossChainWithdrawer: user, lpVault });
3195
3306
  }
@@ -3686,6 +3797,6 @@ function deserializeTitanWireInstruction(ix) {
3686
3797
  };
3687
3798
  }
3688
3799
 
3689
- export { ConnectionClosed, DEFAULT_RECENT_SLOT_DURATION_MS, DRIFT_PROGRAM_ADDRESS, ErrorResponse, FARMS_PROGRAM_ADDRESS, Fraction, GAMMA_VAULT_PROGRAM_ADDRESS, JUP_EXCHANGE_PRICES_PRECISION, LENDING_PROGRAM_ADDRESS as JUP_LEND_PROGRAM_ADDRESS, LIQUIDITY_PROGRAM_ADDRESS as JUP_LIQUIDITY_PROGRAM_ADDRESS, JUP_MAX_REWARDS_RATE, JUP_REWARDS_PROGRAM_ADDRESS, JUP_SECONDS_PER_YEAR, KAMINO_LENDING_PROGRAM_ADDRESS, KaminoInterestRateBasis, MARINADE_PROGRAM_ADDRESS, MARINADE_STATE_DISCRIMINATOR, MARINADE_STATE_MIN_SIZE, ONE_HUNDRED_PCT_IN_BPS, ONE_YEAR, PERCENTAGE_PRECISION, SANCTUM_SPL_MULTI_STAKE_POOL_PROGRAM_ADDRESS, SANCTUM_SPL_STAKE_POOL_PROGRAM_ADDRESS, SCOPE_MAX_ENTRIES, SCOPE_PROGRAM_ADDRESS, SECONDS_PER_YEAR, SINGLE_POOL_PROGRAM_ADDRESS, SLOTS_PER_DAY, SLOTS_PER_HOUR, SLOTS_PER_MINUTE, SLOTS_PER_SECOND, SLOTS_PER_YEAR, SPL_STAKE_POOL_PROGRAM_ADDRESS, SPOT_MARKET_RATE_PRECISION, SPOT_MARKET_UTILIZATION_PRECISION, SpotBalanceType, StreamError, SwapMode, SwapVersion, V1Client, 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, decodeDriftSpotMarket, decodeDriftUser, decodeDriftUserStats, decodeGammaLpVault, decodeGammaWithdrawReceipt, decodeJupLendingRewardsRateModel, decodeJupLendingState, decodeJupRateModel, decodeJupTokenReserve, decodeKaminoFarmState, decodeKlendObligation, decodeKlendReserve, decodeMarinadeState, decodeScopePriceAtIndex, decodeStakePool, deriveDriftSigner, deriveDriftSpotMarket, deriveDriftSpotMarketVault, deriveDriftState, deriveDriftUser, deriveDriftUserStats, deriveFeeReceiver, deriveGammaWithdrawEscrow, deriveGammaWithdrawReceipt, deriveJupLendLendingRewardsRateModel, deriveJupLendRateModel, deriveLendingMarketAuthority, deriveObligation, deriveReserveCollateralMint, deriveReserveCollateralSupply, deriveReserveLiquiditySupply, deriveUserState, deserializeSerializedInstruction, deserializeTitanWireInstruction, driftRewardsRawToDto, driftSpotMarketRawToDto, driftUserRawToDto, driftUserStatsRawToDto, dtoToDriftRewardsRaw, dtoToDriftSpotMarketRaw, dtoToDriftUserRaw, dtoToDriftUserStatsRaw, dtoToJupLendingRewardsRateModelRaw, dtoToJupLendingStateRaw, dtoToJupRateModelRaw, dtoToJupTokenReserveRaw, dtoToKaminoFarmState, dtoToKaminoObligation, dtoToKaminoReserve, encodeTitanTemplate, fetchDriftStates, fetchDriftStatesDto, fetchJupLendStates, fetchJupLendStatesDto, fetchKaminoStates, fetchKaminoStatesDto, fetchTitanQuoteSwapV3, findPoolAddress, findPoolMintAddress, findPoolMintAuthorityAddress, findPoolOnRampAddress, findPoolStakeAddress, findPoolStakeAuthorityAddress, generateDriftReserveCurve, generateJupLendSupplyCurve, generateKaminoReserveCurve, generateKaminoReserveCurveFromReserve, getAllDerivedDriftAccounts, getAllDerivedJupLendAccounts, getAllRequiredMarkets, getDriftCTokenMultiplier, getDriftRewards, getDriftTokenAmount, getFixedHostInterestRate, getJupLendFTokenMultiplier, getJupLendRewards, getKaminoBorrowRate, getKaminoCTokenMultiplier, getKaminoInterestRateBasis, getKaminoRateBasis, getKaminoTotalSupply, getProtocolTakeRatePct, getReserveRewardsApy, getRewardPerTimeUnitSecond, interpolateLinear, isJitoDontFront, jupLendingRewardsRateModelRawToDto, jupLendingStateRawToDto, jupRateModelRawToDto, jupTokenReserveRawToDto, kaminoFarmStateToDto, kaminoObligationToDto, kaminoReserveToDto, makeRefreshObligationIx, makeRefreshReserveIx, makeRefreshReservesBatchIx, makeRefreshingIxs, makeSinglePoolDepositStakeIx, makeSinglePoolWithdrawStakeIx, makeUpdateJupLendRateIx, makeUpdateSpotMarketCumulativeInterestIx, resolveLookupTables, scaledSupplies, selectBestRoute, selectGatewayRoute, slotAdjustmentFactor, titanAccountRole, truncateBorrowCurve };
3800
+ export { ConnectionClosed, DEFAULT_RECENT_SLOT_DURATION_MS, DRIFT_PROGRAM_ADDRESS, ErrorResponse, FARMS_PROGRAM_ADDRESS, Fraction, GAMMA_VAULT_PROGRAM_ADDRESS, JUP_EXCHANGE_PRICES_PRECISION, LENDING_PROGRAM_ADDRESS as JUP_LEND_PROGRAM_ADDRESS, LIQUIDITY_PROGRAM_ADDRESS as JUP_LIQUIDITY_PROGRAM_ADDRESS, JUP_MAX_REWARDS_RATE, JUP_REWARDS_PROGRAM_ADDRESS, JUP_SECONDS_PER_YEAR, KAMINO_LENDING_PROGRAM_ADDRESS, KaminoInterestRateBasis, MARINADE_PROGRAM_ADDRESS, MARINADE_STATE_DISCRIMINATOR, MARINADE_STATE_MIN_SIZE, ONE_HUNDRED_PCT_IN_BPS, ONE_YEAR, PERCENTAGE_PRECISION, SANCTUM_SPL_MULTI_STAKE_POOL_PROGRAM_ADDRESS, SANCTUM_SPL_STAKE_POOL_PROGRAM_ADDRESS, SCOPE_MAX_ENTRIES, SCOPE_PROGRAM_ADDRESS, SECONDS_PER_YEAR, SINGLE_POOL_PROGRAM_ADDRESS, SLOTS_PER_DAY, SLOTS_PER_HOUR, SLOTS_PER_MINUTE, SLOTS_PER_SECOND, SLOTS_PER_YEAR, SPL_STAKE_POOL_PROGRAM_ADDRESS, SPOT_MARKET_RATE_PRECISION, SPOT_MARKET_UTILIZATION_PRECISION, SpotBalanceType, StreamError, SwapMode, SwapVersion, V1Client, 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, decodeDriftSpotMarket, decodeDriftUser, decodeDriftUserStats, decodeGammaDepositPolicy, decodeGammaLpVault, decodeGammaWithdrawReceipt, decodeGammaWithdrawalPolicy, decodeJupLendingRewardsRateModel, decodeJupLendingState, decodeJupRateModel, decodeJupTokenReserve, decodeKaminoFarmState, decodeKlendObligation, decodeKlendReserve, decodeMarinadeState, decodeScopePriceAtIndex, decodeStakePool, deriveDriftSigner, deriveDriftSpotMarket, deriveDriftSpotMarketVault, deriveDriftState, deriveDriftUser, deriveDriftUserStats, deriveFeeReceiver, deriveGammaDepositPolicy, deriveGammaWithdrawEscrow, deriveGammaWithdrawReceipt, deriveGammaWithdrawalPolicy, deriveJupLendLendingRewardsRateModel, deriveJupLendRateModel, deriveLendingMarketAuthority, deriveObligation, deriveReserveCollateralMint, deriveReserveCollateralSupply, deriveReserveLiquiditySupply, deriveUserState, deserializeSerializedInstruction, deserializeTitanWireInstruction, driftRewardsRawToDto, driftSpotMarketRawToDto, driftUserRawToDto, driftUserStatsRawToDto, dtoToDriftRewardsRaw, dtoToDriftSpotMarketRaw, dtoToDriftUserRaw, dtoToDriftUserStatsRaw, dtoToJupLendingRewardsRateModelRaw, dtoToJupLendingStateRaw, dtoToJupRateModelRaw, dtoToJupTokenReserveRaw, dtoToKaminoFarmState, dtoToKaminoObligation, dtoToKaminoReserve, encodeTitanTemplate, fetchDriftStates, fetchDriftStatesDto, fetchJupLendStates, fetchJupLendStatesDto, fetchKaminoStates, fetchKaminoStatesDto, fetchTitanQuoteSwapV3, findPoolAddress, findPoolMintAddress, findPoolMintAuthorityAddress, findPoolOnRampAddress, findPoolStakeAddress, findPoolStakeAuthorityAddress, generateDriftReserveCurve, generateJupLendSupplyCurve, generateKaminoReserveCurve, generateKaminoReserveCurveFromReserve, getAllDerivedDriftAccounts, getAllDerivedJupLendAccounts, getAllRequiredMarkets, getDriftCTokenMultiplier, getDriftRewards, getDriftTokenAmount, getFixedHostInterestRate, getJupLendFTokenMultiplier, getJupLendRewards, getKaminoBorrowRate, getKaminoCTokenMultiplier, getKaminoInterestRateBasis, getKaminoRateBasis, getKaminoTotalSupply, getProtocolTakeRatePct, getReserveRewardsApy, getRewardPerTimeUnitSecond, interpolateLinear, isJitoDontFront, jupLendingRewardsRateModelRawToDto, jupLendingStateRawToDto, jupRateModelRawToDto, jupTokenReserveRawToDto, kaminoFarmStateToDto, kaminoObligationToDto, kaminoReserveToDto, makeRefreshObligationIx, makeRefreshReserveIx, makeRefreshReservesBatchIx, makeRefreshingIxs, makeSinglePoolDepositStakeIx, makeSinglePoolWithdrawStakeIx, makeUpdateJupLendRateIx, makeUpdateSpotMarketCumulativeInterestIx, resolveLookupTables, scaledSupplies, selectBestRoute, selectGatewayRoute, slotAdjustmentFactor, titanAccountRole, truncateBorrowCurve };
3690
3801
  //# sourceMappingURL=vendor.js.map
3691
3802
  //# sourceMappingURL=vendor.js.map