@neutral-trade/sdk 0.2.7 → 0.2.9

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
@@ -3030,8 +3030,8 @@ declare function createBundleProgramById(provider: AnchorProvider, programId: st
3030
3030
  //#endregion
3031
3031
  //#region src/constants/vault-ids.d.ts
3032
3032
  /**
3033
- * Vault ID constants for backward compatibility
3034
- * These are auto-generated from the vault registry
3033
+ * Vault ID constants (VaultId)
3034
+ * Auto-generated from the vault registry JSON.
3035
3035
  */
3036
3036
  declare enum VaultId {
3037
3037
  /** Hyperithm-CTA-USDC-Bundle */
@@ -3192,6 +3192,16 @@ declare enum VaultId {
3192
3192
  jlp_delta_neutral_vault_1_0 = 0,
3193
3193
  }
3194
3194
  //#endregion
3195
+ //#region src/constants/vault-ids.devnet.d.ts
3196
+ /**
3197
+ * Vault ID constants (DevnetVaultId)
3198
+ * Auto-generated from the vault registry JSON.
3199
+ */
3200
+ declare enum DevnetVaultId {
3201
+ /** Dev1 */
3202
+ dev1_100000001 = 100000001,
3203
+ }
3204
+ //#endregion
3195
3205
  //#region src/types/tokens.d.ts
3196
3206
  declare enum SupportedChain {
3197
3207
  Solana = "Solana",
@@ -3214,6 +3224,13 @@ interface Token {
3214
3224
  } | null };
3215
3225
  }
3216
3226
  declare const tokens: { [name in SupportedToken]: Token };
3227
+ /**
3228
+ * Solana mint address for a supported token, keyed by bundle cluster.
3229
+ * Devnet USDC uses the team mock mint; other tokens use mainnet table until devnet overrides exist.
3230
+ */
3231
+ declare function getSolanaTokenMint(token: SupportedToken, cluster?: BundleCluster): string;
3232
+ /** SPL decimals for `token` (same on mainnet vs devnet for current overrides). */
3233
+ declare function getSolanaTokenDecimals(token: SupportedToken): number;
3217
3234
  //#endregion
3218
3235
  //#region src/types/bundle-types.d.ts
3219
3236
  type UserBundleAccount = IdlAccounts<Ntbundle>['userBundleAccount'];
@@ -3293,10 +3310,14 @@ type UserBalanceResult = Record<number, VaultBalanceData | null>;
3293
3310
  * Uses registry value if present, otherwise falls back to cluster default.
3294
3311
  */
3295
3312
  declare function getBundleProgramId(vault: VaultRegistryEntry, cluster?: BundleCluster): string | undefined;
3313
+ /** Mainnet registry (default; backward compatible). */
3296
3314
  declare const vaults: VaultRegistry;
3297
- declare function isValidVaultAddress(address: string): boolean;
3298
- declare function getVaultByAddress(address: string): VaultRegistryEntry | undefined;
3299
- declare function getVaultById(vaultId: number): VaultRegistryEntry | undefined;
3315
+ /** Devnet-only vault registry (fixtures / local testing). */
3316
+ declare const vaultsDevnet: VaultRegistry;
3317
+ declare function getVaultRegistry(cluster: BundleCluster): VaultRegistry;
3318
+ declare function isValidVaultAddress(address: string, cluster?: BundleCluster): boolean;
3319
+ declare function getVaultByAddress(address: string, cluster?: BundleCluster): VaultRegistryEntry | undefined;
3320
+ declare function getVaultById(vaultId: number, cluster?: BundleCluster): VaultRegistryEntry | undefined;
3300
3321
  //#endregion
3301
3322
  //#region src/NeutralTrade.d.ts
3302
3323
  interface NeutralTradeConfig {
@@ -3447,4 +3468,4 @@ declare function derivePendingAuthPDA(bundlePDA: PublicKey, programId: PublicKey
3447
3468
  */
3448
3469
  declare function getVaultDepositorAddressSync(programId: PublicKey, vault: PublicKey, authority: PublicKey): PublicKey;
3449
3470
  //#endregion
3450
- export { BUNDLE_PROGRAM_ID_V2_MAINNET, type BundleAccount, type BundleCluster, type BundleProgram, type BundleProvider, DEFAULT_BUNDLE_PROGRAM_ID_DEVNET, DEFAULT_BUNDLE_PROGRAM_ID_MAINNET, 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 VaultBalanceData, VaultCategory, type VaultRegistryEntry as VaultConfig, type VaultRegistry as VaultConfigRecord, VaultId, VaultType, buildBundleDepositInstructions, buildBundleRequestWithdrawInstruction, createBundleProgramById, createDummyWallet, deriveOraclePDA, derivePendingAuthPDA, deriveTempDataPDA, deriveUserPDA, getBundleProgramId, getDefaultBundleProgramIdByCluster, getVaultByAddress, getVaultById, getVaultDepositorAddressSync, isValidVaultAddress, tokens, vaults };
3471
+ export { BUNDLE_PROGRAM_ID_V2_MAINNET, type BundleAccount, type BundleCluster, type BundleProgram, type BundleProvider, DEFAULT_BUNDLE_PROGRAM_ID_DEVNET, DEFAULT_BUNDLE_PROGRAM_ID_MAINNET, DevnetVaultId, 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 VaultBalanceData, VaultCategory, type VaultRegistryEntry as VaultConfig, type VaultRegistry as VaultConfigRecord, VaultId, VaultType, buildBundleDepositInstructions, buildBundleRequestWithdrawInstruction, createBundleProgramById, createDummyWallet, deriveOraclePDA, derivePendingAuthPDA, deriveTempDataPDA, deriveUserPDA, getBundleProgramId, getDefaultBundleProgramIdByCluster, getSolanaTokenDecimals, getSolanaTokenMint, getVaultByAddress, getVaultById, getVaultDepositorAddressSync, getVaultRegistry, isValidVaultAddress, tokens, vaults, vaultsDevnet };