Skip to content

feat: add support for ledger#478

Merged
hugomrdias merged 18 commits into
masterfrom
hugomrdias/ledger
Dec 10, 2025
Merged

feat: add support for ledger#478
hugomrdias merged 18 commits into
masterfrom
hugomrdias/ledger

Conversation

@hugomrdias
Copy link
Copy Markdown
Member

@hugomrdias hugomrdias commented Dec 3, 2025

  • add ledger connector to synapse-react
  • add ledgerToAccount to synpase-core
  • add support for ledger connect in the demo app plus changing account
  • upgrade to wagmi 3
  • sync viem (we need to moved these dependencies to catalog: protocol so we dont touch all the packages just to sync them across)

Rebase Merge please

@github-project-automation github-project-automation Bot moved this to 📌 Triage in FOC Dec 3, 2025
@hugomrdias hugomrdias requested a review from rjan90 December 3, 2025 15:17
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Dec 3, 2025

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
synapse-dev d27ab5a Commit Preview URL

Branch Preview URL
Dec 10 2025, 02:53 PM

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Dec 3, 2025

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Dec 3, 2025

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

Comment thread packages/synapse-react/src/ledger.ts Outdated
Comment thread packages/synapse-react/src/ledger.ts Outdated
Comment thread packages/synapse-core/src/ledger.ts Outdated
Comment thread packages/synapse-core/package.json Outdated
Comment thread apps/synapse-playground/src/components/connect-wallet.tsx
Comment thread apps/synapse-playground/src/components/wallet-menu/ledger-change-account.tsx Outdated
@rjan90 rjan90 moved this from 📌 Triage to 🔎 Awaiting review in FOC Dec 4, 2025
Copy link
Copy Markdown
Collaborator

@rjan90 rjan90 left a comment

Choose a reason for hiding this comment

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

Changes looks okay to me. One outstanding comment from Rod that would be worth aligning on before merging

Comment thread docs/src/content/docs/core-concepts/fwss-overview.mdx Outdated
- Introduced a new `ledger.ts` file for Ledger device integration, including functions for account management and transaction signing.
- Updated `package.json` to include new dependencies for Ledger support and adjusted existing dependencies to their latest versions.
- Added type definitions for Ledger transport and account parameters.
- Added type definitions and support for `filsnap` and `ledger` in `package.json`.
- Updated `filsnap.ts` to include a check for connector compatibility.
- Introduced a new `ledger.ts` file for comprehensive Ledger device integration, including account management and transaction signing.
- Updated dependencies in `package.json` to their latest versions, including `@biomejs/biome` and `wagmi`.
- Bumped versions of several dependencies in `package.json`, including `ox`, `viem`, `@biomejs/biome`, `abitype`, and `iso-web` to their latest releases.
- Bumped versions of `@biomejs/biome` to 2.3.8 and `knip` to 5.70.2.
…ntDialog

- Changed the validation message to clarify that the Address Index must be equal to or greater than 0.
…rectly handled

- Updated the `changeAccount` function to destructure parameters for better clarity and maintainability.
- Moved the device removal logic to ensure it executes after the device is found, improving the flow of the function.
- Renamed `domainSeperator` to `domainSeparator` for consistency and clarity in the `ledgerToAccount` function.
- Updated the corresponding usage in the signing process to reflect the corrected variable name.
…edgerChangeAccountDialog

- Updated the form schema and submission function to reflect the change in context from withdrawal to account change, enhancing clarity and maintainability.
- Deleted outdated dependencies related to Ledger integration, including `@ledgerhq/hw-app-eth`, `@ledgerhq/hw-transport`, `@ledgerhq/hw-transport-webhid`, and `@wagmi/core`, to streamline the package and reduce bloat.
@hugomrdias hugomrdias merged commit 3f023f6 into master Dec 10, 2025
11 checks passed
@hugomrdias hugomrdias deleted the hugomrdias/ledger branch December 10, 2025 15:57
@github-project-automation github-project-automation Bot moved this from 🔎 Awaiting review to 🎉 Done in FOC Dec 10, 2025
lordshashank pushed a commit to lordshashank/synapse-sdk that referenced this pull request Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

3 participants