Skip to content

sync main#3394

Merged
ca333 merged 7 commits intomainfrom
dev
Nov 13, 2025
Merged

sync main#3394
ca333 merged 7 commits intomainfrom
dev

Conversation

@ca333
Copy link
Copy Markdown
Contributor

@ca333 ca333 commented Nov 13, 2025

Summary by CodeRabbit

  • New Features
    • Added support for the BASE blockchain network and BASE token, including protocol detection, conversion mappings, and blockchain explorer integration.
    • BASE network now treated as an EVM-compatible protocol for transaction history and related features.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Nov 13, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This pull request adds support for a new BASE coin type (base20) across the codebase. Changes include adding the base20 enum member to CoinType, implementing conversions between CoinType and CoinSubClass, extending EVM protocol detection, adding fiat provider mappings, and integrating base20 into utility functions for colors, explorers, and abbreviations.

Changes

Cohort / File(s) Summary
Core model enhancements
lib/model/coin_type.dart
Added base20 enum member to CoinType
Conversion & extension logic
lib/bloc/coins_bloc/asset_coin_extension.dart
Added bidirectional mappings between CoinSubClass.base and CoinType.base20; extended isEvmProtocol() to recognize base20 as EVM
Utility integrations
lib/model/coin_utils.dart, lib/shared/utils/utils.dart
Added base20 support in coin naming, parent-coin behavior, colors, tx history, explorer URLs; expanded abbreviation-to-ticker conversion to handle BASE suffix
Fiat provider
lib/bloc/fiat/base_fiat_provider.dart
Added chainId and type mappings for BASE coin type
SDK reference
sdk
Updated submodule pointer (5f7e46e → 3619c10)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Changes are homogeneous and consistent: additions of new switch cases across multiple files for base20 support
  • Straightforward mapping and utility function extensions with minimal logic density
  • No structural changes or complex interdependencies

Suggested labels

QA

Suggested reviewers

  • smk762
  • CharlVS

Poem

🐰 A BASE coin hops into the fold,
With mappings bright and cases bold,
From enum fields to utils wide,
BASE20 now has a joyful ride! 🌈

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between aeaaf70 and 4f9f06c.

📒 Files selected for processing (6)
  • lib/bloc/coins_bloc/asset_coin_extension.dart (3 hunks)
  • lib/bloc/fiat/base_fiat_provider.dart (2 hunks)
  • lib/model/coin_type.dart (1 hunks)
  • lib/model/coin_utils.dart (2 hunks)
  • lib/shared/utils/utils.dart (4 hunks)
  • sdk (1 hunks)

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.

@ca333 ca333 merged commit fea8284 into main Nov 13, 2025
5 of 11 checks passed
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 13, 2025

Visit the preview URL for this PR (updated for commit 5d73429):

https://walletrc--pull-3394-merge-b912w9ha.web.app

(expires Thu, 20 Nov 2025 11:22:05 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: f66a4ff03faa546f12f0ae5a841bd9eff2714dcc

@coderabbitai coderabbitai bot mentioned this pull request Nov 23, 2025
5 tasks
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