@perena/vault-sdk 1.0.65 → 1.0.67

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
@@ -5,6 +5,7 @@ import * as _solana_web3_js from '@solana/web3.js';
5
5
  import { PublicKey, Connection, AccountMeta, Keypair, SimulatedTransactionResponse, Transaction, TransactionInstruction, AddressLookupTableAccount } from '@solana/web3.js';
6
6
  import * as _anchor_lang_core from '@anchor-lang/core';
7
7
  import { IdlAccounts, Program, BN, AnchorProvider } from '@anchor-lang/core';
8
+ import * as bn_js from 'bn.js';
8
9
  import { AssociatedTokenSeeds } from '@solana-program/token';
9
10
  import { Reserve } from '@kamino-finance/klend-sdk/dist/@codegen/klend/accounts/Reserve';
10
11
 
@@ -28,6 +29,8 @@ declare const LOCAL_PROTOCOL_ADMIN: Address;
28
29
  */
29
30
  declare const PROTOCOL_FEE_RECIPIENT: Address;
30
31
  declare const PROGRAM_FEE_EXEMPT_OWNER_WHITELIST: readonly Address[];
32
+ /** Must match WALLET_FEE_EXEMPT_WHITELIST in the on-chain program constants. */
33
+ declare const WALLET_FEE_EXEMPT_WHITELIST: readonly Address[];
31
34
  /**
32
35
  * Hardcoded whitelist of wallets permitted to create vaults (via `createVault`).
33
36
  * Must match `VAULT_CREATOR_WHITELIST` in the on-chain program constants.
@@ -5135,6 +5138,262 @@ type Bankineco = {
5135
5138
  }
5136
5139
  ];
5137
5140
  },
5141
+ {
5142
+ "name": "fulfillAsyncWithdraw";
5143
+ "discriminator": [
5144
+ 115,
5145
+ 156,
5146
+ 99,
5147
+ 78,
5148
+ 105,
5149
+ 35,
5150
+ 212,
5151
+ 150
5152
+ ];
5153
+ "accounts": [
5154
+ {
5155
+ "name": "signer";
5156
+ "writable": true;
5157
+ "signer": true;
5158
+ },
5159
+ {
5160
+ "name": "owner";
5161
+ },
5162
+ {
5163
+ "name": "queuePayer";
5164
+ "writable": true;
5165
+ },
5166
+ {
5167
+ "name": "vault";
5168
+ "writable": true;
5169
+ },
5170
+ {
5171
+ "name": "vaultOracle";
5172
+ },
5173
+ {
5174
+ "name": "vaultTrancheState";
5175
+ "optional": true;
5176
+ },
5177
+ {
5178
+ "name": "withdrawalQueue";
5179
+ "writable": true;
5180
+ },
5181
+ {
5182
+ "name": "outputMint";
5183
+ },
5184
+ {
5185
+ "name": "inputMint";
5186
+ "writable": true;
5187
+ },
5188
+ {
5189
+ "name": "ownerInputAta";
5190
+ "writable": true;
5191
+ },
5192
+ {
5193
+ "name": "ownerOutputAta";
5194
+ "writable": true;
5195
+ "pda": {
5196
+ "seeds": [
5197
+ {
5198
+ "kind": "account";
5199
+ "path": "owner";
5200
+ },
5201
+ {
5202
+ "kind": "account";
5203
+ "path": "assetTokenProgram";
5204
+ },
5205
+ {
5206
+ "kind": "account";
5207
+ "path": "outputMint";
5208
+ }
5209
+ ];
5210
+ "program": {
5211
+ "kind": "const";
5212
+ "value": [
5213
+ 140,
5214
+ 151,
5215
+ 37,
5216
+ 143,
5217
+ 78,
5218
+ 36,
5219
+ 137,
5220
+ 241,
5221
+ 187,
5222
+ 61,
5223
+ 16,
5224
+ 41,
5225
+ 20,
5226
+ 142,
5227
+ 13,
5228
+ 131,
5229
+ 11,
5230
+ 90,
5231
+ 19,
5232
+ 153,
5233
+ 218,
5234
+ 255,
5235
+ 16,
5236
+ 132,
5237
+ 4,
5238
+ 142,
5239
+ 123,
5240
+ 216,
5241
+ 219,
5242
+ 233,
5243
+ 248,
5244
+ 89
5245
+ ];
5246
+ };
5247
+ };
5248
+ },
5249
+ {
5250
+ "name": "vaultOutputAta";
5251
+ "writable": true;
5252
+ "pda": {
5253
+ "seeds": [
5254
+ {
5255
+ "kind": "account";
5256
+ "path": "vault";
5257
+ },
5258
+ {
5259
+ "kind": "account";
5260
+ "path": "assetTokenProgram";
5261
+ },
5262
+ {
5263
+ "kind": "account";
5264
+ "path": "outputMint";
5265
+ }
5266
+ ];
5267
+ "program": {
5268
+ "kind": "const";
5269
+ "value": [
5270
+ 140,
5271
+ 151,
5272
+ 37,
5273
+ 143,
5274
+ 78,
5275
+ 36,
5276
+ 137,
5277
+ 241,
5278
+ 187,
5279
+ 61,
5280
+ 16,
5281
+ 41,
5282
+ 20,
5283
+ 142,
5284
+ 13,
5285
+ 131,
5286
+ 11,
5287
+ 90,
5288
+ 19,
5289
+ 153,
5290
+ 218,
5291
+ 255,
5292
+ 16,
5293
+ 132,
5294
+ 4,
5295
+ 142,
5296
+ 123,
5297
+ 216,
5298
+ 219,
5299
+ 233,
5300
+ 248,
5301
+ 89
5302
+ ];
5303
+ };
5304
+ };
5305
+ },
5306
+ {
5307
+ "name": "queueInputAta";
5308
+ "writable": true;
5309
+ "pda": {
5310
+ "seeds": [
5311
+ {
5312
+ "kind": "account";
5313
+ "path": "withdrawalQueue";
5314
+ },
5315
+ {
5316
+ "kind": "account";
5317
+ "path": "shareTokenProgram";
5318
+ },
5319
+ {
5320
+ "kind": "account";
5321
+ "path": "inputMint";
5322
+ }
5323
+ ];
5324
+ "program": {
5325
+ "kind": "const";
5326
+ "value": [
5327
+ 140,
5328
+ 151,
5329
+ 37,
5330
+ 143,
5331
+ 78,
5332
+ 36,
5333
+ 137,
5334
+ 241,
5335
+ 187,
5336
+ 61,
5337
+ 16,
5338
+ 41,
5339
+ 20,
5340
+ 142,
5341
+ 13,
5342
+ 131,
5343
+ 11,
5344
+ 90,
5345
+ 19,
5346
+ 153,
5347
+ 218,
5348
+ 255,
5349
+ 16,
5350
+ 132,
5351
+ 4,
5352
+ 142,
5353
+ 123,
5354
+ 216,
5355
+ 219,
5356
+ 233,
5357
+ 248,
5358
+ 89
5359
+ ];
5360
+ };
5361
+ };
5362
+ },
5363
+ {
5364
+ "name": "assetTokenProgram";
5365
+ },
5366
+ {
5367
+ "name": "shareTokenProgram";
5368
+ },
5369
+ {
5370
+ "name": "associatedTokenProgram";
5371
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
5372
+ },
5373
+ {
5374
+ "name": "systemProgram";
5375
+ "address": "11111111111111111111111111111111";
5376
+ }
5377
+ ];
5378
+ "args": [
5379
+ {
5380
+ "name": "externalWithdrawIxRefs";
5381
+ "type": {
5382
+ "option": {
5383
+ "defined": {
5384
+ "name": "instructionRefs";
5385
+ };
5386
+ };
5387
+ };
5388
+ },
5389
+ {
5390
+ "name": "externalLiquiditySource";
5391
+ "type": {
5392
+ "option": "u8";
5393
+ };
5394
+ }
5395
+ ];
5396
+ },
5138
5397
  {
5139
5398
  "name": "fulfillJuniorTrancheWithdraw";
5140
5399
  "discriminator": [
@@ -6401,6 +6660,129 @@ type Bankineco = {
6401
6660
  }
6402
6661
  ];
6403
6662
  },
6663
+ {
6664
+ "name": "requestAsyncWithdraw";
6665
+ "discriminator": [
6666
+ 90,
6667
+ 83,
6668
+ 61,
6669
+ 227,
6670
+ 146,
6671
+ 51,
6672
+ 252,
6673
+ 225
6674
+ ];
6675
+ "accounts": [
6676
+ {
6677
+ "name": "user";
6678
+ "writable": true;
6679
+ "signer": true;
6680
+ },
6681
+ {
6682
+ "name": "payer";
6683
+ "writable": true;
6684
+ "signer": true;
6685
+ },
6686
+ {
6687
+ "name": "vault";
6688
+ },
6689
+ {
6690
+ "name": "vaultOracle";
6691
+ },
6692
+ {
6693
+ "name": "withdrawalQueue";
6694
+ "writable": true;
6695
+ },
6696
+ {
6697
+ "name": "outputMint";
6698
+ },
6699
+ {
6700
+ "name": "inputMint";
6701
+ },
6702
+ {
6703
+ "name": "userInputAta";
6704
+ "writable": true;
6705
+ },
6706
+ {
6707
+ "name": "queueInputAta";
6708
+ "writable": true;
6709
+ "pda": {
6710
+ "seeds": [
6711
+ {
6712
+ "kind": "account";
6713
+ "path": "withdrawalQueue";
6714
+ },
6715
+ {
6716
+ "kind": "account";
6717
+ "path": "shareTokenProgram";
6718
+ },
6719
+ {
6720
+ "kind": "account";
6721
+ "path": "inputMint";
6722
+ }
6723
+ ];
6724
+ "program": {
6725
+ "kind": "const";
6726
+ "value": [
6727
+ 140,
6728
+ 151,
6729
+ 37,
6730
+ 143,
6731
+ 78,
6732
+ 36,
6733
+ 137,
6734
+ 241,
6735
+ 187,
6736
+ 61,
6737
+ 16,
6738
+ 41,
6739
+ 20,
6740
+ 142,
6741
+ 13,
6742
+ 131,
6743
+ 11,
6744
+ 90,
6745
+ 19,
6746
+ 153,
6747
+ 218,
6748
+ 255,
6749
+ 16,
6750
+ 132,
6751
+ 4,
6752
+ 142,
6753
+ 123,
6754
+ 216,
6755
+ 219,
6756
+ 233,
6757
+ 248,
6758
+ 89
6759
+ ];
6760
+ };
6761
+ };
6762
+ },
6763
+ {
6764
+ "name": "shareTokenProgram";
6765
+ },
6766
+ {
6767
+ "name": "associatedTokenProgram";
6768
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
6769
+ },
6770
+ {
6771
+ "name": "systemProgram";
6772
+ "address": "11111111111111111111111111111111";
6773
+ }
6774
+ ];
6775
+ "args": [
6776
+ {
6777
+ "name": "queueId";
6778
+ "type": "u8";
6779
+ },
6780
+ {
6781
+ "name": "shareAmount";
6782
+ "type": "u64";
6783
+ }
6784
+ ];
6785
+ },
6404
6786
  {
6405
6787
  "name": "requestJuniorTrancheWithdraw";
6406
6788
  "discriminator": [
@@ -8917,6 +9299,26 @@ type Bankineco = {
8917
9299
  ];
8918
9300
  };
8919
9301
  },
9302
+ {
9303
+ "name": "redemptionMode";
9304
+ "docs": [
9305
+ "Redemption policy for regular vault shares. Zero preserves existing vault behavior."
9306
+ ];
9307
+ "repr": {
9308
+ "kind": "rust";
9309
+ };
9310
+ "type": {
9311
+ "kind": "enum";
9312
+ "variants": [
9313
+ {
9314
+ "name": "synchronous";
9315
+ },
9316
+ {
9317
+ "name": "asyncOnly";
9318
+ }
9319
+ ];
9320
+ };
9321
+ },
8920
9322
  {
8921
9323
  "name": "reportIncentiveV3Args";
8922
9324
  "type": {
@@ -9376,6 +9778,19 @@ type Bankineco = {
9376
9778
  };
9377
9779
  };
9378
9780
  };
9781
+ },
9782
+ {
9783
+ "name": "redemptionMode";
9784
+ "docs": [
9785
+ "Regular-share redemption policy. None leaves unchanged."
9786
+ ];
9787
+ "type": {
9788
+ "option": {
9789
+ "defined": {
9790
+ "name": "redemptionMode";
9791
+ };
9792
+ };
9793
+ };
9379
9794
  }
9380
9795
  ];
9381
9796
  };
@@ -9628,13 +10043,13 @@ type Bankineco = {
9628
10043
  };
9629
10044
  },
9630
10045
  {
9631
- "name": "paddingBool";
10046
+ "name": "redemptionMode";
9632
10047
  "docs": [
9633
- "Reserved byte retained for on-chain account layout compatibility."
10048
+ "Regular-share redemption policy; occupies the former zeroed padding byte."
9634
10049
  ];
9635
10050
  "type": {
9636
10051
  "defined": {
9637
- "name": "podBool";
10052
+ "name": "redemptionMode";
9638
10053
  };
9639
10054
  };
9640
10055
  },
@@ -10725,7 +11140,7 @@ type Bankineco = {
10725
11140
  {
10726
11141
  "name": "fulfiller";
10727
11142
  "docs": [
10728
- "Hot wallet authorised to fulfill expired junior withdrawal queues."
11143
+ "Hot wallet authorised to fulfill regular and expired junior withdrawal queues."
10729
11144
  ];
10730
11145
  "type": "pubkey";
10731
11146
  },
@@ -11294,10 +11709,12 @@ declare class PdaClient {
11294
11709
  */
11295
11710
  deriveVaultTrancheStatePda(vault: Address): Promise<readonly [Address, ProgramDerivedAddressBump]>;
11296
11711
  /**
11297
- * Junior tranche withdrawal queue PDA.
11712
+ * Shared withdrawal queue PDA for regular and junior shares.
11298
11713
  *
11299
11714
  * Seeds: `["vault_withdrawal_queue", vault, owner, queue_id]`
11300
11715
  */
11716
+ deriveVaultWithdrawalQueuePda(vault: Address, owner: Address, queueId: number): Promise<readonly [Address, ProgramDerivedAddressBump]>;
11717
+ /** Backward-compatible alias; queue IDs are shared by both share classes. */
11301
11718
  deriveVaultTrancheWithdrawalQueuePda(vault: Address, owner: Address, queueId: number): Promise<readonly [Address, ProgramDerivedAddressBump]>;
11302
11719
  }
11303
11720
 
@@ -11322,6 +11739,11 @@ type ExternalLiquiditySlot = VaultAccountData["externalLiquidity"][number];
11322
11739
  type FeeVaultAccountData = IdlAccounts<Vault>["feeVault"];
11323
11740
  type VaultOracleAccountData = IdlAccounts<Vault>["vaultOracle"];
11324
11741
  type VaultTrancheStateAccountData = IdlAccounts<Vault>["vaultTrancheState"];
11742
+ type VaultWithdrawalQueueAccountData = IdlAccounts<Vault>["vaultWithdrawalQueue"];
11743
+ interface VaultWithdrawalQueueAccount {
11744
+ publicKey: Address;
11745
+ account: VaultWithdrawalQueueAccountData;
11746
+ }
11325
11747
  type VaultTrancheWithdrawalQueueAccountData = IdlAccounts<Vault>["vaultWithdrawalQueue"];
11326
11748
  /**
11327
11749
  * Account fetchers for the vault program.
@@ -11366,12 +11788,47 @@ declare class AccountClient extends BaseAccountClient {
11366
11788
  fetchVaultOracleForVault(vault: Address, opts?: {
11367
11789
  fresh?: boolean;
11368
11790
  }): Promise<VaultOracleAccountData>;
11791
+ /** Fresh discovery read: only an absent oracle returns null; RPC errors propagate. */
11792
+ fetchVaultOracleForVaultNullable(vault: Address): Promise<VaultOracleAccountData | null>;
11369
11793
  fetchVaultTrancheState(vaultTrancheState: Address, opts?: {
11370
11794
  fresh?: boolean;
11371
11795
  }): Promise<VaultTrancheStateAccountData>;
11372
11796
  fetchVaultTrancheStateForVault(vault: Address, opts?: {
11373
11797
  fresh?: boolean;
11374
11798
  }): Promise<VaultTrancheStateAccountData>;
11799
+ /** Shared queue fetcher, for either regular or junior shares. */
11800
+ fetchVaultWithdrawalQueue(withdrawalQueue: Address, opts?: {
11801
+ fresh?: boolean;
11802
+ }): Promise<{
11803
+ header: {
11804
+ bump: number;
11805
+ queueId: number;
11806
+ padding: number[];
11807
+ };
11808
+ parties: {
11809
+ owner: _solana_web3_js.PublicKey;
11810
+ vault: _solana_web3_js.PublicKey;
11811
+ payer: _solana_web3_js.PublicKey;
11812
+ };
11813
+ mints: {
11814
+ inputMint: _solana_web3_js.PublicKey;
11815
+ outputMint: _solana_web3_js.PublicKey;
11816
+ };
11817
+ request: {
11818
+ inputAmount: bn_js;
11819
+ requestTs: bn_js;
11820
+ expiryTs: bn_js;
11821
+ padding: bn_js[];
11822
+ };
11823
+ }>;
11824
+ /** Fresh pending requests. Fulfilled/cancelled queues are closed on chain. */
11825
+ fetchAllWithdrawalQueues(opts?: {
11826
+ vault?: Address;
11827
+ owner?: Address;
11828
+ inputMint?: Address;
11829
+ }): Promise<VaultWithdrawalQueueAccount[]>;
11830
+ /** All pending regular-share redemptions for a vault, optionally restricted to an owner. */
11831
+ fetchPendingRedemptionQueues(vault: Address, owner?: Address): Promise<VaultWithdrawalQueueAccount[]>;
11375
11832
  fetchVaultTrancheWithdrawalQueue(withdrawalQueue: Address, opts?: {
11376
11833
  fresh?: boolean;
11377
11834
  }): Promise<VaultTrancheWithdrawalQueueAccountData>;
@@ -11825,6 +12282,11 @@ interface RollingRebalanceLimitConfig {
11825
12282
  windowLimitBps: number;
11826
12283
  windowDurationSeconds: bigint;
11827
12284
  }
12285
+ type RedemptionModeArgs = {
12286
+ synchronous: {};
12287
+ } | {
12288
+ asyncOnly: {};
12289
+ };
11828
12290
  interface SetVaultConfigIxArgs {
11829
12291
  curator: Address;
11830
12292
  vault: Address;
@@ -11842,6 +12304,7 @@ interface SetVaultConfigIxArgs {
11842
12304
  maxApyBps: number | null;
11843
12305
  tvlLimit: BN | null;
11844
12306
  lossesEnabled: boolean | null;
12307
+ redemptionMode?: RedemptionModeArgs | null;
11845
12308
  priceStalenessThresholdSecs: BN | null;
11846
12309
  newCurator: Address | null;
11847
12310
  userBurnLimit: {
@@ -11859,6 +12322,8 @@ interface SetVaultConfigIxArgs {
11859
12322
  };
11860
12323
  }
11861
12324
  interface SetVaultConfigTxArgs {
12325
+ /** Regular-share policy. Default on chain is synchronous; omit to leave unchanged. */
12326
+ redemptionMode?: RedemptionModeArgs;
11862
12327
  curator: Address;
11863
12328
  vault: Address;
11864
12329
  vaultOracle?: Address;
@@ -12387,6 +12852,19 @@ interface SetExternalLiquidityTxArgs {
12387
12852
  userAccount: Address;
12388
12853
  lookupTables?: Address[];
12389
12854
  }
12855
+ /** Escrow regular shares in an async-only vault. Shares are priced and burned at fulfillment. */
12856
+ type RequestAsyncWithdrawIxArgs = Omit<RequestJuniorTrancheWithdrawIxArgs, "vaultTrancheState">;
12857
+ interface RequestAsyncWithdrawTxArgs extends Omit<RequestJuniorTrancheWithdrawTxArgs, "vaultTrancheState" | "juniorShareMint"> {
12858
+ shareMint?: Address;
12859
+ }
12860
+ interface FulfillAsyncWithdrawIxArgs extends Omit<FulfillJuniorTrancheWithdrawIxArgs, "vaultTrancheState" | "addressSeeds"> {
12861
+ vaultTrancheState: Address | null;
12862
+ }
12863
+ interface FulfillAsyncWithdrawTxArgs extends Omit<FulfillJuniorTrancheWithdrawTxArgs, "juniorShareMint" | "addressSeeds" | "signer"> {
12864
+ /** Must be the vault's configured fulfiller. */
12865
+ signer: Address;
12866
+ shareMint?: Address;
12867
+ }
12390
12868
 
12391
12869
  interface VaultCacheInvalidation {
12392
12870
  vaultPda: Address;
@@ -13338,6 +13816,14 @@ interface WithdrawalPlan {
13338
13816
  tokenAmount: bigint;
13339
13817
  lookupTables: Address[];
13340
13818
  }
13819
+ /** Match the program's integer rounding: shares -> value -> fee -> token units. */
13820
+ declare function quoteWithdrawalPayout(pricing: WithdrawalPricing, shares: bigint): {
13821
+ gross: bigint;
13822
+ fee: bigint;
13823
+ feeShares: bigint;
13824
+ net: bigint;
13825
+ tokens: bigint;
13826
+ };
13341
13827
  /** Shared by transaction builders and consumers that need just CPI refs/accounts.
13342
13828
  * No partial plan is returned if the requested shares cannot all be redeemed.
13343
13829
  */
@@ -13465,6 +13951,31 @@ declare class VaultReallocationBuilder extends VaultBuilderBase<VaultReallocatio
13465
13951
  getTx(txArgs: VaultReallocationTxArgs): Promise<VaultTransactionPlan>;
13466
13952
  }
13467
13953
 
13954
+ declare class RequestAsyncWithdrawBuilder extends VaultBuilderBase<RequestAsyncWithdrawIxArgs, RequestAsyncWithdrawTxArgs> {
13955
+ getIx(args: RequestAsyncWithdrawIxArgs): Promise<_solana_kit.Instruction<string, readonly (_solana_kit.AccountLookupMeta<string, string> | _solana_kit.AccountMeta<string>)[]>>;
13956
+ protected deriveIxArgs(txArgs: RequestAsyncWithdrawTxArgs): Promise<RequestAsyncWithdrawIxArgs>;
13957
+ protected buildPlanExtras(args: RequestAsyncWithdrawIxArgs): Promise<{
13958
+ postSuccessCacheInvalidations: {
13959
+ vaultPda: _solana_kit.Address;
13960
+ withdrawalQueuePda: _solana_kit.Address;
13961
+ }[];
13962
+ }>;
13963
+ }
13964
+
13965
+ declare class FulfillAsyncWithdrawBuilder extends VaultBuilderBase<FulfillAsyncWithdrawIxArgs, FulfillAsyncWithdrawTxArgs> {
13966
+ getIx(args: FulfillAsyncWithdrawIxArgs): Promise<_solana_kit.Instruction<string, readonly (_solana_kit.AccountLookupMeta<string, string> | _solana_kit.AccountMeta<string>)[]>>;
13967
+ protected deriveIxArgs(txArgs: FulfillAsyncWithdrawTxArgs): Promise<FulfillAsyncWithdrawIxArgs>;
13968
+ protected buildLookupTables(args: FulfillAsyncWithdrawIxArgs, txArgs: FulfillAsyncWithdrawTxArgs): Promise<readonly Address[] | undefined>;
13969
+ protected buildPreambleInstructions(args: FulfillAsyncWithdrawIxArgs): Promise<_solana_kit.Instruction<string, readonly (_solana_kit.AccountLookupMeta<string, string> | _solana_kit.AccountMeta<string>)[]>[]>;
13970
+ protected buildPlanExtras(args: FulfillAsyncWithdrawIxArgs): Promise<{
13971
+ postSuccessCacheInvalidations: {
13972
+ vaultPda: Address;
13973
+ vaultTrancheStatePda: Address | undefined;
13974
+ withdrawalQueuePda: Address;
13975
+ }[];
13976
+ }>;
13977
+ }
13978
+
13468
13979
  declare class TransactionClient {
13469
13980
  readonly depositCuratorFees: DepositCuratorFeesBuilder;
13470
13981
  readonly createIncentiveV3: CreateIncentiveV3Builder;
@@ -13502,6 +14013,8 @@ declare class TransactionClient {
13502
14013
  readonly requestJuniorTrancheWithdraw: RequestJuniorTrancheWithdrawBuilder;
13503
14014
  readonly cancelJuniorTrancheWithdraw: CancelJuniorTrancheWithdrawBuilder;
13504
14015
  readonly fulfillJuniorTrancheWithdraw: FulfillJuniorTrancheWithdrawBuilder;
14016
+ readonly requestAsyncWithdraw: RequestAsyncWithdrawBuilder;
14017
+ readonly fulfillAsyncWithdraw: FulfillAsyncWithdrawBuilder;
13505
14018
  readonly executeWithdraw: ExecuteWithdrawBuilder;
13506
14019
  readonly managerWithdrawAsset: ManagerWithdrawAssetBuilder;
13507
14020
  readonly managerRedepositAsset: ManagerRedepositAssetBuilder;
@@ -14118,20 +14631,15 @@ onAccountValue?: (accountName: string, value: TrackedAccountValue) => void): Pro
14118
14631
  }>;
14119
14632
 
14120
14633
  /**
14121
- * Junior-tranche withdrawal-queue fulfillment.
14634
+ * Regular-share and junior-tranche withdrawal-queue fulfillment.
14122
14635
  *
14123
14636
  * Backend/cron logic — kept out of scripts so the fulfiller daemon, a Lambda,
14124
14637
  * and the `fulfill-junior-withdraw` CLI can all share one implementation.
14125
14638
  *
14126
- * A request is recorded on-chain as a `VaultWithdrawalQueue` PDA that escrows
14127
- * junior shares (`input_mint`) and pays out the vault asset (`output_mint`)
14128
- * once its lockup elapses. The program permits fulfillment when
14129
- * `now >= request.expiry_ts` (where `expiry_ts = request_ts + lockup`), so this
14130
- * service discovers queues, filters the ones whose lockup has elapsed, and
14131
- * submits `fulfill_junior_tranche_withdraw` for each.
14132
- *
14133
- * The queue account itself carries both mints, so fulfillment needs no extra
14134
- * lookups — no dependency on the (separately-maintained) tranche-state IDL.
14639
+ * Requests escrow shares until fulfillment or cancellation. Junior queues become
14640
+ * due after their lockup; regular queues are immediately eligible for the vault's
14641
+ * configured fulfiller. Dispatch uses the input mint, including queues that remain
14642
+ * pending after a vault switches back to synchronous redemption.
14135
14643
  */
14136
14644
 
14137
14645
  /** Decoded, JS-friendly view of a `VaultWithdrawalQueue` account. */
@@ -14142,7 +14650,7 @@ interface WithdrawalQueueSnapshot {
14142
14650
  /** Rent payer for the queue PDA; refunded on fulfillment/cancel. */
14143
14651
  payer: Address;
14144
14652
  queueId: number;
14145
- /** Token escrowed in the queue (junior shares). */
14653
+ /** Token escrowed in the queue (regular or junior shares). */
14146
14654
  inputMint: Address;
14147
14655
  /** Token paid out on fulfillment (vault asset). */
14148
14656
  outputMint: Address;
@@ -14175,7 +14683,7 @@ declare class WithdrawalQueueService {
14175
14683
  secondsUntilDue(queue: WithdrawalQueueSnapshot, now?: number): number;
14176
14684
  getDueQueues(queues: WithdrawalQueueSnapshot[], now?: number): WithdrawalQueueSnapshot[];
14177
14685
  /**
14178
- * Fulfill a single queued junior withdrawal. `signer` pays fees and, if
14686
+ * Fulfill a single regular or junior withdrawal. `signer` pays fees and, if
14179
14687
  * needed, initializes the owner's output ATA.
14180
14688
  */
14181
14689
  fulfill(signer: Keypair, queue: WithdrawalQueueSnapshot): Promise<string>;
@@ -15789,4 +16297,4 @@ declare function collectVaultLookupTableAccounts(client: VaultClient, vault: Add
15789
16297
  extraAccounts?: Address[];
15790
16298
  }): Promise<Address[]>;
15791
16299
 
15792
- 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_EXTERNAL_WEIGHT_BAND_BPS, DEFAULT_JUNIOR_EARLY_UNSTAKE_FEE_BPS, DEFAULT_JUNIOR_STANDARD_UNSTAKE_FEE_BPS, DEFAULT_JUNIOR_WITHDRAWAL_LOCKUP_SECS, DEFAULT_MARGINFI_WEIGHT_BPS, DEFAULT_MAX_ACCEPTABLE_APY_BPS, 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, type EvmCallArg, type EvmContractCall, type EvmContractNavPriceConfig, 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, type HttpJsonNavPriceConfig, 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, KaminoLendPositionProvider, 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_LUT_ADDRESSES, MAX_MANAGER_WITHDRAW_DESTINATIONS, MAX_ORACLE_IMPLIED_APY_BPS, 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, NEST_WITHDRAWAL_MATCH_TOLERANCE_BPS, type NavAccountBalanceResponse, type NavAccountValueResponse, type NavCrankBlocker, type NavCrankBlockerReason, type NavCrankReadiness, type NavCrankResult, type NavPriceConfig, type NavPricePreview, type NavPriceProvenance, 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, PST_TO_USDC_MAX_SLIPPAGE_BPS, PdaClient, type PendingConsensusSignerSet, type PreparedDirectTransaction, type PreparedSquadsTransaction, type PreparedVaultTransaction, type PreviewNavPriceParams, type PriceOracleTypeArgs, type PriceSource, ProtocolInteractionBuilder, type ProtocolInteractionIxArgs, type ProtocolInteractionTxArgs, type QuoteFeeUnit, RECONCILIATION_EXTERNAL_VALUE_TOLERANCE_BPS, 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_LOOKUP_TABLES, 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 VaultLookupTableMap, VaultLutManager, 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, type WithdrawalLeg, type WithdrawalPlan, type WithdrawalPricing, WithdrawalQueueService, type WithdrawalQueueSnapshot, type YieldAccount, type YieldAccountSnapshot, type YieldCalculationLog, type YieldCashflow, type YieldPaymentResponse, type YieldPaymentSnapshot, type YieldTracker, type YieldValuationModel, accountingUnitPriceToUsd, addCashflowUpdate, applyEffectiveApy, assertNoLargeBalanceChanges, assertNoUnconfirmedYieldPayments, assertOracleImpliedApy, assertReconciliationExternalValues, buildHoldingUpdate, buildKaminoDepositInteraction, buildKaminoWithdrawInteraction, buildMarginfiWithdrawInteraction, buildNestDepositRequest, buildNestWithdrawalRequest, buildUpdates, candidateGrossNav, coerceBool, collectSamples, collectVaultLookupTableAccounts, confirmYieldPayment, createAccount, createLiveConsensusOracleDeps, createRpcFromConnection, createTokenMint, createTokenMintIxs, createVaultClient, createYieldPayment, dateToStr, decodeNestDepositRequest, decodeNestWithdrawalRequest, decodePendingConsensusSigners, defaultKeypairPath, deleteAccount, discoverVaultsForSigner, externalWithdrawComputeBudget, externalWithdrawLookupTables, 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, getVaultLookupTables, getVaultProgramId, getYield, getYieldPayments, indexConfigByMint, isEvmNavPriceConfig, isNavAccountBalance, isNavAccountValue, isNavYieldAccount, isVaultEnv, keypairAddress, loadKaminoDeposit, loadKaminoWithdrawal, loadKeypair, logProspectiveApy, makeProvider, managerReconciliationStateKey, mintTokensTo, mints, mostFrequent, parseExternalLiquidityRefs, planExternalAllocation, planRebalance, planWithdrawalLegs, prepareSquadsProposalUpload, prepareVaultTransaction, previewNavPrice, previousPhysicalNav, priceInAccountingUnit, publishedConsensusBlockers, readI64LE, readSplMintSupply, reconcileManagerWalletBalances, reconciliationExternalValues, refreshLiveOraclePrices, resolveExternalWithdraw, resolveKeypairPath, resolveSquadsWalletRoute, resolveTrackedAmounts, resolveWithdrawalPlan, roundToNextUtcMidnight, runLiveConsensusOracle, selectReportableHoldings, settleVault, signerInOracleData, simulateConsensusOracleSettlement, simulateDryRunSettlement, simulateOraclePublication, simulateSquadsProposalExecution, sumPositionsByMint, systemClock, toBigInt, toUiAmount, toWeb3AccountMeta, trackedValueFromResponse, uniqueLutAddresses, updateAccount, updateDynamicApr, validateSquadsWalletRoutes, variantName, vaultAuthorityForWallet, walletReconciliationGuardUpdates, withDiscoveredYieldAccounts, withVaultLookupTables, withdrawalComputeBudget };
16300
+ 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_EXTERNAL_WEIGHT_BAND_BPS, DEFAULT_JUNIOR_EARLY_UNSTAKE_FEE_BPS, DEFAULT_JUNIOR_STANDARD_UNSTAKE_FEE_BPS, DEFAULT_JUNIOR_WITHDRAWAL_LOCKUP_SECS, DEFAULT_MARGINFI_WEIGHT_BPS, DEFAULT_MAX_ACCEPTABLE_APY_BPS, 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, type EvmCallArg, type EvmContractCall, type EvmContractNavPriceConfig, 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, FulfillAsyncWithdrawBuilder, type FulfillAsyncWithdrawIxArgs, type FulfillAsyncWithdrawTxArgs, FulfillJuniorTrancheWithdrawBuilder, type FulfillJuniorTrancheWithdrawIxArgs, type FulfillJuniorTrancheWithdrawTxArgs, type FulfillSummary, type HoldingNavContribution, type HoldingUpdatePreview, type HttpJsonNavPriceConfig, 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, KaminoLendPositionProvider, 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_LUT_ADDRESSES, MAX_MANAGER_WITHDRAW_DESTINATIONS, MAX_ORACLE_IMPLIED_APY_BPS, 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, NEST_WITHDRAWAL_MATCH_TOLERANCE_BPS, type NavAccountBalanceResponse, type NavAccountValueResponse, type NavCrankBlocker, type NavCrankBlockerReason, type NavCrankReadiness, type NavCrankResult, type NavPriceConfig, type NavPricePreview, type NavPriceProvenance, 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, PST_TO_USDC_MAX_SLIPPAGE_BPS, PdaClient, type PendingConsensusSignerSet, type PreparedDirectTransaction, type PreparedSquadsTransaction, type PreparedVaultTransaction, type PreviewNavPriceParams, type PriceOracleTypeArgs, type PriceSource, ProtocolInteractionBuilder, type ProtocolInteractionIxArgs, type ProtocolInteractionTxArgs, type QuoteFeeUnit, RECONCILIATION_EXTERNAL_VALUE_TOLERANCE_BPS, REPORTABLE_ORACLE_VARIANTS, type RealizedApySimulation, type RedemptionModeArgs, type RefreshLiveOraclePricesParams, RemoveAssetHoldingBuilder, type RemoveAssetHoldingIxArgs, type RemoveAssetHoldingTxArgs, ReportIncentiveV3Builder, type ReportIncentiveV3IxArgs, type ReportIncentiveV3TxArgs, RequestAsyncWithdrawBuilder, type RequestAsyncWithdrawIxArgs, type RequestAsyncWithdrawTxArgs, 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_LOOKUP_TABLES, 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 VaultLookupTableMap, VaultLutManager, 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 VaultWithdrawalQueueAccount, type VaultWithdrawalQueueAccountData, WALLET_FEE_EXEMPT_WHITELIST, WITHDRAWABLE_RESERVE_FLOOR_BPS, type WithdrawProtocolFeesIxArgs, type WithdrawProtocolFeesTxArgs, type WithdrawalLeg, type WithdrawalPlan, type WithdrawalPricing, WithdrawalQueueService, type WithdrawalQueueSnapshot, type YieldAccount, type YieldAccountSnapshot, type YieldCalculationLog, type YieldCashflow, type YieldPaymentResponse, type YieldPaymentSnapshot, type YieldTracker, type YieldValuationModel, accountingUnitPriceToUsd, addCashflowUpdate, applyEffectiveApy, assertNoLargeBalanceChanges, assertNoUnconfirmedYieldPayments, assertOracleImpliedApy, assertReconciliationExternalValues, buildHoldingUpdate, buildKaminoDepositInteraction, buildKaminoWithdrawInteraction, buildMarginfiWithdrawInteraction, buildNestDepositRequest, buildNestWithdrawalRequest, buildUpdates, candidateGrossNav, coerceBool, collectSamples, collectVaultLookupTableAccounts, confirmYieldPayment, createAccount, createLiveConsensusOracleDeps, createRpcFromConnection, createTokenMint, createTokenMintIxs, createVaultClient, createYieldPayment, dateToStr, decodeNestDepositRequest, decodeNestWithdrawalRequest, decodePendingConsensusSigners, defaultKeypairPath, deleteAccount, discoverVaultsForSigner, externalWithdrawComputeBudget, externalWithdrawLookupTables, 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, getVaultLookupTables, getVaultProgramId, getYield, getYieldPayments, indexConfigByMint, isEvmNavPriceConfig, isNavAccountBalance, isNavAccountValue, isNavYieldAccount, isVaultEnv, keypairAddress, loadKaminoDeposit, loadKaminoWithdrawal, loadKeypair, logProspectiveApy, makeProvider, managerReconciliationStateKey, mintTokensTo, mints, mostFrequent, parseExternalLiquidityRefs, planExternalAllocation, planRebalance, planWithdrawalLegs, prepareSquadsProposalUpload, prepareVaultTransaction, previewNavPrice, previousPhysicalNav, priceInAccountingUnit, publishedConsensusBlockers, quoteWithdrawalPayout, readI64LE, readSplMintSupply, reconcileManagerWalletBalances, reconciliationExternalValues, refreshLiveOraclePrices, resolveExternalWithdraw, resolveKeypairPath, resolveSquadsWalletRoute, resolveTrackedAmounts, resolveWithdrawalPlan, roundToNextUtcMidnight, runLiveConsensusOracle, selectReportableHoldings, settleVault, signerInOracleData, simulateConsensusOracleSettlement, simulateDryRunSettlement, simulateOraclePublication, simulateSquadsProposalExecution, sumPositionsByMint, systemClock, toBigInt, toUiAmount, toWeb3AccountMeta, trackedValueFromResponse, uniqueLutAddresses, updateAccount, updateDynamicApr, validateSquadsWalletRoutes, variantName, vaultAuthorityForWallet, walletReconciliationGuardUpdates, withDiscoveredYieldAccounts, withVaultLookupTables, withdrawalComputeBudget };