@neutral-trade/sdk 0.4.18 → 1.0.1

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.mts CHANGED
@@ -1,10 +1,43 @@
1
- import { A as UserBundleTempData, B as BundleProgram, C as VaultCategory, D as BundleAccount, E as VaultType, F as getSolanaTokenMint, G as createAllowlistedBundleProgram, H as DEFAULT_BUNDLE_PROGRAM_ID_DEVNET, I as tokens, J as isAllowlistedBundleProgramId, K as createBundleProgramById, L as ALLOWLISTED_BUNDLE_PROGRAM_IDS_BY_CLUSTER, M as SupportedToken, N as Token, O as OracleData, P as getSolanaTokenDecimals, R as BUNDLE_PROGRAM_ID_V2_MAINNET, S as VaultBalanceData, T as VaultRegistryEntry, U as DEFAULT_BUNDLE_PROGRAM_ID_MAINNET, V as BundleProvider, W as assertAllowlistedBundleProgramId, _ as getVaultRegistry, b as vaultsDevnet, f as NeutralTrade, g as getVaultById, h as getVaultByAddress, j as SupportedChain, k as UserBundleAccount, m as getBundleProgramId, p as NeutralTradeConfig, q as getDefaultBundleProgramIdByCluster, t as NeutralTradeCoreContext, v as isValidVaultAddress, w as VaultRegistry, x as UserBalanceResult, y as vaults$1, z as BundleCluster } from "./neutral-trade-core-CtFKbCrr.mjs";
2
- import { AnchorProvider, Program, Wallet } from "@coral-xyz/anchor";
3
- import { Connection, PublicKey, TransactionInstruction } from "@solana/web3.js";
4
- import BN from "bn.js";
1
+ import { $ as getSetWithdrawalRedemptionScheduleInstructionDataEncoder, $a as getRefundDepositInstructionDataCodec, $c as InitializeBundleMasterAccountInstructionData, $d as ADD_STRATEGY_DISCRIMINATOR, $f as findPendingBundleAssetAuthorityPda, $h as BUNDLE_TEMP_DATA_DISCRIMINATOR, $i as getRequestDepositInstructionDataEncoder, $l as EnableStrategyInput, $m as getNtbundleErrorMessage, $n as SetOracleBufferInstructionData, $o as getProcessReferrerWithdrawalInstruction, $p as NTBUNDLE_ERROR__MANAGER_SHARES_ZERO, $r as getSetFeesInstructionDataEncoder, $s as ParsedNetPendingTransactionsInstruction, $t as getSetReferrerRateOverrideInstructionDataEncoder, $u as CLEAR_USER_FEE_OVERRIDE_DISCRIMINATOR, A as START_DISTRIBUTION_DISCRIMINATOR, Aa as REGISTER_REFERRER_DISCRIMINATOR, Ac as getManagerWithdrawInstructionAsync, Ad as ChangeBundleMasterAdminInstructionDataArgs, Af as TargetPendingBundleAssetAuthoritySeeds, Ag as fetchAllMaybeBundleCreatorAccount, Ah as decodeReferrerAccount, Ai as RequestWithdrawalInput, Al as getInitializeBundleDiscriminatorBytes, Am as NTBUNDLE_ERROR__REFERRER_SHARES_ZERO, An as SetOracleUpdateTimeLimitInstructionDataArgs, Ao as parseProcessWithdrawalInstruction, Ap as NTBUNDLE_ERROR__EXCESSIVE_WITHDRAW_FEE, Ar as parseSetMaxDepositAmountInstruction, As as getPerformRefillInstructionDataDecoder, At as SET_USER_FEE_OVERRIDE_DISCRIMINATOR, Au as CloseUserBundleAccountInstructionDataArgs, B as getStartDistributionInstructionDataDecoder, Ba as getRegisterReferrerInstructionDataDecoder, Bc as InitializePermissionedBundleDepositorInstructionDataArgs, Bd as ApplyFeesToUserAsyncInput, Bf as SourceOracleDataSeeds, Bg as BundleArgs, Bh as ORACLE_DATA_DISCRIMINATOR, Bi as parseRequestWithdrawalInstruction, Bl as EndDistributionInstruction, Bm as NTBUNDLE_ERROR__TOO_MANY_ALLOCATED_RECEIVERS, Bn as SetOracleMaxAgeInstruction, Bo as getProcessSwitchInstructionAsync, Bp as NTBUNDLE_ERROR__INVALID_ORACLE_MAX_AGE, Br as getSetKeeperInstructionDataDecoder, Bs as getPauseDepositsWithdrawalsDiscriminatorBytes, Bt as getSetUserFeeOverrideInstructionDataDecoder, Bu as ClearUserWithdrawalTimingOverrideAsyncInput, C as getUpdateAllocationsInstruction, Ca as getRemoveStrategyInstruction, Cc as ManagerWithdrawInput, Cd as getChangeManagerInstructionDataEncoder, Cf as identifyNtbundleInstruction, Cg as getBundleMasterAccountEncoder, Ch as getStrategyDecoder, Ci as getSetBundleCreatorInstructionDataCodec, Cl as INITIALIZE_BUNDLE_DISCRIMINATOR, Cm as NTBUNDLE_ERROR__REDEMPTION_AMOUNT_EXCEEDED, Cn as getSetReferrerActiveInstructionDataEncoder, Co as ProcessWithdrawalInstructionDataArgs, Cp as NTBUNDLE_ERROR__DISTRIBUTION_NOT_STARTED, Cr as SetMaxDepositAmountInstructionData, Cs as PerformRefillInstruction, Ct as getSetUserReferrerInstruction, Cu as getDistributeToReceiversInstructionDataEncoder, D as getUpdateAllocationsInstructionDataEncoder, Da as getRemoveStrategyInstructionDataEncoder, Dc as ParsedManagerWithdrawInstruction, Dd as ChangeBundleMasterAdminInput, Df as findUserBundleAccountPda, Dg as BundleCreatorAccountArgs, Dh as REFERRER_ACCOUNT_DISCRIMINATOR, Di as ParsedRequestWithdrawalInstruction, Dl as InitializeBundleInstructionData, Dm as NTBUNDLE_ERROR__REFERRER_ACCOUNT_MISMATCH, Dn as SetOracleUpdateTimeLimitInput, Do as getProcessWithdrawalInstructionDataCodec, Dp as NTBUNDLE_ERROR__EXCESSIVE_DEPOSIT_FEE, Dr as getSetMaxDepositAmountInstructionDataCodec, Ds as getPerformRefillInstruction, Dt as getSetUserReferrerInstructionDataEncoder, Du as CloseUserBundleAccountInput, E as getUpdateAllocationsInstructionDataDecoder, Ea as getRemoveStrategyInstructionDataDecoder, Ec as ManagerWithdrawInstructionDataArgs, Ed as ChangeBundleMasterAdminAsyncInput, Ef as UserBundleAccountSeeds, Eg as BundleCreatorAccount, Eh as getStrategySize, Ei as parseSetBundleCreatorInstruction, El as InitializeBundleInstruction, Em as NTBUNDLE_ERROR__REFERRAL_ALREADY_SET, En as SET_ORACLE_UPDATE_TIME_LIMIT_DISCRIMINATOR, Eo as getProcessWithdrawalInstructionAsync, Ep as NTBUNDLE_ERROR__EQUITY_OUT_OF_BUFFER_BOUND, Er as getSetMaxDepositAmountInstruction, Es as getPerformRefillDiscriminatorBytes, Et as getSetUserReferrerInstructionDataDecoder, Eu as CloseUserBundleAccountAsyncInput, F as StartDistributionInstructionDataArgs, Fa as RegisterReferrerInstructionDataArgs, Fc as INITIALIZE_PERMISSIONED_BUNDLE_DEPOSITOR_DISCRIMINATOR, Fd as getChangeBundleMasterAdminInstructionDataCodec, Ff as findTargetBundleTempDataPda, Fg as getBundleCreatorAccountDiscriminatorBytes, Fh as getReferrerAccountCodec, Fi as getRequestWithdrawalInstruction, Fl as getInitializeBundleInstructionDataEncoder, Fm as NTBUNDLE_ERROR__SWITCH_ALREADY_ACTIVE, Fn as getSetOracleUpdateTimeLimitInstructionDataEncoder, Fo as ProcessSwitchInstruction, Fp as NTBUNDLE_ERROR__INVALID_ASSET_ADDRESS, Fr as SetKeeperInstructionData, Fs as PauseDepositsWithdrawalsAsyncInput, Ft as SetUserFeeOverrideInstructionDataArgs, Fu as getCloseUserBundleAccountInstructionDataCodec, G as SetWithdrawalRedemptionScheduleInput, Ga as RefundDepositAsyncInput, Gc as getInitializePermissionedBundleDepositorInstructionDataCodec, Gd as ParsedApplyFeesToUserInstruction, Gf as findSourceBundleAssetAuthorityPda, Gg as fetchMaybeBundle, Gh as fetchAllOracleData, Gi as RequestDepositInstruction, Gl as getEndDistributionInstruction, Gm as NTBUNDLE_ERROR__UNAUTHORIZED_MANAGER_ACTION, Gn as getSetOracleMaxAgeInstructionDataCodec, Go as PROCESS_REFERRER_WITHDRAWAL_DISCRIMINATOR, Gp as NTBUNDLE_ERROR__INVALID_TWAP_PERIOD, Gr as SetFeesInput, Gs as getPauseDepositsWithdrawalsInstructionDataEncoder, Gt as SetReferrerRateOverrideInput, Gu as ParsedClearUserWithdrawalTimingOverrideInstruction, H as parseStartDistributionInstruction, Ha as parseRegisterReferrerInstruction, Hc as getInitializePermissionedBundleDepositorDiscriminatorBytes, Hd as ApplyFeesToUserInstruction, Hf as SourceBundleTempDataSeeds, Hg as fetchAllBundle, Hh as OracleDataArgs, Hi as REQUEST_DEPOSIT_DISCRIMINATOR, Hl as EndDistributionInstructionDataArgs, Hm as NTBUNDLE_ERROR__UNAUTHORIZED_ADMIN_ACTION, Hn as SetOracleMaxAgeInstructionDataArgs, Ho as getProcessSwitchInstructionDataDecoder, Hp as NTBUNDLE_ERROR__INVALID_PERMISSIONNED_DEPOSITOR, Hr as parseSetKeeperInstruction, Hs as getPauseDepositsWithdrawalsInstructionAsync, Ht as parseSetUserFeeOverrideInstruction, Hu as ClearUserWithdrawalTimingOverrideInstruction, I as getStartDistributionDiscriminatorBytes, Ia as getRegisterReferrerDiscriminatorBytes, Ic as InitializePermissionedBundleDepositorAsyncInput, Id as getChangeBundleMasterAdminInstructionDataDecoder, If as StrategyAccountSeeds, Ig as getBundleCreatorAccountEncoder, Ih as getReferrerAccountDecoder, Ii as getRequestWithdrawalInstructionAsync, Il as parseInitializeBundleInstruction, Im as NTBUNDLE_ERROR__SWITCH_ASSET_MINT_MISMATCH, In as parseSetOracleUpdateTimeLimitInstruction, Io as ProcessSwitchInstructionData, Ip as NTBUNDLE_ERROR__INVALID_ASSET_PRECISION, Ir as SetKeeperInstructionDataArgs, Is as PauseDepositsWithdrawalsInput, It as getSetUserFeeOverrideDiscriminatorBytes, Iu as getCloseUserBundleAccountInstructionDataDecoder, J as SetWithdrawalRedemptionScheduleInstructionDataArgs, Ja as RefundDepositInstructionData, Jc as parseInitializePermissionedBundleDepositorInstruction, Jd as getApplyFeesToUserInstructionAsync, Jf as ReferrerUserBundleAccountSeeds, Jg as getBundleDiscriminatorBytes, Jh as getOracleDataCodec, Ji as getRequestDepositDiscriminatorBytes, Jl as getEndDistributionInstructionDataDecoder, Jm as NTBUNDLE_ERROR__USER_BUNDLE_ACCOUNT_HAS_ACTIVITY, Jn as parseSetOracleMaxAgeInstruction, Jo as ProcessReferrerWithdrawalInput, Jp as NTBUNDLE_ERROR__INVALID_WITHDRAWAL_AMOUNT, Jr as SetFeesInstructionDataArgs, Js as NetPendingTransactionsAsyncInput, Jt as SetReferrerRateOverrideInstructionDataArgs, Ju as getClearUserWithdrawalTimingOverrideInstructionAsync, K as SetWithdrawalRedemptionScheduleInstruction, Ka as RefundDepositInput, Kc as getInitializePermissionedBundleDepositorInstructionDataDecoder, Kd as getApplyFeesToUserDiscriminatorBytes, Kf as RequestBundleSwitchUserBundleAccountSeeds, Kg as getBundleCodec, Kh as fetchMaybeOracleData, Ki as RequestDepositInstructionData, Kl as getEndDistributionInstructionAsync, Km as NTBUNDLE_ERROR__UNAUTHORIZED_REFERRER_ACTION, Kn as getSetOracleMaxAgeInstructionDataDecoder, Ko as ParsedProcessReferrerWithdrawalInstruction, Kp as NTBUNDLE_ERROR__INVALID_USER_FEE_CONFIG, Kr as SetFeesInstruction, Ks as parsePauseDepositsWithdrawalsInstruction, Kt as SetReferrerRateOverrideInstruction, Ku as getClearUserWithdrawalTimingOverrideDiscriminatorBytes, L as getStartDistributionInstruction, La as getRegisterReferrerInstruction, Lc as InitializePermissionedBundleDepositorInput, Ld as getChangeBundleMasterAdminInstructionDataEncoder, Lf as findStrategyAccountPda, Lg as getBundleCreatorAccountSize, Lh as getReferrerAccountDiscriminatorBytes, Li as getRequestWithdrawalInstructionDataCodec, Ll as END_DISTRIBUTION_DISCRIMINATOR, Lm as NTBUNDLE_ERROR__SWITCH_TARGET_ACCOUNTS_MISSING, Ln as ParsedSetOracleMaxAgeInstruction, Lo as ProcessSwitchInstructionDataArgs, Lp as NTBUNDLE_ERROR__INVALID_FEE_SPLIT, Lr as getSetKeeperDiscriminatorBytes, Ls as PauseDepositsWithdrawalsInstruction, Lt as getSetUserFeeOverrideInstruction, Lu as getCloseUserBundleAccountInstructionDataEncoder, M as StartDistributionInput, Ma as RegisterReferrerInput, Mc as getManagerWithdrawInstructionDataDecoder, Md as getChangeBundleMasterAdminDiscriminatorBytes, Mf as TargetOracleDataSeeds, Mg as fetchMaybeBundleCreatorAccount, Mh as fetchAllReferrerAccount, Mi as RequestWithdrawalInstructionData, Ml as getInitializeBundleInstructionAsync, Mm as NTBUNDLE_ERROR__REFILL_AMOUNT_INVALID, Mn as getSetOracleUpdateTimeLimitInstruction, Mo as ParsedProcessSwitchInstruction, Mp as NTBUNDLE_ERROR__INSUFFICIENT_FUNDS, Mr as SET_KEEPER_DISCRIMINATOR, Ms as parsePerformRefillInstruction, Mt as SetUserFeeOverrideInput, Mu as getCloseUserBundleAccountDiscriminatorBytes, N as StartDistributionInstruction, Na as RegisterReferrerInstruction, Nc as getManagerWithdrawInstructionDataEncoder, Nd as getChangeBundleMasterAdminInstruction, Nf as findTargetOracleDataPda, Ng as getBundleCreatorAccountCodec, Nh as fetchMaybeReferrerAccount, Ni as RequestWithdrawalInstructionDataArgs, Nl as getInitializeBundleInstructionDataCodec, Nm as NTBUNDLE_ERROR__STRATEGY_ALREADY_ENABLED, Nn as getSetOracleUpdateTimeLimitInstructionDataCodec, No as ProcessSwitchAsyncInput, Np as NTBUNDLE_ERROR__INSUFFICIENT_SHARES_BALANCE, Nr as SetKeeperInput, Ns as PAUSE_DEPOSITS_WITHDRAWALS_DISCRIMINATOR, Nt as SetUserFeeOverrideInstruction, Nu as getCloseUserBundleAccountInstruction, O as parseUpdateAllocationsInstruction, Oa as parseRemoveStrategyInstruction, Oc as getManagerWithdrawDiscriminatorBytes, Od as ChangeBundleMasterAdminInstruction, Of as TargetUserBundleAccountSeeds, Og as decodeBundleCreatorAccount, Oh as ReferrerAccount, Oi as REQUEST_WITHDRAWAL_DISCRIMINATOR, Ol as InitializeBundleInstructionDataArgs, Om as NTBUNDLE_ERROR__REFERRER_ACCOUNT_MISSING, On as SetOracleUpdateTimeLimitInstruction, Oo as getProcessWithdrawalInstructionDataDecoder, Op as NTBUNDLE_ERROR__EXCESSIVE_MANAGEMENT_FEE, Or as getSetMaxDepositAmountInstructionDataDecoder, Os as getPerformRefillInstructionAsync, Ot as parseSetUserReferrerInstruction, Ou as CloseUserBundleAccountInstruction, P as StartDistributionInstructionData, Pa as RegisterReferrerInstructionData, Pc as parseManagerWithdrawInstruction, Pd as getChangeBundleMasterAdminInstructionAsync, Pf as TargetBundleTempDataSeeds, Pg as getBundleCreatorAccountDecoder, Ph as fetchReferrerAccount, Pi as getRequestWithdrawalDiscriminatorBytes, Pl as getInitializeBundleInstructionDataDecoder, Pm as NTBUNDLE_ERROR__STRATEGY_DISABLED, Pn as getSetOracleUpdateTimeLimitInstructionDataDecoder, Po as ProcessSwitchInput, Pp as NTBUNDLE_ERROR__INVALID_ALLOCATIONS, Pr as SetKeeperInstruction, Ps as ParsedPauseDepositsWithdrawalsInstruction, Pt as SetUserFeeOverrideInstructionData, Pu as getCloseUserBundleAccountInstructionAsync, Q as getSetWithdrawalRedemptionScheduleInstructionDataDecoder, Qa as getRefundDepositInstructionAsync, Qc as InitializeBundleMasterAccountInstruction, Qd as parseApplyFeesToUserInstruction, Qf as PendingBundleAssetAuthoritySeeds, Qh as getOracleDataSize, Qi as getRequestDepositInstructionDataDecoder, Ql as EnableStrategyAsyncInput, Qm as NtbundleError, Qn as SetOracleBufferInstruction, Qo as getProcessReferrerWithdrawalDiscriminatorBytes, Qp as NTBUNDLE_ERROR__LEFT_TO_DISTRIBUTE_NOT_ZERO, Qr as getSetFeesInstructionDataDecoder, Qs as NetPendingTransactionsInstructionDataArgs, Qt as getSetReferrerRateOverrideInstructionDataDecoder, Qu as parseClearUserWithdrawalTimingOverrideInstruction, R as getStartDistributionInstructionAsync, Ra as getRegisterReferrerInstructionAsync, Rc as InitializePermissionedBundleDepositorInstruction, Rd as parseChangeBundleMasterAdminInstruction, Rf as SourceUserBundleAccountSeeds, Rg as BUNDLE_DISCRIMINATOR, Rh as getReferrerAccountEncoder, Ri as getRequestWithdrawalInstructionDataDecoder, Rl as EndDistributionAsyncInput, Rm as NTBUNDLE_ERROR__SWITCH_TARGET_ACCOUNT_MISMATCH, Rn as SET_ORACLE_MAX_AGE_DISCRIMINATOR, Ro as getProcessSwitchDiscriminatorBytes, Rp as NTBUNDLE_ERROR__INVALID_NEUTRAL_FEE_INCREMENTER, Rr as getSetKeeperInstruction, Rs as PauseDepositsWithdrawalsInstructionData, Rt as getSetUserFeeOverrideInstructionAsync, Ru as parseCloseUserBundleAccountInstruction, S as getUpdateAllocationsDiscriminatorBytes, Sa as getRemoveStrategyDiscriminatorBytes, Sc as ManagerWithdrawAsyncInput, Sd as getChangeManagerInstructionDataDecoder, Sf as identifyNtbundleAccount, Sg as getBundleMasterAccountDiscriminatorBytes, Sh as getStrategyCodec, Si as getSetBundleCreatorInstructionAsync, Sl as parseInitializeBundleDepositorInstruction, Sm as NTBUNDLE_ERROR__RECEIVER_ALREADY_ALLOCATED, Sn as getSetReferrerActiveInstructionDataDecoder, So as ProcessWithdrawalInstructionData, Sp as NTBUNDLE_ERROR__DISTRIBUTION_ALREADY_STARTED, Sr as SetMaxDepositAmountInstruction, Ss as PerformRefillInput, St as getSetUserReferrerDiscriminatorBytes, Su as getDistributeToReceiversInstructionDataDecoder, T as getUpdateAllocationsInstructionDataCodec, Ta as getRemoveStrategyInstructionDataCodec, Tc as ManagerWithdrawInstructionData, Td as CHANGE_BUNDLE_MASTER_ADMIN_DISCRIMINATOR, Tf as parseNtbundleInstruction, Tg as BUNDLE_CREATOR_ACCOUNT_DISCRIMINATOR, Th as getStrategyEncoder, Ti as getSetBundleCreatorInstructionDataEncoder, Tl as InitializeBundleInput, Tm as NTBUNDLE_ERROR__REFERRALS_DISABLED, Tn as ParsedSetOracleUpdateTimeLimitInstruction, To as getProcessWithdrawalInstruction, Tp as NTBUNDLE_ERROR__EMPTY_USER_WITHDRAWAL_TIMING_CLEAR_REQUEST, Tr as getSetMaxDepositAmountDiscriminatorBytes, Ts as PerformRefillInstructionDataArgs, Tt as getSetUserReferrerInstructionDataCodec, Tu as CLOSE_USER_BUNDLE_ACCOUNT_DISCRIMINATOR, U as ParsedSetWithdrawalRedemptionScheduleInstruction, Ua as ParsedRefundDepositInstruction, Uc as getInitializePermissionedBundleDepositorInstruction, Ud as ApplyFeesToUserInstructionData, Uf as findSourceBundleTempDataPda, Ug as fetchAllMaybeBundle, Uh as decodeOracleData, Ui as RequestDepositAsyncInput, Ul as ParsedEndDistributionInstruction, Um as NTBUNDLE_ERROR__UNAUTHORIZED_BUNDLE_CREATOR, Un as getSetOracleMaxAgeDiscriminatorBytes, Uo as getProcessSwitchInstructionDataEncoder, Up as NTBUNDLE_ERROR__INVALID_RECEIVER, Ur as ParsedSetFeesInstruction, Us as getPauseDepositsWithdrawalsInstructionDataCodec, Ut as ParsedSetReferrerRateOverrideInstruction, Uu as ClearUserWithdrawalTimingOverrideInstructionData, V as getStartDistributionInstructionDataEncoder, Va as getRegisterReferrerInstructionDataEncoder, Vc as ParsedInitializePermissionedBundleDepositorInstruction, Vd as ApplyFeesToUserInput, Vf as findSourceOracleDataPda, Vg as decodeBundle, Vh as OracleData, Vi as ParsedRequestDepositInstruction, Vl as EndDistributionInstructionData, Vm as NTBUNDLE_ERROR__TOTAL_ASSET_EXCEED_NEW_MAX_DEPOSIT_AMOUNT, Vn as SetOracleMaxAgeInstructionData, Vo as getProcessSwitchInstructionDataCodec, Vp as NTBUNDLE_ERROR__INVALID_ORACLE_UPDATE_TIME_LIMIT, Vr as getSetKeeperInstructionDataEncoder, Vs as getPauseDepositsWithdrawalsInstruction, Vt as getSetUserFeeOverrideInstructionDataEncoder, Vu as ClearUserWithdrawalTimingOverrideInput, W as SET_WITHDRAWAL_REDEMPTION_SCHEDULE_DISCRIMINATOR, Wa as REFUND_DEPOSIT_DISCRIMINATOR, Wc as getInitializePermissionedBundleDepositorInstructionAsync, Wd as ApplyFeesToUserInstructionDataArgs, Wf as SourceBundleAssetAuthoritySeeds, Wg as fetchBundle, Wh as fetchAllMaybeOracleData, Wi as RequestDepositInput, Wl as getEndDistributionDiscriminatorBytes, Wm as NTBUNDLE_ERROR__UNAUTHORIZED_KEEPER_ACTION, Wn as getSetOracleMaxAgeInstruction, Wo as parseProcessSwitchInstruction, Wp as NTBUNDLE_ERROR__INVALID_REFERRAL_CONFIG, Wr as SET_FEES_DISCRIMINATOR, Ws as getPauseDepositsWithdrawalsInstructionDataDecoder, Wt as SET_REFERRER_RATE_OVERRIDE_DISCRIMINATOR, Wu as ClearUserWithdrawalTimingOverrideInstructionDataArgs, X as getSetWithdrawalRedemptionScheduleInstruction, Xa as getRefundDepositDiscriminatorBytes, Xc as InitializeBundleMasterAccountAsyncInput, Xd as getApplyFeesToUserInstructionDataDecoder, Xf as ReferrerAccountSeeds, Xh as getOracleDataDiscriminatorBytes, Xi as getRequestDepositInstructionAsync, Xl as parseEndDistributionInstruction, Xm as NTBUNDLE_ERROR__WITHDRAWAL_ALREADY_PROCESSED, Xn as SET_ORACLE_BUFFER_DISCRIMINATOR, Xo as ProcessReferrerWithdrawalInstructionData, Xp as NTBUNDLE_ERROR__INVALID_WITHDRAWAL_DELAY, Xr as getSetFeesInstruction, Xs as NetPendingTransactionsInstruction, Xt as getSetReferrerRateOverrideInstruction, Xu as getClearUserWithdrawalTimingOverrideInstructionDataDecoder, Y as getSetWithdrawalRedemptionScheduleDiscriminatorBytes, Ya as RefundDepositInstructionDataArgs, Yc as INITIALIZE_BUNDLE_MASTER_ACCOUNT_DISCRIMINATOR, Yd as getApplyFeesToUserInstructionDataCodec, Yf as findReferrerUserBundleAccountPda, Yg as getBundleEncoder, Yh as getOracleDataDecoder, Yi as getRequestDepositInstruction, Yl as getEndDistributionInstructionDataEncoder, Ym as NTBUNDLE_ERROR__USER_BUNDLE_ACCOUNT_NOT_EMPTY, Yn as ParsedSetOracleBufferInstruction, Yo as ProcessReferrerWithdrawalInstruction, Yp as NTBUNDLE_ERROR__INVALID_WITHDRAWAL_COOLDOWN_PERIOD, Yr as getSetFeesDiscriminatorBytes, Ys as NetPendingTransactionsInput, Yt as getSetReferrerRateOverrideDiscriminatorBytes, Yu as getClearUserWithdrawalTimingOverrideInstructionDataCodec, Z as getSetWithdrawalRedemptionScheduleInstructionDataCodec, Za as getRefundDepositInstruction, Zc as InitializeBundleMasterAccountInput, Zd as getApplyFeesToUserInstructionDataEncoder, Zf as findReferrerAccountPda, Zh as getOracleDataEncoder, Zi as getRequestDepositInstructionDataCodec, Zl as ENABLE_STRATEGY_DISCRIMINATOR, Zm as NTBUNDLE_ERROR__WITHDRAWAL_DELAY_NOT_MET, Zn as SetOracleBufferInput, Zo as ProcessReferrerWithdrawalInstructionDataArgs, Zp as NTBUNDLE_ERROR__INVALID_WITHDRAWAL_REDEMPTION_SCHEDULE, Zr as getSetFeesInstructionDataCodec, Zs as NetPendingTransactionsInstructionData, Zt as getSetReferrerRateOverrideInstructionDataCodec, Zu as getClearUserWithdrawalTimingOverrideInstructionDataEncoder, _ as UpdateAllocationsAsyncInput, _a as RemoveStrategyAsyncInput, _c as getManagerWithdrawWithSplitInstructionDataCodec, _d as ChangeManagerInstructionDataArgs, _f as NtbundlePluginAccounts, _g as fetchAllMaybeBundleMasterAccount, _h as decodeStrategy, _i as SetBundleCreatorInstruction, _l as getInitializeBundleDepositorInstruction, _m as NTBUNDLE_ERROR__PENDING_DEPOSIT_OR_WITHDRAWAL_EXISTS, _n as SetReferrerActiveInstructionData, _o as PROCESS_WITHDRAWAL_DISCRIMINATOR, _p as NTBUNDLE_ERROR__BUNDLE_IS_PERMISSIONNED, _r as getSetMinDepositAmountInstructionDataEncoder, _s as getProcessDepositInstructionDataEncoder, _t as SetUserReferrerAsyncInput, _u as ParsedDistributeToReceiversInstruction, a as UpdateOracleInstruction, aa as RequestBundleSwitchInstruction, ac as getNetPendingTransactionsInstructionDataEncoder, ad as ParsedClearUserFeeOverrideInstruction, af as ParsedAddStrategyInstruction, ag as fetchBundleTempData, ah as fetchAllMaybeUserBundleAccount, ai as SetDelaysInstructionData, al as getInitializeBundleMasterAccountInstructionDataCodec, am as NTBUNDLE_ERROR__NETTING_NOT_DONE, an as SetReferrerConfigInstructionData, ao as ReferrerRequestWithdrawAsyncInput, ap as findBundleTempDataPda, ar as getSetOracleBufferInstructionDataEncoder, as as PROCESS_DEPOSIT_DISCRIMINATOR, at as SetUserWithdrawalTimingOverrideInstruction, au as getEnableStrategyInstruction, b as UpdateAllocationsInstructionData, ba as RemoveStrategyInstructionData, bc as parseManagerWithdrawWithSplitInstruction, bd as getChangeManagerInstruction, bf as NtbundlePluginRequirements, bg as getBundleMasterAccountCodec, bh as fetchMaybeStrategy, bi as getSetBundleCreatorDiscriminatorBytes, bl as getInitializeBundleDepositorInstructionDataDecoder, bm as NTBUNDLE_ERROR__POD_TOKEN_TOTAL_SUPPLY_ZERO, bn as getSetReferrerActiveInstruction, bo as ProcessWithdrawalInput, bp as NTBUNDLE_ERROR__DEPOSITS_EXTRA_IN_PENDINGS_NOT_ZERO, br as SET_MAX_DEPOSIT_AMOUNT_DISCRIMINATOR, bs as ParsedPerformRefillInstruction, bt as SetUserReferrerInstructionData, bu as getDistributeToReceiversInstructionAsync, c as getUpdateOracleDiscriminatorBytes, ca as getRequestBundleSwitchDiscriminatorBytes, cc as ManagerWithdrawWithSplitAsyncInput, cd as getClearUserFeeOverrideInstructionAsync, cf as getAddStrategyInstructionAsync, cg as getBundleTempDataDecoder, ch as fetchUserBundleAccount, ci as getSetDelaysInstruction, cl as parseInitializeBundleMasterAccountInstruction, cm as NTBUNDLE_ERROR__NO_PENDING_WITHDRAWAL, cn as getSetReferrerConfigInstruction, co as ReferrerRequestWithdrawInstructionData, cp as findBundleCreatorAccountPda, cr as SET_MIN_DEPOSIT_AMOUNT_DISCRIMINATOR, cs as ProcessDepositInput, ct as getSetUserWithdrawalTimingOverrideDiscriminatorBytes, cu as getEnableStrategyInstructionDataDecoder, d as getUpdateOracleInstructionDataCodec, da as getRequestBundleSwitchInstructionDataCodec, dc as ManagerWithdrawWithSplitInstructionData, dd as getClearUserFeeOverrideInstructionDataEncoder, df as getAddStrategyInstructionDataEncoder, dg as getBundleTempDataSize, dh as getUserBundleAccountDiscriminatorBytes, di as getSetDelaysInstructionDataEncoder, dl as InitializeBundleDepositorInput, dm as NTBUNDLE_ERROR__ORACLE_NOT_UPDATED, dn as getSetReferrerConfigInstructionDataEncoder, do as getReferrerRequestWithdrawInstruction, dp as BundleAccountSeeds, dr as SetMinDepositAmountInstructionData, ds as ProcessDepositInstructionDataArgs, dt as getSetUserWithdrawalTimingOverrideInstructionDataCodec, du as DISTRIBUTE_TO_RECEIVERS_DISCRIMINATOR, ea as parseRequestDepositInstruction, ec as getNetPendingTransactionsDiscriminatorBytes, ed as ClearUserFeeOverrideAsyncInput, ef as AddStrategyAsyncInput, eg as BundleTempData, eh as isNtbundleError, ei as parseSetFeesInstruction, el as InitializeBundleMasterAccountInstructionDataArgs, em as NTBUNDLE_ERROR__MATH_ERROR, en as parseSetReferrerRateOverrideInstruction, eo as getRefundDepositInstructionDataDecoder, ep as OracleDataSeeds, er as SetOracleBufferInstructionDataArgs, es as getProcessReferrerWithdrawalInstructionAsync, et as parseSetWithdrawalRedemptionScheduleInstruction, eu as EnableStrategyInstruction, f as getUpdateOracleInstructionDataDecoder, fa as getRequestBundleSwitchInstructionDataDecoder, fc as ManagerWithdrawWithSplitInstructionDataArgs, fd as parseClearUserFeeOverrideInstruction, ff as parseAddStrategyInstruction, fg as BUNDLE_MASTER_ACCOUNT_DISCRIMINATOR, fh as getUserBundleAccountEncoder, fi as parseSetDelaysInstruction, fl as InitializeBundleDepositorInstruction, fm as NTBUNDLE_ERROR__ORACLE_UPDATE_TOO_FREQUENT, fn as parseSetReferrerConfigInstruction, fo as getReferrerRequestWithdrawInstructionAsync, fp as findBundleAccountPda, fr as SetMinDepositAmountInstructionDataArgs, fs as getProcessDepositDiscriminatorBytes, ft as getSetUserWithdrawalTimingOverrideInstructionDataDecoder, fu as DistributeToReceiversAsyncInput, g as UPDATE_ALLOCATIONS_DISCRIMINATOR, ga as REMOVE_STRATEGY_DISCRIMINATOR, gc as getManagerWithdrawWithSplitInstructionAsync, gd as ChangeManagerInstructionData, gf as NtbundlePlugin, gg as fetchAllBundleMasterAccount, gh as StrategyArgs, gi as SetBundleCreatorInput, gl as getInitializeBundleDepositorDiscriminatorBytes, gm as NTBUNDLE_ERROR__PENDING_DEPOSIT_EXISTS, gn as SetReferrerActiveInstruction, go as parseReferrerRequestWithdrawInstruction, gp as NTBUNDLE_ERROR__AMOUNT_MUST_BE_BELOW_MAX, gr as getSetMinDepositAmountInstructionDataDecoder, gs as getProcessDepositInstructionDataDecoder, gt as SET_USER_REFERRER_DISCRIMINATOR, gu as DistributeToReceiversInstructionDataArgs, h as ParsedUpdateAllocationsInstruction, ha as ParsedRemoveStrategyInstruction, hc as getManagerWithdrawWithSplitInstruction, hd as ChangeManagerInstruction, hf as NtbundleInstruction, hg as decodeBundleMasterAccount, hh as Strategy, hi as SetBundleCreatorAsyncInput, hl as ParsedInitializeBundleDepositorInstruction, hm as NTBUNDLE_ERROR__PENDING_DEPOSIT_AMOUNT_ZERO, hn as SetReferrerActiveInput, ho as getReferrerRequestWithdrawInstructionDataEncoder, hp as NTBUNDLE_ERROR__ALLOCATION_BPS_IS_ZERO, hr as getSetMinDepositAmountInstructionDataCodec, hs as getProcessDepositInstructionDataCodec, ht as ParsedSetUserReferrerInstruction, hu as DistributeToReceiversInstructionData, i as UpdateOracleInput, ia as RequestBundleSwitchInput, ic as getNetPendingTransactionsInstructionDataDecoder, id as ClearUserFeeOverrideInstructionDataArgs, if as AddStrategyInstructionDataArgs, ig as fetchAllMaybeBundleTempData, ih as decodeUserBundleAccount, ii as SetDelaysInstruction, il as getInitializeBundleMasterAccountInstructionAsync, im as NTBUNDLE_ERROR__NETTING_ALREADY_DONE, in as SetReferrerConfigInstruction, io as REFERRER_REQUEST_WITHDRAW_DISCRIMINATOR, ip as BundleTempDataSeeds, ir as getSetOracleBufferInstructionDataDecoder, is as parseProcessReferrerWithdrawalInstruction, it as SetUserWithdrawalTimingOverrideInput, iu as getEnableStrategyDiscriminatorBytes, j as StartDistributionAsyncInput, ja as RegisterReferrerAsyncInput, jc as getManagerWithdrawInstructionDataCodec, jd as ParsedChangeBundleMasterAdminInstruction, jf as findTargetPendingBundleAssetAuthorityPda, jg as fetchBundleCreatorAccount, jh as fetchAllMaybeReferrerAccount, ji as RequestWithdrawalInstruction, jl as getInitializeBundleInstruction, jm as NTBUNDLE_ERROR__REFILL_AMOUNT_EXCEEDED, jn as getSetOracleUpdateTimeLimitDiscriminatorBytes, jo as PROCESS_SWITCH_DISCRIMINATOR, jp as NTBUNDLE_ERROR__INSUFFICIENT_BUNDLE_BALANCE, jr as ParsedSetKeeperInstruction, js as getPerformRefillInstructionDataEncoder, jt as SetUserFeeOverrideAsyncInput, ju as ParsedCloseUserBundleAccountInstruction, k as ParsedStartDistributionInstruction, ka as ParsedRegisterReferrerInstruction, kc as getManagerWithdrawInstruction, kd as ChangeBundleMasterAdminInstructionData, kf as findTargetUserBundleAccountPda, kg as fetchAllBundleCreatorAccount, kh as ReferrerAccountArgs, ki as RequestWithdrawalAsyncInput, kl as ParsedInitializeBundleInstruction, km as NTBUNDLE_ERROR__REFERRER_DEPOSIT_TOO_LOW, kn as SetOracleUpdateTimeLimitInstructionData, ko as getProcessWithdrawalInstructionDataEncoder, kp as NTBUNDLE_ERROR__EXCESSIVE_PERFORMANCE_FEE, kr as getSetMaxDepositAmountInstructionDataEncoder, ks as getPerformRefillInstructionDataCodec, kt as ParsedSetUserFeeOverrideInstruction, ku as CloseUserBundleAccountInstructionData, l as getUpdateOracleInstruction, la as getRequestBundleSwitchInstruction, lc as ManagerWithdrawWithSplitInput, ld as getClearUserFeeOverrideInstructionDataCodec, lf as getAddStrategyInstructionDataCodec, lg as getBundleTempDataDiscriminatorBytes, lh as getUserBundleAccountCodec, li as getSetDelaysInstructionDataCodec, ll as INITIALIZE_BUNDLE_DEPOSITOR_DISCRIMINATOR, lm as NTBUNDLE_ERROR__NO_USER_FEE_OVERRIDE_TO_CLEAR, ln as getSetReferrerConfigInstructionDataCodec, lo as ReferrerRequestWithdrawInstructionDataArgs, lp as BundleAssetAuthoritySeeds, lr as SetMinDepositAmountInput, ls as ProcessDepositInstruction, lt as getSetUserWithdrawalTimingOverrideInstruction, lu as getEnableStrategyInstructionDataEncoder, m as parseUpdateOracleInstruction, ma as parseRequestBundleSwitchInstruction, mc as getManagerWithdrawWithSplitDiscriminatorBytes, md as ChangeManagerInput, mf as NtbundleAccount, mg as BundleMasterAccountArgs, mh as STRATEGY_DISCRIMINATOR, mi as SET_BUNDLE_CREATOR_DISCRIMINATOR, ml as InitializeBundleDepositorInstructionDataArgs, mm as NTBUNDLE_ERROR__PAYER_NOT_AUTHORITY, mn as SET_REFERRER_ACTIVE_DISCRIMINATOR, mo as getReferrerRequestWithdrawInstructionDataDecoder, mp as NTBUNDLE_ERROR__ALLOCATION_BPS_GREATER_THAN_GLOBAL_ALLOCATION_BPS, mr as getSetMinDepositAmountInstruction, ms as getProcessDepositInstructionAsync, mt as parseSetUserWithdrawalTimingOverrideInstruction, mu as DistributeToReceiversInstruction, n as UPDATE_ORACLE_DISCRIMINATOR, na as REQUEST_BUNDLE_SWITCH_DISCRIMINATOR, nc as getNetPendingTransactionsInstructionAsync, nd as ClearUserFeeOverrideInstruction, nf as AddStrategyInstruction, ng as decodeBundleTempData, nh as UserBundleAccount, ni as SET_DELAYS_DISCRIMINATOR, nl as getInitializeBundleMasterAccountDiscriminatorBytes, nm as NTBUNDLE_ERROR__MIN_DEPOSIT_AMOUNT_NOT_MET, nn as SET_REFERRER_CONFIG_DISCRIMINATOR, no as parseRefundDepositInstruction, np as CloseUserBundleAccountUserBundleAccountSeeds, nr as getSetOracleBufferInstruction, ns as getProcessReferrerWithdrawalInstructionDataDecoder, nt as SET_USER_WITHDRAWAL_TIMING_OVERRIDE_DISCRIMINATOR, nu as EnableStrategyInstructionDataArgs, o as UpdateOracleInstructionData, oa as RequestBundleSwitchInstructionData, oc as parseNetPendingTransactionsInstruction, od as getClearUserFeeOverrideDiscriminatorBytes, of as getAddStrategyDiscriminatorBytes, og as fetchMaybeBundleTempData, oh as fetchAllUserBundleAccount, oi as SetDelaysInstructionDataArgs, ol as getInitializeBundleMasterAccountInstructionDataDecoder, om as NTBUNDLE_ERROR__NO_PENDING_SWITCH, on as SetReferrerConfigInstructionDataArgs, oo as ReferrerRequestWithdrawInput, op as findBundleMasterAccountPda, or as parseSetOracleBufferInstruction, os as ParsedProcessDepositInstruction, ot as SetUserWithdrawalTimingOverrideInstructionData, ou as getEnableStrategyInstructionAsync, p as getUpdateOracleInstructionDataEncoder, pa as getRequestBundleSwitchInstructionDataEncoder, pc as ParsedManagerWithdrawWithSplitInstruction, pd as CHANGE_MANAGER_DISCRIMINATOR, pf as NTBUNDLE_PROGRAM_ADDRESS, pg as BundleMasterAccount, ph as getUserBundleAccountSize, pi as ParsedSetBundleCreatorInstruction, pl as InitializeBundleDepositorInstructionData, pm as NTBUNDLE_ERROR__PAUSED_DEPOSITS_WITHDRAWALS, pn as ParsedSetReferrerActiveInstruction, po as getReferrerRequestWithdrawInstructionDataCodec, pp as NTBUNDLE_ERROR__ALLOCATION_AMOUNT_ZERO, pr as getSetMinDepositAmountDiscriminatorBytes, ps as getProcessDepositInstruction, pt as getSetUserWithdrawalTimingOverrideInstructionDataEncoder, pu as DistributeToReceiversInput, q as SetWithdrawalRedemptionScheduleInstructionData, qa as RefundDepositInstruction, qc as getInitializePermissionedBundleDepositorInstructionDataEncoder, qd as getApplyFeesToUserInstruction, qf as findRequestBundleSwitchUserBundleAccountPda, qg as getBundleDecoder, qh as fetchOracleData, qi as RequestDepositInstructionDataArgs, ql as getEndDistributionInstructionDataCodec, qm as NTBUNDLE_ERROR__UNPAUSED_DEPOSITS_WITHDRAWALS, qn as getSetOracleMaxAgeInstructionDataEncoder, qo as ProcessReferrerWithdrawalAsyncInput, qp as NTBUNDLE_ERROR__INVALID_USER_WITHDRAWAL_TIMING_CONFIG, qr as SetFeesInstructionData, qs as NET_PENDING_TRANSACTIONS_DISCRIMINATOR, qt as SetReferrerRateOverrideInstructionData, qu as getClearUserWithdrawalTimingOverrideInstruction, r as UpdateOracleAsyncInput, ra as RequestBundleSwitchAsyncInput, rc as getNetPendingTransactionsInstructionDataCodec, rd as ClearUserFeeOverrideInstructionData, rf as AddStrategyInstructionData, rg as fetchAllBundleTempData, rh as UserBundleAccountArgs, ri as SetDelaysInput, rl as getInitializeBundleMasterAccountInstruction, rm as NTBUNDLE_ERROR__MUST_BE_IN_WHITELIST, rn as SetReferrerConfigInput, ro as ParsedReferrerRequestWithdrawInstruction, rp as findCloseUserBundleAccountUserBundleAccountPda, rr as getSetOracleBufferInstructionDataCodec, rs as getProcessReferrerWithdrawalInstructionDataEncoder, rt as SetUserWithdrawalTimingOverrideAsyncInput, ru as ParsedEnableStrategyInstruction, s as UpdateOracleInstructionDataArgs, sa as RequestBundleSwitchInstructionDataArgs, sc as MANAGER_WITHDRAW_WITH_SPLIT_DISCRIMINATOR, sd as getClearUserFeeOverrideInstruction, sf as getAddStrategyInstruction, sg as getBundleTempDataCodec, sh as fetchMaybeUserBundleAccount, si as getSetDelaysDiscriminatorBytes, sl as getInitializeBundleMasterAccountInstructionDataEncoder, sm as NTBUNDLE_ERROR__NO_PENDING_TRANSACTIONS, sn as getSetReferrerConfigDiscriminatorBytes, so as ReferrerRequestWithdrawInstruction, sp as BundleCreatorAccountSeeds, sr as ParsedSetMinDepositAmountInstruction, ss as ProcessDepositAsyncInput, st as SetUserWithdrawalTimingOverrideInstructionDataArgs, su as getEnableStrategyInstructionDataCodec, t as ParsedUpdateOracleInstruction, ta as ParsedRequestBundleSwitchInstruction, tc as getNetPendingTransactionsInstruction, td as ClearUserFeeOverrideInput, tf as AddStrategyInput, tg as BundleTempDataArgs, th as USER_BUNDLE_ACCOUNT_DISCRIMINATOR, ti as ParsedSetDelaysInstruction, tl as ParsedInitializeBundleMasterAccountInstruction, tm as NTBUNDLE_ERROR__MAX_DEPOSIT_AMOUNT_EXCEEDED, tn as ParsedSetReferrerConfigInstruction, to as getRefundDepositInstructionDataEncoder, tp as findOracleDataPda, tr as getSetOracleBufferDiscriminatorBytes, ts as getProcessReferrerWithdrawalInstructionDataCodec, tt as ParsedSetUserWithdrawalTimingOverrideInstruction, tu as EnableStrategyInstructionData, u as getUpdateOracleInstructionAsync, ua as getRequestBundleSwitchInstructionAsync, uc as ManagerWithdrawWithSplitInstruction, ud as getClearUserFeeOverrideInstructionDataDecoder, uf as getAddStrategyInstructionDataDecoder, ug as getBundleTempDataEncoder, uh as getUserBundleAccountDecoder, ui as getSetDelaysInstructionDataDecoder, ul as InitializeBundleDepositorAsyncInput, um as NTBUNDLE_ERROR__NO_USER_WITHDRAWAL_TIMING_OVERRIDE_TO_CLEAR, un as getSetReferrerConfigInstructionDataDecoder, uo as getReferrerRequestWithdrawDiscriminatorBytes, up as findBundleAssetAuthorityPda, ur as SetMinDepositAmountInstruction, us as ProcessDepositInstructionData, ut as getSetUserWithdrawalTimingOverrideInstructionAsync, uu as parseEnableStrategyInstruction, v as UpdateAllocationsInput, va as RemoveStrategyInput, vc as getManagerWithdrawWithSplitInstructionDataDecoder, vd as ParsedChangeManagerInstruction, vf as NtbundlePluginInstructions, vg as fetchBundleMasterAccount, vh as fetchAllMaybeStrategy, vi as SetBundleCreatorInstructionData, vl as getInitializeBundleDepositorInstructionAsync, vm as NTBUNDLE_ERROR__PENDING_TRANSACTIONS_EXIST, vn as SetReferrerActiveInstructionDataArgs, vo as ParsedProcessWithdrawalInstruction, vp as NTBUNDLE_ERROR__BUNDLE_NOT_PERMISSIONNED, vr as parseSetMinDepositAmountInstruction, vs as parseProcessDepositInstruction, vt as SetUserReferrerInput, vu as getDistributeToReceiversDiscriminatorBytes, w as getUpdateAllocationsInstructionAsync, wa as getRemoveStrategyInstructionAsync, wc as ManagerWithdrawInstruction, wd as parseChangeManagerInstruction, wf as ntbundleProgram, wg as getBundleMasterAccountSize, wh as getStrategyDiscriminatorBytes, wi as getSetBundleCreatorInstructionDataDecoder, wl as InitializeBundleAsyncInput, wm as NTBUNDLE_ERROR__REDEMPTION_AMOUNT_ZERO, wn as parseSetReferrerActiveInstruction, wo as getProcessWithdrawalDiscriminatorBytes, wp as NTBUNDLE_ERROR__EMPTY_USER_FEE_CLEAR_REQUEST, wr as SetMaxDepositAmountInstructionDataArgs, ws as PerformRefillInstructionData, wt as getSetUserReferrerInstructionAsync, wu as parseDistributeToReceiversInstruction, x as UpdateAllocationsInstructionDataArgs, xa as RemoveStrategyInstructionDataArgs, xc as MANAGER_WITHDRAW_DISCRIMINATOR, xd as getChangeManagerInstructionDataCodec, xf as ParsedNtbundleInstruction, xg as getBundleMasterAccountDecoder, xh as fetchStrategy, xi as getSetBundleCreatorInstruction, xl as getInitializeBundleDepositorInstructionDataEncoder, xm as NTBUNDLE_ERROR__RAW_TRANSFER_RECEIVER, xn as getSetReferrerActiveInstructionDataCodec, xo as ProcessWithdrawalInstruction, xp as NTBUNDLE_ERROR__DEPOSIT_AMOUNT_ZERO, xr as SetMaxDepositAmountInput, xs as PerformRefillAsyncInput, xt as SetUserReferrerInstructionDataArgs, xu as getDistributeToReceiversInstructionDataCodec, y as UpdateAllocationsInstruction, ya as RemoveStrategyInstruction, yc as getManagerWithdrawWithSplitInstructionDataEncoder, yd as getChangeManagerDiscriminatorBytes, yf as NtbundlePluginPdas, yg as fetchMaybeBundleMasterAccount, yh as fetchAllStrategy, yi as SetBundleCreatorInstructionDataArgs, yl as getInitializeBundleDepositorInstructionDataCodec, ym as NTBUNDLE_ERROR__PENDING_WITHDRAWAL_EXISTS, yn as getSetReferrerActiveDiscriminatorBytes, yo as ProcessWithdrawalAsyncInput, yp as NTBUNDLE_ERROR__CALLER_NOT_NEUTRAL_FEE_INCREMENTER, yr as ParsedSetMaxDepositAmountInstruction, ys as PERFORM_REFILL_DISCRIMINATOR, yt as SetUserReferrerInstruction, yu as getDistributeToReceiversInstruction, z as getStartDistributionInstructionDataCodec, za as getRegisterReferrerInstructionDataCodec, zc as InitializePermissionedBundleDepositorInstructionData, zd as APPLY_FEES_TO_USER_DISCRIMINATOR, zf as findSourceUserBundleAccountPda, zg as Bundle, zh as getReferrerAccountSize, zi as getRequestWithdrawalInstructionDataEncoder, zl as EndDistributionInput, zm as NTBUNDLE_ERROR__SWITCH_TARGET_SAME_AS_SOURCE, zn as SetOracleMaxAgeInput, zo as getProcessSwitchInstruction, zp as NTBUNDLE_ERROR__INVALID_ORACLE_BUFFER, zr as getSetKeeperInstructionDataCodec, zs as PauseDepositsWithdrawalsInstructionDataArgs, zt as getSetUserFeeOverrideInstructionDataCodec, zu as CLEAR_USER_WITHDRAWAL_TIMING_OVERRIDE_DISCRIMINATOR } from "./index-CCGD4ixE.mjs";
2
+ import { z } from "zod";
3
+ import { Address, GetAccountInfoApi, GetMultipleAccountsApi, GetProgramAccountsApi, Instruction, ProgramDerivedAddress, Rpc, TransactionSigner } from "@solana/kit";
5
4
 
6
- //#region src/constants/client.d.ts
7
- declare function createDummyWallet(): Wallet;
5
+ //#region src/constants/programs.d.ts
6
+ type BundleCluster = 'mainnet' | 'devnet';
7
+ declare const DEFAULT_BUNDLE_PROGRAM_ID_MAINNET = "BUNDDh4P5XviMm1f3gCvnq2qKx6TGosAGnoUK12e7cXU";
8
+ /**
9
+ * Secondary mainnet ntbundle program id used by vaults that explicitly select it.
10
+ */
11
+ declare const BUNDLE_PROGRAM_ID_V2_MAINNET = "BUNDeH5A4c47bcEoAjBhN3sCjLgYnRsmt9ibMztqVkC9";
12
+ declare const DEFAULT_BUNDLE_PROGRAM_ID_DEVNET = "CcR9whVnaW3STx6LLYotwy5JJXmnC8KDjtRotA3NCL8v";
13
+ declare function getDefaultBundleProgramIdByCluster(cluster?: BundleCluster): string;
14
+ declare const ALLOWLISTED_BUNDLE_PROGRAM_IDS_BY_CLUSTER: Record<BundleCluster, readonly string[]>;
15
+ declare function isAllowlistedBundleProgramId(programId: string, cluster: BundleCluster): boolean;
16
+ declare function assertAllowlistedBundleProgramId(programId: string, cluster: BundleCluster): void;
17
+ //#endregion
18
+ //#region src/constants/vault-ids.devnet.d.ts
19
+ /**
20
+ * Vault ID constants (DevnetVaultId)
21
+ * Auto-generated from the vault registry JSON.
22
+ */
23
+ declare enum DevnetVaultId {
24
+ /** bundle-1 */
25
+ bundle_1_100000002 = 100000002,
26
+ /** bundle-2 */
27
+ bundle_2_100000003 = 100000003,
28
+ /** bundle-4 */
29
+ bundle_4_100000004 = 100000004,
30
+ /** bundle-5 */
31
+ bundle_5_100000005 = 100000005,
32
+ /** bundle-6 */
33
+ bundle_6_100000006 = 100000006,
34
+ /** bundle-7 */
35
+ bundle_7_100000007 = 100000007,
36
+ /** bundle-8 */
37
+ bundle_8_100000008 = 100000008,
38
+ /** bundle-9 */
39
+ bundle_9_100000009 = 100000009,
40
+ }
8
41
  //#endregion
9
42
  //#region src/constants/vault-ids.d.ts
10
43
  /**
@@ -12,6 +45,8 @@ declare function createDummyWallet(): Wallet;
12
45
  * Auto-generated from the vault registry JSON.
13
46
  */
14
47
  declare enum VaultId {
48
+ /** Nexus-USDC-Bundle */
49
+ nexus_usdc_bundle_82 = 82,
15
50
  /** Ethereal-USDE-Bundle */
16
51
  ethereal_usde_bundle_81 = 81,
17
52
  /** Options-MM-Z */
@@ -178,231 +213,356 @@ declare enum VaultId {
178
213
  jlp_delta_neutral_vault_1_0 = 0,
179
214
  }
180
215
  //#endregion
181
- //#region src/constants/vault-ids.devnet.d.ts
216
+ //#region src/types/tokens.d.ts
217
+ declare enum SupportedChain {
218
+ Solana = "Solana",
219
+ Hyperliquid = "Hyperliquid",
220
+ }
221
+ declare enum SupportedToken {
222
+ USDC = "USDC",
223
+ USDT = "USDT",
224
+ USDE = "USDE",
225
+ SOL = "SOL",
226
+ WBTC = "WBTC",
227
+ WETH = "WETH",
228
+ JLP = "JLP",
229
+ }
230
+ interface Token {
231
+ name: string;
232
+ symbol: string;
233
+ onChain: { [chain in SupportedChain]: {
234
+ address: string;
235
+ decimals: number;
236
+ } | null };
237
+ }
238
+ declare const tokens: { [name in SupportedToken]: Token };
182
239
  /**
183
- * Vault ID constants (DevnetVaultId)
184
- * Auto-generated from the vault registry JSON.
240
+ * Solana mint address for a supported token, keyed by bundle cluster.
241
+ * Devnet USDC uses the team mock mint; other tokens use mainnet table until devnet overrides exist.
185
242
  */
186
- declare enum DevnetVaultId {
187
- /** bundle-1 */
188
- bundle_1_100000002 = 100000002,
189
- /** bundle-2 */
190
- bundle_2_100000003 = 100000003,
191
- /** bundle-4 */
192
- bundle_4_100000004 = 100000004,
193
- /** bundle-5 */
194
- bundle_5_100000005 = 100000005,
195
- /** bundle-6 */
196
- bundle_6_100000006 = 100000006,
197
- /** bundle-7 */
198
- bundle_7_100000007 = 100000007,
199
- /** bundle-8 */
200
- bundle_8_100000008 = 100000008,
201
- /** bundle-9 */
202
- bundle_9_100000009 = 100000009,
243
+ declare function getSolanaTokenMint(token: SupportedToken, cluster?: BundleCluster): string;
244
+ /** SPL decimals for `token` (same on mainnet vs devnet for current overrides). */
245
+ declare function getSolanaTokenDecimals(token: SupportedToken): number;
246
+ //#endregion
247
+ //#region src/types/vault-types.d.ts
248
+ declare enum VaultType {
249
+ Drift = "Drift",
250
+ Bundle = "Bundle",
251
+ Hyperliquid = "Hyperliquid",
252
+ Kamino = "Kamino",
253
+ }
254
+ declare enum VaultCategory {
255
+ marketNeutral = "Market Neutral",
256
+ directional = "Directional",
257
+ etf = "Index",
258
+ bet = "Bet",
259
+ savings = "Savings",
260
+ privateCredit = "Private Credit",
261
+ airdropFarming = "Airdrop Farming",
262
+ yieldEnhancement = "Yield Enhancement",
263
+ fundOfFund = "Master Vault",
264
+ }
265
+ /** Raw vault entry from registry JSON */
266
+ interface VaultRegistryEntry {
267
+ vaultId: number;
268
+ name: string;
269
+ subname?: string;
270
+ type: VaultType;
271
+ category: VaultCategory;
272
+ vaultAddress: string;
273
+ depositToken: SupportedToken;
274
+ /** Optional Drift program ID (only for Drift vaults with non-default program) */
275
+ driftProgramId?: string;
276
+ /** Optional Bundle program ID. If omitted, SDK uses cluster default bundle program ID. */
277
+ bundleProgramId?: string;
278
+ /** Points: eTVL multiplier (default 1) */
279
+ pointsMultiplier?: number;
280
+ /** Points: include in points calculation (default true) */
281
+ pointsEnabled?: boolean;
203
282
  }
283
+ /** Registry entry after cluster-specific program ids have been resolved. */
284
+ type VaultConfig = Omit<VaultRegistryEntry, 'bundleProgramId' | 'driftProgramId'> & {
285
+ bundleProgramId: string | undefined;
286
+ driftProgramId: string | undefined;
287
+ };
288
+ /** Vault registry as a record keyed by vaultId */
289
+ type VaultRegistry = Record<number, VaultConfig>;
204
290
  //#endregion
205
- //#region src/utils/amount-raw.d.ts
291
+ //#region src/constants/vaults.d.ts
206
292
  /**
207
- * Parse `amountRaw`: base-10 digits only, smallest token units (same scale as SPL `amount`).
208
- * @throws Error with message `INVALID_AMOUNT_RAW` on invalid input
293
+ * Get Bundle Program ID for a vault config
294
+ * Uses registry value if present, otherwise falls back to cluster default.
209
295
  */
210
- declare function parseAmountRawToBigInt(amountRaw: string): bigint;
296
+ declare function getBundleProgramId(vault: VaultRegistryEntry, cluster?: BundleCluster): string | undefined;
211
297
  /**
212
- * Legacy UI path: finite `human` × 10^`decimals`, rounded to nearest integer token unit.
213
- * Prefer integrators sending `amountRaw` from a decimal string instead of this helper.
214
- * @throws Error with message `INVALID_HUMAN_AMOUNT` when out of range or non-finite
298
+ * Get Drift Program ID for a vault config.
299
+ * Uses registry value if present, otherwise defaults to VAULT_PROGRAM_ID
215
300
  */
216
- declare function humanFloatToAmountRawString(human: number, decimals: number): string;
217
- //#endregion
218
- //#region src/utils/bundle.d.ts
301
+ declare function getDriftProgramId(vault: VaultRegistryEntry): string | undefined;
219
302
  /**
220
- * Estimated unpaid bundle fees in deposit token (mgmt + performance), matching on-chain `charge_user_fees`.
303
+ * Transform a registry entry to VaultConfig with program IDs
304
+ * - Drift vaults get driftProgramId
305
+ * - Bundle vaults get bundleProgramId (registry value or cluster default via {@link getBundleProgramId})
221
306
  */
222
- declare function estimatePendingBundleFeeToken({
223
- oracleData,
224
- bundleData,
225
- userBundle,
226
- assetDecimals,
227
- nowUnixSeconds
228
- }: {
229
- oracleData: OracleData;
230
- bundleData: BundleAccount;
231
- userBundle: UserBundleAccount;
232
- assetDecimals: number;
233
- nowUnixSeconds?: number;
234
- }): number;
307
+ declare function toVaultConfig(entry: VaultRegistryEntry, cluster?: BundleCluster): VaultConfig;
308
+ /**
309
+ * Transform an array of registry entries to VaultRegistry
310
+ * @param entries Registry entries to transform
311
+ * @param cluster Used to resolve default bundle program id when `bundleProgramId` is omitted in JSON
312
+ */
313
+ declare function toVaultRegistry(entries: VaultRegistryEntry[], cluster?: BundleCluster): VaultRegistry;
314
+ /** Mainnet registry (default; backward compatible). */
315
+ declare const vaults: VaultRegistry;
316
+ /** Devnet-only vault registry (fixtures / local testing). */
317
+ declare const vaultsDevnet: VaultRegistry;
318
+ declare function getVaultRegistry(cluster: BundleCluster): VaultRegistry;
319
+ declare function isValidVaultAddress(address: string, cluster?: BundleCluster): boolean;
320
+ declare function getVaultByAddress(address: string, cluster?: BundleCluster): VaultRegistryEntry | undefined;
321
+ declare function getVaultById(vaultId: number, cluster?: BundleCluster): VaultRegistryEntry | undefined;
235
322
  //#endregion
236
- //#region src/utils/bundle-fee-override.d.ts
237
- /** Mirrors `bundle-sc` `FEE_OVERRIDE_*` bit flags. */
238
- declare const FEE_OVERRIDE: {
239
- readonly DEPOSIT: number;
240
- readonly WITHDRAWAL: number;
241
- readonly PERFORMANCE: number;
242
- readonly MANAGEMENT: number;
243
- readonly ALL: number;
244
- };
245
- interface EffectiveFeeBps {
246
- depositFeeBps: number;
247
- withdrawalFeeBps: number;
248
- performanceFeeBps: number;
249
- managementFeeBps: number;
250
- }
251
- /** Normalized per-user fee override fields (bps + flag mask). */
252
- interface UserFeeOverrideFields {
253
- feeOverrideFlags: number;
254
- customDepositFeeBps: number;
255
- customWithdrawalFeeBps: number;
256
- customPerformanceFeeBps: number;
257
- customManagementFeeBps: number;
258
- }
259
- /** Decimal fees matching frontend `VaultConfig` (`0.01` = 1%). */
260
- interface EffectiveVaultFeeDecimals {
261
- dfee: number;
262
- wfee: number;
263
- pfee: number;
264
- mfee: number;
323
+ //#region src/constants/points-vaults.d.ts
324
+ /** Points-ready vault entry (no full Token - consumer resolves depositToken) */
325
+ interface PointsVaultEntry {
326
+ vaultId: number;
327
+ name: string;
328
+ address: string;
329
+ depositToken: string;
330
+ type: VaultType;
331
+ multiplier: number;
332
+ enabled: boolean;
333
+ bundleProgramId?: string;
265
334
  }
266
- declare function bpsToFeeDecimal(bps: number): number;
267
- declare function feeDecimalToBps(decimal: number): number;
268
- declare function bpsToPercentLabel(bps: number): string;
269
- declare function hasFeeOverrideFlag(flags: number, bit: number): boolean;
270
- declare function buildFeeOverrideMask(flags: {
271
- deposit?: boolean;
272
- withdrawal?: boolean;
273
- performance?: boolean;
274
- management?: boolean;
275
- }): number;
276
- declare function formatFeeOverrideFlags(flags: number): string;
277
- declare function readUserFeeOverrideFields(account: Record<string, unknown>): UserFeeOverrideFields;
278
- declare function vaultFeeDecimalsToBps(fees: EffectiveVaultFeeDecimals): EffectiveFeeBps;
279
- declare function effectiveFeeBpsToDecimals(fees: EffectiveFeeBps): EffectiveVaultFeeDecimals;
280
335
  /**
281
- * Apply per-user fee override flags onto default bps (bundle or vault-config defaults).
336
+ * Get vaults that earn points, filtered by pointsEnabled !== false.
337
+ * Returns entries ready for points backend consumption.
282
338
  */
283
- declare function resolveEffectiveFeeBpsFromDefaults(defaults: EffectiveFeeBps, user: UserFeeOverrideFields): EffectiveFeeBps;
339
+ declare function getPointsVaults(registry: VaultRegistry): PointsVaultEntry[];
340
+ //#endregion
341
+ //#region src/extensions/ata.d.ts
284
342
  /**
285
- * Mirror on-chain `resolve_effective_fees`. Returns fee rates in bps.
343
+ * SPL Associated Token Account program. Codama cannot derive PDAs owned by an
344
+ * external program, so this helper is hand-written. It mirrors the hardcoded
345
+ * derivation the generated `requestDeposit` builder performs internally for
346
+ * the pending-deposit token account.
286
347
  */
287
- declare function resolveEffectiveFeeBps(bundle: BundleAccount, user: UserBundleAccount): EffectiveFeeBps;
348
+ declare const ASSOCIATED_TOKEN_PROGRAM_ADDRESS: Address<"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL">;
349
+ declare const TOKEN_PROGRAM_ADDRESS: Address<"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA">;
288
350
  /**
289
- * Resolve effective fees for UI vault config defaults + optional user bundle account.
290
- * Returns decimal fees (`0.01` = 1%).
351
+ * Derives the associated token account for `owner` and `mint`.
352
+ * Works for PDA owners as well (the derivation is curve-agnostic).
291
353
  */
292
- declare function resolveEffectiveVaultFees(vaultDefaults: EffectiveVaultFeeDecimals, user?: UserBundleAccount | null): EffectiveVaultFeeDecimals;
293
- declare function hasAnyFeeOverride(user?: UserBundleAccount | null): boolean;
294
- declare function hasCustomFeeRate(effectiveFees: EffectiveVaultFeeDecimals, vaultDefaults: EffectiveVaultFeeDecimals): boolean;
295
- declare function computeDepositFeePreview(grossAmount: number, depositFeeDecimal: number): {
296
- feeAmount: number;
297
- netAmount: number;
354
+ declare function findAssociatedTokenPda(seeds: {
355
+ owner: Address;
356
+ mint: Address;
357
+ tokenProgram?: Address;
358
+ }): Promise<ProgramDerivedAddress>;
359
+ //#endregion
360
+ //#region src/extensions/fees.d.ts
361
+ /** Mirrors `FEE_OVERRIDE_DEPOSIT` in `constants.rs:15`. */
362
+ declare const FEE_OVERRIDE_DEPOSIT: number;
363
+ /** Mirrors `FEE_OVERRIDE_WITHDRAWAL` in `constants.rs:16`. */
364
+ declare const FEE_OVERRIDE_WITHDRAWAL: number;
365
+ /** Mirrors `FEE_OVERRIDE_PERFORMANCE` in `constants.rs:17`. */
366
+ declare const FEE_OVERRIDE_PERFORMANCE: number;
367
+ /** Mirrors `FEE_OVERRIDE_MANAGEMENT` in `constants.rs:18`. */
368
+ declare const FEE_OVERRIDE_MANAGEMENT: number;
369
+ /** Result shape from `resolve_effective_fees` at `bundle.rs:433-457`. */
370
+ type EffectiveFees = {
371
+ depositFeeBps: number;
372
+ withdrawalFeeBps: number;
373
+ performanceFeeBps: number;
374
+ managementFeeBps: number;
298
375
  };
299
- /** Same linear preview as deposit: fee = gross × rate, net = gross − fee. */
300
- declare function computeWithdrawFeePreview(grossAmount: number, withdrawalFeeDecimal: number): {
301
- feeAmount: number;
302
- netAmount: number;
376
+ /** Mirrors `resolve_effective_fees` at `bundle.rs:433-457`, including zero-valued overrides. */
377
+ declare function resolveEffectiveFees(bundle: Pick<Bundle, "depositFee" | "withdrawalFee" | "performanceFee" | "managementFeeBps">, user: Pick<UserBundleAccount, "feeOverrideFlags" | "customDepositFeeBps" | "customWithdrawalFeeBps" | "customPerformanceFeeBps" | "customManagementFeeBps">): EffectiveFees;
378
+ /** Read-only result corresponding to `ChargedUserFees` returned at `bundle.rs:842-850`. */
379
+ type PendingFeeEstimate = {
380
+ managementFeeShares: bigint;
381
+ performanceFeeShares: bigint;
382
+ totalFeeShares: bigint;
383
+ feeValueRaw: bigint;
384
+ sharePrice: bigint;
303
385
  };
386
+ /**
387
+ * Estimates the user-share deductions in `charge_user_fees` at
388
+ * `bundle.rs:653-851`. Referral handling at `bundle.rs:767-800` is omitted
389
+ * because it only divides the same deducted shares between manager and
390
+ * referrer. If `assetPrecision` is zero, this helper returns a zero fee value;
391
+ * the Rust function reports a division error at `bundle.rs:829-834`.
392
+ */
393
+ declare function estimatePendingUserFees(args: {
394
+ bundle: Pick<Bundle, "depositFee" | "withdrawalFee" | "performanceFee" | "managementFeeBps" | "assetPrecision" | "bundleUnderlyingBalance" | "totalShares">;
395
+ oracleData: Pick<OracleData, "averageExternalEquity">;
396
+ userBundle: Pick<UserBundleAccount, "shares" | "hwmPerShare" | "lastManagementFeeTimestamp" | "feeOverrideFlags" | "customDepositFeeBps" | "customWithdrawalFeeBps" | "customPerformanceFeeBps" | "customManagementFeeBps">;
397
+ nowUnixSeconds: number | bigint;
398
+ }): PendingFeeEstimate;
304
399
  //#endregion
305
- //#region src/utils/request-withdraw-shares.d.ts
400
+ //#region src/extensions/rpc.d.ts
401
+ type GetAccountInfoRpc = Rpc<GetAccountInfoApi>;
402
+ type GetMultipleAccountsRpc = Rpc<GetMultipleAccountsApi>;
403
+ type GetProgramAccountsRpc = Rpc<GetProgramAccountsApi>;
306
404
  /**
307
- * Shares to burn for `requestWithdrawal`, from integer token raw and on-chain totals.
308
- * Full position: pass `amountRaw >= userTokenRaw` where `userTokenRaw = (userShares * totalEquity) / totalShares`.
405
+ * Combined RPC interface used by the higher-level extension helpers.
406
+ * The generated single-account fetchers use `getAccountInfo`; the generated
407
+ * batch fetchers (`fetchAllMaybe*`) use `getMultipleAccounts`.
309
408
  */
310
- declare function computeRequestWithdrawalSharesFromAmountRaw({
311
- amountRaw,
312
- userShares,
313
- totalEquity,
314
- totalShares
315
- }: {
316
- amountRaw: bigint;
317
- userShares: BN;
318
- totalEquity: bigint;
319
- totalShares: bigint;
320
- }): BN;
409
+ type ExtensionsRpc = Rpc<GetAccountInfoApi & GetMultipleAccountsApi>;
321
410
  //#endregion
322
- //#region src/utils/bundle-instructions.d.ts
323
- interface BuildBundleDepositInstructionsParams {
324
- connection: Connection;
325
- bundleCluster?: BundleCluster;
326
- vaultId: number;
327
- user: PublicKey;
328
- /** Smallest token units (decimal string), same scale as SPL token `amount`. */
329
- amountRaw: string;
330
- }
331
- interface BuildBundleRequestWithdrawInstructionParams {
332
- connection: Connection;
333
- bundleCluster?: BundleCluster;
334
- vaultId: number;
335
- user: PublicKey;
336
- /** Smallest token units (decimal string) to request withdrawing. */
337
- amountRaw: string;
338
- }
339
- interface BuildBundleRequestSwitchInstructionParams {
340
- connection: Connection;
341
- bundleCluster?: BundleCluster;
342
- sourceVaultId: number;
343
- targetVaultId: number;
344
- user: PublicKey;
345
- /** Smallest token units (decimal string) to switch out of the source vault. */
346
- amountRaw: string;
347
- }
411
+ //#region src/extensions/balances.d.ts
412
+ type UserBundleBalance = {
413
+ bundleAccount: Address;
414
+ user: Address;
415
+ sharesRaw: bigint;
416
+ /** Current redeemable value of the shares in token smallest units (integer floor, mirrors onchain calculate_assets_from_shares). */
417
+ balanceRaw: bigint;
418
+ /** Signed (i128 onchain): lifetime deposits minus withdrawals. */
419
+ netDepositsRaw: bigint;
420
+ /** balanceRaw - netDepositsRaw (signed). */
421
+ earningsRaw: bigint;
422
+ pendingDepositRaw: bigint;
423
+ /** userBundle.totalFeeCharged. */
424
+ feesPaidRaw: bigint;
425
+ pendingFees: PendingFeeEstimate;
426
+ hwmPerShare: bigint;
427
+ totalEquityRaw: bigint;
428
+ totalShares: bigint;
429
+ assetPrecision: bigint;
430
+ assetDecimals: number;
431
+ assetAddress: Address;
432
+ };
348
433
  /**
349
- * `initializeBundleDepositor` (when needed) + `requestDeposit` for a built-in registry vault.
434
+ * Calculates the raw balance fields returned by the legacy SDK's
435
+ * `calculateBundleUserBalance`. The legacy helper used floating-point PPS and
436
+ * `Math.round`; this helper uses the exact integer floor from
437
+ * `calculate_assets_from_shares` at `bundle.rs:259-270`.
350
438
  */
351
- declare function buildBundleDepositInstructions({
352
- connection,
353
- bundleCluster,
354
- vaultId,
355
- user,
356
- amountRaw
357
- }: BuildBundleDepositInstructionsParams): Promise<TransactionInstruction[]>;
439
+ declare function computeUserBundleBalance(args: {
440
+ bundleAccount: Address;
441
+ user: Address;
442
+ bundle: Bundle;
443
+ oracleData: OracleData;
444
+ userBundle: UserBundleAccount;
445
+ nowUnixSeconds: number | bigint;
446
+ }): UserBundleBalance;
358
447
  /**
359
- * `requestWithdrawal` for a built-in registry vault.
448
+ * Mirrors the three aligned `fetchMultiple` batches in the legacy SDK's
449
+ * `getBundleBalances`. Duplicate addresses remain in every request array so
450
+ * each output index corresponds directly to its input request.
360
451
  */
361
- declare function buildBundleRequestWithdrawInstruction({
362
- connection,
363
- bundleCluster,
364
- vaultId,
365
- user,
366
- amountRaw
367
- }: BuildBundleRequestWithdrawInstructionParams): Promise<TransactionInstruction>;
452
+ declare function fetchUserBundleBalances(rpc: ExtensionsRpc, args: {
453
+ requests: ReadonlyArray<{
454
+ bundleAccount: Address;
455
+ user: Address;
456
+ }>;
457
+ programAddress?: Address;
458
+ nowUnixSeconds?: number | bigint;
459
+ }): Promise<Array<UserBundleBalance | null>>;
460
+ declare function fetchUserBundleBalance(rpc: ExtensionsRpc, args: {
461
+ bundleAccount: Address;
462
+ user: Address;
463
+ programAddress?: Address;
464
+ nowUnixSeconds?: number | bigint;
465
+ }): Promise<UserBundleBalance | null>;
466
+ //#endregion
467
+ //#region src/extensions/flows.d.ts
468
+ type BuildDepositInstructionsParams = {
469
+ user: TransactionSigner;
470
+ bundleAccount: Address;
471
+ amountRaw: bigint;
472
+ /** Defaults to the user's associated token account for the bundle's asset mint. */
473
+ userTokenAccount?: Address;
474
+ /** Defaults to NTBUNDLE_PROGRAM_ADDRESS. */
475
+ programAddress?: Address;
476
+ };
477
+ /** Mirrors the legacy `buildBundleDepositInstructionsWithVault` flow. */
478
+ declare function buildDepositInstructions(rpc: ExtensionsRpc, params: BuildDepositInstructionsParams): Promise<Instruction[]>;
479
+ type BuildRequestWithdrawInstructionParams = {
480
+ user: TransactionSigner;
481
+ bundleAccount: Address;
482
+ amountRaw: bigint;
483
+ programAddress?: Address;
484
+ };
368
485
  /**
369
- * `initializeBundleDepositor` on target (when needed) + `requestBundleSwitch`
370
- * for built-in registry vaults (source target, same deposit token).
486
+ * Mirrors the legacy `buildBundleRequestWithdrawInstructionWithVault` flow.
487
+ * This helper rejects a zero-share result instead of forwarding it to the
488
+ * program as the legacy helper did.
371
489
  */
372
- declare function buildBundleRequestSwitchInstruction({
373
- connection,
374
- bundleCluster,
375
- sourceVaultId,
376
- targetVaultId,
377
- user,
378
- amountRaw
379
- }: BuildBundleRequestSwitchInstructionParams): Promise<TransactionInstruction[]>;
490
+ declare function buildRequestWithdrawInstruction(rpc: ExtensionsRpc, params: BuildRequestWithdrawInstructionParams): Promise<Instruction>;
491
+ type BuildRequestSwitchInstructionsParams = {
492
+ user: TransactionSigner;
493
+ sourceBundleAccount: Address;
494
+ targetBundleAccount: Address;
495
+ amountRaw: bigint;
496
+ programAddress?: Address;
497
+ };
498
+ /**
499
+ * Mirrors the legacy `buildBundleRequestSwitchInstructionsWithVaults` flow.
500
+ * This version-locked client does not perform the legacy runtime IDL capability
501
+ * probe for `request_bundle_switch`.
502
+ */
503
+ declare function buildRequestSwitchInstructions(rpc: ExtensionsRpc, params: BuildRequestSwitchInstructionsParams): Promise<Instruction[]>;
380
504
  //#endregion
381
- //#region src/utils/pda.d.ts
382
- declare const SEED_ORACLE: NodeJS.NonSharedUint8Array;
383
- declare const SEED_USER: NodeJS.NonSharedUint8Array;
384
- declare const SEED_TEMP: NodeJS.NonSharedUint8Array;
385
- declare const SEED_PENDING_AUTH: NodeJS.NonSharedUint8Array;
505
+ //#region src/extensions/math.d.ts
506
+ /** Mirrors `BPS_DENOMINATOR` in `constants.rs:12` and its use in `charge_user_fees` at `bundle.rs:693-695`. */
507
+ declare const BPS_DENOMINATOR = 10000n;
508
+ /** Mirrors `SECONDS_IN_YEAR` in `constants.rs:11` and its use in `charge_user_fees` at `bundle.rs:693-695`. */
509
+ declare const SECONDS_IN_YEAR = 31536000n;
510
+ /** Upper bound for the Rust `u64` amounts consumed by `fetch_total_equity` at `bundle.rs:244-257`. */
511
+ declare const U64_MAX = 18446744073709551615n;
386
512
  /**
387
- * Derive Oracle PDA for Bundle vault
513
+ * Parses a positive decimal `u64` amount for Rust amount paths such as
514
+ * `calculate_assets_from_shares` at `bundle.rs:259-270`.
388
515
  */
389
- declare function deriveOraclePDA(bundlePDA: PublicKey, programId: PublicKey): PublicKey;
516
+ declare function parseAmountRaw(amountRaw: string): bigint;
390
517
  /**
391
- * Derive User PDA for Bundle vault
518
+ * Enforces the positive Rust `u64` bounds used by amount parameters such as
519
+ * `total_assets` in `calculate_assets_from_shares` at `bundle.rs:259-270`.
392
520
  */
393
- declare function deriveUserPDA(userKey: PublicKey, bundlePDA: PublicKey, programId: PublicKey): PublicKey;
521
+ declare function assertValidAmountRaw(amountRaw: bigint): void;
394
522
  /**
395
- * Derive Temp Data PDA for Bundle vault
523
+ * Converts a UI float to the integer amount domain used by
524
+ * `calculate_assets_from_shares` at `bundle.rs:259-270`.
396
525
  */
397
- declare function deriveTempDataPDA(bundlePDA: PublicKey, programId: PublicKey): PublicKey;
526
+ declare function humanFloatToAmountRaw(human: number, decimals: number): bigint;
527
+ /** Mirrors `fetch_total_equity` at `bundle.rs:244-257`. */
528
+ declare function totalEquityRaw(args: {
529
+ bundleUnderlyingBalance: bigint;
530
+ averageExternalEquity: bigint;
531
+ }): bigint;
532
+ /** Mirrors the share-price calculation in `charge_user_fees` at `bundle.rs:662-670`. */
533
+ declare function sharePriceRaw(args: {
534
+ totalAssets: bigint;
535
+ totalShares: bigint;
536
+ assetPrecision: bigint;
537
+ }): bigint;
398
538
  /**
399
- * Derive pending bundle asset authority PDA (pending deposit token ATA owner)
539
+ * Mirrors `calculate_assets_from_shares` at `bundle.rs:259-270`. When
540
+ * `totalShares` is zero this read-only helper returns zero, while the Rust
541
+ * function reports a division error.
400
542
  */
401
- declare function derivePendingAuthPDA(bundlePDA: PublicKey, programId: PublicKey): PublicKey;
543
+ declare function calculateAssetsFromShares(args: {
544
+ shares: bigint;
545
+ totalAssets: bigint;
546
+ totalShares: bigint;
547
+ }): bigint;
402
548
  /**
403
- * Get Vault Depositor PDA for Drift vault
404
- * Custom code to handle jlpdnv1 special case
549
+ * Applies the legacy withdrawal-share ratio using the integer division from
550
+ * `calculate_assets_from_shares` at `bundle.rs:259-270`.
405
551
  */
406
- declare function getVaultDepositorAddressSync(programId: PublicKey, vault: PublicKey, authority: PublicKey): PublicKey;
552
+ declare function computeWithdrawalShares(args: {
553
+ amountRaw: bigint;
554
+ userShares: bigint;
555
+ totalEquity: bigint;
556
+ totalShares: bigint;
557
+ }): bigint;
558
+ /**
559
+ * Returns the UI ratio corresponding to the price calculation in
560
+ * `charge_user_fees` at `bundle.rs:662-670`. Converting bigints to numbers can
561
+ * lose precision.
562
+ */
563
+ declare function calculateOnChainPps(args: {
564
+ totalEquity: bigint;
565
+ totalShares: bigint;
566
+ }): number;
407
567
  //#endregion
408
- export { ALLOWLISTED_BUNDLE_PROGRAM_IDS_BY_CLUSTER, BUNDLE_PROGRAM_ID_V2_MAINNET, type BuildBundleDepositInstructionsParams, type BuildBundleRequestSwitchInstructionParams, type BuildBundleRequestWithdrawInstructionParams, type BundleAccount, type BundleCluster, type BundleProgram, type BundleProvider, DEFAULT_BUNDLE_PROGRAM_ID_DEVNET, DEFAULT_BUNDLE_PROGRAM_ID_MAINNET, DevnetVaultId, type EffectiveFeeBps, type EffectiveVaultFeeDecimals, FEE_OVERRIDE, NeutralTrade, type NeutralTradeConfig, type NeutralTradeCoreContext, type OracleData, SEED_ORACLE, SEED_PENDING_AUTH, SEED_TEMP, SEED_USER, SupportedChain, SupportedToken, type Token, type UserBalanceResult, type UserBundleAccount, type UserBundleTempData, type UserFeeOverrideFields, type VaultBalanceData, VaultCategory, VaultId, type VaultRegistry, type VaultRegistryEntry, VaultType, assertAllowlistedBundleProgramId, bpsToFeeDecimal, bpsToPercentLabel, buildBundleDepositInstructions, buildBundleRequestSwitchInstruction, buildBundleRequestWithdrawInstruction, buildFeeOverrideMask, computeDepositFeePreview, computeRequestWithdrawalSharesFromAmountRaw, computeWithdrawFeePreview, createAllowlistedBundleProgram, createBundleProgramById, createDummyWallet, deriveOraclePDA, derivePendingAuthPDA, deriveTempDataPDA, deriveUserPDA, effectiveFeeBpsToDecimals, estimatePendingBundleFeeToken, feeDecimalToBps, formatFeeOverrideFlags, getBundleProgramId, getDefaultBundleProgramIdByCluster, getSolanaTokenDecimals, getSolanaTokenMint, getVaultByAddress, getVaultById, getVaultDepositorAddressSync, getVaultRegistry, hasAnyFeeOverride, hasCustomFeeRate, hasFeeOverrideFlag, humanFloatToAmountRawString, isAllowlistedBundleProgramId, isValidVaultAddress, parseAmountRawToBigInt, readUserFeeOverrideFields, resolveEffectiveFeeBps, resolveEffectiveFeeBpsFromDefaults, resolveEffectiveVaultFees, tokens, vaultFeeDecimalsToBps, vaults$1 as vaults, vaultsDevnet };
568
+ export { ADD_STRATEGY_DISCRIMINATOR, ALLOWLISTED_BUNDLE_PROGRAM_IDS_BY_CLUSTER, APPLY_FEES_TO_USER_DISCRIMINATOR, ASSOCIATED_TOKEN_PROGRAM_ADDRESS, AddStrategyAsyncInput, AddStrategyInput, AddStrategyInstruction, AddStrategyInstructionData, AddStrategyInstructionDataArgs, ApplyFeesToUserAsyncInput, ApplyFeesToUserInput, ApplyFeesToUserInstruction, ApplyFeesToUserInstructionData, ApplyFeesToUserInstructionDataArgs, BPS_DENOMINATOR, BUNDLE_CREATOR_ACCOUNT_DISCRIMINATOR, BUNDLE_DISCRIMINATOR, BUNDLE_MASTER_ACCOUNT_DISCRIMINATOR, BUNDLE_PROGRAM_ID_V2_MAINNET, BUNDLE_TEMP_DATA_DISCRIMINATOR, BuildDepositInstructionsParams, BuildRequestSwitchInstructionsParams, BuildRequestWithdrawInstructionParams, Bundle, BundleAccountSeeds, BundleArgs, BundleAssetAuthoritySeeds, type BundleCluster, BundleCreatorAccount, BundleCreatorAccountArgs, BundleCreatorAccountSeeds, BundleMasterAccount, BundleMasterAccountArgs, BundleTempData, BundleTempDataArgs, BundleTempDataSeeds, CHANGE_BUNDLE_MASTER_ADMIN_DISCRIMINATOR, CHANGE_MANAGER_DISCRIMINATOR, CLEAR_USER_FEE_OVERRIDE_DISCRIMINATOR, CLEAR_USER_WITHDRAWAL_TIMING_OVERRIDE_DISCRIMINATOR, CLOSE_USER_BUNDLE_ACCOUNT_DISCRIMINATOR, ChangeBundleMasterAdminAsyncInput, ChangeBundleMasterAdminInput, ChangeBundleMasterAdminInstruction, ChangeBundleMasterAdminInstructionData, ChangeBundleMasterAdminInstructionDataArgs, ChangeManagerInput, ChangeManagerInstruction, ChangeManagerInstructionData, ChangeManagerInstructionDataArgs, ClearUserFeeOverrideAsyncInput, ClearUserFeeOverrideInput, ClearUserFeeOverrideInstruction, ClearUserFeeOverrideInstructionData, ClearUserFeeOverrideInstructionDataArgs, ClearUserWithdrawalTimingOverrideAsyncInput, ClearUserWithdrawalTimingOverrideInput, ClearUserWithdrawalTimingOverrideInstruction, ClearUserWithdrawalTimingOverrideInstructionData, ClearUserWithdrawalTimingOverrideInstructionDataArgs, CloseUserBundleAccountAsyncInput, CloseUserBundleAccountInput, CloseUserBundleAccountInstruction, CloseUserBundleAccountInstructionData, CloseUserBundleAccountInstructionDataArgs, CloseUserBundleAccountUserBundleAccountSeeds, DEFAULT_BUNDLE_PROGRAM_ID_DEVNET, DEFAULT_BUNDLE_PROGRAM_ID_MAINNET, DISTRIBUTE_TO_RECEIVERS_DISCRIMINATOR, DevnetVaultId, DistributeToReceiversAsyncInput, DistributeToReceiversInput, DistributeToReceiversInstruction, DistributeToReceiversInstructionData, DistributeToReceiversInstructionDataArgs, ENABLE_STRATEGY_DISCRIMINATOR, END_DISTRIBUTION_DISCRIMINATOR, EffectiveFees, EnableStrategyAsyncInput, EnableStrategyInput, EnableStrategyInstruction, EnableStrategyInstructionData, EnableStrategyInstructionDataArgs, EndDistributionAsyncInput, EndDistributionInput, EndDistributionInstruction, EndDistributionInstructionData, EndDistributionInstructionDataArgs, ExtensionsRpc, FEE_OVERRIDE_DEPOSIT, FEE_OVERRIDE_MANAGEMENT, FEE_OVERRIDE_PERFORMANCE, FEE_OVERRIDE_WITHDRAWAL, GetAccountInfoRpc, GetMultipleAccountsRpc, GetProgramAccountsRpc, INITIALIZE_BUNDLE_DEPOSITOR_DISCRIMINATOR, INITIALIZE_BUNDLE_DISCRIMINATOR, INITIALIZE_BUNDLE_MASTER_ACCOUNT_DISCRIMINATOR, INITIALIZE_PERMISSIONED_BUNDLE_DEPOSITOR_DISCRIMINATOR, InitializeBundleAsyncInput, InitializeBundleDepositorAsyncInput, InitializeBundleDepositorInput, InitializeBundleDepositorInstruction, InitializeBundleDepositorInstructionData, InitializeBundleDepositorInstructionDataArgs, InitializeBundleInput, InitializeBundleInstruction, InitializeBundleInstructionData, InitializeBundleInstructionDataArgs, InitializeBundleMasterAccountAsyncInput, InitializeBundleMasterAccountInput, InitializeBundleMasterAccountInstruction, InitializeBundleMasterAccountInstructionData, InitializeBundleMasterAccountInstructionDataArgs, InitializePermissionedBundleDepositorAsyncInput, InitializePermissionedBundleDepositorInput, InitializePermissionedBundleDepositorInstruction, InitializePermissionedBundleDepositorInstructionData, InitializePermissionedBundleDepositorInstructionDataArgs, MANAGER_WITHDRAW_DISCRIMINATOR, MANAGER_WITHDRAW_WITH_SPLIT_DISCRIMINATOR, ManagerWithdrawAsyncInput, ManagerWithdrawInput, ManagerWithdrawInstruction, ManagerWithdrawInstructionData, ManagerWithdrawInstructionDataArgs, ManagerWithdrawWithSplitAsyncInput, ManagerWithdrawWithSplitInput, ManagerWithdrawWithSplitInstruction, ManagerWithdrawWithSplitInstructionData, ManagerWithdrawWithSplitInstructionDataArgs, NET_PENDING_TRANSACTIONS_DISCRIMINATOR, NTBUNDLE_ERROR__ALLOCATION_AMOUNT_ZERO, NTBUNDLE_ERROR__ALLOCATION_BPS_GREATER_THAN_GLOBAL_ALLOCATION_BPS, NTBUNDLE_ERROR__ALLOCATION_BPS_IS_ZERO, NTBUNDLE_ERROR__AMOUNT_MUST_BE_BELOW_MAX, NTBUNDLE_ERROR__BUNDLE_IS_PERMISSIONNED, NTBUNDLE_ERROR__BUNDLE_NOT_PERMISSIONNED, NTBUNDLE_ERROR__CALLER_NOT_NEUTRAL_FEE_INCREMENTER, NTBUNDLE_ERROR__DEPOSITS_EXTRA_IN_PENDINGS_NOT_ZERO, NTBUNDLE_ERROR__DEPOSIT_AMOUNT_ZERO, NTBUNDLE_ERROR__DISTRIBUTION_ALREADY_STARTED, NTBUNDLE_ERROR__DISTRIBUTION_NOT_STARTED, NTBUNDLE_ERROR__EMPTY_USER_FEE_CLEAR_REQUEST, NTBUNDLE_ERROR__EMPTY_USER_WITHDRAWAL_TIMING_CLEAR_REQUEST, NTBUNDLE_ERROR__EQUITY_OUT_OF_BUFFER_BOUND, NTBUNDLE_ERROR__EXCESSIVE_DEPOSIT_FEE, NTBUNDLE_ERROR__EXCESSIVE_MANAGEMENT_FEE, NTBUNDLE_ERROR__EXCESSIVE_PERFORMANCE_FEE, NTBUNDLE_ERROR__EXCESSIVE_WITHDRAW_FEE, NTBUNDLE_ERROR__INSUFFICIENT_BUNDLE_BALANCE, NTBUNDLE_ERROR__INSUFFICIENT_FUNDS, NTBUNDLE_ERROR__INSUFFICIENT_SHARES_BALANCE, NTBUNDLE_ERROR__INVALID_ALLOCATIONS, NTBUNDLE_ERROR__INVALID_ASSET_ADDRESS, NTBUNDLE_ERROR__INVALID_ASSET_PRECISION, NTBUNDLE_ERROR__INVALID_FEE_SPLIT, NTBUNDLE_ERROR__INVALID_NEUTRAL_FEE_INCREMENTER, NTBUNDLE_ERROR__INVALID_ORACLE_BUFFER, NTBUNDLE_ERROR__INVALID_ORACLE_MAX_AGE, NTBUNDLE_ERROR__INVALID_ORACLE_UPDATE_TIME_LIMIT, NTBUNDLE_ERROR__INVALID_PERMISSIONNED_DEPOSITOR, NTBUNDLE_ERROR__INVALID_RECEIVER, NTBUNDLE_ERROR__INVALID_REFERRAL_CONFIG, NTBUNDLE_ERROR__INVALID_TWAP_PERIOD, NTBUNDLE_ERROR__INVALID_USER_FEE_CONFIG, NTBUNDLE_ERROR__INVALID_USER_WITHDRAWAL_TIMING_CONFIG, NTBUNDLE_ERROR__INVALID_WITHDRAWAL_AMOUNT, NTBUNDLE_ERROR__INVALID_WITHDRAWAL_COOLDOWN_PERIOD, NTBUNDLE_ERROR__INVALID_WITHDRAWAL_DELAY, NTBUNDLE_ERROR__INVALID_WITHDRAWAL_REDEMPTION_SCHEDULE, NTBUNDLE_ERROR__LEFT_TO_DISTRIBUTE_NOT_ZERO, NTBUNDLE_ERROR__MANAGER_SHARES_ZERO, NTBUNDLE_ERROR__MATH_ERROR, NTBUNDLE_ERROR__MAX_DEPOSIT_AMOUNT_EXCEEDED, NTBUNDLE_ERROR__MIN_DEPOSIT_AMOUNT_NOT_MET, NTBUNDLE_ERROR__MUST_BE_IN_WHITELIST, NTBUNDLE_ERROR__NETTING_ALREADY_DONE, NTBUNDLE_ERROR__NETTING_NOT_DONE, NTBUNDLE_ERROR__NO_PENDING_SWITCH, NTBUNDLE_ERROR__NO_PENDING_TRANSACTIONS, NTBUNDLE_ERROR__NO_PENDING_WITHDRAWAL, NTBUNDLE_ERROR__NO_USER_FEE_OVERRIDE_TO_CLEAR, NTBUNDLE_ERROR__NO_USER_WITHDRAWAL_TIMING_OVERRIDE_TO_CLEAR, NTBUNDLE_ERROR__ORACLE_NOT_UPDATED, NTBUNDLE_ERROR__ORACLE_UPDATE_TOO_FREQUENT, NTBUNDLE_ERROR__PAUSED_DEPOSITS_WITHDRAWALS, NTBUNDLE_ERROR__PAYER_NOT_AUTHORITY, NTBUNDLE_ERROR__PENDING_DEPOSIT_AMOUNT_ZERO, NTBUNDLE_ERROR__PENDING_DEPOSIT_EXISTS, NTBUNDLE_ERROR__PENDING_DEPOSIT_OR_WITHDRAWAL_EXISTS, NTBUNDLE_ERROR__PENDING_TRANSACTIONS_EXIST, NTBUNDLE_ERROR__PENDING_WITHDRAWAL_EXISTS, NTBUNDLE_ERROR__POD_TOKEN_TOTAL_SUPPLY_ZERO, NTBUNDLE_ERROR__RAW_TRANSFER_RECEIVER, NTBUNDLE_ERROR__RECEIVER_ALREADY_ALLOCATED, NTBUNDLE_ERROR__REDEMPTION_AMOUNT_EXCEEDED, NTBUNDLE_ERROR__REDEMPTION_AMOUNT_ZERO, NTBUNDLE_ERROR__REFERRALS_DISABLED, NTBUNDLE_ERROR__REFERRAL_ALREADY_SET, NTBUNDLE_ERROR__REFERRER_ACCOUNT_MISMATCH, NTBUNDLE_ERROR__REFERRER_ACCOUNT_MISSING, NTBUNDLE_ERROR__REFERRER_DEPOSIT_TOO_LOW, NTBUNDLE_ERROR__REFERRER_SHARES_ZERO, NTBUNDLE_ERROR__REFILL_AMOUNT_EXCEEDED, NTBUNDLE_ERROR__REFILL_AMOUNT_INVALID, NTBUNDLE_ERROR__STRATEGY_ALREADY_ENABLED, NTBUNDLE_ERROR__STRATEGY_DISABLED, NTBUNDLE_ERROR__SWITCH_ALREADY_ACTIVE, NTBUNDLE_ERROR__SWITCH_ASSET_MINT_MISMATCH, NTBUNDLE_ERROR__SWITCH_TARGET_ACCOUNTS_MISSING, NTBUNDLE_ERROR__SWITCH_TARGET_ACCOUNT_MISMATCH, NTBUNDLE_ERROR__SWITCH_TARGET_SAME_AS_SOURCE, NTBUNDLE_ERROR__TOO_MANY_ALLOCATED_RECEIVERS, NTBUNDLE_ERROR__TOTAL_ASSET_EXCEED_NEW_MAX_DEPOSIT_AMOUNT, NTBUNDLE_ERROR__UNAUTHORIZED_ADMIN_ACTION, NTBUNDLE_ERROR__UNAUTHORIZED_BUNDLE_CREATOR, NTBUNDLE_ERROR__UNAUTHORIZED_KEEPER_ACTION, NTBUNDLE_ERROR__UNAUTHORIZED_MANAGER_ACTION, NTBUNDLE_ERROR__UNAUTHORIZED_REFERRER_ACTION, NTBUNDLE_ERROR__UNPAUSED_DEPOSITS_WITHDRAWALS, NTBUNDLE_ERROR__USER_BUNDLE_ACCOUNT_HAS_ACTIVITY, NTBUNDLE_ERROR__USER_BUNDLE_ACCOUNT_NOT_EMPTY, NTBUNDLE_ERROR__WITHDRAWAL_ALREADY_PROCESSED, NTBUNDLE_ERROR__WITHDRAWAL_DELAY_NOT_MET, NTBUNDLE_PROGRAM_ADDRESS, NetPendingTransactionsAsyncInput, NetPendingTransactionsInput, NetPendingTransactionsInstruction, NetPendingTransactionsInstructionData, NetPendingTransactionsInstructionDataArgs, NtbundleAccount, NtbundleError, NtbundleInstruction, NtbundlePlugin, NtbundlePluginAccounts, NtbundlePluginInstructions, NtbundlePluginPdas, NtbundlePluginRequirements, ORACLE_DATA_DISCRIMINATOR, OracleData, OracleDataArgs, OracleDataSeeds, PAUSE_DEPOSITS_WITHDRAWALS_DISCRIMINATOR, PERFORM_REFILL_DISCRIMINATOR, PROCESS_DEPOSIT_DISCRIMINATOR, PROCESS_REFERRER_WITHDRAWAL_DISCRIMINATOR, PROCESS_SWITCH_DISCRIMINATOR, PROCESS_WITHDRAWAL_DISCRIMINATOR, ParsedAddStrategyInstruction, ParsedApplyFeesToUserInstruction, ParsedChangeBundleMasterAdminInstruction, ParsedChangeManagerInstruction, ParsedClearUserFeeOverrideInstruction, ParsedClearUserWithdrawalTimingOverrideInstruction, ParsedCloseUserBundleAccountInstruction, ParsedDistributeToReceiversInstruction, ParsedEnableStrategyInstruction, ParsedEndDistributionInstruction, ParsedInitializeBundleDepositorInstruction, ParsedInitializeBundleInstruction, ParsedInitializeBundleMasterAccountInstruction, ParsedInitializePermissionedBundleDepositorInstruction, ParsedManagerWithdrawInstruction, ParsedManagerWithdrawWithSplitInstruction, ParsedNetPendingTransactionsInstruction, ParsedNtbundleInstruction, ParsedPauseDepositsWithdrawalsInstruction, ParsedPerformRefillInstruction, ParsedProcessDepositInstruction, ParsedProcessReferrerWithdrawalInstruction, ParsedProcessSwitchInstruction, ParsedProcessWithdrawalInstruction, ParsedReferrerRequestWithdrawInstruction, ParsedRefundDepositInstruction, ParsedRegisterReferrerInstruction, ParsedRemoveStrategyInstruction, ParsedRequestBundleSwitchInstruction, ParsedRequestDepositInstruction, ParsedRequestWithdrawalInstruction, ParsedSetBundleCreatorInstruction, ParsedSetDelaysInstruction, ParsedSetFeesInstruction, ParsedSetKeeperInstruction, ParsedSetMaxDepositAmountInstruction, ParsedSetMinDepositAmountInstruction, ParsedSetOracleBufferInstruction, ParsedSetOracleMaxAgeInstruction, ParsedSetOracleUpdateTimeLimitInstruction, ParsedSetReferrerActiveInstruction, ParsedSetReferrerConfigInstruction, ParsedSetReferrerRateOverrideInstruction, ParsedSetUserFeeOverrideInstruction, ParsedSetUserReferrerInstruction, ParsedSetUserWithdrawalTimingOverrideInstruction, ParsedSetWithdrawalRedemptionScheduleInstruction, ParsedStartDistributionInstruction, ParsedUpdateAllocationsInstruction, ParsedUpdateOracleInstruction, PauseDepositsWithdrawalsAsyncInput, PauseDepositsWithdrawalsInput, PauseDepositsWithdrawalsInstruction, PauseDepositsWithdrawalsInstructionData, PauseDepositsWithdrawalsInstructionDataArgs, PendingBundleAssetAuthoritySeeds, PendingFeeEstimate, PerformRefillAsyncInput, PerformRefillInput, PerformRefillInstruction, PerformRefillInstructionData, PerformRefillInstructionDataArgs, type PointsVaultEntry, ProcessDepositAsyncInput, ProcessDepositInput, ProcessDepositInstruction, ProcessDepositInstructionData, ProcessDepositInstructionDataArgs, ProcessReferrerWithdrawalAsyncInput, ProcessReferrerWithdrawalInput, ProcessReferrerWithdrawalInstruction, ProcessReferrerWithdrawalInstructionData, ProcessReferrerWithdrawalInstructionDataArgs, ProcessSwitchAsyncInput, ProcessSwitchInput, ProcessSwitchInstruction, ProcessSwitchInstructionData, ProcessSwitchInstructionDataArgs, ProcessWithdrawalAsyncInput, ProcessWithdrawalInput, ProcessWithdrawalInstruction, ProcessWithdrawalInstructionData, ProcessWithdrawalInstructionDataArgs, REFERRER_ACCOUNT_DISCRIMINATOR, REFERRER_REQUEST_WITHDRAW_DISCRIMINATOR, REFUND_DEPOSIT_DISCRIMINATOR, REGISTER_REFERRER_DISCRIMINATOR, REMOVE_STRATEGY_DISCRIMINATOR, REQUEST_BUNDLE_SWITCH_DISCRIMINATOR, REQUEST_DEPOSIT_DISCRIMINATOR, REQUEST_WITHDRAWAL_DISCRIMINATOR, ReferrerAccount, ReferrerAccountArgs, ReferrerAccountSeeds, ReferrerRequestWithdrawAsyncInput, ReferrerRequestWithdrawInput, ReferrerRequestWithdrawInstruction, ReferrerRequestWithdrawInstructionData, ReferrerRequestWithdrawInstructionDataArgs, ReferrerUserBundleAccountSeeds, RefundDepositAsyncInput, RefundDepositInput, RefundDepositInstruction, RefundDepositInstructionData, RefundDepositInstructionDataArgs, RegisterReferrerAsyncInput, RegisterReferrerInput, RegisterReferrerInstruction, RegisterReferrerInstructionData, RegisterReferrerInstructionDataArgs, RemoveStrategyAsyncInput, RemoveStrategyInput, RemoveStrategyInstruction, RemoveStrategyInstructionData, RemoveStrategyInstructionDataArgs, RequestBundleSwitchAsyncInput, RequestBundleSwitchInput, RequestBundleSwitchInstruction, RequestBundleSwitchInstructionData, RequestBundleSwitchInstructionDataArgs, RequestBundleSwitchUserBundleAccountSeeds, RequestDepositAsyncInput, RequestDepositInput, RequestDepositInstruction, RequestDepositInstructionData, RequestDepositInstructionDataArgs, RequestWithdrawalAsyncInput, RequestWithdrawalInput, RequestWithdrawalInstruction, RequestWithdrawalInstructionData, RequestWithdrawalInstructionDataArgs, SECONDS_IN_YEAR, SET_BUNDLE_CREATOR_DISCRIMINATOR, SET_DELAYS_DISCRIMINATOR, SET_FEES_DISCRIMINATOR, SET_KEEPER_DISCRIMINATOR, SET_MAX_DEPOSIT_AMOUNT_DISCRIMINATOR, SET_MIN_DEPOSIT_AMOUNT_DISCRIMINATOR, SET_ORACLE_BUFFER_DISCRIMINATOR, SET_ORACLE_MAX_AGE_DISCRIMINATOR, SET_ORACLE_UPDATE_TIME_LIMIT_DISCRIMINATOR, SET_REFERRER_ACTIVE_DISCRIMINATOR, SET_REFERRER_CONFIG_DISCRIMINATOR, SET_REFERRER_RATE_OVERRIDE_DISCRIMINATOR, SET_USER_FEE_OVERRIDE_DISCRIMINATOR, SET_USER_REFERRER_DISCRIMINATOR, SET_USER_WITHDRAWAL_TIMING_OVERRIDE_DISCRIMINATOR, SET_WITHDRAWAL_REDEMPTION_SCHEDULE_DISCRIMINATOR, START_DISTRIBUTION_DISCRIMINATOR, STRATEGY_DISCRIMINATOR, SetBundleCreatorAsyncInput, SetBundleCreatorInput, SetBundleCreatorInstruction, SetBundleCreatorInstructionData, SetBundleCreatorInstructionDataArgs, SetDelaysInput, SetDelaysInstruction, SetDelaysInstructionData, SetDelaysInstructionDataArgs, SetFeesInput, SetFeesInstruction, SetFeesInstructionData, SetFeesInstructionDataArgs, SetKeeperInput, SetKeeperInstruction, SetKeeperInstructionData, SetKeeperInstructionDataArgs, SetMaxDepositAmountInput, SetMaxDepositAmountInstruction, SetMaxDepositAmountInstructionData, SetMaxDepositAmountInstructionDataArgs, SetMinDepositAmountInput, SetMinDepositAmountInstruction, SetMinDepositAmountInstructionData, SetMinDepositAmountInstructionDataArgs, SetOracleBufferInput, SetOracleBufferInstruction, SetOracleBufferInstructionData, SetOracleBufferInstructionDataArgs, SetOracleMaxAgeInput, SetOracleMaxAgeInstruction, SetOracleMaxAgeInstructionData, SetOracleMaxAgeInstructionDataArgs, SetOracleUpdateTimeLimitInput, SetOracleUpdateTimeLimitInstruction, SetOracleUpdateTimeLimitInstructionData, SetOracleUpdateTimeLimitInstructionDataArgs, SetReferrerActiveInput, SetReferrerActiveInstruction, SetReferrerActiveInstructionData, SetReferrerActiveInstructionDataArgs, SetReferrerConfigInput, SetReferrerConfigInstruction, SetReferrerConfigInstructionData, SetReferrerConfigInstructionDataArgs, SetReferrerRateOverrideInput, SetReferrerRateOverrideInstruction, SetReferrerRateOverrideInstructionData, SetReferrerRateOverrideInstructionDataArgs, SetUserFeeOverrideAsyncInput, SetUserFeeOverrideInput, SetUserFeeOverrideInstruction, SetUserFeeOverrideInstructionData, SetUserFeeOverrideInstructionDataArgs, SetUserReferrerAsyncInput, SetUserReferrerInput, SetUserReferrerInstruction, SetUserReferrerInstructionData, SetUserReferrerInstructionDataArgs, SetUserWithdrawalTimingOverrideAsyncInput, SetUserWithdrawalTimingOverrideInput, SetUserWithdrawalTimingOverrideInstruction, SetUserWithdrawalTimingOverrideInstructionData, SetUserWithdrawalTimingOverrideInstructionDataArgs, SetWithdrawalRedemptionScheduleInput, SetWithdrawalRedemptionScheduleInstruction, SetWithdrawalRedemptionScheduleInstructionData, SetWithdrawalRedemptionScheduleInstructionDataArgs, SourceBundleAssetAuthoritySeeds, SourceBundleTempDataSeeds, SourceOracleDataSeeds, SourceUserBundleAccountSeeds, StartDistributionAsyncInput, StartDistributionInput, StartDistributionInstruction, StartDistributionInstructionData, StartDistributionInstructionDataArgs, Strategy, StrategyAccountSeeds, StrategyArgs, SupportedChain, SupportedToken, TOKEN_PROGRAM_ADDRESS, TargetBundleTempDataSeeds, TargetOracleDataSeeds, TargetPendingBundleAssetAuthoritySeeds, TargetUserBundleAccountSeeds, type Token, U64_MAX, UPDATE_ALLOCATIONS_DISCRIMINATOR, UPDATE_ORACLE_DISCRIMINATOR, USER_BUNDLE_ACCOUNT_DISCRIMINATOR, UpdateAllocationsAsyncInput, UpdateAllocationsInput, UpdateAllocationsInstruction, UpdateAllocationsInstructionData, UpdateAllocationsInstructionDataArgs, UpdateOracleAsyncInput, UpdateOracleInput, UpdateOracleInstruction, UpdateOracleInstructionData, UpdateOracleInstructionDataArgs, UserBundleAccount, UserBundleAccountArgs, UserBundleAccountSeeds, UserBundleBalance, VaultCategory, type VaultConfig, VaultId, type VaultRegistry, type VaultRegistryEntry, VaultType, assertAllowlistedBundleProgramId, assertValidAmountRaw, buildDepositInstructions, buildRequestSwitchInstructions, buildRequestWithdrawInstruction, calculateAssetsFromShares, calculateOnChainPps, computeUserBundleBalance, computeWithdrawalShares, decodeBundle, decodeBundleCreatorAccount, decodeBundleMasterAccount, decodeBundleTempData, decodeOracleData, decodeReferrerAccount, decodeStrategy, decodeUserBundleAccount, estimatePendingUserFees, fetchAllBundle, fetchAllBundleCreatorAccount, fetchAllBundleMasterAccount, fetchAllBundleTempData, fetchAllMaybeBundle, fetchAllMaybeBundleCreatorAccount, fetchAllMaybeBundleMasterAccount, fetchAllMaybeBundleTempData, fetchAllMaybeOracleData, fetchAllMaybeReferrerAccount, fetchAllMaybeStrategy, fetchAllMaybeUserBundleAccount, fetchAllOracleData, fetchAllReferrerAccount, fetchAllStrategy, fetchAllUserBundleAccount, fetchBundle, fetchBundleCreatorAccount, fetchBundleMasterAccount, fetchBundleTempData, fetchMaybeBundle, fetchMaybeBundleCreatorAccount, fetchMaybeBundleMasterAccount, fetchMaybeBundleTempData, fetchMaybeOracleData, fetchMaybeReferrerAccount, fetchMaybeStrategy, fetchMaybeUserBundleAccount, fetchOracleData, fetchReferrerAccount, fetchStrategy, fetchUserBundleAccount, fetchUserBundleBalance, fetchUserBundleBalances, findAssociatedTokenPda, findBundleAccountPda, findBundleAssetAuthorityPda, findBundleCreatorAccountPda, findBundleMasterAccountPda, findBundleTempDataPda, findCloseUserBundleAccountUserBundleAccountPda, findOracleDataPda, findPendingBundleAssetAuthorityPda, findReferrerAccountPda, findReferrerUserBundleAccountPda, findRequestBundleSwitchUserBundleAccountPda, findSourceBundleAssetAuthorityPda, findSourceBundleTempDataPda, findSourceOracleDataPda, findSourceUserBundleAccountPda, findStrategyAccountPda, findTargetBundleTempDataPda, findTargetOracleDataPda, findTargetPendingBundleAssetAuthorityPda, findTargetUserBundleAccountPda, findUserBundleAccountPda, getAddStrategyDiscriminatorBytes, getAddStrategyInstruction, getAddStrategyInstructionAsync, getAddStrategyInstructionDataCodec, getAddStrategyInstructionDataDecoder, getAddStrategyInstructionDataEncoder, getApplyFeesToUserDiscriminatorBytes, getApplyFeesToUserInstruction, getApplyFeesToUserInstructionAsync, getApplyFeesToUserInstructionDataCodec, getApplyFeesToUserInstructionDataDecoder, getApplyFeesToUserInstructionDataEncoder, getBundleCodec, getBundleCreatorAccountCodec, getBundleCreatorAccountDecoder, getBundleCreatorAccountDiscriminatorBytes, getBundleCreatorAccountEncoder, getBundleCreatorAccountSize, getBundleDecoder, getBundleDiscriminatorBytes, getBundleEncoder, getBundleMasterAccountCodec, getBundleMasterAccountDecoder, getBundleMasterAccountDiscriminatorBytes, getBundleMasterAccountEncoder, getBundleMasterAccountSize, getBundleProgramId, getBundleTempDataCodec, getBundleTempDataDecoder, getBundleTempDataDiscriminatorBytes, getBundleTempDataEncoder, getBundleTempDataSize, getChangeBundleMasterAdminDiscriminatorBytes, getChangeBundleMasterAdminInstruction, getChangeBundleMasterAdminInstructionAsync, getChangeBundleMasterAdminInstructionDataCodec, getChangeBundleMasterAdminInstructionDataDecoder, getChangeBundleMasterAdminInstructionDataEncoder, getChangeManagerDiscriminatorBytes, getChangeManagerInstruction, getChangeManagerInstructionDataCodec, getChangeManagerInstructionDataDecoder, getChangeManagerInstructionDataEncoder, getClearUserFeeOverrideDiscriminatorBytes, getClearUserFeeOverrideInstruction, getClearUserFeeOverrideInstructionAsync, getClearUserFeeOverrideInstructionDataCodec, getClearUserFeeOverrideInstructionDataDecoder, getClearUserFeeOverrideInstructionDataEncoder, getClearUserWithdrawalTimingOverrideDiscriminatorBytes, getClearUserWithdrawalTimingOverrideInstruction, getClearUserWithdrawalTimingOverrideInstructionAsync, getClearUserWithdrawalTimingOverrideInstructionDataCodec, getClearUserWithdrawalTimingOverrideInstructionDataDecoder, getClearUserWithdrawalTimingOverrideInstructionDataEncoder, getCloseUserBundleAccountDiscriminatorBytes, getCloseUserBundleAccountInstruction, getCloseUserBundleAccountInstructionAsync, getCloseUserBundleAccountInstructionDataCodec, getCloseUserBundleAccountInstructionDataDecoder, getCloseUserBundleAccountInstructionDataEncoder, getDefaultBundleProgramIdByCluster, getDistributeToReceiversDiscriminatorBytes, getDistributeToReceiversInstruction, getDistributeToReceiversInstructionAsync, getDistributeToReceiversInstructionDataCodec, getDistributeToReceiversInstructionDataDecoder, getDistributeToReceiversInstructionDataEncoder, getDriftProgramId, getEnableStrategyDiscriminatorBytes, getEnableStrategyInstruction, getEnableStrategyInstructionAsync, getEnableStrategyInstructionDataCodec, getEnableStrategyInstructionDataDecoder, getEnableStrategyInstructionDataEncoder, getEndDistributionDiscriminatorBytes, getEndDistributionInstruction, getEndDistributionInstructionAsync, getEndDistributionInstructionDataCodec, getEndDistributionInstructionDataDecoder, getEndDistributionInstructionDataEncoder, getInitializeBundleDepositorDiscriminatorBytes, getInitializeBundleDepositorInstruction, getInitializeBundleDepositorInstructionAsync, getInitializeBundleDepositorInstructionDataCodec, getInitializeBundleDepositorInstructionDataDecoder, getInitializeBundleDepositorInstructionDataEncoder, getInitializeBundleDiscriminatorBytes, getInitializeBundleInstruction, getInitializeBundleInstructionAsync, getInitializeBundleInstructionDataCodec, getInitializeBundleInstructionDataDecoder, getInitializeBundleInstructionDataEncoder, getInitializeBundleMasterAccountDiscriminatorBytes, getInitializeBundleMasterAccountInstruction, getInitializeBundleMasterAccountInstructionAsync, getInitializeBundleMasterAccountInstructionDataCodec, getInitializeBundleMasterAccountInstructionDataDecoder, getInitializeBundleMasterAccountInstructionDataEncoder, getInitializePermissionedBundleDepositorDiscriminatorBytes, getInitializePermissionedBundleDepositorInstruction, getInitializePermissionedBundleDepositorInstructionAsync, getInitializePermissionedBundleDepositorInstructionDataCodec, getInitializePermissionedBundleDepositorInstructionDataDecoder, getInitializePermissionedBundleDepositorInstructionDataEncoder, getManagerWithdrawDiscriminatorBytes, getManagerWithdrawInstruction, getManagerWithdrawInstructionAsync, getManagerWithdrawInstructionDataCodec, getManagerWithdrawInstructionDataDecoder, getManagerWithdrawInstructionDataEncoder, getManagerWithdrawWithSplitDiscriminatorBytes, getManagerWithdrawWithSplitInstruction, getManagerWithdrawWithSplitInstructionAsync, getManagerWithdrawWithSplitInstructionDataCodec, getManagerWithdrawWithSplitInstructionDataDecoder, getManagerWithdrawWithSplitInstructionDataEncoder, getNetPendingTransactionsDiscriminatorBytes, getNetPendingTransactionsInstruction, getNetPendingTransactionsInstructionAsync, getNetPendingTransactionsInstructionDataCodec, getNetPendingTransactionsInstructionDataDecoder, getNetPendingTransactionsInstructionDataEncoder, getNtbundleErrorMessage, getOracleDataCodec, getOracleDataDecoder, getOracleDataDiscriminatorBytes, getOracleDataEncoder, getOracleDataSize, getPauseDepositsWithdrawalsDiscriminatorBytes, getPauseDepositsWithdrawalsInstruction, getPauseDepositsWithdrawalsInstructionAsync, getPauseDepositsWithdrawalsInstructionDataCodec, getPauseDepositsWithdrawalsInstructionDataDecoder, getPauseDepositsWithdrawalsInstructionDataEncoder, getPerformRefillDiscriminatorBytes, getPerformRefillInstruction, getPerformRefillInstructionAsync, getPerformRefillInstructionDataCodec, getPerformRefillInstructionDataDecoder, getPerformRefillInstructionDataEncoder, getPointsVaults, getProcessDepositDiscriminatorBytes, getProcessDepositInstruction, getProcessDepositInstructionAsync, getProcessDepositInstructionDataCodec, getProcessDepositInstructionDataDecoder, getProcessDepositInstructionDataEncoder, getProcessReferrerWithdrawalDiscriminatorBytes, getProcessReferrerWithdrawalInstruction, getProcessReferrerWithdrawalInstructionAsync, getProcessReferrerWithdrawalInstructionDataCodec, getProcessReferrerWithdrawalInstructionDataDecoder, getProcessReferrerWithdrawalInstructionDataEncoder, getProcessSwitchDiscriminatorBytes, getProcessSwitchInstruction, getProcessSwitchInstructionAsync, getProcessSwitchInstructionDataCodec, getProcessSwitchInstructionDataDecoder, getProcessSwitchInstructionDataEncoder, getProcessWithdrawalDiscriminatorBytes, getProcessWithdrawalInstruction, getProcessWithdrawalInstructionAsync, getProcessWithdrawalInstructionDataCodec, getProcessWithdrawalInstructionDataDecoder, getProcessWithdrawalInstructionDataEncoder, getReferrerAccountCodec, getReferrerAccountDecoder, getReferrerAccountDiscriminatorBytes, getReferrerAccountEncoder, getReferrerAccountSize, getReferrerRequestWithdrawDiscriminatorBytes, getReferrerRequestWithdrawInstruction, getReferrerRequestWithdrawInstructionAsync, getReferrerRequestWithdrawInstructionDataCodec, getReferrerRequestWithdrawInstructionDataDecoder, getReferrerRequestWithdrawInstructionDataEncoder, getRefundDepositDiscriminatorBytes, getRefundDepositInstruction, getRefundDepositInstructionAsync, getRefundDepositInstructionDataCodec, getRefundDepositInstructionDataDecoder, getRefundDepositInstructionDataEncoder, getRegisterReferrerDiscriminatorBytes, getRegisterReferrerInstruction, getRegisterReferrerInstructionAsync, getRegisterReferrerInstructionDataCodec, getRegisterReferrerInstructionDataDecoder, getRegisterReferrerInstructionDataEncoder, getRemoveStrategyDiscriminatorBytes, getRemoveStrategyInstruction, getRemoveStrategyInstructionAsync, getRemoveStrategyInstructionDataCodec, getRemoveStrategyInstructionDataDecoder, getRemoveStrategyInstructionDataEncoder, getRequestBundleSwitchDiscriminatorBytes, getRequestBundleSwitchInstruction, getRequestBundleSwitchInstructionAsync, getRequestBundleSwitchInstructionDataCodec, getRequestBundleSwitchInstructionDataDecoder, getRequestBundleSwitchInstructionDataEncoder, getRequestDepositDiscriminatorBytes, getRequestDepositInstruction, getRequestDepositInstructionAsync, getRequestDepositInstructionDataCodec, getRequestDepositInstructionDataDecoder, getRequestDepositInstructionDataEncoder, getRequestWithdrawalDiscriminatorBytes, getRequestWithdrawalInstruction, getRequestWithdrawalInstructionAsync, getRequestWithdrawalInstructionDataCodec, getRequestWithdrawalInstructionDataDecoder, getRequestWithdrawalInstructionDataEncoder, getSetBundleCreatorDiscriminatorBytes, getSetBundleCreatorInstruction, getSetBundleCreatorInstructionAsync, getSetBundleCreatorInstructionDataCodec, getSetBundleCreatorInstructionDataDecoder, getSetBundleCreatorInstructionDataEncoder, getSetDelaysDiscriminatorBytes, getSetDelaysInstruction, getSetDelaysInstructionDataCodec, getSetDelaysInstructionDataDecoder, getSetDelaysInstructionDataEncoder, getSetFeesDiscriminatorBytes, getSetFeesInstruction, getSetFeesInstructionDataCodec, getSetFeesInstructionDataDecoder, getSetFeesInstructionDataEncoder, getSetKeeperDiscriminatorBytes, getSetKeeperInstruction, getSetKeeperInstructionDataCodec, getSetKeeperInstructionDataDecoder, getSetKeeperInstructionDataEncoder, getSetMaxDepositAmountDiscriminatorBytes, getSetMaxDepositAmountInstruction, getSetMaxDepositAmountInstructionDataCodec, getSetMaxDepositAmountInstructionDataDecoder, getSetMaxDepositAmountInstructionDataEncoder, getSetMinDepositAmountDiscriminatorBytes, getSetMinDepositAmountInstruction, getSetMinDepositAmountInstructionDataCodec, getSetMinDepositAmountInstructionDataDecoder, getSetMinDepositAmountInstructionDataEncoder, getSetOracleBufferDiscriminatorBytes, getSetOracleBufferInstruction, getSetOracleBufferInstructionDataCodec, getSetOracleBufferInstructionDataDecoder, getSetOracleBufferInstructionDataEncoder, getSetOracleMaxAgeDiscriminatorBytes, getSetOracleMaxAgeInstruction, getSetOracleMaxAgeInstructionDataCodec, getSetOracleMaxAgeInstructionDataDecoder, getSetOracleMaxAgeInstructionDataEncoder, getSetOracleUpdateTimeLimitDiscriminatorBytes, getSetOracleUpdateTimeLimitInstruction, getSetOracleUpdateTimeLimitInstructionDataCodec, getSetOracleUpdateTimeLimitInstructionDataDecoder, getSetOracleUpdateTimeLimitInstructionDataEncoder, getSetReferrerActiveDiscriminatorBytes, getSetReferrerActiveInstruction, getSetReferrerActiveInstructionDataCodec, getSetReferrerActiveInstructionDataDecoder, getSetReferrerActiveInstructionDataEncoder, getSetReferrerConfigDiscriminatorBytes, getSetReferrerConfigInstruction, getSetReferrerConfigInstructionDataCodec, getSetReferrerConfigInstructionDataDecoder, getSetReferrerConfigInstructionDataEncoder, getSetReferrerRateOverrideDiscriminatorBytes, getSetReferrerRateOverrideInstruction, getSetReferrerRateOverrideInstructionDataCodec, getSetReferrerRateOverrideInstructionDataDecoder, getSetReferrerRateOverrideInstructionDataEncoder, getSetUserFeeOverrideDiscriminatorBytes, getSetUserFeeOverrideInstruction, getSetUserFeeOverrideInstructionAsync, getSetUserFeeOverrideInstructionDataCodec, getSetUserFeeOverrideInstructionDataDecoder, getSetUserFeeOverrideInstructionDataEncoder, getSetUserReferrerDiscriminatorBytes, getSetUserReferrerInstruction, getSetUserReferrerInstructionAsync, getSetUserReferrerInstructionDataCodec, getSetUserReferrerInstructionDataDecoder, getSetUserReferrerInstructionDataEncoder, getSetUserWithdrawalTimingOverrideDiscriminatorBytes, getSetUserWithdrawalTimingOverrideInstruction, getSetUserWithdrawalTimingOverrideInstructionAsync, getSetUserWithdrawalTimingOverrideInstructionDataCodec, getSetUserWithdrawalTimingOverrideInstructionDataDecoder, getSetUserWithdrawalTimingOverrideInstructionDataEncoder, getSetWithdrawalRedemptionScheduleDiscriminatorBytes, getSetWithdrawalRedemptionScheduleInstruction, getSetWithdrawalRedemptionScheduleInstructionDataCodec, getSetWithdrawalRedemptionScheduleInstructionDataDecoder, getSetWithdrawalRedemptionScheduleInstructionDataEncoder, getSolanaTokenDecimals, getSolanaTokenMint, getStartDistributionDiscriminatorBytes, getStartDistributionInstruction, getStartDistributionInstructionAsync, getStartDistributionInstructionDataCodec, getStartDistributionInstructionDataDecoder, getStartDistributionInstructionDataEncoder, getStrategyCodec, getStrategyDecoder, getStrategyDiscriminatorBytes, getStrategyEncoder, getStrategySize, getUpdateAllocationsDiscriminatorBytes, getUpdateAllocationsInstruction, getUpdateAllocationsInstructionAsync, getUpdateAllocationsInstructionDataCodec, getUpdateAllocationsInstructionDataDecoder, getUpdateAllocationsInstructionDataEncoder, getUpdateOracleDiscriminatorBytes, getUpdateOracleInstruction, getUpdateOracleInstructionAsync, getUpdateOracleInstructionDataCodec, getUpdateOracleInstructionDataDecoder, getUpdateOracleInstructionDataEncoder, getUserBundleAccountCodec, getUserBundleAccountDecoder, getUserBundleAccountDiscriminatorBytes, getUserBundleAccountEncoder, getUserBundleAccountSize, getVaultByAddress, getVaultById, getVaultRegistry, humanFloatToAmountRaw, identifyNtbundleAccount, identifyNtbundleInstruction, isAllowlistedBundleProgramId, isNtbundleError, isValidVaultAddress, ntbundleProgram, parseAddStrategyInstruction, parseAmountRaw, parseApplyFeesToUserInstruction, parseChangeBundleMasterAdminInstruction, parseChangeManagerInstruction, parseClearUserFeeOverrideInstruction, parseClearUserWithdrawalTimingOverrideInstruction, parseCloseUserBundleAccountInstruction, parseDistributeToReceiversInstruction, parseEnableStrategyInstruction, parseEndDistributionInstruction, parseInitializeBundleDepositorInstruction, parseInitializeBundleInstruction, parseInitializeBundleMasterAccountInstruction, parseInitializePermissionedBundleDepositorInstruction, parseManagerWithdrawInstruction, parseManagerWithdrawWithSplitInstruction, parseNetPendingTransactionsInstruction, parseNtbundleInstruction, parsePauseDepositsWithdrawalsInstruction, parsePerformRefillInstruction, parseProcessDepositInstruction, parseProcessReferrerWithdrawalInstruction, parseProcessSwitchInstruction, parseProcessWithdrawalInstruction, parseReferrerRequestWithdrawInstruction, parseRefundDepositInstruction, parseRegisterReferrerInstruction, parseRemoveStrategyInstruction, parseRequestBundleSwitchInstruction, parseRequestDepositInstruction, parseRequestWithdrawalInstruction, parseSetBundleCreatorInstruction, parseSetDelaysInstruction, parseSetFeesInstruction, parseSetKeeperInstruction, parseSetMaxDepositAmountInstruction, parseSetMinDepositAmountInstruction, parseSetOracleBufferInstruction, parseSetOracleMaxAgeInstruction, parseSetOracleUpdateTimeLimitInstruction, parseSetReferrerActiveInstruction, parseSetReferrerConfigInstruction, parseSetReferrerRateOverrideInstruction, parseSetUserFeeOverrideInstruction, parseSetUserReferrerInstruction, parseSetUserWithdrawalTimingOverrideInstruction, parseSetWithdrawalRedemptionScheduleInstruction, parseStartDistributionInstruction, parseUpdateAllocationsInstruction, parseUpdateOracleInstruction, resolveEffectiveFees, sharePriceRaw, toVaultConfig, toVaultRegistry, tokens, totalEquityRaw, vaults, vaultsDevnet };