Skip to content

Conversation

@jxom
Copy link
Member

@jxom jxom commented Jan 5, 2026

Adds TokenId.compute utility that computes deterministic TIP-20 token addresses from a sender address and salt.

This mirrors the compute_tip20_address function from tempoxyz/tempo#1819:

address = TIP20_PREFIX (12 bytes) || keccak256(abi.encode(sender, salt))[:8]

This new deployment scheme prevents front-running attacks on token deployments by making addresses deterministic based on the creator.

@vercel
Copy link

vercel bot commented Jan 5, 2026

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

Project Deployment Review Updated (UTC)
ox Ready Ready Preview, Comment Jan 5, 2026 10:22am

@jxom jxom force-pushed the feat/token-id-compute branch from 6dc1c50 to 59a6ad6 Compare January 5, 2026 10:15
@jxom jxom merged commit 95ebfcf into main Jan 5, 2026
3 of 4 checks passed
@jxom jxom deleted the feat/token-id-compute branch January 5, 2026 10:16
@github-actions github-actions bot mentioned this pull request Jan 5, 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