Skip to content

feat: support viem token sets#608

Merged
brendanjryan merged 5 commits into
mainfrom
brendanjryan/viem-token-sets
Jul 2, 2026
Merged

feat: support viem token sets#608
brendanjryan merged 5 commits into
mainfrom
brendanjryan/viem-token-sets

Conversation

@brendanjryan

Copy link
Copy Markdown
Collaborator

Motivation

Allow EVM and x402 payment config to reuse viem token definitions and token sets for currency resolution and allowlists.

Summary

  • Added shared x402 asset helpers for viem token definitions and token-set currency matching
  • Allowed EVM/x402 client currency policies and EVM server currency config to accept viem tokens
  • Added focused runtime/type coverage and a patch changeset

Key design considerations

  • Kept EIP-3009 version explicit for viem tokens because viem token metadata does not include transfer version
  • Preserved the raw-address network requirement while allowing token definitions to resolve by challenge network
  • Rejected known assets configured against a mismatched chain ID instead of producing inconsistent challenges

@pkg-pr-new

pkg-pr-new Bot commented Jul 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/mppx@608

commit: 57e408d

@brendanjryan brendanjryan marked this pull request as ready for review July 1, 2026 21:56
@brendanjryan brendanjryan requested review from jxom and tmm July 1, 2026 22:14
@brendanjryan brendanjryan merged commit 754b491 into main Jul 2, 2026
13 checks passed
@brendanjryan brendanjryan deleted the brendanjryan/viem-token-sets branch July 2, 2026 15:36
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