Skip to content

feat(ui): masternodes section in Tools + Masternode Keychain rename - #814

Merged
QuantumExplorer merged 1 commit into
swift-sdk-integrationfrom
claude/masternodes-tools-section
Jul 16, 2026
Merged

QuantumExplorer merged 1 commit into
swift-sdk-integrationfrom
claude/masternodes-tools-section

Conversation

@QuantumExplorer

Copy link
Copy Markdown
Member

Summary

Adds a Tools → Masternodes section modeled on the SwiftExampleApp's masternodes list/detail, and renames the Tools row "Show Masternode Keys" → "Masternode Keychain".

The screen reads live from the Rust masternode aggregation (PlatformWalletManager.masternodes(for:)) — the same source the masternode-keys usage resolver (#812) uses — with no app-side persistence layer.

Changes

  • List: one row per node — "Masternode 1" / "Evonode 2" (independent 1-based numbering, matching the example app), service ip:port, color-coded DML status (Active / Inactive / Retired / Unknown). Empty state explains nodes appear after sync.
  • Detail (read-only, mirroring the example app's MasternodeDetailView):
    • Registration: proTxHash (block-explorer hex), registration height, provider tx count
    • Keys (tap-to-copy): owner/voting addresses + key hashes, operator BLS public key, Platform Node ID, payout address
    • Key ownership per family: ProviderOwnerKeys #4 / "not in this wallet" — owner/voting joined against the derived address pool, operator/platform pre-resolved by Rust; shows "Not checked yet" when Rust couldn't verify platform ownership rather than fabricating a negative
    • Collateral outpoint, revocation reason
    • Evonodes: read-only claimable Platform-credits balance (identity balance keyed by display-order proTxHash) with a Refresh button. The Claim action is deliberately not ported — the owner-key withdrawal FFI is a stub upstream and the example app gates it off too.
  • Tools menu: new "Masternodes" row (server-rack icon), pushed with the same NavigationStack-in-hosting-controller pattern as Storage Explorer; "Masternode Keychain" rename.
  • ~35 new en localization strings; new file registered in project.pbxproj for both targets.
  • One shadowing fix: the spinner is explicitly SwiftUI.ProgressView because the app's legacy UIKit ProgressView class shadows the SwiftUI type.

Test plan

  • Clean dashpay arm64 simulator build
  • Testnet smoke on a wallet with a registered masternode/evonode: list shows the node with correct type/number/status; detail fields match the example app for the same mnemonic
  • Evonode claimable balance fetch succeeds / shows the "no Platform identity" copy appropriately

🤖 Generated with Claude Code

Adds Tools → Masternodes, modeled on the SwiftExampleApp's masternode
section, reading live from the Rust aggregation
(PlatformWalletManager.masternodes(for:)) with no app-side persistence:

- List: "Masternode N" / "Evonode N" rows with service ip:port and
  color-coded DML status (Active / Inactive / Retired / Unknown).
- Detail: registration (proTxHash in display hex, height, provider tx
  count), tap-to-copy keys (owner/voting addresses + key hashes,
  operator BLS public key, Platform Node ID, payout address), per-family
  key ownership (owner/voting joined against the derived address pool,
  operator/platform pre-resolved by Rust, honest "Not checked yet" when
  unverified), collateral outpoint, and revocation reason.
- Evonodes: read-only claimable Platform-credits balance with Refresh.
  No Claim action — the owner-key withdrawal FFI is a stub upstream.

Also renames the Tools row "Show Masternode Keys" to
"Masternode Keychain".

The spinner is explicitly SwiftUI.ProgressView — the app's legacy UIKit
ProgressView class shadows the SwiftUI type in this module.

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

coderabbitai Bot commented Jul 16, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@QuantumExplorer, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 11 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 54c48141-c52b-4d48-be6c-22488f4142c3

📥 Commits

Reviewing files that changed from the base of the PR and between c04c230 and 0c1da42.

📒 Files selected for processing (5)
  • DashWallet.xcodeproj/project.pbxproj
  • DashWallet/Sources/UI/Menu/Tools/MasternodesScreen.swift
  • DashWallet/Sources/UI/Menu/Tools/ToolsMenuScreen.swift
  • DashWallet/Sources/UI/Menu/Tools/ToolsMenuViewModel.swift
  • DashWallet/en.lproj/Localizable.strings
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/masternodes-tools-section

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

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@QuantumExplorer
QuantumExplorer merged commit 0e310f2 into swift-sdk-integration Jul 16, 2026
1 check passed
@QuantumExplorer
QuantumExplorer deleted the claude/masternodes-tools-section branch August 7, 2026 08:23
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