Skip to content

feat(ui): unshield destination address in history; external unshields as Sent - #839

Merged
QuantumExplorer merged 1 commit into
swift-sdk-integrationfrom
fix/unshield-destination-address
Jul 17, 2026
Merged

QuantumExplorer merged 1 commit into
swift-sdk-integrationfrom
fix/unshield-destination-address

Conversation

@QuantumExplorer

Copy link
Copy Markdown
Member

What

Follow-up to #838 — this commit was pushed to that branch moments after the squash-merge, so it needs its own PR.

  • Destination address surfaced: an unshield entry's counterparty is the 21-byte serialized PlatformAddress; decode it to its bech32m string. Internal unshields get a copyable Address row in the detail sheet alongside From/To ("where exactly did my Platform credits land"), external ones show it as the To row and the row pill (shortened).
  • External unshields render honestly: the send flow can unshield to someone else's Platform address, and those entries rendered as signless internal moves ("Unshielded / Shielded → Platform"). The fetch now checks the decoded destination against the active wallet's own DIP-17 platform pool (PersistentPlatformAddress, walletId-scoped) and presents external unshields as signed Sent rows — the unshield twin of feat(ui): shielded operations in the home transaction history #838's external-withdrawal fix.
  • Both unshield flavors stay in the list (an unshield never has a Core row to defer to); the ownership check only picks the presentation. An undecodable counterparty keeps the internal presentation — the honest reading of destination-unknown for an own-initiated operation.

Test plan

  • dashpay arm64-sim build green; installed on QA-iPhone16 (3 unshield entries in its store)
  • Tap an internal unshield row → detail shows From/To balances + copyable tdash1… Address row
  • Unshield to a foreign Platform address → renders as Sent −amount with the shortened address pill

🤖 Generated with Claude Code

…s as Sent

Answers "where did the unshield go": the live unshield entry's
counterparty is the 21-byte serialized PlatformAddress, so decode it
to its bech32m string and show it — internal unshields get a copyable
Address row in the detail sheet alongside From/To, external ones show
it as the To row and the row pill.

This also closes the unshield twin of the external-withdrawal gap:
the send flow can unshield to someone else's Platform address, and
those entries rendered as signless internal moves. The fetch now
checks the destination against the active wallet's own DIP-17
platform pool (PersistentPlatformAddress, walletId-scoped) and
presents external unshields as signed Sent rows. Both flavors stay
in the list — there is never a Core row for an unshield — so the
ownership check only picks the presentation; an undecodable
counterparty keeps the internal presentation (honest reading of
destination-unknown for an own-initiated operation).

Co-Authored-By: Claude Fable 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 97625de6-b906-431c-ba20-ef1d2247a94e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/unshield-destination-address

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.

@QuantumExplorer
QuantumExplorer merged commit 03361e2 into swift-sdk-integration Jul 17, 2026
1 check passed
@QuantumExplorer
QuantumExplorer deleted the fix/unshield-destination-address branch August 7, 2026 08:22
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