Skip to content

chore(deps): remove unused @canton-network/wallet-sdk direct dependency - #420

Merged
HardlyDifficult merged 1 commit into
mainfrom
remove-wallet-sdk-dep
Sep 23, 2026
Merged

HardlyDifficult merged 1 commit into
mainfrom
remove-wallet-sdk-dep

Conversation

@HardlyDifficult

Copy link
Copy Markdown
Collaborator

Summary

Removes the direct dependency @canton-network/wallet-sdk (pinned 1.5.1) from root package.json. Upstream Wallet SDK serves wallet provider/exchange integration and signing/submission use cases, but this SDK does not exercise any of them — a full audit found the scope identifier @canton-network appears only in the dependency declaration itself, nowhere in src/, test/, scripts/, examples/, docs, or configs. Since any JS/TS usage requires the literal package specifier, its absence across every file (tracked and untracked) proves absence of usage — not just of imports.

Verification performed before removal

  • Imports / source / tests / scripts / examples: full-tree case-insensitive search for wallet-sdk, wallet_sdk, walletSdk, WalletSdk, WalletSDK, and the whole @canton-network scope → only package.json matched.
  • Public exports: published artifacts are limited to build/src/**; with no src/ import, no public export can reference the package. check:package-artifacts passes (1403 files, 5.86 MB, unchanged surface).
  • Documented install contract: README / AGENTS / docs contain no reference to @canton-network/wallet-sdk.
  • No dynamic requires: repo has no .cjs files or dynamic require() paths that could reference it.

Checks

  • npm install (fresh, without the dep) — 971 packages installed successfully
  • npm run build (tsc7 core + lint projects, after initializing the libs/splice submodule) — ✅
  • Unit tests: 82 suites / 1163 tests passed (jest with test/integration excluded; plain npm test includes LocalNet integration tests that require a running LocalNet — environment-only failures confirmed identical with the dependency still present)
  • npm run lint:npm:check — ✅
  • npm run check:package-artifacts — ✅

Notes

  • package-lock.json is intentionally not committed (gitignored per repo convention).
  • A residual @canton-network/wallet-sdk@1.4.0 remains in node_modules via the @fairmint/canton-dev-tools@0.1.7 devDependency chain — expected, and not part of this SDK's own dependency graph.
  • Pre-existing on origin/main (verified via stash/restore, identical without this change): 4 ESLint errors in src/utils/external-signing/* + its unit tests, and 36 files failing Prettier. Untouched here to keep the PR focused; can be a follow-up.
  • Kept independent of chore: begin Canton Node SDK dependency refresh #418 (axios/ws/zod); no other upgrades bundled.

🤖 Generated with Claude Code

Made with Cursor

Repo audit found no imports of @canton-network/wallet-sdk anywhere in
src/, test/, scripts/, examples/, docs, or configs. The package serves
wallet provider/exchange integration and signing/submission use cases
upstream, but this SDK does not exercise them: the identifier
'@canton-network' appears only in this dependency declaration, and
published artifacts are limited to build/src/**, so no public export or
package artifact can reference it.

Removal verified with a full build (tsc7 core + lint projects, after
initializing the libs/splice submodule), all 82 unit test suites
(1163 tests), npm-package-json-lint, and the package-artifact check.

A residual @canton-network/wallet-sdk@1.4.0 remains in node_modules via
the @fairmint/canton-dev-tools devDependency chain, which is expected
and out of scope for this change.

Co-authored-by: Cursor <cursoragent@cursor.com>
@HardlyDifficult
HardlyDifficult marked this pull request as ready for review September 23, 2026 20:13
Copilot AI balanced review requested due to automatic review settings September 23, 2026 20:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

Repository-wide searches confirm no direct references remain.

Review effort: Balanced
Findings: None

What changed in this PR

Removes an unused direct Wallet SDK dependency, reducing the SDK’s runtime dependency surface.

Changes:

  • Removes @canton-network/wallet-sdk from root dependencies.
  • Preserves indirect usage through development tooling.
File Description
package.json Removes the unused direct dependency.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@HardlyDifficult HardlyDifficult self-assigned this Sep 23, 2026
@HardlyDifficult
HardlyDifficult merged commit cee3b6c into main Sep 23, 2026
11 checks passed
@HardlyDifficult
HardlyDifficult deleted the remove-wallet-sdk-dep branch September 23, 2026 20:16
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.

2 participants