Skip to content

feat: add Citrea blockchain support#972

Open
TaprootFreak wants to merge 1 commit intodevelopfrom
feature/add-citrea-blockchain
Open

feat: add Citrea blockchain support#972
TaprootFreak wants to merge 1 commit intodevelopfrom
feature/add-citrea-blockchain

Conversation

@TaprootFreak
Copy link
Collaborator

Summary

  • Add Citrea as new EVM blockchain to the buy/sell toolbox with tiles for cBTC, JUSD, and ctUSD assets
  • Register Citrea (+ testnet) in isEvm() detection, balance PDF blockchains, transaction signing, and EVM test suite
  • Images expected at dfx.swiss/images/app/citrea_{lang}.jpg, cbtc_{lang}.jpg, jusd_{lang}.jpg, ctusd_{lang}.jpg

Changed files

  • src/config/feature-tree.ts — buy-evm/sell-evm tiles + buy-citrea/sell-citrea pages
  • src/util/evm.tsisEvm() includes Citrea + Citrea Testnet
  • src/screens/account.screen.tsxSUPPORTED_PDF_BLOCKCHAINS
  • src/screens/blockchain-tx.screen.tsxavailableBlockchains
  • src/__tests__/evm.test.ts — Jest mock + test array

Test plan

  • Verify Citrea tile appears in buy and sell EVM chain selection
  • Verify buy-citrea page shows cBTC, JUSD, and ctUSD tiles
  • Verify sell-citrea page shows cBTC, JUSD, and ctUSD tiles
  • Verify wallet connection works for Citrea chain
  • Upload missing tile images (citrea, cbtc, jusd, ctusd) to dfx.swiss CDN

Add Citrea as a new EVM blockchain to the services toolbox including
buy and sell flows for cBTC, JUSD, and ctUSD. Register Citrea in
EVM chain detection, balance PDF support, and transaction signing.
max-tech-bot pushed a commit to max-tech-bot/landing-page that referenced this pull request Feb 26, 2026
- Rename cBTC_citrea_*.jpg to cbtc_*.jpg
- Rename jusd_citrea_*.jpg to jusd_*.jpg
- Align naming with asset convention (no blockchain suffix)
- Related to DFXswiss/services#972
max-tech-bot pushed a commit to max-tech-bot/landing-page that referenced this pull request Feb 26, 2026
- Rename juice_citrea_*.jpg to juice_*.jpg
- Align with asset naming convention
- Related to DFXswiss/services#972
@max-tech-bot
Copy link

Missing JUICE asset - see comment for details

Comment on lines 62 to 72
// Supported EVM blockchains for balance PDF (must match API's SUPPORTED_BLOCKCHAINS)
const SUPPORTED_PDF_BLOCKCHAINS: Blockchain[] = [
Blockchain.ETHEREUM,
Blockchain.BINANCE_SMART_CHAIN,
Blockchain.POLYGON,
Blockchain.ARBITRUM,
Blockchain.OPTIMISM,
Blockchain.BASE,
Blockchain.GNOSIS,
Blockchain.CITREA,
];
Copy link
Member

Choose a reason for hiding this comment

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

Update API SUPPORTED_BLOCKCHAINS?

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.

3 participants