Repository navigation
chore(deps): bump platform pin to PR #3968 latest and Rust toolchain to 1.98 - #968
Conversation
Moves all four dashpay/platform git dependencies -- dash-sdk, rs-sdk-trusted-context-provider, platform-wallet, platform-wallet-storage -- from 4784de03 to 4f0fd091, the current head of PR #3968 (feat/platform-wallet-storage-rehydration). Cargo.lock refreshed for just these four crates via `cargo update -p`; 238 other locked dependencies are untouched (grovedb and key-wallet revs move only because they are transitively pinned by platform's own Cargo.lock). Two behavior-preserving compile fixes were required: - `daily_withdrawal_limit()` now takes `reference_total_credits: Option<Credits>` instead of `Credits`, to let its v2 scheme distinguish "not yet known" from a genuine zero. The one call site already had the value in hand, so it now passes `Some(total_credits_on_platform)` -- identical behavior, no user-facing change. - `PlatformWalletError` gained `MasternodeWithdrawalUnconfirmed` (a masternode credit withdrawal broadcast but not confirmed -- may already have executed, caller must not blindly retry). Both exhaustive matches in `wallet_backend/mod.rs` are deliberately wildcard-free, so this bump forces a review here: bucketed alongside its existing siblings `TransactionBroadcastUnconfirmed` / `ShieldedSpendUnconfirmed`, which carry the same "accepted but unconfirmed, do not resubmit" semantics and already route to the generic WalletBackend / Other classification. No CHANGELOG entry -- neither fix changes observable behavior. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Moves all four dashpay/platform git dependencies -- dash-sdk, rs-sdk-trusted-context-provider, platform-wallet, platform-wallet-storage -- from 4f0fd091 to 396977be, the current head of PR #3968 (feat/platform-wallet-storage-rehydration). Cargo.lock refreshed for just these four crates via `cargo update -p`; upstream split out two new crates (dash-async, dash-platform-macros) that come along transitively, and 238 other locked dependencies are untouched. No source changes needed -- `cargo clippy --all-features --all-targets -- -D warnings` is clean against this head, and no observable behavior changes. No CHANGELOG entry. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Moves all four dashpay/platform git dependencies -- dash-sdk,
rs-sdk-trusted-context-provider, platform-wallet, platform-wallet-storage --
from 396977be to a844aecf, the current head of PR #3968
(feat/platform-wallet-storage-rehydration). Cargo.lock refreshed for just
these four crates via `cargo update -p`; grovedb and key-wallet/
key-wallet-manager move transitively with their own upstream rev bumps,
and 238 other locked dependencies are untouched.
Source fixes required by this hop:
- src/utils/parsers.rs: DriveDocumentQuery -> DocumentQuery is now a
fallible TryFrom (was an infallible Into) -- a drive query carrying
unresolved time-range provenance cannot be losslessly converted.
- src/model/dashpay.rs, src/model/dpns.rs, src/backend_task/dashpay/*.rs,
src/backend_task/identity/register_dpns_name.rs,
src/ui/contracts_documents/document_action_screen.rs,
src/backend_task/dashpay/profile.rs: DocumentV0 gained a
`contract_version: Option<u32>` field (selects per-property byte layout
for documents serialized under format 3+); all locally-built documents
set it to None, matching upstream's own bootstrap/test fixtures.
- src/backend_task/{contract,document,platform_info}.rs,
src/backend_task/identity/{discover_identities,load_identity,
load_identity_by_dpns_name,load_identity_from_wallet,
refresh_loaded_identities_dpns_names,register_dpns_name}.rs,
src/ui/tokens/view_token_claims_screen.rs: DocumentQuery gained a
`time_range_clauses: Vec<TimeRangeClause>` field for IN_TIME_RANGE
selections; every struct-literal query in this repo sets it to empty
(no IN_TIME_RANGE usage exists here yet).
- src/wallet_backend/mod.rs: new PlatformWalletError::AssetLockInsufficientFunds
variant added to both exhaustive matches (map_shielded_op_error,
identity_op_error_kind), bucketed alongside CoreInsufficientFunds as a
generic funding-shortfall WalletBackend error.
`cargo clippy --all-features --all-targets -- -D warnings` is clean against
this head. No user-observable behavior change; no CHANGELOG entry.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
…rm-pin-3968-4f0fd09 # Conflicts: # src/wallet_backend/mod.rs
thepastaclaw flagged (PR #960) that daily_withdrawal_limit's v2 algorithm wants the total credits Platform held a day ago and the network's actual active protocol version, while this call passes today's current total and PlatformVersion::latest(). Accepted as an intentional gap rather than fixed: the value is display-only (an informational text panel, nothing reads it back to gate or execute a withdrawal), the mismatch only bites during the narrow window around a protocol version upgrade, and the pinned SDK exposes no query for the day-old historical total to compute the exact figure anyway. Documents the rationale in code so it doesn't get re-flagged as an unexplained bug. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Bump the `rust-toolchain.toml` pin (the single source of truth for both
local and CI builds) from 1.92 to 1.98, and update every place that
duplicates the number as prose or config: `Cargo.toml`'s `rust-version`,
the Copilot setup workflow, CLAUDE.md, and the JIT-secret-access design
note.
The clippy workflow's rationale comment no longer names a version, so it
cannot go stale on the next bump.
Clippy 1.98 introduces three lints that `-D warnings` turns into build
failures (19 errors). Fixed in place:
- `unnecessary_sort_by` (7) — `sort_by` comparators replaced with
`sort_by_key`. Both are stable sorts, so tie ordering is unchanged.
- `collapsible_match` (6) — inner `if`s folded into match guards. Every
site falls through to a no-op `_ => {}` arm, so a failed guard behaves
exactly as the skipped `if` body did.
- `result_large_err` (6) — annotated `#[expect]` with a reason. Each
`Err` type is owned upstream (`dpp::ProtocolError`,
`platform_wallet::PlatformWalletError`, `axum::Response`); boxing them
would change signatures, and `bearer_auth`'s is fixed by axum's
middleware contract.
No behaviour changes. Cargo.lock is unaffected.
Co-Authored-By: Claude Opus 5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (18)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe project minimum Rust version and pinned toolchain were raised from 1.92 to 1.98. Workflow and documentation references were updated. Clippy expectations, guarded match expressions, and equivalent ChangesRust compatibility and code cleanup
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The PR updates the Rust build baseline and applies compiler-driven, behavior-preserving cleanups and documentation changes; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 57.89% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 19 functions across 12 files. (6 skipped: 6 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
|
🕓 Ready for review — 11 ahead in queue (commit 80df34f) |
TL;DR: Refreshes the
dashpay/platformgit dependency pins to the latest revision of PR #3968, adds a short doc note on the wallet withdrawal-limit logic, and bumps the pinned Rust toolchain from 1.92 to 1.98 (fixing the new compiler's lint failures along the way).Detailed discussion
What was done
This is an internal chore branch with no user-observable behavior change;
User story/Scenarioare omitted.dashpay/platformgit dependencies (dash-sdk,rs-sdk-trusted-context-provider,platform-wallet,platform-wallet-storage) to the current head of PR #3968 (feat/platform-wallet-storage-rehydration), across three incremental commits as the upstream PR moved.Cargo.lockrefreshed accordingly.rust-toolchain.toml(the single source of truth for local + CI builds),Cargo.toml'srust-version, the Copilot setup workflow, and prose mentions inCLAUDE.mdand a design doc. Theclippy.ymlrationale comment was reworded to stop naming a version, so it can't go stale on the next bump. Clippy 1.98 introduced 3 new lint classes across 12 files (unnecessary_sort_by,collapsible_match,result_large_err) — all fixed in place, no behavior changes; each site was manually verified for control-flow equivalence.Testing
cargo fmt --all -- --check,cargo build --all-features,cargo clippy --all-features --all-targets -- -D warnings,cargo test --doc --all-features --workspace, andcargo nextest run --lib --all-featuresall pass under Rust 1.98.tests.yml+clippy.yml) will run the full non-ignored-test gate on this PR, sincerust-toolchain.tomlis a tracked trigger path for both workflows.Breaking changes
None.
Checklist
cargo fmt --allcargo clippy --all-features --all-targets -- -D warningsAttribution
🤖 Co-authored by Claudius the Magnificent AI Agent
Summary by CodeRabbit
New Features
Documentation
Refactor
Chores