Skip to content

chore: remove hdwallet-native and hdwallet-native-vault packages#26

Closed
BitHighlander wants to merge 6 commits intomasterfrom
cleanup/remove-native-packages
Closed

chore: remove hdwallet-native and hdwallet-native-vault packages#26
BitHighlander wants to merge 6 commits intomasterfrom
cleanup/remove-native-packages

Conversation

@BitHighlander
Copy link
Collaborator

Summary

  • Remove hdwallet-native and hdwallet-native-vault packages (unused in vault v11)
  • Remove FIO integration tests and native wallet test harness
  • Fix TypeScript 5.x ArrayBuffer | SharedArrayBuffer type errors across transport files
  • Replace missing ethers/lib/utils.js imports in hdwallet-keepkey with inline helpers
  • Clean up sandbox example and integration test native references
  • Update root tsconfig.json and package.json to remove native package references

Details

The hdwallet-native package had accumulated build-breaking issues (FIO ExternalSignerAdapter type mismatch, missing ethers dependency) and is not used by the KeepKey hardware wallet stack. All hdwallet-keepkey-* packages are preserved.

TypeScript 5.x strict mode fixes:

  • as ArrayBuffer casts in hdwallet-core/utils.ts, hdwallet-keepkey/transport.ts, hdwallet-keepkey-nodewebusb/transport.ts, hdwallet-keepkey-webusb/transport.ts

Ethers removal in hdwallet-keepkey/ethereum.ts:

  • Inlined isHexString(), isBytes(), arrayify() — ethers was never a declared dependency

Test plan

  • yarn install && yarn build passes cleanly
  • All hdwallet-keepkey-* packages build without errors
  • No references to hdwallet-native remain in codebase

Remove unused native wallet packages that caused FIO type build errors.
Fix pre-existing TypeScript errors (ethers import, ArrayBuffer casts).
Clean up all native references from integration tests and sandbox.
@vercel
Copy link

vercel bot commented Mar 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hdwallet-sandbox Error Error Mar 9, 2026 8:52pm

Request Review

- Add bs58, bs58check as direct dependencies of hdwallet-keepkey
  (were phantom-hoisted from removed hdwallet-native)
- Add @types/bs58, @types/bs58check as devDependencies
- Fix prettier formatting in transport.ts (line too long from cast)
- Remove unused testPublicWalletXpubs and $native from sandbox
- Apply eslint autofix (import sort, prettier, blank lines)
- Suppress pre-existing namespace lint errors in solana.ts
Delete .circleci/config.yml and add .github/workflows/ci.yml.
Runs build, lint, and unit tests on Node 16 for PRs and pushes to master.
@BitHighlander
Copy link
Collaborator Author

Replaced by new PR with clean history rebased on ci/setup (PR #28)

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.

1 participant