Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add viem/tokens entrypoint#4767

Merged
jxom merged 34 commits into
mainfrom
jxom/tokens
Jun 30, 2026
Merged

feat: add viem/tokens entrypoint#4767
jxom merged 34 commits into
mainfrom
jxom/tokens

Conversation

@jxom

@jxom jxom commented Jun 29, 2026

Copy link
Copy Markdown
Member

Adds a viem/tokens entrypoint with first-class token actions and utilities.

jxom added 2 commits June 26, 2026 11:49
Adds a composable viem/tokens entrypoint:
- Generic Actions.erc20.* actions (read/write/sync/watch) with .call + extractEvent
- Decorators.defineErc20 factory + usdc() client decorator (client.usdc.*)
- Per-chain USDC address map (Addresses.usdc)
- String amounts parsed via decimals; address resolvable from client chain,
  an explicit address, or a chain override
- Docs (site/pages/tokens.mdx) wired into core + Tokens sidebars

Checkpoint before refactor to chain-config tokens + tokenActions() proxy.

Amp-Thread-ID: https://ampcode.com/threads/T-019f00b4-7aca-73df-8be4-4e0aa526a460
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
viem Ready Ready Preview, Comment Jun 30, 2026 3:56am

Request Review

@changeset-bot

changeset-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f707a1a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@socket-security

socket-security Bot commented Jun 29, 2026

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: npm @internationalized/date is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: pnpm-lock.yamlnpm/@internationalized/[email protected]

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@internationalized/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@pkg-pr-new

pkg-pr-new Bot commented Jun 29, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/viem@4767

commit: f707a1a

@jxom jxom changed the title feat(tokens): add token actions feat: add viem/tokens entrypoint Jun 29, 2026
@jxom jxom marked this pull request as ready for review June 29, 2026 09:57
@jxom jxom merged commit 0def056 into main Jun 30, 2026
30 of 31 checks passed
@jxom jxom deleted the jxom/tokens branch June 30, 2026 05:02
This was referenced Jun 30, 2026
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