Skip to content

feat(tempo): add TIP-1004 permit functions to tip20 ABI#4442

Merged
tmm merged 2 commits intowevm:mainfrom
decofe:decofe/tip-1004-permit-abi
Apr 2, 2026
Merged

feat(tempo): add TIP-1004 permit functions to tip20 ABI#4442
tmm merged 2 commits intowevm:mainfrom
decofe:decofe/tip-1004-permit-abi

Conversation

@decofe
Copy link
Copy Markdown
Contributor

@decofe decofe commented Apr 2, 2026

Adds permit, nonces, and DOMAIN_SEPARATOR to the tip20 ABI, along with PermitExpired and InvalidSignature errors.

These were added to the Tempo node's ITIP20 interface as part of TIP-1004 (EIP-2612 permit support) but the viem ABI was not regenerated. Without these, the explorer can't decode permit-related calls/events, and SDK users can't call permit via viem.

Short-term explorer workaround: tempoxyz/tempo-apps#806

Verified on mainnet:

  • DOMAIN_SEPARATOR() returns valid bytes32
  • nonces(address) returns uint256
  • permit(...) is callable (reverts with InvalidSignature for bad sigs, confirming the function exists)

Prompted by: Liam

Co-Authored-By: Liam Horne 1933029+snario@users.noreply.github.com

Adds permit, nonces, and DOMAIN_SEPARATOR to the tip20 ABI definition,
along with PermitExpired and InvalidSignature errors. These were added to
the Tempo node as part of TIP-1004 (EIP-2612 permit support) but the ABI
in viem was not regenerated.

Co-authored-by: Liam Horne <1933029+snario@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4e48-9e9b-705a-a49e-7a3eea84702b
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

@decofe is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 2, 2026

🦋 Changeset detected

Latest commit: 2544d2e

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

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

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

Co-authored-by: Liam Horne <1933029+snario@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4e48-9e9b-705a-a49e-7a3eea84702b
@decofe
Copy link
Copy Markdown
Contributor Author

decofe commented Apr 2, 2026

Once this is merged and published, tempoxyz/tempo-apps#807 removes the short-term workaround and bumps viem to ^2.47.7.

@tmm tmm merged commit 0ece4d9 into wevm:main Apr 2, 2026
2 of 3 checks passed
@github-actions github-actions bot mentioned this pull request Apr 2, 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.

2 participants