@perena/vault-sdk 1.0.49 → 1.0.52

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.d.ts CHANGED
@@ -927,6 +927,184 @@ type Bankineco = {
927
927
  }
928
928
  ];
929
929
  },
930
+ {
931
+ name: "depositCuratorFees";
932
+ discriminator: [180, 215, 34, 119, 191, 100, 32, 220];
933
+ accounts: [
934
+ {
935
+ name: "curator";
936
+ docs: [
937
+ "May also be a curator PDA signing through CPI (for example Squads)."
938
+ ];
939
+ writable: true;
940
+ signer: true;
941
+ },
942
+ {
943
+ name: "vault";
944
+ writable: true;
945
+ },
946
+ {
947
+ name: "vaultOracle";
948
+ writable: true;
949
+ },
950
+ {
951
+ name: "shareMint";
952
+ },
953
+ {
954
+ name: "vaultTrancheState";
955
+ writable: true;
956
+ optional: true;
957
+ },
958
+ {
959
+ name: "juniorTrancheShareMint";
960
+ optional: true;
961
+ },
962
+ {
963
+ name: "seniorTrancheShareMint";
964
+ optional: true;
965
+ },
966
+ {
967
+ name: "usdcMint";
968
+ address: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
969
+ },
970
+ {
971
+ name: "curatorUsdcAta";
972
+ writable: true;
973
+ pda: {
974
+ seeds: [
975
+ {
976
+ kind: "account";
977
+ path: "curator";
978
+ },
979
+ {
980
+ kind: "account";
981
+ path: "tokenProgram";
982
+ },
983
+ {
984
+ kind: "account";
985
+ path: "usdcMint";
986
+ }
987
+ ];
988
+ program: {
989
+ kind: "const";
990
+ value: [
991
+ 140,
992
+ 151,
993
+ 37,
994
+ 143,
995
+ 78,
996
+ 36,
997
+ 137,
998
+ 241,
999
+ 187,
1000
+ 61,
1001
+ 16,
1002
+ 41,
1003
+ 20,
1004
+ 142,
1005
+ 13,
1006
+ 131,
1007
+ 11,
1008
+ 90,
1009
+ 19,
1010
+ 153,
1011
+ 218,
1012
+ 255,
1013
+ 16,
1014
+ 132,
1015
+ 4,
1016
+ 142,
1017
+ 123,
1018
+ 216,
1019
+ 219,
1020
+ 233,
1021
+ 248,
1022
+ 89
1023
+ ];
1024
+ };
1025
+ };
1026
+ },
1027
+ {
1028
+ name: "vaultUsdcAta";
1029
+ writable: true;
1030
+ pda: {
1031
+ seeds: [
1032
+ {
1033
+ kind: "account";
1034
+ path: "vault";
1035
+ },
1036
+ {
1037
+ kind: "account";
1038
+ path: "tokenProgram";
1039
+ },
1040
+ {
1041
+ kind: "account";
1042
+ path: "usdcMint";
1043
+ }
1044
+ ];
1045
+ program: {
1046
+ kind: "const";
1047
+ value: [
1048
+ 140,
1049
+ 151,
1050
+ 37,
1051
+ 143,
1052
+ 78,
1053
+ 36,
1054
+ 137,
1055
+ 241,
1056
+ 187,
1057
+ 61,
1058
+ 16,
1059
+ 41,
1060
+ 20,
1061
+ 142,
1062
+ 13,
1063
+ 131,
1064
+ 11,
1065
+ 90,
1066
+ 19,
1067
+ 153,
1068
+ 218,
1069
+ 255,
1070
+ 16,
1071
+ 132,
1072
+ 4,
1073
+ 142,
1074
+ 123,
1075
+ 216,
1076
+ 219,
1077
+ 233,
1078
+ 248,
1079
+ 89
1080
+ ];
1081
+ };
1082
+ };
1083
+ },
1084
+ {
1085
+ name: "tokenProgram";
1086
+ address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1087
+ },
1088
+ {
1089
+ name: "associatedTokenProgram";
1090
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1091
+ },
1092
+ {
1093
+ name: "systemProgram";
1094
+ address: "11111111111111111111111111111111";
1095
+ }
1096
+ ];
1097
+ args: [
1098
+ {
1099
+ name: "args";
1100
+ type: {
1101
+ defined: {
1102
+ name: "depositCuratorFeesArgs";
1103
+ };
1104
+ };
1105
+ }
1106
+ ];
1107
+ },
930
1108
  {
931
1109
  name: "disableCircuitBreaker";
932
1110
  discriminator: [200, 37, 34, 37, 19, 156, 178, 253];
@@ -6485,6 +6663,10 @@ type Bankineco = {
6485
6663
  }
6486
6664
  ];
6487
6665
  events: [
6666
+ {
6667
+ name: "curatorFeesDeposited";
6668
+ discriminator: [61, 40, 69, 224, 253, 73, 224, 46];
6669
+ },
6488
6670
  {
6489
6671
  name: "incentiveClaimed";
6490
6672
  discriminator: [93, 82, 106, 244, 88, 183, 241, 75];
@@ -6523,6 +6705,11 @@ type Bankineco = {
6523
6705
  }
6524
6706
  ];
6525
6707
  errors: [
6708
+ {
6709
+ code: 13048;
6710
+ name: "minimumCuratorFeeSharesNotMet";
6711
+ msg: "Deposited USDC credits fewer curator shares than the requested minimum";
6712
+ },
6526
6713
  {
6527
6714
  code: 14001;
6528
6715
  name: "unauthorized";
@@ -7097,6 +7284,56 @@ type Bankineco = {
7097
7284
  ];
7098
7285
  };
7099
7286
  },
7287
+ {
7288
+ name: "curatorFeesDeposited";
7289
+ type: {
7290
+ kind: "struct";
7291
+ fields: [
7292
+ {
7293
+ name: "vault";
7294
+ type: "pubkey";
7295
+ },
7296
+ {
7297
+ name: "curator";
7298
+ type: "pubkey";
7299
+ },
7300
+ {
7301
+ name: "usdcAmount";
7302
+ type: "u64";
7303
+ },
7304
+ {
7305
+ name: "accountingAmount";
7306
+ type: "u64";
7307
+ },
7308
+ {
7309
+ name: "curatorShares";
7310
+ type: "u64";
7311
+ }
7312
+ ];
7313
+ };
7314
+ },
7315
+ {
7316
+ name: "depositCuratorFeesArgs";
7317
+ type: {
7318
+ kind: "struct";
7319
+ fields: [
7320
+ {
7321
+ name: "amount";
7322
+ docs: [
7323
+ "USDC atomic units transferred from the curator (six decimals)."
7324
+ ];
7325
+ type: "u64";
7326
+ },
7327
+ {
7328
+ name: "minSharesOut";
7329
+ docs: [
7330
+ "Minimum newly credited curator shares; checked at execution-time NAV."
7331
+ ];
7332
+ type: "u64";
7333
+ }
7334
+ ];
7335
+ };
7336
+ },
7100
7337
  {
7101
7338
  name: "externalLiquiditySlot";
7102
7339
  serialization: "bytemuck";
@@ -11658,6 +11895,36 @@ declare class DistributeIncentiveV3Builder extends DistributeIncentiveBuilder {
11658
11895
  protected deriveIxArgs(args: DistributeIncentiveV3TxArgs): Promise<DistributeIncentiveV3IxArgs>;
11659
11896
  }
11660
11897
 
11898
+ interface DepositCuratorFeesTxArgs {
11899
+ curator: Address;
11900
+ vault: Address;
11901
+ /** USDC atomic units (six decimals). Credits pending curator fee shares. */
11902
+ amount: bigint;
11903
+ /** Minimum new atomic share credit at execution-time NAV. Defaults to zero. */
11904
+ minSharesOut?: bigint;
11905
+ }
11906
+ interface DepositCuratorFeesIxArgs extends DepositCuratorFeesTxArgs {
11907
+ vaultOracle: Address;
11908
+ shareMint: Address;
11909
+ vaultTrancheState: Address | null;
11910
+ juniorTrancheShareMint: Address | null;
11911
+ seniorTrancheShareMint: Address | null;
11912
+ curatorUsdcAta: Address;
11913
+ vaultUsdcAta: Address;
11914
+ }
11915
+ /** Deposit USDC backing as unminted curator shares available to all incentives. */
11916
+ declare class DepositCuratorFeesBuilder extends VaultBuilderBase<DepositCuratorFeesIxArgs, DepositCuratorFeesTxArgs> {
11917
+ getIx(args: DepositCuratorFeesIxArgs): Promise<_solana_kit.Instruction<string, readonly (_solana_kit.AccountLookupMeta<string, string> | _solana_kit.AccountMeta<string>)[]>>;
11918
+ protected deriveIxArgs(args: DepositCuratorFeesTxArgs): Promise<DepositCuratorFeesIxArgs>;
11919
+ protected buildPlanExtras(args: DepositCuratorFeesIxArgs): Promise<{
11920
+ postSuccessCacheInvalidations: {
11921
+ vaultPda: Address;
11922
+ vaultOraclePda: Address;
11923
+ vaultTrancheStatePda: Address | undefined;
11924
+ }[];
11925
+ }>;
11926
+ }
11927
+
11661
11928
  declare class CancelJuniorTrancheWithdrawBuilder extends VaultBuilderBase<CancelJuniorTrancheWithdrawIxArgs, CancelJuniorTrancheWithdrawTxArgs> {
11662
11929
  getIx(args: CancelJuniorTrancheWithdrawIxArgs): Promise<_solana_kit.Instruction<string, readonly (_solana_kit.AccountLookupMeta<string, string> | _solana_kit.AccountMeta<string>)[]>>;
11663
11930
  protected deriveIxArgs(txArgs: CancelJuniorTrancheWithdrawTxArgs): Promise<CancelJuniorTrancheWithdrawIxArgs>;
@@ -12187,6 +12454,7 @@ declare class VaultReallocationBuilder extends VaultBuilderBase<VaultReallocatio
12187
12454
  }
12188
12455
 
12189
12456
  declare class TransactionClient {
12457
+ readonly depositCuratorFees: DepositCuratorFeesBuilder;
12190
12458
  readonly createIncentiveV3: CreateIncentiveV3Builder;
12191
12459
  readonly addIncentiveRecipientV3: AddIncentiveRecipientV3Builder;
12192
12460
  readonly setIncentiveLimitsV3: SetIncentiveLimitsV3Builder;
@@ -12513,6 +12781,8 @@ declare function prepareVaultTransaction(args: {
12513
12781
  /** Skip execution simulation when proposing a transaction that depends on future funding. */
12514
12782
  skipSimulation?: boolean;
12515
12783
  addressLookupTableAccounts?: AddressLookupTableAccount[];
12784
+ /** Temporary signer keys used only in account metas, replaced by Squads PDAs. */
12785
+ ephemeralSignerKeys?: readonly PublicKey[];
12516
12786
  }): Promise<PreparedVaultTransaction>;
12517
12787
 
12518
12788
  interface SquadsProposalUpload {
@@ -12766,7 +13036,9 @@ declare function getTotalYield(accountNames: string[], start?: Date, end?: Date)
12766
13036
  /** Sum only confirmed-payment-adjusted yield that remains receivable. */
12767
13037
  declare function getTotalOutstandingYield(accountNames: string[], start?: Date, end?: Date): Promise<number>;
12768
13038
  /** Sum the complete current value of APR and NAV accounts in tracker base units. */
12769
- declare function getTotalTrackedValue(accountNames: string[], start?: Date, end?: Date): Promise<{
13039
+ declare function getTotalTrackedValue(accountNames: string[], start?: Date, end?: Date,
13040
+ /** Observe each account's contribution from the same read used in the total. */
13041
+ onAccountValue?: (accountName: string, value: TrackedAccountValue) => void): Promise<{
12770
13042
  totalValue: number;
12771
13043
  principal: number;
12772
13044
  outstandingYield: number;
@@ -12992,6 +13264,16 @@ interface ManagerWalletBalanceSource {
12992
13264
  /** Missing mints have zero balance; failed reads must throw. Amounts are raw units. */
12993
13265
  fetchBalances(manager: Address, mints: Address[]): Promise<Map<string, bigint>>;
12994
13266
  }
13267
+ /** Base assets held by the explicitly configured MPC wallet for one vault. */
13268
+ interface MpcWalletBalances {
13269
+ wallet: Address;
13270
+ tokens: Map<string, bigint>;
13271
+ marginfi: Map<string, bigint>;
13272
+ }
13273
+ interface MpcWalletBalanceSource {
13274
+ /** Unconfigured vaults return undefined; failed or incomplete reads must throw. */
13275
+ fetchBalances(vault: Address, manager: Address, mints: Address[]): Promise<MpcWalletBalances | undefined>;
13276
+ }
12995
13277
  /**
12996
13278
  * One account's accrual snapshot consumed by the oracle. Amounts are
12997
13279
  * **UI amounts** (token units, not base units); callers convert with
@@ -13071,6 +13353,8 @@ interface ConsensusOracleDeps {
13071
13353
  externalPositions?: ExternalPositionProvider;
13072
13354
  /** Optional NAV-drop recovery source; configured by the live runtime. */
13073
13355
  managerWalletBalances?: ManagerWalletBalanceSource;
13356
+ /** MPC base tokens and Marginfi deposits, subject to the same NAV gate. */
13357
+ mpcWalletBalances?: MpcWalletBalanceSource;
13074
13358
  /** Optional; omitted ⇒ no yield accrual is folded in. */
13075
13359
  yieldTracker?: YieldTracker;
13076
13360
  clock?: Clock;
@@ -13102,9 +13386,13 @@ interface HoldingUpdatePreview {
13102
13386
  trackedValueAmount: bigint;
13103
13387
  /** Manager base tokens admitted by the ±0.05% NAV reconciliation (base units). */
13104
13388
  managerWalletAmount?: bigint;
13105
- /** Withdrawn nPERENA retained until the manager-wallet NAV rule matches proceeds. */
13389
+ /** MPC base tokens admitted by the same reconciliation (base units). */
13390
+ mpcWalletAmount?: bigint;
13391
+ /** MPC Marginfi base-asset deposits admitted by reconciliation (base units). */
13392
+ mpcMarginfiAmount?: bigint;
13393
+ /** Withdrawn nPERENA retained until the wallet NAV rule matches proceeds. */
13106
13394
  pendingNestAmount?: bigint;
13107
- /** Total external balance = LP + tracked value + pending Nest + manager wallet. */
13395
+ /** LP + tracked value + pending Nest + manager tokens + MPC tokens/deposits. */
13108
13396
  externalAmount: bigint;
13109
13397
  }
13110
13398
  interface VaultOracleResult {
@@ -13241,6 +13529,8 @@ interface RealizedApySimulation {
13241
13529
  priorTs: bigint;
13242
13530
  timestampSource: "apy.max_apy_anchor.timestamp" | "apy.max_apy_anchor.previous_timestamp" | "legacy fixed-APY anchor (initialization)" | "current share-price observation (initialization)";
13243
13531
  checkpointTs: bigint;
13532
+ /** Older than 14 days, so a newer checkpoint supplies a shorter window. */
13533
+ ignoredPreviousCheckpointTs?: bigint;
13244
13534
  nowTs: bigint;
13245
13535
  elapsedSecs: bigint;
13246
13536
  /** Signed annualized growth, in millionths of a basis point, truncated. */
@@ -13508,11 +13798,12 @@ interface ManagerWalletReconciliation {
13508
13798
  * Rebuild from sourced external amounts every pass. Never carry forward a prior
13509
13799
  * wallet attribution or cap/select wallet balances to make the NAV fit.
13510
13800
  */
13511
- declare function reconcileManagerWalletBalances({ vault, vaultState, updates, source, log, }: {
13801
+ declare function reconcileManagerWalletBalances({ vault, vaultState, updates, source, mpcSource, log, }: {
13512
13802
  vault: Address;
13513
13803
  vaultState: DecodedVault;
13514
13804
  updates: HoldingUpdatePreview[];
13515
13805
  source?: ManagerWalletBalanceSource;
13806
+ mpcSource?: MpcWalletBalanceSource;
13516
13807
  log?: (message: string) => void;
13517
13808
  }): Promise<ManagerWalletReconciliation>;
13518
13809
  /** The vault fields whose changes would invalidate a wallet reconciliation. */
@@ -13748,6 +14039,20 @@ declare class RpcManagerWalletBalanceSource implements ManagerWalletBalanceSourc
13748
14039
  fetchBalances(manager: Address, mints: Address[]): Promise<Map<string, bigint>>;
13749
14040
  }
13750
14041
 
14042
+ interface MpcWalletConfig {
14043
+ vault: Address;
14044
+ manager: Address;
14045
+ wallet: Address;
14046
+ }
14047
+ /** Explicit custody bindings, never inferred dynamically from arbitrary transfers. */
14048
+ declare class RpcMpcWalletBalanceSource implements MpcWalletBalanceSource {
14049
+ private readonly connection;
14050
+ private readonly bindings;
14051
+ private readonly tokens;
14052
+ constructor(connection: Connection, bindings: readonly MpcWalletConfig[]);
14053
+ fetchBalances(vault: Address, manager: Address, mints: Address[]): Promise<MpcWalletBalances | undefined>;
14054
+ }
14055
+
13751
14056
  /**
13752
14057
  * Aggregation of {@link ExternalPositionProvider}s plus a trivial static
13753
14058
  * provider. Concrete live-LP providers (Kamino, Marginfi) wrap protocol SDKs,
@@ -13879,6 +14184,7 @@ declare class MockYieldTracker implements YieldTracker {
13879
14184
  */
13880
14185
 
13881
14186
  declare const MAX_APY_ANCHOR_WINDOW_SECS = 604800n;
14187
+ declare const MAX_APY_PREVIOUS_ANCHOR_AGE_SECS: bigint;
13882
14188
  interface SimulateSettlementArgs {
13883
14189
  vault: DecodedVault;
13884
14190
  oracleData: readonly number[];
@@ -13953,10 +14259,10 @@ declare class ConsensusOracleService {
13953
14259
  /**
13954
14260
  * External Liquidity Integrity Service
13955
14261
  *
13956
- * Keeps each vault holding's split between local (vault-owned token account)
13957
- * and external (Marginfi) balances at its target ratio. A small share of every
13958
- * holding is deliberately left local see {@link DEFAULT_TARGET_LOCAL_BPS} —
13959
- * so routine payouts can be served without a Marginfi round trip; everything
14262
+ * Keeps USDC worth 1.5% of total vault TVL in the vault-owned token account.
14263
+ * Other holdings keep a small share of their own balance local (see
14264
+ * {@link DEFAULT_TARGET_LOCAL_BPS}) so routine payouts can be served without
14265
+ * a Marginfi round trip; everything
13960
14266
  * above that target is deposited into the configured external position via
13961
14267
  * `protocol_interaction` (a Marginfi deposit CPI).
13962
14268
  *
@@ -14001,10 +14307,12 @@ interface ExternalLiquidityIntegrityOptions {
14001
14307
  */
14002
14308
  minAmountUi?: number;
14003
14309
  /**
14004
- * Share of each holding (local + external) to keep in the vault's own token
14005
- * account, in basis points. Defaults to {@link DEFAULT_TARGET_LOCAL_BPS}.
14310
+ * Share of each non-USDC holding (local + external) to keep in the vault's
14311
+ * own token account, in basis points. Defaults to {@link DEFAULT_TARGET_LOCAL_BPS}.
14006
14312
  */
14007
14313
  targetLocalBps?: number;
14314
+ /** Share of total vault TVL to keep locally as USDC, in basis points. */
14315
+ targetLocalUsdcTvlBps?: number;
14008
14316
  /**
14009
14317
  * Hysteresis band, in basis points *of the target local amount*: the local
14010
14318
  * balance must drift at least this far from target before a rebalance is
@@ -14014,14 +14322,17 @@ interface ExternalLiquidityIntegrityOptions {
14014
14322
  }
14015
14323
  declare const DEFAULT_MIN_AMOUNT_UI = 1;
14016
14324
  /**
14017
- * Keep 0.5% of each holding local; the remaining 99.5% earns yield in Marginfi.
14325
+ * Keep 0.5% of each non-USDC holding local; the rest earns yield in Marginfi.
14018
14326
  * Anything larger than this buffer is served by `execute_withdraw_from_external`,
14019
14327
  * which unwinds the Marginfi position in the same transaction.
14020
14328
  */
14021
14329
  declare const DEFAULT_TARGET_LOCAL_BPS = 50;
14330
+ /** Keep local USDC worth 1.5% of total vault TVL. */
14331
+ declare const DEFAULT_TARGET_LOCAL_USDC_TVL_BPS = 150;
14022
14332
  /**
14023
14333
  * Rebalance only once the local balance has drifted more than 20% away from its
14024
- * target — i.e. outside 0.4%–0.6% of the holding at the default 0.5% target.
14334
+ * target — i.e. outside 1.2%–1.8% of vault TVL for USDC, or 0.4%–0.6% of
14335
+ * a non-USDC holding at its default 0.5% target.
14025
14336
  * Without this band every arriving deposit or payout would trigger its own
14026
14337
  * transaction; with it, each rebalance restores the exact target, so the next
14027
14338
  * one is a full band away rather than one dust movement later.
@@ -14042,6 +14353,8 @@ declare function planRebalance(params: {
14042
14353
  localAmount: bigint;
14043
14354
  externalAmount: bigint;
14044
14355
  targetLocalBps: number;
14356
+ /** Override the holding-based target with a raw token amount (USDC/TVL). */
14357
+ targetLocalAmount?: bigint;
14045
14358
  rebalanceBandBps: number;
14046
14359
  minRaw: bigint;
14047
14360
  }): {
@@ -14065,6 +14378,7 @@ declare class ExternalLiquidityIntegrityService {
14065
14378
  dryRun?: boolean;
14066
14379
  minAmountUi?: number;
14067
14380
  targetLocalBps?: number;
14381
+ targetLocalUsdcTvlBps?: number;
14068
14382
  rebalanceBandBps?: number;
14069
14383
  }): Promise<ExternalLiquidityIntegrityResult>;
14070
14384
  /**
@@ -14081,14 +14395,19 @@ declare class ExternalLiquidityIntegrityService {
14081
14395
  * payouts can be served without unwinding yield positions on demand.
14082
14396
  *
14083
14397
  * Idle USDC is the live balance of the vault's USDC token account plus USDC
14084
- * deposits in external-liquidity slot 0 (Marginfi), valued at the holding price.
14398
+ * deposits in the first Project0 (Marginfi) external-liquidity position,
14399
+ * valued at the holding price.
14085
14400
  * The holding's aggregate `external_amount` includes other deployed capital
14086
14401
  * and must not be used as the idle reserve.
14087
14402
  *
14088
14403
  * When idle USDC drops below {@link IDLE_RESERVE_FLOOR_BPS} of vault TVL, the
14089
14404
  * service swaps PST into USDC through the permissioned `jupiter_swap`
14090
14405
  * instruction, sizing the swap to land at {@link IDLE_RESERVE_TARGET_BPS} of
14091
- * TVL. PST is never deployed externally, so the vault's local PST balance is
14406
+ * TVL. Independently, local USDC plus withdrawable Project0 deposits must cover
14407
+ * {@link WITHDRAWABLE_RESERVE_FLOOR_BPS} of TVL. Each bank contributes the lesser
14408
+ * of this vault's deposits and its available liquidity (deposits minus borrows,
14409
+ * floored at zero). The swap covers the larger of the two triggered shortfalls.
14410
+ * PST is never deployed externally, so the vault's local PST balance is
14092
14411
  * the whole swappable inventory; if it cannot cover the full top-up the run is
14093
14412
  * skipped rather than partially filled.
14094
14413
  *
@@ -14101,6 +14420,8 @@ declare class ExternalLiquidityIntegrityService {
14101
14420
  declare const IDLE_RESERVE_FLOOR_BPS = 400;
14102
14421
  /** Top-ups are sized to land idle USDC at this share of TVL. */
14103
14422
  declare const IDLE_RESERVE_TARGET_BPS = 500;
14423
+ /** Local USDC + withdrawable Project0 deposits must cover 1.5% of TVL. */
14424
+ declare const WITHDRAWABLE_RESERVE_FLOOR_BPS = 150;
14104
14425
  declare const DEFAULT_SLIPPAGE_BPS = 30;
14105
14426
  declare const DEFAULT_CU_PRICE_MICRO_LAMPORTS = 10000;
14106
14427
  declare const DEFAULT_MAX_ACCOUNTS = 20;
@@ -14119,10 +14440,14 @@ interface IdleLiquidityResult {
14119
14440
  reason: string;
14120
14441
  /** Vault TVL in accounting units. */
14121
14442
  tvl: bigint;
14122
- /** Live vault USDC + slot-0 Marginfi USDC deposits, in accounting units. */
14443
+ /** Live vault USDC + first Project0 USDC deposits, in accounting units. */
14123
14444
  idleValue: bigint;
14124
14445
  /** Idle USDC as a share of TVL, in bps. */
14125
14446
  idleBps: number;
14447
+ /** Local USDC + bank-liquidity-capped deposits, in accounting units. */
14448
+ withdrawableValue: bigint;
14449
+ /** Withdrawable USDC as a share of TVL, in bps. */
14450
+ withdrawableBps: number;
14126
14451
  /** USDC the swap needs to produce to reach the target, in raw USDC units. */
14127
14452
  shortfallUsdc: bigint;
14128
14453
  /** PST spent (0 unless a swap was executed or simulated). */
@@ -14272,4 +14597,27 @@ declare function decodeNestWithdrawalRequest(args: {
14272
14597
  txBase64: string;
14273
14598
  }): Promise<VaultTransactionPlan>;
14274
14599
 
14275
- 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, 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, 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, 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, candidateGrossNav, 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, 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 };
14600
+ interface NestDepositPlan extends VaultTransactionPlan {
14601
+ /** Pass through to prepareVaultTransaction; the keeper's signatures are not reusable. */
14602
+ ephemeralSignerKeys: PublicKey[];
14603
+ }
14604
+ /** Build a manager-funded deposit, with one event account for Squads to sign. */
14605
+ declare function buildNestDepositRequest(args: {
14606
+ connection: Connection;
14607
+ owner: PublicKey;
14608
+ rawAmountUsdc: bigint;
14609
+ apiOptions?: NestApiOptions;
14610
+ }): Promise<NestDepositPlan>;
14611
+ /**
14612
+ * Validate the USDC burn and Nest/Solana recipient. Replace the keeper rent payer
14613
+ * with the manager, and expose the CCTP event signer for Squads PDA substitution.
14614
+ * Nest remains trusted for the complete cross-chain payload and keeper delivery.
14615
+ */
14616
+ declare function decodeNestDepositRequest(args: {
14617
+ connection: Connection;
14618
+ owner: PublicKey;
14619
+ rawAmountUsdc: bigint;
14620
+ txBase64: string;
14621
+ }): Promise<NestDepositPlan>;
14622
+
14623
+ 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, DepositCuratorFeesBuilder, type DepositCuratorFeesIxArgs, type DepositCuratorFeesTxArgs, 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_APY_PREVIOUS_ANCHOR_AGE_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, type MpcWalletBalanceSource, type MpcWalletBalances, type MpcWalletConfig, 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, RpcMpcWalletBalanceSource, 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 };