@perena/vault-sdk 1.0.48 → 1.0.50
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/README.md +4 -3
- package/dist/browser/nest.d.mts +26 -1
- package/dist/browser/nest.mjs +195 -17
- package/dist/index.d.ts +109 -16
- package/dist/index.js +805 -294
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -12513,6 +12513,8 @@ declare function prepareVaultTransaction(args: {
|
|
|
12513
12513
|
/** Skip execution simulation when proposing a transaction that depends on future funding. */
|
|
12514
12514
|
skipSimulation?: boolean;
|
|
12515
12515
|
addressLookupTableAccounts?: AddressLookupTableAccount[];
|
|
12516
|
+
/** Temporary signer keys used only in account metas, replaced by Squads PDAs. */
|
|
12517
|
+
ephemeralSignerKeys?: readonly PublicKey[];
|
|
12516
12518
|
}): Promise<PreparedVaultTransaction>;
|
|
12517
12519
|
|
|
12518
12520
|
interface SquadsProposalUpload {
|
|
@@ -12987,6 +12989,11 @@ interface ExternalPositionContext {
|
|
|
12987
12989
|
interface ExternalPositionProvider {
|
|
12988
12990
|
positionsFor(ctx: ExternalPositionContext): Promise<ExternalPosition[]>;
|
|
12989
12991
|
}
|
|
12992
|
+
/** All token accounts owned by the manager, summed per requested base mint. */
|
|
12993
|
+
interface ManagerWalletBalanceSource {
|
|
12994
|
+
/** Missing mints have zero balance; failed reads must throw. Amounts are raw units. */
|
|
12995
|
+
fetchBalances(manager: Address, mints: Address[]): Promise<Map<string, bigint>>;
|
|
12996
|
+
}
|
|
12990
12997
|
/**
|
|
12991
12998
|
* One account's accrual snapshot consumed by the oracle. Amounts are
|
|
12992
12999
|
* **UI amounts** (token units, not base units); callers convert with
|
|
@@ -13064,6 +13071,8 @@ interface ConsensusOracleDeps {
|
|
|
13064
13071
|
priceSource: PriceSource;
|
|
13065
13072
|
/** Optional; omitted ⇒ no live-LP balances are folded in. */
|
|
13066
13073
|
externalPositions?: ExternalPositionProvider;
|
|
13074
|
+
/** Optional NAV-drop recovery source; configured by the live runtime. */
|
|
13075
|
+
managerWalletBalances?: ManagerWalletBalanceSource;
|
|
13067
13076
|
/** Optional; omitted ⇒ no yield accrual is folded in. */
|
|
13068
13077
|
yieldTracker?: YieldTracker;
|
|
13069
13078
|
clock?: Clock;
|
|
@@ -13093,7 +13102,11 @@ interface HoldingUpdatePreview {
|
|
|
13093
13102
|
trackedPrincipalAmount: bigint;
|
|
13094
13103
|
/** Complete tracked value, including NAV accounts (base units). */
|
|
13095
13104
|
trackedValueAmount: bigint;
|
|
13096
|
-
/**
|
|
13105
|
+
/** Manager base tokens admitted by the ±0.05% NAV reconciliation (base units). */
|
|
13106
|
+
managerWalletAmount?: bigint;
|
|
13107
|
+
/** Withdrawn nPERENA retained until the manager-wallet NAV rule matches proceeds. */
|
|
13108
|
+
pendingNestAmount?: bigint;
|
|
13109
|
+
/** Total external balance = LP + tracked value + pending Nest + manager wallet. */
|
|
13097
13110
|
externalAmount: bigint;
|
|
13098
13111
|
}
|
|
13099
13112
|
interface VaultOracleResult {
|
|
@@ -13478,6 +13491,35 @@ interface RefreshLiveOraclePricesParams {
|
|
|
13478
13491
|
/** Returns true when at least one price was actually refreshed on-chain. */
|
|
13479
13492
|
declare function refreshLiveOraclePrices({ oracle, signer, vault, vaultState, nowSecs, log, dryRun, }: RefreshLiveOraclePricesParams): Promise<boolean>;
|
|
13480
13493
|
|
|
13494
|
+
/** A NAV drop of at least 0.1% triggers the manager-wallet lookup. */
|
|
13495
|
+
declare const MANAGER_WALLET_NAV_DROP_TRIGGER_BPS = 10n;
|
|
13496
|
+
/** The adjusted NAV must be within ±0.05%, including both boundaries. */
|
|
13497
|
+
declare const MANAGER_WALLET_NAV_TOLERANCE_BPS = 5n;
|
|
13498
|
+
/** Previous physical NAV, including banked APY, adjusted for recorded cash flows. */
|
|
13499
|
+
declare function previousPhysicalNav(state: DecodedVault): bigint;
|
|
13500
|
+
/** Same per-holding integer valuation as the program's gross_nav_from_holdings. */
|
|
13501
|
+
declare function candidateGrossNav(state: DecodedVault, updates: readonly HoldingUpdatePreview[]): bigint;
|
|
13502
|
+
interface ManagerWalletReconciliation {
|
|
13503
|
+
accepted: boolean;
|
|
13504
|
+
updates: HoldingUpdatePreview[];
|
|
13505
|
+
previousNav: bigint;
|
|
13506
|
+
candidateNav: bigint;
|
|
13507
|
+
adjustedNav?: bigint;
|
|
13508
|
+
}
|
|
13509
|
+
/**
|
|
13510
|
+
* Rebuild from sourced external amounts every pass. Never carry forward a prior
|
|
13511
|
+
* wallet attribution or cap/select wallet balances to make the NAV fit.
|
|
13512
|
+
*/
|
|
13513
|
+
declare function reconcileManagerWalletBalances({ vault, vaultState, updates, source, log, }: {
|
|
13514
|
+
vault: Address;
|
|
13515
|
+
vaultState: DecodedVault;
|
|
13516
|
+
updates: HoldingUpdatePreview[];
|
|
13517
|
+
source?: ManagerWalletBalanceSource;
|
|
13518
|
+
log?: (message: string) => void;
|
|
13519
|
+
}): Promise<ManagerWalletReconciliation>;
|
|
13520
|
+
/** The vault fields whose changes would invalidate a wallet reconciliation. */
|
|
13521
|
+
declare function managerReconciliationStateKey(state: DecodedVault): string;
|
|
13522
|
+
|
|
13481
13523
|
declare function gatherPricingInputs(deps: ConsensusOracleDeps, target: ConsensusOracleTarget, vaultState: DecodedVault, reportableHoldings: ConsensusHoldingEntry[], log?: (msg: string) => void): Promise<VaultPricingInputs>;
|
|
13482
13524
|
/**
|
|
13483
13525
|
* Live-LP balances for the target, summed by mint (empty if no provider).
|
|
@@ -13516,9 +13558,11 @@ interface SettleVaultParams {
|
|
|
13516
13558
|
vaultState: DecodedVault;
|
|
13517
13559
|
nowSecs: bigint;
|
|
13518
13560
|
log: (msg: string) => void;
|
|
13561
|
+
/** Revalidate a wallet attribution after projections and before publication. */
|
|
13562
|
+
beforeSubmit?: () => Promise<void>;
|
|
13519
13563
|
}
|
|
13520
13564
|
/** Push the consensus report for all holdings, then settle NAV. */
|
|
13521
|
-
declare function settleVault({ client, oracle, yieldTracker, signer, target, updates, vaultState, nowSecs, log, }: SettleVaultParams): Promise<SettleVaultResult>;
|
|
13565
|
+
declare function settleVault({ client, oracle, yieldTracker, signer, target, updates, vaultState, nowSecs, log, beforeSubmit, }: SettleVaultParams): Promise<SettleVaultResult>;
|
|
13522
13566
|
interface LogProspectiveApyParams {
|
|
13523
13567
|
client: VaultClient;
|
|
13524
13568
|
vault: Address;
|
|
@@ -13699,6 +13743,13 @@ declare class LivePriceSource implements PriceSource {
|
|
|
13699
13743
|
fetchUsdPrices(mints: Address[]): Promise<Record<string, number>>;
|
|
13700
13744
|
}
|
|
13701
13745
|
|
|
13746
|
+
/** Includes non-ATA accounts and both supported token programs, using raw units. */
|
|
13747
|
+
declare class RpcManagerWalletBalanceSource implements ManagerWalletBalanceSource {
|
|
13748
|
+
private readonly connection;
|
|
13749
|
+
constructor(connection: Connection);
|
|
13750
|
+
fetchBalances(manager: Address, mints: Address[]): Promise<Map<string, bigint>>;
|
|
13751
|
+
}
|
|
13752
|
+
|
|
13702
13753
|
/**
|
|
13703
13754
|
* Aggregation of {@link ExternalPositionProvider}s plus a trivial static
|
|
13704
13755
|
* provider. Concrete live-LP providers (Kamino, Marginfi) wrap protocol SDKs,
|
|
@@ -13851,7 +13902,7 @@ declare function formatSettlementSimulation(simulation: SettlementSimulation): s
|
|
|
13851
13902
|
|
|
13852
13903
|
interface LiveConsensusOracleDepsOptions {
|
|
13853
13904
|
log?: (msg: string) => void;
|
|
13854
|
-
/** @deprecated Ignored.
|
|
13905
|
+
/** @deprecated Ignored. The NAV-gated manager-wallet check is always enabled. */
|
|
13855
13906
|
rpcOnly?: boolean;
|
|
13856
13907
|
includeExternalPositions?: boolean;
|
|
13857
13908
|
}
|
|
@@ -13862,7 +13913,7 @@ interface RunLiveConsensusOracleOptions extends RunOptions {
|
|
|
13862
13913
|
rpcUrl?: string;
|
|
13863
13914
|
/** Override the vault program id. Defaults to the environment's configured program. */
|
|
13864
13915
|
programId?: Address;
|
|
13865
|
-
/** @deprecated Ignored.
|
|
13916
|
+
/** @deprecated Ignored. The NAV-gated manager-wallet check is always enabled. */
|
|
13866
13917
|
rpcOnly?: boolean;
|
|
13867
13918
|
/** Include live Kamino/Marginfi positions in external amount updates. Defaults to true. */
|
|
13868
13919
|
includeExternalPositions?: boolean;
|
|
@@ -13904,10 +13955,10 @@ declare class ConsensusOracleService {
|
|
|
13904
13955
|
/**
|
|
13905
13956
|
* External Liquidity Integrity Service
|
|
13906
13957
|
*
|
|
13907
|
-
* Keeps
|
|
13908
|
-
*
|
|
13909
|
-
*
|
|
13910
|
-
*
|
|
13958
|
+
* Keeps USDC worth 1.5% of total vault TVL in the vault-owned token account.
|
|
13959
|
+
* Other holdings keep a small share of their own balance local (see
|
|
13960
|
+
* {@link DEFAULT_TARGET_LOCAL_BPS}) so routine payouts can be served without
|
|
13961
|
+
* a Marginfi round trip; everything
|
|
13911
13962
|
* above that target is deposited into the configured external position via
|
|
13912
13963
|
* `protocol_interaction` (a Marginfi deposit CPI).
|
|
13913
13964
|
*
|
|
@@ -13952,10 +14003,12 @@ interface ExternalLiquidityIntegrityOptions {
|
|
|
13952
14003
|
*/
|
|
13953
14004
|
minAmountUi?: number;
|
|
13954
14005
|
/**
|
|
13955
|
-
* Share of each holding (local + external) to keep in the vault's
|
|
13956
|
-
* account, in basis points. Defaults to {@link DEFAULT_TARGET_LOCAL_BPS}.
|
|
14006
|
+
* Share of each non-USDC holding (local + external) to keep in the vault's
|
|
14007
|
+
* own token account, in basis points. Defaults to {@link DEFAULT_TARGET_LOCAL_BPS}.
|
|
13957
14008
|
*/
|
|
13958
14009
|
targetLocalBps?: number;
|
|
14010
|
+
/** Share of total vault TVL to keep locally as USDC, in basis points. */
|
|
14011
|
+
targetLocalUsdcTvlBps?: number;
|
|
13959
14012
|
/**
|
|
13960
14013
|
* Hysteresis band, in basis points *of the target local amount*: the local
|
|
13961
14014
|
* balance must drift at least this far from target before a rebalance is
|
|
@@ -13965,14 +14018,17 @@ interface ExternalLiquidityIntegrityOptions {
|
|
|
13965
14018
|
}
|
|
13966
14019
|
declare const DEFAULT_MIN_AMOUNT_UI = 1;
|
|
13967
14020
|
/**
|
|
13968
|
-
* Keep 0.5% of each holding local; the
|
|
14021
|
+
* Keep 0.5% of each non-USDC holding local; the rest earns yield in Marginfi.
|
|
13969
14022
|
* Anything larger than this buffer is served by `execute_withdraw_from_external`,
|
|
13970
14023
|
* which unwinds the Marginfi position in the same transaction.
|
|
13971
14024
|
*/
|
|
13972
14025
|
declare const DEFAULT_TARGET_LOCAL_BPS = 50;
|
|
14026
|
+
/** Keep local USDC worth 1.5% of total vault TVL. */
|
|
14027
|
+
declare const DEFAULT_TARGET_LOCAL_USDC_TVL_BPS = 150;
|
|
13973
14028
|
/**
|
|
13974
14029
|
* Rebalance only once the local balance has drifted more than 20% away from its
|
|
13975
|
-
* target — i.e. outside
|
|
14030
|
+
* target — i.e. outside 1.2%–1.8% of vault TVL for USDC, or 0.4%–0.6% of
|
|
14031
|
+
* a non-USDC holding at its default 0.5% target.
|
|
13976
14032
|
* Without this band every arriving deposit or payout would trigger its own
|
|
13977
14033
|
* transaction; with it, each rebalance restores the exact target, so the next
|
|
13978
14034
|
* one is a full band away rather than one dust movement later.
|
|
@@ -13993,6 +14049,8 @@ declare function planRebalance(params: {
|
|
|
13993
14049
|
localAmount: bigint;
|
|
13994
14050
|
externalAmount: bigint;
|
|
13995
14051
|
targetLocalBps: number;
|
|
14052
|
+
/** Override the holding-based target with a raw token amount (USDC/TVL). */
|
|
14053
|
+
targetLocalAmount?: bigint;
|
|
13996
14054
|
rebalanceBandBps: number;
|
|
13997
14055
|
minRaw: bigint;
|
|
13998
14056
|
}): {
|
|
@@ -14016,6 +14074,7 @@ declare class ExternalLiquidityIntegrityService {
|
|
|
14016
14074
|
dryRun?: boolean;
|
|
14017
14075
|
minAmountUi?: number;
|
|
14018
14076
|
targetLocalBps?: number;
|
|
14077
|
+
targetLocalUsdcTvlBps?: number;
|
|
14019
14078
|
rebalanceBandBps?: number;
|
|
14020
14079
|
}): Promise<ExternalLiquidityIntegrityResult>;
|
|
14021
14080
|
/**
|
|
@@ -14032,14 +14091,19 @@ declare class ExternalLiquidityIntegrityService {
|
|
|
14032
14091
|
* payouts can be served without unwinding yield positions on demand.
|
|
14033
14092
|
*
|
|
14034
14093
|
* Idle USDC is the live balance of the vault's USDC token account plus USDC
|
|
14035
|
-
* deposits in
|
|
14094
|
+
* deposits in the first Project0 (Marginfi) external-liquidity position,
|
|
14095
|
+
* valued at the holding price.
|
|
14036
14096
|
* The holding's aggregate `external_amount` includes other deployed capital
|
|
14037
14097
|
* and must not be used as the idle reserve.
|
|
14038
14098
|
*
|
|
14039
14099
|
* When idle USDC drops below {@link IDLE_RESERVE_FLOOR_BPS} of vault TVL, the
|
|
14040
14100
|
* service swaps PST into USDC through the permissioned `jupiter_swap`
|
|
14041
14101
|
* instruction, sizing the swap to land at {@link IDLE_RESERVE_TARGET_BPS} of
|
|
14042
|
-
* TVL.
|
|
14102
|
+
* TVL. Independently, local USDC plus withdrawable Project0 deposits must cover
|
|
14103
|
+
* {@link WITHDRAWABLE_RESERVE_FLOOR_BPS} of TVL. Each bank contributes the lesser
|
|
14104
|
+
* of this vault's deposits and its available liquidity (deposits minus borrows,
|
|
14105
|
+
* floored at zero). The swap covers the larger of the two triggered shortfalls.
|
|
14106
|
+
* PST is never deployed externally, so the vault's local PST balance is
|
|
14043
14107
|
* the whole swappable inventory; if it cannot cover the full top-up the run is
|
|
14044
14108
|
* skipped rather than partially filled.
|
|
14045
14109
|
*
|
|
@@ -14052,6 +14116,8 @@ declare class ExternalLiquidityIntegrityService {
|
|
|
14052
14116
|
declare const IDLE_RESERVE_FLOOR_BPS = 400;
|
|
14053
14117
|
/** Top-ups are sized to land idle USDC at this share of TVL. */
|
|
14054
14118
|
declare const IDLE_RESERVE_TARGET_BPS = 500;
|
|
14119
|
+
/** Local USDC + withdrawable Project0 deposits must cover 1.5% of TVL. */
|
|
14120
|
+
declare const WITHDRAWABLE_RESERVE_FLOOR_BPS = 150;
|
|
14055
14121
|
declare const DEFAULT_SLIPPAGE_BPS = 30;
|
|
14056
14122
|
declare const DEFAULT_CU_PRICE_MICRO_LAMPORTS = 10000;
|
|
14057
14123
|
declare const DEFAULT_MAX_ACCOUNTS = 20;
|
|
@@ -14070,10 +14136,14 @@ interface IdleLiquidityResult {
|
|
|
14070
14136
|
reason: string;
|
|
14071
14137
|
/** Vault TVL in accounting units. */
|
|
14072
14138
|
tvl: bigint;
|
|
14073
|
-
/** Live vault USDC +
|
|
14139
|
+
/** Live vault USDC + first Project0 USDC deposits, in accounting units. */
|
|
14074
14140
|
idleValue: bigint;
|
|
14075
14141
|
/** Idle USDC as a share of TVL, in bps. */
|
|
14076
14142
|
idleBps: number;
|
|
14143
|
+
/** Local USDC + bank-liquidity-capped deposits, in accounting units. */
|
|
14144
|
+
withdrawableValue: bigint;
|
|
14145
|
+
/** Withdrawable USDC as a share of TVL, in bps. */
|
|
14146
|
+
withdrawableBps: number;
|
|
14077
14147
|
/** USDC the swap needs to produce to reach the target, in raw USDC units. */
|
|
14078
14148
|
shortfallUsdc: bigint;
|
|
14079
14149
|
/** PST spent (0 unless a swap was executed or simulated). */
|
|
@@ -14223,4 +14293,27 @@ declare function decodeNestWithdrawalRequest(args: {
|
|
|
14223
14293
|
txBase64: string;
|
|
14224
14294
|
}): Promise<VaultTransactionPlan>;
|
|
14225
14295
|
|
|
14226
|
-
export { ASSET_DECIMALS, ASSET_REBALANCE_COOLDOWN_SECS, type AccountBalanceResponse, AccountClient, type AccountYieldResponse, ActivateCircuitBreakerBuilder, type ActivateCircuitBreakerIxArgs, type ActivateCircuitBreakerTxArgs, type AddAprCashflowUpdateParams, type AddCashflowUpdateParams, type AddIncentiveRecipientArgs, AddIncentiveRecipientBuilder, type AddIncentiveRecipientIxArgs, AddIncentiveRecipientV3Builder, type AddIncentiveRecipientV3IxArgs, type AddIncentiveRecipientV3TxArgs, type AddNavCashflowUpdateParams, type AprAccountBalanceResponse, type AprAccountYieldResponse, type AssetPriceOracleConfigIxArgs, type AssetPriceOracleConfigTxArgs, type AssetPriceRefreshTarget, type AssetRefreshResult, type AssetType, BALANCE_CHANGE_BASELINE_MAX_AGE_SECS, type Bankineco, type BasicAuthCredentials, type Bigintish, type BuildMarginfiWithdrawInteractionArgs, CONSENSUS_ORACLE_VARIANT, type CancelIncentiveProposalArgs, CancelIncentiveProposalBuilder, CancelJuniorTrancheWithdrawBuilder, type CancelJuniorTrancheWithdrawIxArgs, type CancelJuniorTrancheWithdrawTxArgs, ClaimIncentiveBuilder, type ClaimIncentiveIxArgs, type ClaimIncentiveTxArgs, ClaimIncentiveV3Builder, type ClaimIncentiveV3IxArgs, type ClaimIncentiveV3TxArgs, type Clock, type CollectSamplesOptions, type ConsensusAssetUpdate, type ConsensusHoldingEntry, type ConsensusHoldingSimulation, type ConsensusOracleDeps, type ConsensusOracleHoldingConfig, ConsensusOracleService, type ConsensusOracleTarget, CrankNavBuilder, type CrankNavIxArgs, type CrankNavTxArgs, CrankPerformanceFeesBuilder, type CrankPerformanceFeesIxArgs, type CrankPerformanceFeesTxArgs, type CreateAccountParams, CreateAssetHoldingBuilder, type CreateAssetHoldingIxArgs, type CreateAssetHoldingTxArgs, CreateIncentiveBuilder, type CreateIncentiveIxArgs, type CreateIncentiveTxArgs, CreateIncentiveV3Builder, type CreateIncentiveV3IxArgs, type CreateIncentiveV3TxArgs, type CreateTokenMintIxs, CreateTrancheStateBuilder, type CreateTrancheStateIxArgs, type CreateTrancheStateTxArgs, CreateVaultBuilder, type CreateVaultClientOptions, type CreateVaultIxArgs, type CreateVaultParams, type CreateVaultTxArgs, type CreateYieldPaymentParams, DEFAULT_CU_PRICE_MICRO_LAMPORTS, DEFAULT_JUNIOR_EARLY_UNSTAKE_FEE_BPS, DEFAULT_JUNIOR_STANDARD_UNSTAKE_FEE_BPS, DEFAULT_JUNIOR_WITHDRAWAL_LOCKUP_SECS, DEFAULT_MAX_ACCEPTABLE_APY_BPS, DEFAULT_MAX_ACCOUNTS, DEFAULT_MINTS, DEFAULT_MIN_AMOUNT_UI, DEFAULT_ORACLE_STALENESS_THRESHOLD_SECS, DEFAULT_PRICE_ORACLE_ACCOUNT, DEFAULT_PRICE_STALENESS_SECS, DEFAULT_PRICE_STALENESS_THRESHOLD_SECS, DEFAULT_REBALANCE_BAND_BPS, DEFAULT_SLIPPAGE_BPS, DEFAULT_TARGET_LOCAL_BPS, DEFAULT_VAULT_ID, type DecodedHolding, type DecodedVault, type DecodedVaultTrancheState, type DeleteAccountParams, DisableCircuitBreakerBuilder, type DisableCircuitBreakerIxArgs, type DisableCircuitBreakerTxArgs, DistributeIncentiveBuilder, type DistributeIncentiveIxArgs, type DistributeIncentiveTxArgs, DistributeIncentiveV3Builder, type DistributeIncentiveV3IxArgs, type DistributeIncentiveV3TxArgs, EXTERNAL_POSITION_SAMPLES, ExecuteDepositBuilder, type ExecuteDepositIxArgs, type ExecuteDepositTxArgs, ExecuteShareSwapBuilder, type ExecuteShareSwapIxArgs, type ExecuteShareSwapTxArgs, ExecuteTrancheDepositBuilder, type ExecuteTrancheDepositIxArgs, type ExecuteTrancheDepositTxArgs, ExecuteTrancheWithdrawBuilder, type ExecuteTrancheWithdrawIxArgs, type ExecuteTrancheWithdrawTxArgs, ExecuteWithdrawBuilder, type ExecuteWithdrawIxArgs, type ExecuteWithdrawTxArgs, type ExternalLiquidityIntegrityOptions, type ExternalLiquidityIntegrityResult, ExternalLiquidityIntegrityService, type ExternalLiquidityIntegritySummary, type ExternalLiquiditySlot, type ExternalLiquiditySourceArgs, type ExternalPosition, type ExternalPositionContext, type ExternalPositionProvider, type ExternalPositionRef, ExternalPositionRegistry, FEE_VAULT_CACHE_CATEGORY, type FeeVaultAccountData, type FetchNestTokenPriceOptions, FulfillJuniorTrancheWithdrawBuilder, type FulfillJuniorTrancheWithdrawIxArgs, type FulfillJuniorTrancheWithdrawTxArgs, type FulfillSummary, type HoldingNavContribution, type HoldingUpdatePreview, IDL, IDLE_RESERVE_FLOOR_BPS, IDLE_RESERVE_TARGET_BPS, type IdleLiquidityOptions, type IdleLiquidityResult, IdleLiquidityService, type IdleLiquidityStatus, type IncentiveRecipient, type IncentiveTotals, type IncentiveUsdUpdateArgs, type IncentiveV3OracleState, type IncentiveV3Recipient, type IncentiveV3Totals, InitializeVaultRolesBuilder, type InitializeVaultRolesIxArgs, type InitializeVaultRolesTxArgs, type JuniorWithdrawalMode, JupiterPriceSource, type JupiterPriceSourceOptions, JupiterSwapBuilder, type JupiterSwapIxArgs, type JupiterSwapTxArgs, KaminoPositionProvider, LIVE_ORACLE_VARIANTS, LIVE_PRICE_REFRESH_INTERVAL_SECS, LOCAL_PROTOCOL_ADMIN, LargeBalanceChangeError, type LargeBalanceChangeViolation, type LiveConsensusOracleDepsOptions, LivePriceSource, type LivePriceSourceOptions, MAX_APY_ANCHOR_WINDOW_SECS, MAX_BALANCE_CHANGE_BPS, MAX_CONSENSUS_SIGNERS, MAX_INCENTIVE_RECIPIENTS, MAX_INCENTIVE_REPORT_TTL, MAX_MANAGER_WITHDRAW_DESTINATIONS, MAX_PRICE_STALENESS_THRESHOLD_SECS, MIN_EXTERNAL_POSITION_SAMPLES, ManagerRedepositAssetBuilder, type ManagerRedepositAssetIxArgs, type ManagerRedepositAssetTxArgs, ManagerWithdrawAssetBuilder, type ManagerWithdrawAssetIxArgs, type ManagerWithdrawAssetTxArgs, MarginfiPositionProvider, type MaxApyAnchorSnapshot, type MintConfig, type MintIdentifier, type MintInfo, MintRegistry, type MintRegistryOptions, type MockYieldAccountConfig, MockYieldTracker, type MockYieldTrackerOptions, NEST_API_BASE_URL, NEST_RWA_SHARE_MINT, NEST_VAULT_SLUG, type NavAccountBalanceResponse, type NavAccountValueResponse, type NavCrankBlocker, type NavCrankBlockerReason, type NavCrankReadiness, type NavCrankResult, type NavPriceConfig, type NavYieldAccount, NestApiError, type NestApiOptions, NestPriceSource, type NestPriceSourceOptions, type NestRedemptionQuote, type NestRedemptionStatus, ORACLE_ENTRIES_OFFSET, ORACLE_ENTRY_SIZE, ORACLE_SETTLED_NAV_TS_OFFSET, OracleService, PRICE_ORACLE_TYPES_BY_INDEX, PROGRAM_FEE_EXEMPT_OWNER_WHITELIST, PROTOCOL_ADMIN, PROTOCOL_FEE_RECIPIENT, PdaClient, type PendingConsensusSignerSet, type PreparedDirectTransaction, type PreparedSquadsTransaction, type PreparedVaultTransaction, type PriceOracleTypeArgs, type PriceSource, ProtocolInteractionBuilder, type ProtocolInteractionIxArgs, type ProtocolInteractionTxArgs, type QuoteFeeUnit, REPORTABLE_ORACLE_VARIANTS, type RealizedApySimulation, type RefreshLiveOraclePricesParams, RemoveAssetHoldingBuilder, type RemoveAssetHoldingIxArgs, type RemoveAssetHoldingTxArgs, ReportIncentiveV3Builder, type ReportIncentiveV3IxArgs, type ReportIncentiveV3TxArgs, RequestJuniorTrancheWithdrawBuilder, type RequestJuniorTrancheWithdrawIxArgs, type RequestJuniorTrancheWithdrawTxArgs, type ResolveExternalWithdrawArgs, type ResolvedExternalWithdraw, type ResolvedSquadsWalletRoute, type RollingLimitConfig, type RollingRebalanceLimitConfig, type RunLiveConsensusOracleOptions, type RunOptions, type RunSummary, SHARE_DECIMALS, SYSTEM_PROGRAM, SetAssetPriceOracleBuilder, type SetAssetPriceOracleIxArgs, type SetAssetPriceOracleTxArgs, SetExternalLiquidityBuilder, type SetExternalLiquidityIxArgs, type SetExternalLiquidityTxArgs, type SetIncentiveLimitsArgs, SetIncentiveLimitsBuilder, type SetIncentiveLimitsV3Args, SetIncentiveLimitsV3Builder, SetManagerWithdrawDestinationBuilder, type SetManagerWithdrawDestinationIxArgs, type SetManagerWithdrawDestinationTxArgs, SetProtocolFeeBuilder, type SetProtocolFeeIxArgs, type SetProtocolFeeTxArgs, SetVaultConfigBuilder, type SetVaultConfigIxArgs, type SetVaultConfigTxArgs, SettleIncentiveV3Builder, type SettleIncentiveV3IxArgs, type SettleIncentiveV3TxArgs, type SettleVaultParams, type SettleVaultResult, type SettlementSimulation, type SettlementSimulationSnapshot, type SimulateDryRunSettlementParams, type SimulateSettlementArgs, type SimulatedShareClass, SquadsProposalExecutionSimulationError, type SquadsProposalUpload, type SquadsWalletRouteConfig, type StaleBalanceChangeBypass, StaticPositionProvider, SubmitIncentiveBuilder, type SubmitIncentiveIxArgs, type SubmitIncentiveTxArgs, TOKEN_PROGRAM, TOKEN_PROGRAM_ID, type TimelockSettlementKind, type TimelockSettlementOptions, type TimelockSettlementRecord, TimelockSettlementService, type TimelockSettlementSummary, type TrackedAccountValue, type TrancheKindArgs, type TransactionBuilder, TransactionClient, USDC_MINT, USD_STAR_JUNIOR_MINT, USD_STAR_MINT, USD_STAR_PRINCIPAL_MINT, type UpdateAccountParams, UpdateAssetPriceBuilder, type UpdateAssetPriceIxArgs, type UpdateAssetPriceTxArgs, UpdateConsensusOracleBuilder, type UpdateConsensusOracleIxArgs, type UpdateConsensusOracleTxArgs, UpdateConsensusSignersBuilder, type UpdateConsensusSignersIxArgs, type UpdateConsensusSignersTxArgs, type UpdateDynamicAprParams, UpdateTrancheConfigBuilder, type UpdateTrancheConfigIxArgs, type UpdateTrancheConfigTxArgs, VAULT_CACHE_CATEGORY, VAULT_CREATOR_WHITELIST, VAULT_ENVIRONMENTS, VAULT_ORACLE_CACHE_CATEGORY, VAULT_PROGRAM_ID, VAULT_PROGRAM_IDS, VAULT_PROGRAM_PUBLIC_KEY, VAULT_ROLE_UPDATE_TIMELOCK_SECS, VAULT_TRANCHE_STATE_CACHE_CATEGORY, VAULT_TRANCHE_WITHDRAWAL_QUEUE_CACHE_CATEGORY, type Vault, type VaultAccountData, VaultBuilderBase, type VaultBuilderContext, type VaultCacheInvalidation, VaultClient, type VaultClientBundle, type VaultEnv, type VaultIncentiveAccount, type VaultIncentiveAccountData, type VaultIncentiveV3Account, type VaultIncentiveV3AccountData, type VaultOracleAccountData, type VaultOracleResult, type VaultPricingInputs, type VaultQuote, type VaultQuoteArgs, VaultQuoteClient, type VaultQuoteDirection, type VaultQuoteShareClass, VaultReallocationBuilder, type VaultReallocationIxArgs, type VaultReallocationTxArgs, type VaultTrancheStateAccountData, type VaultTrancheWithdrawalQueueAccountData, type VaultTransactionPlan, type WithdrawProtocolFeesIxArgs, type WithdrawProtocolFeesTxArgs, WithdrawalQueueService, type WithdrawalQueueSnapshot, type YieldAccount, type YieldAccountSnapshot, type YieldCalculationLog, type YieldCashflow, type YieldPaymentResponse, type YieldPaymentSnapshot, type YieldTracker, type YieldValuationModel, accountingUnitPriceToUsd, addCashflowUpdate, applyEffectiveApy, assertNoLargeBalanceChanges, assertNoUnconfirmedYieldPayments, buildHoldingUpdate, buildMarginfiWithdrawInteraction, buildNestWithdrawalRequest, buildUpdates, coerceBool, collectSamples, confirmYieldPayment, createAccount, createLiveConsensusOracleDeps, createRpcFromConnection, createTokenMint, createTokenMintIxs, createVaultClient, createYieldPayment, dateToStr, decodeNestWithdrawalRequest, decodePendingConsensusSigners, defaultKeypairPath, deleteAccount, discoverVaultsForSigner, fetchExternalPositions, fetchNestRedemptionQuote, fetchNestRedemptionStatus, fetchNestTokenPrice, fetchReceiptMints, filterTargetHoldings, findLargeBalanceChanges, findSquadsWalletRoute, formatSettlementSimulation, fromUiAmount, gatherPricingInputs, getAccount, getAccounts, getAprYield, getBalance, getCashflows, getIncentiveRecipientShareAtas, getIncentiveRecipients, getIncentiveReportRecipients, getIncentiveTotals, getIncentiveV3OracleState, getIncentiveV3RecipientShareAtas, getIncentiveV3Recipients, getIncentiveV3Totals, getNavValue, getRpcUrl, getTotalOutstandingYield, getTotalTrackedValue, getTotalYield, getTrackedValue, getVaultProgramId, getYield, getYieldPayments, indexConfigByMint, isNavAccountBalance, isNavAccountValue, isNavYieldAccount, isVaultEnv, keypairAddress, loadKeypair, logProspectiveApy, makeProvider, mintTokensTo, mints, mostFrequent, parseExternalLiquidityRefs, planRebalance, prepareSquadsProposalUpload, prepareVaultTransaction, priceInAccountingUnit, readI64LE, readSplMintSupply, refreshLiveOraclePrices, resolveExternalWithdraw, resolveKeypairPath, resolveSquadsWalletRoute, resolveTrackedAmounts, roundToNextUtcMidnight, runLiveConsensusOracle, selectReportableHoldings, settleVault, signerInOracleData, simulateConsensusOracleSettlement, simulateDryRunSettlement, simulateSquadsProposalExecution, sumPositionsByMint, systemClock, toBigInt, toUiAmount, toWeb3AccountMeta, trackedValueFromResponse, updateAccount, updateDynamicApr, validateSquadsWalletRoutes, variantName, vaultAuthorityForWallet, withDiscoveredYieldAccounts };
|
|
14296
|
+
interface NestDepositPlan extends VaultTransactionPlan {
|
|
14297
|
+
/** Pass through to prepareVaultTransaction; the keeper's signatures are not reusable. */
|
|
14298
|
+
ephemeralSignerKeys: PublicKey[];
|
|
14299
|
+
}
|
|
14300
|
+
/** Build a manager-funded deposit, with one event account for Squads to sign. */
|
|
14301
|
+
declare function buildNestDepositRequest(args: {
|
|
14302
|
+
connection: Connection;
|
|
14303
|
+
owner: PublicKey;
|
|
14304
|
+
rawAmountUsdc: bigint;
|
|
14305
|
+
apiOptions?: NestApiOptions;
|
|
14306
|
+
}): Promise<NestDepositPlan>;
|
|
14307
|
+
/**
|
|
14308
|
+
* Validate the USDC burn and Nest/Solana recipient. Replace the keeper rent payer
|
|
14309
|
+
* with the manager, and expose the CCTP event signer for Squads PDA substitution.
|
|
14310
|
+
* Nest remains trusted for the complete cross-chain payload and keeper delivery.
|
|
14311
|
+
*/
|
|
14312
|
+
declare function decodeNestDepositRequest(args: {
|
|
14313
|
+
connection: Connection;
|
|
14314
|
+
owner: PublicKey;
|
|
14315
|
+
rawAmountUsdc: bigint;
|
|
14316
|
+
txBase64: string;
|
|
14317
|
+
}): Promise<NestDepositPlan>;
|
|
14318
|
+
|
|
14319
|
+
export { ASSET_DECIMALS, ASSET_REBALANCE_COOLDOWN_SECS, type AccountBalanceResponse, AccountClient, type AccountYieldResponse, ActivateCircuitBreakerBuilder, type ActivateCircuitBreakerIxArgs, type ActivateCircuitBreakerTxArgs, type AddAprCashflowUpdateParams, type AddCashflowUpdateParams, type AddIncentiveRecipientArgs, AddIncentiveRecipientBuilder, type AddIncentiveRecipientIxArgs, AddIncentiveRecipientV3Builder, type AddIncentiveRecipientV3IxArgs, type AddIncentiveRecipientV3TxArgs, type AddNavCashflowUpdateParams, type AprAccountBalanceResponse, type AprAccountYieldResponse, type AssetPriceOracleConfigIxArgs, type AssetPriceOracleConfigTxArgs, type AssetPriceRefreshTarget, type AssetRefreshResult, type AssetType, BALANCE_CHANGE_BASELINE_MAX_AGE_SECS, type Bankineco, type BasicAuthCredentials, type Bigintish, type BuildMarginfiWithdrawInteractionArgs, CONSENSUS_ORACLE_VARIANT, type CancelIncentiveProposalArgs, CancelIncentiveProposalBuilder, CancelJuniorTrancheWithdrawBuilder, type CancelJuniorTrancheWithdrawIxArgs, type CancelJuniorTrancheWithdrawTxArgs, ClaimIncentiveBuilder, type ClaimIncentiveIxArgs, type ClaimIncentiveTxArgs, ClaimIncentiveV3Builder, type ClaimIncentiveV3IxArgs, type ClaimIncentiveV3TxArgs, type Clock, type CollectSamplesOptions, type ConsensusAssetUpdate, type ConsensusHoldingEntry, type ConsensusHoldingSimulation, type ConsensusOracleDeps, type ConsensusOracleHoldingConfig, ConsensusOracleService, type ConsensusOracleTarget, CrankNavBuilder, type CrankNavIxArgs, type CrankNavTxArgs, CrankPerformanceFeesBuilder, type CrankPerformanceFeesIxArgs, type CrankPerformanceFeesTxArgs, type CreateAccountParams, CreateAssetHoldingBuilder, type CreateAssetHoldingIxArgs, type CreateAssetHoldingTxArgs, CreateIncentiveBuilder, type CreateIncentiveIxArgs, type CreateIncentiveTxArgs, CreateIncentiveV3Builder, type CreateIncentiveV3IxArgs, type CreateIncentiveV3TxArgs, type CreateTokenMintIxs, CreateTrancheStateBuilder, type CreateTrancheStateIxArgs, type CreateTrancheStateTxArgs, CreateVaultBuilder, type CreateVaultClientOptions, type CreateVaultIxArgs, type CreateVaultParams, type CreateVaultTxArgs, type CreateYieldPaymentParams, DEFAULT_CU_PRICE_MICRO_LAMPORTS, DEFAULT_JUNIOR_EARLY_UNSTAKE_FEE_BPS, DEFAULT_JUNIOR_STANDARD_UNSTAKE_FEE_BPS, DEFAULT_JUNIOR_WITHDRAWAL_LOCKUP_SECS, DEFAULT_MAX_ACCEPTABLE_APY_BPS, DEFAULT_MAX_ACCOUNTS, DEFAULT_MINTS, DEFAULT_MIN_AMOUNT_UI, DEFAULT_ORACLE_STALENESS_THRESHOLD_SECS, DEFAULT_PRICE_ORACLE_ACCOUNT, DEFAULT_PRICE_STALENESS_SECS, DEFAULT_PRICE_STALENESS_THRESHOLD_SECS, DEFAULT_REBALANCE_BAND_BPS, DEFAULT_SLIPPAGE_BPS, DEFAULT_TARGET_LOCAL_BPS, DEFAULT_TARGET_LOCAL_USDC_TVL_BPS, DEFAULT_VAULT_ID, type DecodedHolding, type DecodedVault, type DecodedVaultTrancheState, type DeleteAccountParams, DisableCircuitBreakerBuilder, type DisableCircuitBreakerIxArgs, type DisableCircuitBreakerTxArgs, DistributeIncentiveBuilder, type DistributeIncentiveIxArgs, type DistributeIncentiveTxArgs, DistributeIncentiveV3Builder, type DistributeIncentiveV3IxArgs, type DistributeIncentiveV3TxArgs, EXTERNAL_POSITION_SAMPLES, ExecuteDepositBuilder, type ExecuteDepositIxArgs, type ExecuteDepositTxArgs, ExecuteShareSwapBuilder, type ExecuteShareSwapIxArgs, type ExecuteShareSwapTxArgs, ExecuteTrancheDepositBuilder, type ExecuteTrancheDepositIxArgs, type ExecuteTrancheDepositTxArgs, ExecuteTrancheWithdrawBuilder, type ExecuteTrancheWithdrawIxArgs, type ExecuteTrancheWithdrawTxArgs, ExecuteWithdrawBuilder, type ExecuteWithdrawIxArgs, type ExecuteWithdrawTxArgs, type ExternalLiquidityIntegrityOptions, type ExternalLiquidityIntegrityResult, ExternalLiquidityIntegrityService, type ExternalLiquidityIntegritySummary, type ExternalLiquiditySlot, type ExternalLiquiditySourceArgs, type ExternalPosition, type ExternalPositionContext, type ExternalPositionProvider, type ExternalPositionRef, ExternalPositionRegistry, FEE_VAULT_CACHE_CATEGORY, type FeeVaultAccountData, type FetchNestTokenPriceOptions, FulfillJuniorTrancheWithdrawBuilder, type FulfillJuniorTrancheWithdrawIxArgs, type FulfillJuniorTrancheWithdrawTxArgs, type FulfillSummary, type HoldingNavContribution, type HoldingUpdatePreview, IDL, IDLE_RESERVE_FLOOR_BPS, IDLE_RESERVE_TARGET_BPS, type IdleLiquidityOptions, type IdleLiquidityResult, IdleLiquidityService, type IdleLiquidityStatus, type IncentiveRecipient, type IncentiveTotals, type IncentiveUsdUpdateArgs, type IncentiveV3OracleState, type IncentiveV3Recipient, type IncentiveV3Totals, InitializeVaultRolesBuilder, type InitializeVaultRolesIxArgs, type InitializeVaultRolesTxArgs, type JuniorWithdrawalMode, JupiterPriceSource, type JupiterPriceSourceOptions, JupiterSwapBuilder, type JupiterSwapIxArgs, type JupiterSwapTxArgs, KaminoPositionProvider, LIVE_ORACLE_VARIANTS, LIVE_PRICE_REFRESH_INTERVAL_SECS, LOCAL_PROTOCOL_ADMIN, LargeBalanceChangeError, type LargeBalanceChangeViolation, type LiveConsensusOracleDepsOptions, LivePriceSource, type LivePriceSourceOptions, MANAGER_WALLET_NAV_DROP_TRIGGER_BPS, MANAGER_WALLET_NAV_TOLERANCE_BPS, MAX_APY_ANCHOR_WINDOW_SECS, MAX_BALANCE_CHANGE_BPS, MAX_CONSENSUS_SIGNERS, MAX_INCENTIVE_RECIPIENTS, MAX_INCENTIVE_REPORT_TTL, MAX_MANAGER_WITHDRAW_DESTINATIONS, MAX_PRICE_STALENESS_THRESHOLD_SECS, MIN_EXTERNAL_POSITION_SAMPLES, ManagerRedepositAssetBuilder, type ManagerRedepositAssetIxArgs, type ManagerRedepositAssetTxArgs, type ManagerWalletBalanceSource, type ManagerWalletReconciliation, ManagerWithdrawAssetBuilder, type ManagerWithdrawAssetIxArgs, type ManagerWithdrawAssetTxArgs, MarginfiPositionProvider, type MaxApyAnchorSnapshot, type MintConfig, type MintIdentifier, type MintInfo, MintRegistry, type MintRegistryOptions, type MockYieldAccountConfig, MockYieldTracker, type MockYieldTrackerOptions, NEST_API_BASE_URL, NEST_RWA_SHARE_MINT, NEST_VAULT_SLUG, type NavAccountBalanceResponse, type NavAccountValueResponse, type NavCrankBlocker, type NavCrankBlockerReason, type NavCrankReadiness, type NavCrankResult, type NavPriceConfig, type NavYieldAccount, NestApiError, type NestApiOptions, type NestDepositPlan, NestPriceSource, type NestPriceSourceOptions, type NestRedemptionQuote, type NestRedemptionStatus, ORACLE_ENTRIES_OFFSET, ORACLE_ENTRY_SIZE, ORACLE_SETTLED_NAV_TS_OFFSET, OracleService, PRICE_ORACLE_TYPES_BY_INDEX, PROGRAM_FEE_EXEMPT_OWNER_WHITELIST, PROTOCOL_ADMIN, PROTOCOL_FEE_RECIPIENT, PdaClient, type PendingConsensusSignerSet, type PreparedDirectTransaction, type PreparedSquadsTransaction, type PreparedVaultTransaction, type PriceOracleTypeArgs, type PriceSource, ProtocolInteractionBuilder, type ProtocolInteractionIxArgs, type ProtocolInteractionTxArgs, type QuoteFeeUnit, REPORTABLE_ORACLE_VARIANTS, type RealizedApySimulation, type RefreshLiveOraclePricesParams, RemoveAssetHoldingBuilder, type RemoveAssetHoldingIxArgs, type RemoveAssetHoldingTxArgs, ReportIncentiveV3Builder, type ReportIncentiveV3IxArgs, type ReportIncentiveV3TxArgs, RequestJuniorTrancheWithdrawBuilder, type RequestJuniorTrancheWithdrawIxArgs, type RequestJuniorTrancheWithdrawTxArgs, type ResolveExternalWithdrawArgs, type ResolvedExternalWithdraw, type ResolvedSquadsWalletRoute, type RollingLimitConfig, type RollingRebalanceLimitConfig, RpcManagerWalletBalanceSource, type RunLiveConsensusOracleOptions, type RunOptions, type RunSummary, SHARE_DECIMALS, SYSTEM_PROGRAM, SetAssetPriceOracleBuilder, type SetAssetPriceOracleIxArgs, type SetAssetPriceOracleTxArgs, SetExternalLiquidityBuilder, type SetExternalLiquidityIxArgs, type SetExternalLiquidityTxArgs, type SetIncentiveLimitsArgs, SetIncentiveLimitsBuilder, type SetIncentiveLimitsV3Args, SetIncentiveLimitsV3Builder, SetManagerWithdrawDestinationBuilder, type SetManagerWithdrawDestinationIxArgs, type SetManagerWithdrawDestinationTxArgs, SetProtocolFeeBuilder, type SetProtocolFeeIxArgs, type SetProtocolFeeTxArgs, SetVaultConfigBuilder, type SetVaultConfigIxArgs, type SetVaultConfigTxArgs, SettleIncentiveV3Builder, type SettleIncentiveV3IxArgs, type SettleIncentiveV3TxArgs, type SettleVaultParams, type SettleVaultResult, type SettlementSimulation, type SettlementSimulationSnapshot, type SimulateDryRunSettlementParams, type SimulateSettlementArgs, type SimulatedShareClass, SquadsProposalExecutionSimulationError, type SquadsProposalUpload, type SquadsWalletRouteConfig, type StaleBalanceChangeBypass, StaticPositionProvider, SubmitIncentiveBuilder, type SubmitIncentiveIxArgs, type SubmitIncentiveTxArgs, TOKEN_PROGRAM, TOKEN_PROGRAM_ID, type TimelockSettlementKind, type TimelockSettlementOptions, type TimelockSettlementRecord, TimelockSettlementService, type TimelockSettlementSummary, type TrackedAccountValue, type TrancheKindArgs, type TransactionBuilder, TransactionClient, USDC_MINT, USD_STAR_JUNIOR_MINT, USD_STAR_MINT, USD_STAR_PRINCIPAL_MINT, type UpdateAccountParams, UpdateAssetPriceBuilder, type UpdateAssetPriceIxArgs, type UpdateAssetPriceTxArgs, UpdateConsensusOracleBuilder, type UpdateConsensusOracleIxArgs, type UpdateConsensusOracleTxArgs, UpdateConsensusSignersBuilder, type UpdateConsensusSignersIxArgs, type UpdateConsensusSignersTxArgs, type UpdateDynamicAprParams, UpdateTrancheConfigBuilder, type UpdateTrancheConfigIxArgs, type UpdateTrancheConfigTxArgs, VAULT_CACHE_CATEGORY, VAULT_CREATOR_WHITELIST, VAULT_ENVIRONMENTS, VAULT_ORACLE_CACHE_CATEGORY, VAULT_PROGRAM_ID, VAULT_PROGRAM_IDS, VAULT_PROGRAM_PUBLIC_KEY, VAULT_ROLE_UPDATE_TIMELOCK_SECS, VAULT_TRANCHE_STATE_CACHE_CATEGORY, VAULT_TRANCHE_WITHDRAWAL_QUEUE_CACHE_CATEGORY, type Vault, type VaultAccountData, VaultBuilderBase, type VaultBuilderContext, type VaultCacheInvalidation, VaultClient, type VaultClientBundle, type VaultEnv, type VaultIncentiveAccount, type VaultIncentiveAccountData, type VaultIncentiveV3Account, type VaultIncentiveV3AccountData, type VaultOracleAccountData, type VaultOracleResult, type VaultPricingInputs, type VaultQuote, type VaultQuoteArgs, VaultQuoteClient, type VaultQuoteDirection, type VaultQuoteShareClass, VaultReallocationBuilder, type VaultReallocationIxArgs, type VaultReallocationTxArgs, type VaultTrancheStateAccountData, type VaultTrancheWithdrawalQueueAccountData, type VaultTransactionPlan, WITHDRAWABLE_RESERVE_FLOOR_BPS, type WithdrawProtocolFeesIxArgs, type WithdrawProtocolFeesTxArgs, WithdrawalQueueService, type WithdrawalQueueSnapshot, type YieldAccount, type YieldAccountSnapshot, type YieldCalculationLog, type YieldCashflow, type YieldPaymentResponse, type YieldPaymentSnapshot, type YieldTracker, type YieldValuationModel, accountingUnitPriceToUsd, addCashflowUpdate, applyEffectiveApy, assertNoLargeBalanceChanges, assertNoUnconfirmedYieldPayments, buildHoldingUpdate, buildMarginfiWithdrawInteraction, buildNestDepositRequest, buildNestWithdrawalRequest, buildUpdates, candidateGrossNav, coerceBool, collectSamples, confirmYieldPayment, createAccount, createLiveConsensusOracleDeps, createRpcFromConnection, createTokenMint, createTokenMintIxs, createVaultClient, createYieldPayment, dateToStr, decodeNestDepositRequest, decodeNestWithdrawalRequest, decodePendingConsensusSigners, defaultKeypairPath, deleteAccount, discoverVaultsForSigner, fetchExternalPositions, fetchNestRedemptionQuote, fetchNestRedemptionStatus, fetchNestTokenPrice, fetchReceiptMints, filterTargetHoldings, findLargeBalanceChanges, findSquadsWalletRoute, formatSettlementSimulation, fromUiAmount, gatherPricingInputs, getAccount, getAccounts, getAprYield, getBalance, getCashflows, getIncentiveRecipientShareAtas, getIncentiveRecipients, getIncentiveReportRecipients, getIncentiveTotals, getIncentiveV3OracleState, getIncentiveV3RecipientShareAtas, getIncentiveV3Recipients, getIncentiveV3Totals, getNavValue, getRpcUrl, getTotalOutstandingYield, getTotalTrackedValue, getTotalYield, getTrackedValue, getVaultProgramId, getYield, getYieldPayments, indexConfigByMint, isNavAccountBalance, isNavAccountValue, isNavYieldAccount, isVaultEnv, keypairAddress, loadKeypair, logProspectiveApy, makeProvider, managerReconciliationStateKey, mintTokensTo, mints, mostFrequent, parseExternalLiquidityRefs, planRebalance, prepareSquadsProposalUpload, prepareVaultTransaction, previousPhysicalNav, priceInAccountingUnit, readI64LE, readSplMintSupply, reconcileManagerWalletBalances, refreshLiveOraclePrices, resolveExternalWithdraw, resolveKeypairPath, resolveSquadsWalletRoute, resolveTrackedAmounts, roundToNextUtcMidnight, runLiveConsensusOracle, selectReportableHoldings, settleVault, signerInOracleData, simulateConsensusOracleSettlement, simulateDryRunSettlement, simulateSquadsProposalExecution, sumPositionsByMint, systemClock, toBigInt, toUiAmount, toWeb3AccountMeta, trackedValueFromResponse, updateAccount, updateDynamicApr, validateSquadsWalletRoutes, variantName, vaultAuthorityForWallet, withDiscoveredYieldAccounts };
|