Skip to content

Conversation

@OttoAllmendinger
Copy link
Contributor

This PR introduces two main improvements to the abstract-utxo module:

  1. Return specific coin types from createInstance rather than the generic
    BaseCoin type to improve type safety and eliminate the need for casting.

  2. Move UTXO test files to the abstract-utxo module for a more pleasant
    development cycle, allowing direct testing of the implementation without
    navigating to other modules. This change also replaces imports of the
    heavy BitGo dependency with the lighter TestBitGo.

Issue: BTC-2652

@OttoAllmendinger OttoAllmendinger force-pushed the BTC-2652.move-abstract-utxo-tests branch from 4e107db to 89dec78 Compare October 24, 2025 09:43
@OttoAllmendinger OttoAllmendinger changed the title feat(abstract-utxo): improve type safety and enhance testing feat(abstract-utxo): move utxo tests from bitgo/ to abstract-utxo/ Oct 24, 2025
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review October 24, 2025 11:30
@OttoAllmendinger OttoAllmendinger requested review from a team as code owners October 24, 2025 11:30
zahin-mohammad
zahin-mohammad previously approved these changes Oct 24, 2025
ppongbitgo
ppongbitgo previously approved these changes Oct 25, 2025
OttoAllmendinger and others added 4 commits October 27, 2025 09:10
Return specific coin types from createInstance rather than the generic
BaseCoin type to improve type safety and eliminate the need for casting.

Issue: BTC-2652

Co-authored-by: llm-git <llm-git@ttll.de>
This makes the development cycle more pleasant because we don't have to go to
some other module to test the `abstract-utxo` implementation.

Replaced imports of `BitGo` which pull in the full cursed deptree with imports
of the more modern TestBitGo which has a much lighter deptree.

Issue: BTC-2652

Co-authored-by: llm-git <llm-git@ttll.de>
Use internal coin implementations from abstract-utxo instead of the
sdk modules for test files. Replace fs-extra with node's fs/promises.

Issue: BTC-2652

Co-authored-by: llm-git <llm-git@ttll.de>
Remove @bitgo/blockapis and fs-extra dependencies that are declared but not used in the code.

This fixes the code-quality (dependencies) CI check failure.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Issue: BTC-2652
@OttoAllmendinger OttoAllmendinger force-pushed the BTC-2652.move-abstract-utxo-tests branch from e4d81bd to 0a59a50 Compare October 27, 2025 08:10
@OttoAllmendinger
Copy link
Contributor Author

resolved merge conflicts

@davidkaplanbitgo davidkaplanbitgo merged commit 2d50512 into master Oct 27, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants