Skip to content

Commit 1985860

Browse files
committed
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
1 parent 92e33c0 commit 1985860

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • modules/utxo-staking/src/babylon

modules/utxo-staking/src/babylon/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ bitcoinjslib.initEccLib(utxolib.ecc);
77

88
export * from './delegationMessage';
99
export * from './descriptor';
10+
export * from './network';
11+
export * from './parseDescriptor';
1012
export * from './stakingParams';
1113
export * from './stakingManager';
1214
export * from './undelegation';

0 commit comments

Comments
 (0)