Skip to content

Comments

feat(explorer): TIP-20 Token tab and native precompile info#603

Merged
snario merged 1 commit intomainfrom
feat/tip20-contract-info
Feb 20, 2026
Merged

feat(explorer): TIP-20 Token tab and native precompile info#603
snario merged 1 commit intomainfrom
feat/tip20-contract-info

Conversation

@snario
Copy link
Contributor

@snario snario commented Feb 20, 2026

Summary

Adds a dedicated Token tab for TIP-20 native token addresses and a precompile banner on the Contract tab.

What's new

  • Token tab (new, TIP-20 only) — shows configuration (supply cap, currency, transfer policy, paused state), creation details (date, deployer, tx), and current role holders with grant dates
  • Contract tab — simplified for TIP-20: "TIP-20 Native Precompile" banner with spec links + ABI only
  • /api/tip20-roles endpoint — queries indexed RoleMembershipUpdated events and fetches TIP-20 config via server-side RPC
  • Extended address metadata API — now returns createdTxHash and createdBy (deployer)
  • Responsive layout — addresses use Midcut truncation, roles stay single-row, dates hidden on mobile

Screenshots

Token tab (desktop)

Token tab desktop

Contract tab (desktop)

Contract tab desktop

Token tab (mobile)

Token tab mobile

Testing

Test with any TIP-20 address, e.g. USDC.e (Stargate): 0x20c000000000000000000000b9537d11c60e8b50 on presto (mainnet).

@github-actions
Copy link

github-actions bot commented Feb 20, 2026

Bundle Size Report

Metric Size Δ Change
Total 5.3 MB +528.0 KB (+10.8%)
Gzip 1.5 MB +192.5 KB (+14.4%)
Brotli 1.3 MB +161.0 KB (+14.0%)
Chunk changes (>1KB)
Chunk Change
assets/QueryBuilder.js (removed) -423.4 KB
assets/createSsrRpc.js (removed) -43.8 KB
assets/stringify.js (removed) -19.7 KB
assets/base.js (removed) -12.8 KB
assets/TxEventDescription.js -2.3 KB
assets/useWatchBlockNumber.js (removed) -2.1 KB
assets/utils.js -1.7 KB
assets/Intro.js +1.2 KB
assets/profiling.js +1.3 KB
assets/_layout.js +1.7 KB
assets/wagmi.config.js +4.0 KB
assets/block-number.js (new) +4.3 KB
assets/useChainId.js +4.4 KB
assets/isAddressEqual.js +19.0 KB
assets/_address.js +19.5 KB
index.js +92.4 KB
assets/router.js +160.7 KB
assets/fetch.js (new) +249.2 KB
assets/tempo-queries.js (new) +475.2 KB

Compared against main branch (baseline from 2/4/2026, 5:13:51 PM)

@github-actions
Copy link

github-actions bot commented Feb 20, 2026

Cloudflare Deployments

App Environment Status Preview
api - [>>] Skipped No changes
explorer devnet [OK] Deployed View Preview
explorer moderato [OK] Deployed View Preview
explorer presto [OK] Deployed View Preview
explorer testnet [OK] Deployed View Preview
fee-payer devnet [>>] Skipped No changes
fee-payer privy [>>] Skipped No changes
fee-payer testnet [>>] Skipped No changes
og - [>>] Skipped No changes
tokenlist - [>>] Skipped No changes

@snario snario force-pushed the feat/tip20-contract-info branch from 3d281df to 6eab9b4 Compare February 20, 2026 04:14
- New Tip20ContractInfo component showing configuration (supply cap,
  currency, transfer policy, paused state), creation details (date,
  deployer address, creation tx), and role holders with grant dates
- New /api/tip20-roles endpoint querying indexed RoleMembershipUpdated
  events to determine current role holders
- Extended address metadata API to return createdTxHash and createdBy
  (deployer) from the oldest transaction
- Responsive layout: addresses use Midcut truncation, roles stay
  single-row on all screen sizes, dates hidden on mobile
- Bytecode section hidden for TIP-20 precompiles (bytecode is 0xef)
- Links to TIP-20 spec, Solidity reference impl, and Rust impl

Amp-Thread-ID: https://ampcode.com/threads/T-019c78f2-7e7e-7572-b57f-064c64d9b457
Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019c78f2-7e7e-7572-b57f-064c64d9b457
Co-authored-by: Amp <amp@ampcode.com>
@snario snario force-pushed the feat/tip20-contract-info branch from 6eab9b4 to 1abe67b Compare February 20, 2026 21:18
@snario snario changed the title feat(explorer): TIP-20 native token info on Contract tab feat(explorer): TIP-20 Token tab and native precompile info Feb 20, 2026
@snario snario merged commit b0c7b71 into main Feb 20, 2026
14 checks passed
@snario snario deleted the feat/tip20-contract-info branch February 20, 2026 22:47
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