Skip to content

Conversation

walioo
Copy link

@walioo walioo commented Sep 22, 2025

Add static token TWT2 (factory), include logo and metadata.

Summary by CodeRabbit

  • New Features

    • Added support for the TWT2 token on mainnet, including symbol, name, decimals, and logo. It now appears in token lists and is selectable in the app.
  • Chores

    • Adjusted token list ordering (HPNJ repositioned) without changing functionality.

Copy link

coderabbitai bot commented Sep 23, 2025

Walkthrough

Adds TWT2 token to the public metadata and mainnet token registry. Updates symbolMeta with TWT2 fields and appends a corresponding mainnetTokens entry. Reorders the HPNJ block within mainnetTokens without changing its data. No method signatures or APIs changed; no testnet/devnet modifications.

Changes

Cohort / File(s) Summary
Token metadata entry
src/data/tokens/symbolMeta.ts
Added TWT2 to symbolMeta with fields: decimals 9, symbol "TWT2", logo "twt2.png", coinGeckoId "", name "TEST RWA TOKEN".
Mainnet token registry update
src/data/tokens/tokenFactory.ts
Added TWT2 to mainnetTokens referencing symbolMeta.TWT2 with its creator; repositioned the HPNJ block without changing its contents; no changes to devnet/testnet.

Sequence Diagram(s)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

A whisk of code, a hop so keen,
TWT2 joins the token green 🥕
HPNJ shuffled—still serene—
Mainnet rows now crisp and clean.
I thump in joy, ears all agleam,
New carrots added to the stream!

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title "add twt2" is concise and accurately reflects the PR's main change—adding the TWT2 token and its metadata (updates to src/data/tokens/symbolMeta.ts and src/data/tokens/tokenFactory.ts)—and aligns with the PR objectives.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
src/data/tokens/tokenFactory.ts (1)

567-570: Avoid incidental reordering of HPNJ unless intentional

Repositioning HPNJ in mainnetTokens creates churn and raises merge‑conflict risk. If there’s no functional reason, please keep HPNJ at its previous location and only append TWT2.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dd9c3c2 and 51588f2.

⛔ Files ignored due to path filters (1)
  • src/images/tokens/twt2.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • src/data/tokens/symbolMeta.ts (1 hunks)
  • src/data/tokens/tokenFactory.ts (1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
src/data/tokens/tokenFactory.ts (1)
src/data/tokens/symbolMeta.ts (1)
  • symbolMeta (3-2378)
🔇 Additional comments (2)
src/data/tokens/symbolMeta.ts (1)

2364-2370: TWT2 metadata LGTM — confirm display name and logo

Fields are complete and typed. Please confirm the user‑facing name “TEST RWA TOKEN” is intended for mainnet and that twt2.png follows your asset guidelines (size/format).

src/data/tokens/tokenFactory.ts (1)

564-566: Verify TWT2 creator maps to on‑chain factory; assets present

symbolMeta.TWT2 exists (src/data/tokens/symbolMeta.ts:2364); tokenFactory sets creator 'inj13we6l25kpzws8nlw0rnd30zejgcgq078fn4fag' (src/data/tokens/tokenFactory.ts:564–565); logo found at src/images/tokens/twt2.png — verify the creator address is the on‑chain TWT2 factory denom.

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