From 1985860805df9e72bde4db648581bd62914fc1fa Mon Sep 17 00:00:00 2001 From: Luis Covarrubias Date: Tue, 25 Nov 2025 11:02:41 -0800 Subject: [PATCH] feat: export network parseDescriptor from babylon namespace The ESM build support added in PR #7534 introduced strict `exports` in package.json which blocks deep imports like: - @bitgo/utxo-staking/dist/src/babylon/parseDescriptor - @bitgo/utxo-staking/dist/src/babylon/network This breaks consumers (e.g., wallet-platform) that rely on these internal modules. By re-exporting them from the babylon namespace, consumers can import via the public API: import { babylon } from '@bitgo/utxo-staking'; const { parseStakingDescriptor, toBitcoinJsNetwork } = babylon; Ticket: BTC-2826 TICKET: BTC-2826 --- modules/utxo-staking/src/babylon/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/utxo-staking/src/babylon/index.ts b/modules/utxo-staking/src/babylon/index.ts index 852d9dc15a..8ef16a4401 100644 --- a/modules/utxo-staking/src/babylon/index.ts +++ b/modules/utxo-staking/src/babylon/index.ts @@ -7,6 +7,8 @@ bitcoinjslib.initEccLib(utxolib.ecc); export * from './delegationMessage'; export * from './descriptor'; +export * from './network'; +export * from './parseDescriptor'; export * from './stakingParams'; export * from './stakingManager'; export * from './undelegation';