feat(wasm-utxo)!: move inspect feature from CLI to library package#179
Merged
Conversation
Move PSBT and transaction parsing functionality from the CLI package into the main wasm-utxo library behind the `inspect` feature flag. This makes the parser reusable across CLI, WASM, and other consumers while keeping optional dependencies isolated. Key changes: - Add `inspect` feature with dependencies (num-bigint, serde, etc.) - Move parser implementation from CLI to src/inspect module - Add enum-based NetworkArg for improved CLI type safety - Add WASM bindings with runtime feature detection - Add TypeScript wrapper at @bitgo/wasm-utxo/inspect import path - Support both Bitcoin and Zcash transaction/PSBT formats - Update CLI to consume inspect feature from library - Add comprehensive documentation and examples Breaking changes for CLI: - Address/PSBT/TX commands now use --network value_enum - Network arguments use short names (btc, ltc, etc.) Issue: BTC-0 Co-authored-by: llm-git <llm-git@ttll.de>
2736045 to
60b606f
Compare
davidkaplanbitgo
approved these changes
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move PSBT and transaction parsing functionality from the CLI package
into the main wasm-utxo library behind the
inspectfeature flag.This makes the parser reusable across CLI, WASM, and other consumers
while keeping optional dependencies isolated.
Key changes:
inspectfeature with dependencies (num-bigint, serde, etc.)BREAKING CHANGE: Address/PSBT/TX commands now use --network
value_enum. Network arguments use short names (btc, ltc, etc.).
Issue: BTC-0
Co-authored-by: llm-git llm-git@ttll.de