Skip to content

Switch to viem - #584

Open
sirpy wants to merge 10 commits into
masterfrom
switch-to-viem
Open

sirpy wants to merge 10 commits into
masterfrom
switch-to-viem

Conversation

@sirpy

@sirpy sirpy commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Description

Switch wallet to viem with fallback rpcs from chainlist use @goodwidget/core createviemfallbackclient

Summary by Sourcery

Migrate blockchain wallet operations from Web3 to viem with resilient RPC fallbacks while preserving transaction, KMS, and contract workflow compatibility.

New Features:

  • Add viem-based public and wallet clients with configured RPC fallback and Chainlist RPC discovery for blockchain wallets.
  • Support viem contract reads, transaction encoding, receipt handling, and event querying across wallet and staking workflows.

Bug Fixes:

  • Preserve wallet transaction compatibility and nonce recovery while adapting to viem bigint values and receipt statuses.
  • Improve transaction error normalization and handling for local and KMS-signed submissions.

Enhancements:

  • Replace Web3 wallet and contract integrations with viem while retaining KMS signing support and wallet-facing receipt formats.
  • Update wallet, staking, verification, and blockchain tests for viem APIs and add focused coverage for fallback clients and transaction behavior.

Build:

  • Add viem and @goodwidget/core dependencies and update the lockfile.

Documentation:

  • Document viem clients, RPC fallback behavior, transaction APIs, receipt formats, and focused wallet test execution.

Tests:

  • Migrate blockchain tests from Web3 APIs to viem clients and contract interfaces.
  • Add comprehensive viem wallet tests covering RPC configuration, encoding, balances, fee handling, nonce queues, local signing, KMS signing, and reverted transactions.

Chores:

  • Apply related lint and formatting updates across the project.

@sourcery-ai

sourcery-ai Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Sorry @sirpy, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 1 day and 1 hour by commenting @sourcery-ai review. Upgrade to get a review now.

This branch has not been deployed

No deployments
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