@neutral-trade/sdk 0.4.19 → 1.0.2

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
+ /** CTA-C-USDC-Bundle */
49
+ cta_c_usdc_bundle_83 = 83,
15
50
  /** Nexus-USDC-Bundle */
16
51
  nexus_usdc_bundle_82 = 82,
17
52
  /** Ethereal-USDE-Bundle */
@@ -180,231 +215,356 @@ declare enum VaultId {
180
215
  jlp_delta_neutral_vault_1_0 = 0,
181
216
  }
182
217
  //#endregion
183
- //#region src/constants/vault-ids.devnet.d.ts
218
+ //#region src/types/tokens.d.ts
219
+ declare enum SupportedChain {
220
+ Solana = "Solana",
221
+ Hyperliquid = "Hyperliquid",
222
+ }
223
+ declare enum SupportedToken {
224
+ USDC = "USDC",
225
+ USDT = "USDT",
226
+ USDE = "USDE",
227
+ SOL = "SOL",
228
+ WBTC = "WBTC",
229
+ WETH = "WETH",
230
+ JLP = "JLP",
231
+ }
232
+ interface Token {
233
+ name: string;
234
+ symbol: string;
235
+ onChain: { [chain in SupportedChain]: {
236
+ address: string;
237
+ decimals: number;
238
+ } | null };
239
+ }
240
+ declare const tokens: { [name in SupportedToken]: Token };
184
241
  /**
185
- * Vault ID constants (DevnetVaultId)
186
- * Auto-generated from the vault registry JSON.
242
+ * Solana mint address for a supported token, keyed by bundle cluster.
243
+ * Devnet USDC uses the team mock mint; other tokens use mainnet table until devnet overrides exist.
187
244
  */
188
- declare enum DevnetVaultId {
189
- /** bundle-1 */
190
- bundle_1_100000002 = 100000002,
191
- /** bundle-2 */
192
- bundle_2_100000003 = 100000003,
193
- /** bundle-4 */
194
- bundle_4_100000004 = 100000004,
195
- /** bundle-5 */
196
- bundle_5_100000005 = 100000005,
197
- /** bundle-6 */
198
- bundle_6_100000006 = 100000006,
199
- /** bundle-7 */
200
- bundle_7_100000007 = 100000007,
201
- /** bundle-8 */
202
- bundle_8_100000008 = 100000008,
203
- /** bundle-9 */
204
- bundle_9_100000009 = 100000009,
245
+ declare function getSolanaTokenMint(token: SupportedToken, cluster?: BundleCluster): string;
246
+ /** SPL decimals for `token` (same on mainnet vs devnet for current overrides). */
247
+ declare function getSolanaTokenDecimals(token: SupportedToken): number;
248
+ //#endregion
249
+ //#region src/types/vault-types.d.ts
250
+ declare enum VaultType {
251
+ Drift = "Drift",
252
+ Bundle = "Bundle",
253
+ Hyperliquid = "Hyperliquid",
254
+ Kamino = "Kamino",
255
+ }
256
+ declare enum VaultCategory {
257
+ marketNeutral = "Market Neutral",
258
+ directional = "Directional",
259
+ etf = "Index",
260
+ bet = "Bet",
261
+ savings = "Savings",
262
+ privateCredit = "Private Credit",
263
+ airdropFarming = "Airdrop Farming",
264
+ yieldEnhancement = "Yield Enhancement",
265
+ fundOfFund = "Master Vault",
266
+ }
267
+ /** Raw vault entry from registry JSON */
268
+ interface VaultRegistryEntry {
269
+ vaultId: number;
270
+ name: string;
271
+ subname?: string;
272
+ type: VaultType;
273
+ category: VaultCategory;
274
+ vaultAddress: string;
275
+ depositToken: SupportedToken;
276
+ /** Optional Drift program ID (only for Drift vaults with non-default program) */
277
+ driftProgramId?: string;
278
+ /** Optional Bundle program ID. If omitted, SDK uses cluster default bundle program ID. */
279
+ bundleProgramId?: string;
280
+ /** Points: eTVL multiplier (default 1) */
281
+ pointsMultiplier?: number;
282
+ /** Points: include in points calculation (default true) */
283
+ pointsEnabled?: boolean;
205
284
  }
285
+ /** Registry entry after cluster-specific program ids have been resolved. */
286
+ type VaultConfig = Omit<VaultRegistryEntry, 'bundleProgramId' | 'driftProgramId'> & {
287
+ bundleProgramId: string | undefined;
288
+ driftProgramId: string | undefined;
289
+ };
290
+ /** Vault registry as a record keyed by vaultId */
291
+ type VaultRegistry = Record<number, VaultConfig>;
206
292
  //#endregion
207
- //#region src/utils/amount-raw.d.ts
293
+ //#region src/constants/vaults.d.ts
208
294
  /**
209
- * Parse `amountRaw`: base-10 digits only, smallest token units (same scale as SPL `amount`).
210
- * @throws Error with message `INVALID_AMOUNT_RAW` on invalid input
295
+ * Get Bundle Program ID for a vault config
296
+ * Uses registry value if present, otherwise falls back to cluster default.
211
297
  */
212
- declare function parseAmountRawToBigInt(amountRaw: string): bigint;
298
+ declare function getBundleProgramId(vault: VaultRegistryEntry, cluster?: BundleCluster): string | undefined;
213
299
  /**
214
- * Legacy UI path: finite `human` × 10^`decimals`, rounded to nearest integer token unit.
215
- * Prefer integrators sending `amountRaw` from a decimal string instead of this helper.
216
- * @throws Error with message `INVALID_HUMAN_AMOUNT` when out of range or non-finite
300
+ * Get Drift Program ID for a vault config.
301
+ * Uses registry value if present, otherwise defaults to VAULT_PROGRAM_ID
217
302
  */
218
- declare function humanFloatToAmountRawString(human: number, decimals: number): string;
219
- //#endregion
220
- //#region src/utils/bundle.d.ts
303
+ declare function getDriftProgramId(vault: VaultRegistryEntry): string | undefined;
221
304
  /**
222
- * Estimated unpaid bundle fees in deposit token (mgmt + performance), matching on-chain `charge_user_fees`.
305
+ * Transform a registry entry to VaultConfig with program IDs
306
+ * - Drift vaults get driftProgramId
307
+ * - Bundle vaults get bundleProgramId (registry value or cluster default via {@link getBundleProgramId})
223
308
  */
224
- declare function estimatePendingBundleFeeToken({
225
- oracleData,
226
- bundleData,
227
- userBundle,
228
- assetDecimals,
229
- nowUnixSeconds
230
- }: {
231
- oracleData: OracleData;
232
- bundleData: BundleAccount;
233
- userBundle: UserBundleAccount;
234
- assetDecimals: number;
235
- nowUnixSeconds?: number;
236
- }): number;
309
+ declare function toVaultConfig(entry: VaultRegistryEntry, cluster?: BundleCluster): VaultConfig;
310
+ /**
311
+ * Transform an array of registry entries to VaultRegistry
312
+ * @param entries Registry entries to transform
313
+ * @param cluster Used to resolve default bundle program id when `bundleProgramId` is omitted in JSON
314
+ */
315
+ declare function toVaultRegistry(entries: VaultRegistryEntry[], cluster?: BundleCluster): VaultRegistry;
316
+ /** Mainnet registry (default; backward compatible). */
317
+ declare const vaults: VaultRegistry;
318
+ /** Devnet-only vault registry (fixtures / local testing). */
319
+ declare const vaultsDevnet: VaultRegistry;
320
+ declare function getVaultRegistry(cluster: BundleCluster): VaultRegistry;
321
+ declare function isValidVaultAddress(address: string, cluster?: BundleCluster): boolean;
322
+ declare function getVaultByAddress(address: string, cluster?: BundleCluster): VaultRegistryEntry | undefined;
323
+ declare function getVaultById(vaultId: number, cluster?: BundleCluster): VaultRegistryEntry | undefined;
237
324
  //#endregion
238
- //#region src/utils/bundle-fee-override.d.ts
239
- /** Mirrors `bundle-sc` `FEE_OVERRIDE_*` bit flags. */
240
- declare const FEE_OVERRIDE: {
241
- readonly DEPOSIT: number;
242
- readonly WITHDRAWAL: number;
243
- readonly PERFORMANCE: number;
244
- readonly MANAGEMENT: number;
245
- readonly ALL: number;
246
- };
247
- interface EffectiveFeeBps {
248
- depositFeeBps: number;
249
- withdrawalFeeBps: number;
250
- performanceFeeBps: number;
251
- managementFeeBps: number;
252
- }
253
- /** Normalized per-user fee override fields (bps + flag mask). */
254
- interface UserFeeOverrideFields {
255
- feeOverrideFlags: number;
256
- customDepositFeeBps: number;
257
- customWithdrawalFeeBps: number;
258
- customPerformanceFeeBps: number;
259
- customManagementFeeBps: number;
260
- }
261
- /** Decimal fees matching frontend `VaultConfig` (`0.01` = 1%). */
262
- interface EffectiveVaultFeeDecimals {
263
- dfee: number;
264
- wfee: number;
265
- pfee: number;
266
- mfee: number;
325
+ //#region src/constants/points-vaults.d.ts
326
+ /** Points-ready vault entry (no full Token - consumer resolves depositToken) */
327
+ interface PointsVaultEntry {
328
+ vaultId: number;
329
+ name: string;
330
+ address: string;
331
+ depositToken: string;
332
+ type: VaultType;
333
+ multiplier: number;
334
+ enabled: boolean;
335
+ bundleProgramId?: string;
267
336
  }
268
- declare function bpsToFeeDecimal(bps: number): number;
269
- declare function feeDecimalToBps(decimal: number): number;
270
- declare function bpsToPercentLabel(bps: number): string;
271
- declare function hasFeeOverrideFlag(flags: number, bit: number): boolean;
272
- declare function buildFeeOverrideMask(flags: {
273
- deposit?: boolean;
274
- withdrawal?: boolean;
275
- performance?: boolean;
276
- management?: boolean;
277
- }): number;
278
- declare function formatFeeOverrideFlags(flags: number): string;
279
- declare function readUserFeeOverrideFields(account: Record<string, unknown>): UserFeeOverrideFields;
280
- declare function vaultFeeDecimalsToBps(fees: EffectiveVaultFeeDecimals): EffectiveFeeBps;
281
- declare function effectiveFeeBpsToDecimals(fees: EffectiveFeeBps): EffectiveVaultFeeDecimals;
282
337
  /**
283
- * Apply per-user fee override flags onto default bps (bundle or vault-config defaults).
338
+ * Get vaults that earn points, filtered by pointsEnabled !== false.
339
+ * Returns entries ready for points backend consumption.
284
340
  */
285
- declare function resolveEffectiveFeeBpsFromDefaults(defaults: EffectiveFeeBps, user: UserFeeOverrideFields): EffectiveFeeBps;
341
+ declare function getPointsVaults(registry: VaultRegistry): PointsVaultEntry[];
342
+ //#endregion
343
+ //#region src/extensions/ata.d.ts
286
344
  /**
287
- * Mirror on-chain `resolve_effective_fees`. Returns fee rates in bps.
345
+ * SPL Associated Token Account program. Codama cannot derive PDAs owned by an
346
+ * external program, so this helper is hand-written. It mirrors the hardcoded
347
+ * derivation the generated `requestDeposit` builder performs internally for
348
+ * the pending-deposit token account.
288
349
  */
289
- declare function resolveEffectiveFeeBps(bundle: BundleAccount, user: UserBundleAccount): EffectiveFeeBps;
350
+ declare const ASSOCIATED_TOKEN_PROGRAM_ADDRESS: Address<"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL">;
351
+ declare const TOKEN_PROGRAM_ADDRESS: Address<"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA">;
290
352
  /**
291
- * Resolve effective fees for UI vault config defaults + optional user bundle account.
292
- * Returns decimal fees (`0.01` = 1%).
353
+ * Derives the associated token account for `owner` and `mint`.
354
+ * Works for PDA owners as well (the derivation is curve-agnostic).
293
355
  */
294
- declare function resolveEffectiveVaultFees(vaultDefaults: EffectiveVaultFeeDecimals, user?: UserBundleAccount | null): EffectiveVaultFeeDecimals;
295
- declare function hasAnyFeeOverride(user?: UserBundleAccount | null): boolean;
296
- declare function hasCustomFeeRate(effectiveFees: EffectiveVaultFeeDecimals, vaultDefaults: EffectiveVaultFeeDecimals): boolean;
297
- declare function computeDepositFeePreview(grossAmount: number, depositFeeDecimal: number): {
298
- feeAmount: number;
299
- netAmount: number;
356
+ declare function findAssociatedTokenPda(seeds: {
357
+ owner: Address;
358
+ mint: Address;
359
+ tokenProgram?: Address;
360
+ }): Promise<ProgramDerivedAddress>;
361
+ //#endregion
362
+ //#region src/extensions/fees.d.ts
363
+ /** Mirrors `FEE_OVERRIDE_DEPOSIT` in `constants.rs:15`. */
364
+ declare const FEE_OVERRIDE_DEPOSIT: number;
365
+ /** Mirrors `FEE_OVERRIDE_WITHDRAWAL` in `constants.rs:16`. */
366
+ declare const FEE_OVERRIDE_WITHDRAWAL: number;
367
+ /** Mirrors `FEE_OVERRIDE_PERFORMANCE` in `constants.rs:17`. */
368
+ declare const FEE_OVERRIDE_PERFORMANCE: number;
369
+ /** Mirrors `FEE_OVERRIDE_MANAGEMENT` in `constants.rs:18`. */
370
+ declare const FEE_OVERRIDE_MANAGEMENT: number;
371
+ /** Result shape from `resolve_effective_fees` at `bundle.rs:433-457`. */
372
+ type EffectiveFees = {
373
+ depositFeeBps: number;
374
+ withdrawalFeeBps: number;
375
+ performanceFeeBps: number;
376
+ managementFeeBps: number;
300
377
  };
301
- /** Same linear preview as deposit: fee = gross × rate, net = gross − fee. */
302
- declare function computeWithdrawFeePreview(grossAmount: number, withdrawalFeeDecimal: number): {
303
- feeAmount: number;
304
- netAmount: number;
378
+ /** Mirrors `resolve_effective_fees` at `bundle.rs:433-457`, including zero-valued overrides. */
379
+ declare function resolveEffectiveFees(bundle: Pick<Bundle, "depositFee" | "withdrawalFee" | "performanceFee" | "managementFeeBps">, user: Pick<UserBundleAccount, "feeOverrideFlags" | "customDepositFeeBps" | "customWithdrawalFeeBps" | "customPerformanceFeeBps" | "customManagementFeeBps">): EffectiveFees;
380
+ /** Read-only result corresponding to `ChargedUserFees` returned at `bundle.rs:842-850`. */
381
+ type PendingFeeEstimate = {
382
+ managementFeeShares: bigint;
383
+ performanceFeeShares: bigint;
384
+ totalFeeShares: bigint;
385
+ feeValueRaw: bigint;
386
+ sharePrice: bigint;
305
387
  };
388
+ /**
389
+ * Estimates the user-share deductions in `charge_user_fees` at
390
+ * `bundle.rs:653-851`. Referral handling at `bundle.rs:767-800` is omitted
391
+ * because it only divides the same deducted shares between manager and
392
+ * referrer. If `assetPrecision` is zero, this helper returns a zero fee value;
393
+ * the Rust function reports a division error at `bundle.rs:829-834`.
394
+ */
395
+ declare function estimatePendingUserFees(args: {
396
+ bundle: Pick<Bundle, "depositFee" | "withdrawalFee" | "performanceFee" | "managementFeeBps" | "assetPrecision" | "bundleUnderlyingBalance" | "totalShares">;
397
+ oracleData: Pick<OracleData, "averageExternalEquity">;
398
+ userBundle: Pick<UserBundleAccount, "shares" | "hwmPerShare" | "lastManagementFeeTimestamp" | "feeOverrideFlags" | "customDepositFeeBps" | "customWithdrawalFeeBps" | "customPerformanceFeeBps" | "customManagementFeeBps">;
399
+ nowUnixSeconds: number | bigint;
400
+ }): PendingFeeEstimate;
306
401
  //#endregion
307
- //#region src/utils/request-withdraw-shares.d.ts
402
+ //#region src/extensions/rpc.d.ts
403
+ type GetAccountInfoRpc = Rpc<GetAccountInfoApi>;
404
+ type GetMultipleAccountsRpc = Rpc<GetMultipleAccountsApi>;
405
+ type GetProgramAccountsRpc = Rpc<GetProgramAccountsApi>;
308
406
  /**
309
- * Shares to burn for `requestWithdrawal`, from integer token raw and on-chain totals.
310
- * Full position: pass `amountRaw >= userTokenRaw` where `userTokenRaw = (userShares * totalEquity) / totalShares`.
407
+ * Combined RPC interface used by the higher-level extension helpers.
408
+ * The generated single-account fetchers use `getAccountInfo`; the generated
409
+ * batch fetchers (`fetchAllMaybe*`) use `getMultipleAccounts`.
311
410
  */
312
- declare function computeRequestWithdrawalSharesFromAmountRaw({
313
- amountRaw,
314
- userShares,
315
- totalEquity,
316
- totalShares
317
- }: {
318
- amountRaw: bigint;
319
- userShares: BN;
320
- totalEquity: bigint;
321
- totalShares: bigint;
322
- }): BN;
411
+ type ExtensionsRpc = Rpc<GetAccountInfoApi & GetMultipleAccountsApi>;
323
412
  //#endregion
324
- //#region src/utils/bundle-instructions.d.ts
325
- interface BuildBundleDepositInstructionsParams {
326
- connection: Connection;
327
- bundleCluster?: BundleCluster;
328
- vaultId: number;
329
- user: PublicKey;
330
- /** Smallest token units (decimal string), same scale as SPL token `amount`. */
331
- amountRaw: string;
332
- }
333
- interface BuildBundleRequestWithdrawInstructionParams {
334
- connection: Connection;
335
- bundleCluster?: BundleCluster;
336
- vaultId: number;
337
- user: PublicKey;
338
- /** Smallest token units (decimal string) to request withdrawing. */
339
- amountRaw: string;
340
- }
341
- interface BuildBundleRequestSwitchInstructionParams {
342
- connection: Connection;
343
- bundleCluster?: BundleCluster;
344
- sourceVaultId: number;
345
- targetVaultId: number;
346
- user: PublicKey;
347
- /** Smallest token units (decimal string) to switch out of the source vault. */
348
- amountRaw: string;
349
- }
413
+ //#region src/extensions/balances.d.ts
414
+ type UserBundleBalance = {
415
+ bundleAccount: Address;
416
+ user: Address;
417
+ sharesRaw: bigint;
418
+ /** Current redeemable value of the shares in token smallest units (integer floor, mirrors onchain calculate_assets_from_shares). */
419
+ balanceRaw: bigint;
420
+ /** Signed (i128 onchain): lifetime deposits minus withdrawals. */
421
+ netDepositsRaw: bigint;
422
+ /** balanceRaw - netDepositsRaw (signed). */
423
+ earningsRaw: bigint;
424
+ pendingDepositRaw: bigint;
425
+ /** userBundle.totalFeeCharged. */
426
+ feesPaidRaw: bigint;
427
+ pendingFees: PendingFeeEstimate;
428
+ hwmPerShare: bigint;
429
+ totalEquityRaw: bigint;
430
+ totalShares: bigint;
431
+ assetPrecision: bigint;
432
+ assetDecimals: number;
433
+ assetAddress: Address;
434
+ };
350
435
  /**
351
- * `initializeBundleDepositor` (when needed) + `requestDeposit` for a built-in registry vault.
436
+ * Calculates the raw balance fields returned by the legacy SDK's
437
+ * `calculateBundleUserBalance`. The legacy helper used floating-point PPS and
438
+ * `Math.round`; this helper uses the exact integer floor from
439
+ * `calculate_assets_from_shares` at `bundle.rs:259-270`.
352
440
  */
353
- declare function buildBundleDepositInstructions({
354
- connection,
355
- bundleCluster,
356
- vaultId,
357
- user,
358
- amountRaw
359
- }: BuildBundleDepositInstructionsParams): Promise<TransactionInstruction[]>;
441
+ declare function computeUserBundleBalance(args: {
442
+ bundleAccount: Address;
443
+ user: Address;
444
+ bundle: Bundle;
445
+ oracleData: OracleData;
446
+ userBundle: UserBundleAccount;
447
+ nowUnixSeconds: number | bigint;
448
+ }): UserBundleBalance;
360
449
  /**
361
- * `requestWithdrawal` for a built-in registry vault.
450
+ * Mirrors the three aligned `fetchMultiple` batches in the legacy SDK's
451
+ * `getBundleBalances`. Duplicate addresses remain in every request array so
452
+ * each output index corresponds directly to its input request.
362
453
  */
363
- declare function buildBundleRequestWithdrawInstruction({
364
- connection,
365
- bundleCluster,
366
- vaultId,
367
- user,
368
- amountRaw
369
- }: BuildBundleRequestWithdrawInstructionParams): Promise<TransactionInstruction>;
454
+ declare function fetchUserBundleBalances(rpc: ExtensionsRpc, args: {
455
+ requests: ReadonlyArray<{
456
+ bundleAccount: Address;
457
+ user: Address;
458
+ }>;
459
+ programAddress?: Address;
460
+ nowUnixSeconds?: number | bigint;
461
+ }): Promise<Array<UserBundleBalance | null>>;
462
+ declare function fetchUserBundleBalance(rpc: ExtensionsRpc, args: {
463
+ bundleAccount: Address;
464
+ user: Address;
465
+ programAddress?: Address;
466
+ nowUnixSeconds?: number | bigint;
467
+ }): Promise<UserBundleBalance | null>;
468
+ //#endregion
469
+ //#region src/extensions/flows.d.ts
470
+ type BuildDepositInstructionsParams = {
471
+ user: TransactionSigner;
472
+ bundleAccount: Address;
473
+ amountRaw: bigint;
474
+ /** Defaults to the user's associated token account for the bundle's asset mint. */
475
+ userTokenAccount?: Address;
476
+ /** Defaults to NTBUNDLE_PROGRAM_ADDRESS. */
477
+ programAddress?: Address;
478
+ };
479
+ /** Mirrors the legacy `buildBundleDepositInstructionsWithVault` flow. */
480
+ declare function buildDepositInstructions(rpc: ExtensionsRpc, params: BuildDepositInstructionsParams): Promise<Instruction[]>;
481
+ type BuildRequestWithdrawInstructionParams = {
482
+ user: TransactionSigner;
483
+ bundleAccount: Address;
484
+ amountRaw: bigint;
485
+ programAddress?: Address;
486
+ };
370
487
  /**
371
- * `initializeBundleDepositor` on target (when needed) + `requestBundleSwitch`
372
- * for built-in registry vaults (source target, same deposit token).
488
+ * Mirrors the legacy `buildBundleRequestWithdrawInstructionWithVault` flow.
489
+ * This helper rejects a zero-share result instead of forwarding it to the
490
+ * program as the legacy helper did.
373
491
  */
374
- declare function buildBundleRequestSwitchInstruction({
375
- connection,
376
- bundleCluster,
377
- sourceVaultId,
378
- targetVaultId,
379
- user,
380
- amountRaw
381
- }: BuildBundleRequestSwitchInstructionParams): Promise<TransactionInstruction[]>;
492
+ declare function buildRequestWithdrawInstruction(rpc: ExtensionsRpc, params: BuildRequestWithdrawInstructionParams): Promise<Instruction>;
493
+ type BuildRequestSwitchInstructionsParams = {
494
+ user: TransactionSigner;
495
+ sourceBundleAccount: Address;
496
+ targetBundleAccount: Address;
497
+ amountRaw: bigint;
498
+ programAddress?: Address;
499
+ };
500
+ /**
501
+ * Mirrors the legacy `buildBundleRequestSwitchInstructionsWithVaults` flow.
502
+ * This version-locked client does not perform the legacy runtime IDL capability
503
+ * probe for `request_bundle_switch`.
504
+ */
505
+ declare function buildRequestSwitchInstructions(rpc: ExtensionsRpc, params: BuildRequestSwitchInstructionsParams): Promise<Instruction[]>;
382
506
  //#endregion
383
- //#region src/utils/pda.d.ts
384
- declare const SEED_ORACLE: NodeJS.NonSharedUint8Array;
385
- declare const SEED_USER: NodeJS.NonSharedUint8Array;
386
- declare const SEED_TEMP: NodeJS.NonSharedUint8Array;
387
- declare const SEED_PENDING_AUTH: NodeJS.NonSharedUint8Array;
507
+ //#region src/extensions/math.d.ts
508
+ /** Mirrors `BPS_DENOMINATOR` in `constants.rs:12` and its use in `charge_user_fees` at `bundle.rs:693-695`. */
509
+ declare const BPS_DENOMINATOR = 10000n;
510
+ /** Mirrors `SECONDS_IN_YEAR` in `constants.rs:11` and its use in `charge_user_fees` at `bundle.rs:693-695`. */
511
+ declare const SECONDS_IN_YEAR = 31536000n;
512
+ /** Upper bound for the Rust `u64` amounts consumed by `fetch_total_equity` at `bundle.rs:244-257`. */
513
+ declare const U64_MAX = 18446744073709551615n;
388
514
  /**
389
- * Derive Oracle PDA for Bundle vault
515
+ * Parses a positive decimal `u64` amount for Rust amount paths such as
516
+ * `calculate_assets_from_shares` at `bundle.rs:259-270`.
390
517
  */
391
- declare function deriveOraclePDA(bundlePDA: PublicKey, programId: PublicKey): PublicKey;
518
+ declare function parseAmountRaw(amountRaw: string): bigint;
392
519
  /**
393
- * Derive User PDA for Bundle vault
520
+ * Enforces the positive Rust `u64` bounds used by amount parameters such as
521
+ * `total_assets` in `calculate_assets_from_shares` at `bundle.rs:259-270`.
394
522
  */
395
- declare function deriveUserPDA(userKey: PublicKey, bundlePDA: PublicKey, programId: PublicKey): PublicKey;
523
+ declare function assertValidAmountRaw(amountRaw: bigint): void;
396
524
  /**
397
- * Derive Temp Data PDA for Bundle vault
525
+ * Converts a UI float to the integer amount domain used by
526
+ * `calculate_assets_from_shares` at `bundle.rs:259-270`.
398
527
  */
399
- declare function deriveTempDataPDA(bundlePDA: PublicKey, programId: PublicKey): PublicKey;
528
+ declare function humanFloatToAmountRaw(human: number, decimals: number): bigint;
529
+ /** Mirrors `fetch_total_equity` at `bundle.rs:244-257`. */
530
+ declare function totalEquityRaw(args: {
531
+ bundleUnderlyingBalance: bigint;
532
+ averageExternalEquity: bigint;
533
+ }): bigint;
534
+ /** Mirrors the share-price calculation in `charge_user_fees` at `bundle.rs:662-670`. */
535
+ declare function sharePriceRaw(args: {
536
+ totalAssets: bigint;
537
+ totalShares: bigint;
538
+ assetPrecision: bigint;
539
+ }): bigint;
400
540
  /**
401
- * Derive pending bundle asset authority PDA (pending deposit token ATA owner)
541
+ * Mirrors `calculate_assets_from_shares` at `bundle.rs:259-270`. When
542
+ * `totalShares` is zero this read-only helper returns zero, while the Rust
543
+ * function reports a division error.
402
544
  */
403
- declare function derivePendingAuthPDA(bundlePDA: PublicKey, programId: PublicKey): PublicKey;
545
+ declare function calculateAssetsFromShares(args: {
546
+ shares: bigint;
547
+ totalAssets: bigint;
548
+ totalShares: bigint;
549
+ }): bigint;
404
550
  /**
405
- * Get Vault Depositor PDA for Drift vault
406
- * Custom code to handle jlpdnv1 special case
551
+ * Applies the legacy withdrawal-share ratio using the integer division from
552
+ * `calculate_assets_from_shares` at `bundle.rs:259-270`.
407
553
  */
408
- declare function getVaultDepositorAddressSync(programId: PublicKey, vault: PublicKey, authority: PublicKey): PublicKey;
554
+ declare function computeWithdrawalShares(args: {
555
+ amountRaw: bigint;
556
+ userShares: bigint;
557
+ totalEquity: bigint;
558
+ totalShares: bigint;
559
+ }): bigint;
560
+ /**
561
+ * Returns the UI ratio corresponding to the price calculation in
562
+ * `charge_user_fees` at `bundle.rs:662-670`. Converting bigints to numbers can
563
+ * lose precision.
564
+ */
565
+ declare function calculateOnChainPps(args: {
566
+ totalEquity: bigint;
567
+ totalShares: bigint;
568
+ }): number;
409
569
  //#endregion
410
- 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 };
570
+ 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 };