Skip to content

Conversation

@uniyalabhishek
Copy link
Contributor

@uniyalabhishek uniyalabhishek commented Sep 19, 2025

This makes “known address” rendering consistent across CLI text output, and prefers Ethereum hex in parentheses when available (while still showing both addresses where required).

  • Introduce common.PrettyAddress{With,ResolvedAddressWith} + precomputed formatting context (wallet/addressbook/test + network-derived entries like paratime:* and ROFL defaults).
  • Apply the helper across CLI text output where addresses are shown (account delegations/allowances, governance, network show, contract show, ROFL commands, EVM tx details, remote signer, etc.) to display name (address) instead of raw bech32.
  • Persist wallet eth_address metadata on create/import/load (best-effort) so ETH can be displayed without unlocking later.
  • Ensure oasis wallet show and oasis account show display both Ethereum + native addresses, elsewhere prefer Ethereum in parentheses when available.
  • Tests: unit tests for the helper + go test ./... passing with local go.work.
  • Closes Name addresses, if found in wallet/addressbook/test/paratime/rofl entries #131 and Prefer Ethereum hex address, if available #523

Dependency: This PR depends on oasis-sdk PR oasisprotocol/oasis-sdk#2335 being merged and a new github.com/oasisprotocol/oasis-sdk/client-sdk/go release being published, after that we’ll bump the SDK version.

@netlify
Copy link

netlify bot commented Sep 19, 2025

Deploy Preview for oasisprotocol-cli canceled.

Name Link
🔨 Latest commit a2b7ccc
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-cli/deploys/6972469926d60300071c9519

@uniyalabhishek uniyalabhishek force-pushed the uniyalabhishek/feature/format-known-addresses-131 branch from 0068b35 to 95ace6e Compare November 5, 2025 10:59
@ptrus ptrus requested a review from matevz December 21, 2025 12:10
@ptrus
Copy link
Member

ptrus commented Dec 21, 2025

This would be nice addition. @uniyalabhishek can you rebase? @matevz can you review please?

@uniyalabhishek
Copy link
Contributor Author

This would be nice addition. @uniyalabhishek can you rebase? @matevz can you review please?

@ptrus sorry, this PR is not fully ready for review now (also oasisprotocol/oasis-sdk#2335). there have been higher-priority tasks and missed completing this. will prioritise it this week.

@uniyalabhishek uniyalabhishek removed the request for review from matevz December 21, 2025 15:10
@uniyalabhishek uniyalabhishek force-pushed the uniyalabhishek/feature/format-known-addresses-131 branch from 95ace6e to ee0dbb3 Compare January 19, 2026 18:12
@matevz
Copy link
Member

matevz commented Jan 20, 2026

FYI I'll be refactoring oasis account show to support JSON output in #677. It may cause some conflicts one way or another.

@uniyalabhishek uniyalabhishek force-pushed the uniyalabhishek/feature/format-known-addresses-131 branch from ee0dbb3 to 2bcd0ad Compare January 22, 2026 14:08
fix(account show): propagate derived eth address
@uniyalabhishek uniyalabhishek force-pushed the uniyalabhishek/feature/format-known-addresses-131 branch from c451ac0 to a2b7ccc Compare January 22, 2026 15:47
@uniyalabhishek uniyalabhishek requested review from matevz, peternose and ptrus and removed request for matevz and peternose January 22, 2026 16:54
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.

Name addresses, if found in wallet/addressbook/test/paratime/rofl entries

4 participants