Skip to content

chore(deps): bump platform pin to PR #3968 latest (a844aecf) - #960

Merged
lklimek merged 5 commits into
v1.0-devfrom
chore/bump-platform-pin-3968-4f0fd09
Aug 27, 2026
Merged

lklimek merged 5 commits into
v1.0-devfrom
chore/bump-platform-pin-3968-4f0fd09

Conversation

@Claudius-Maginificent

@Claudius-Maginificent Claudius-Maginificent commented Aug 25, 2026 •

Copy link
Copy Markdown
Collaborator

TL;DR

Updates this project's pin on the upstream dashpay/platform development branch (PR #3968, feat/platform-wallet-storage-rehydration) to its latest commit, so this repo keeps building against the most current in-progress platform-wallet work. No user-facing behavior changes.

Detailed discussion

Pure dependency-pin maintenance PR, tracking a fast-moving upstream branch. Three commits, each moving the pin on the four dashpay/platform git dependencies (dash-sdk, rs-sdk-trusted-context-provider, platform-wallet, platform-wallet-storage) forward to the PR's head at the time:

  1. 4784de03 → 4f0fd091 — required two source fixes for upstream API drift:

    • daily_withdrawal_limit() changed its reference_total_credits parameter from Credits to Option<Credits>.
    • PlatformWalletError gained a MasternodeWithdrawalUnconfirmed { .. } variant, added to the two exhaustive matches in src/wallet_backend/mod.rs (bucketed as a generic "broadcast accepted, execution unconfirmed — do not resubmit" case, same as TransactionBroadcastUnconfirmed).
  2. 4f0fd091 → 396977be — pin-only, no source changes needed; upstream head at that point built clean.

  3. 396977be → a844aecf (current) — required source fixes across a wider surface:

    • DriveDocumentQuery → DocumentQuery conversion changed from an infallible Into to a fallible TryFrom (a drive query carrying unresolved time-range provenance can no longer be losslessly converted) — src/utils/parsers.rs.
    • DocumentV0 gained a contract_version: Option<u32> field (selects per-property byte layout for documents serialized under wire format 3+). Every locally-constructed document in this repo now sets it to None, matching upstream's own bootstrap/test fixtures — 12 call sites across src/model/{dashpay,dpns}.rs, src/backend_task/dashpay/*.rs, src/backend_task/identity/register_dpns_name.rs, src/ui/contracts_documents/document_action_screen.rs.
    • DocumentQuery gained a time_range_clauses: Vec<TimeRangeClause> field (for IN_TIME_RANGE selections). No query in this repo uses that feature yet, so every struct-literal query sets it to empty — 14 call sites across src/backend_task/{contract,document,platform_info}.rs, several src/backend_task/identity/*.rs files, src/ui/tokens/view_token_claims_screen.rs.
    • PlatformWalletError gained an AssetLockInsufficientFunds { available, required } variant, added to both exhaustive matches in src/wallet_backend/mod.rs, bucketed alongside CoreInsufficientFunds as a generic funding-shortfall error.

Cargo.lock was refreshed via cargo update -p dash-sdk -p rs-sdk-trusted-context-provider -p platform-wallet -p platform-wallet-storage after each pin change — only these four crates and their direct transitive movers (grovedb, key-wallet/key-wallet-manager when upstream bumped those refs too) changed; the other ~238 locked dependencies are untouched.

Also merged in origin/v1.0-dev (PR #961's TransactionBroadcastUnconfirmed reclassification), resolving one overlapping conflict in src/wallet_backend/mod.rs by keeping this PR's MasternodeWithdrawalUnconfirmed/AssetLockInsufficientFunds additions in the generic bucket alongside upstream's new dedicated ConfirmationUnknown path.

A follow-up commit documents, in code, why format_withdrawal_documents_with_daily_limit intentionally passes today's current credits total and PlatformVersion::latest() rather than the day-old total and the network's actual active version that daily_withdrawal_limit's v2 algorithm technically wants (flagged by review — see thread) — accepted as a known gap: the value is display-only, the mismatch only bites in the narrow window around a protocol upgrade, and the pinned SDK has no query for the historical day-old total anyway.

cargo fmt --all and cargo clippy --all-features --all-targets -- -D warnings are clean against the final head (a844aecf776077da8a6df1c39bb58e99140c40c3).

No CHANGELOG.md entry — consistent with this repo's established convention that behavior-preserving pin bumps against this branch don't get one (see e.g. ac2e5835d); none of the fixes here change any user-observable behavior, only internal API surface adaptation.

Testing

  • cargo fmt --all — clean.
  • cargo clippy --all-features --all-targets -- -D warnings — clean.

🤖 Co-authored by Claudius the Magnificent AI Agent

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]>
@coderabbitai

coderabbitai Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 44e122ef-b19b-409d-a626-ab4ed64cd15e

📥 Commits

Reviewing files that changed from the base of the PR and between 8571bf9 and bf8190d.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • Cargo.toml
  • src/backend_task/platform_info.rs
  • src/wallet_backend/mod.rs

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The PR updates four platform-related git dependencies and adjusts daily withdrawal limit input and masternode withdrawal error classification.

Changes

SDK and withdrawal handling updates

Layer / File(s) Summary
Platform dependency revision
Cargo.toml
Updates the dash-sdk, rs-sdk-trusted-context-provider, platform-wallet, and platform-wallet-storage revisions. Features remain unchanged.
Withdrawal integration adjustments
src/backend_task/platform_info.rs, src/wallet_backend/mod.rs
Passes total platform credits as an optional value for daily withdrawal limits. Routes MasternodeWithdrawalUnconfirmed through generic wallet-backend handling.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to bf819

This PR updates the platform dependency pin and applies behavior-preserving compatibility fixes; no actionable merge-blocking risk remains after normal checks and review.

Suggested reviewers: lklimek

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (1 skipped: 1… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: updating the platform dependency pin for PR #3968. The referenced commit hash differs from the revision described in the changes, but the title remains di…
Full details: Docstring Coverage

Explanation

Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (1 skipped: 1 unsupported.)

Full details: Title check

Explanation

The title clearly identifies the main change: updating the platform dependency pin for PR #3968. The referenced commit hash differs from the revision described in the changes, but the title remains directly related to the pull request.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/bump-platform-pin-3968-4f0fd09

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.

@lklimek
lklimek marked this pull request as ready for review August 25, 2026 14:23
@thepastaclaw

thepastaclaw commented Aug 25, 2026 •

Copy link
Copy Markdown
Collaborator

🕓 Ready for review — next in queue (commit 0e2fed9)
Queue position: 1/4 · 1 review active
ETA: start ~14:00 UTC · complete ~14:19 UTC (median 19m across 30 recent reviews; 2 slots)
Queued 23m ago · Last checked: 2026-08-27 14:00 UTC

@lklimek
lklimek enabled auto-merge (squash) August 25, 2026 14:24
@lklimek
lklimek disabled auto-merge August 25, 2026 14:35
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]>
@Claudius-Maginificent Claudius-Maginificent changed the title chore(deps): bump platform pin to PR #3968 latest (4f0fd091) chore(deps): bump platform pin to PR #3968 latest (396977be) Aug 25, 2026

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Preliminary review — Codex only

The dependency pins and exhaustive handling of the new wallet error variant are sound, but the withdrawal-limit compatibility change violates the updated API contract and can display a limit different from the network's actual limit. The current credits snapshot cannot be substituted for the required day-old snapshot, and the calculation must use the active network protocol version.
Source: codex-general (backend model ID not supplied in the evidence), codex-rust-quality (backend model ID not supplied in the evidence); final verifier: Claude Agent SDK (backend model ID not supplied in the runtime context). openclaw-agent/cliproxy/gpt-5.6-sol is orchestration-only and is not reviewer evidence.

Validated blockers were found in the Codex precheck. Opus is deferred until a fresh Codex revalidation clears the blocker gate.

Review provenance

  • Codex reviewers: gpt-5.6-sol — general (completed), gpt-5.6-sol — rust-quality (completed)
  • Verifier: gpt-5.6-sol — verifier
  • Sonnet: not run (deferred by blocker gate)

🔴 1 blocking

🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify each finding against the current code and only fix it if needed.

In `src/backend_task/platform_info.rs`:
- [BLOCKING] src/backend_task/platform_info.rs:345-346: The withdrawal limit uses the wrong credits snapshot and protocol version
  In the pinned dependency, `daily_withdrawal_limit` method v2 defines this argument as the total credits Platform held one day ago. This caller passes the result of `TotalCreditsInPlatform::fetch_current`, so protocol v14 calculates 15% from the current snapshot while consensus calculates it from the day-old snapshot. The call also uses `PlatformVersion::latest()`—now v14—instead of the active version available from the task's `sdk`, so a network still running v13 can be shown the v14-relative result instead of its flat 2,000 Dash limit. Use the active SDK version and the actual day-old reference. The pinned SDK exposes only the current-total query, while the historical lookup is Drive-internal; if that reference cannot be queried here, omit or mark the limit unavailable rather than substituting the current total.

Comment on lines 345 to +346
let daily_withdrawal_limit =
daily_withdrawal_limit(total_credits_on_platform, PlatformVersion::latest())
daily_withdrawal_limit(Some(total_credits_on_platform), PlatformVersion::latest())

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🔴 Blocking: The withdrawal limit uses the wrong credits snapshot and protocol version

In the pinned dependency, daily_withdrawal_limit method v2 defines this argument as the total credits Platform held one day ago. This caller passes the result of TotalCreditsInPlatform::fetch_current, so protocol v14 calculates 15% from the current snapshot while consensus calculates it from the day-old snapshot. The call also uses PlatformVersion::latest()—now v14—instead of the active version available from the task's sdk, so a network still running v13 can be shown the v14-relative result instead of its flat 2,000 Dash limit. Use the active SDK version and the actual day-old reference. The pinned SDK exposes only the current-total query, while the historical lookup is Drive-internal; if that reference cannot be queried here, omit or mark the limit unavailable rather than substituting the current total.

source: ['codex']

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Acknowledged — this is display-only text (PlatformInfoTaskResult::TextResult for the "Current Withdrawals In Queue" info panel), not a value anything enforces or acts on. The mismatch you're flagging only matters during the narrow window around a v13→v14 protocol upgrade (current-total vs. day-old-total snapshot, and PlatformVersion::latest() vs. the network's actual active version), and the pinned SDK doesn't currently expose the day-old historical query needed to fix it properly (it's Drive-internal). Given the low probability and informational-only blast radius, we're accepting this gap as-is rather than holding up this dependency-pin PR for it. Leaving this open for tracking rather than resolving.

🤖 Co-authored by Claudius the Magnificent AI Agent

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]>
@Claudius-Maginificent Claudius-Maginificent changed the title chore(deps): bump platform pin to PR #3968 latest (396977be) chore(deps): bump platform pin to PR #3968 latest (a844aecf) Aug 27, 2026
lklimek and others added 2 commits August 27, 2026 13:28
…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]>
@lklimek
lklimek merged commit 05572d6 into v1.0-dev Aug 27, 2026
4 checks passed
@lklimek
lklimek deleted the chore/bump-platform-pin-3968-4f0fd09 branch August 27, 2026 13:57
orchardpaytl pushed a commit to orchardpaytl/orchardpay that referenced this pull request Aug 27, 2026
…#960)

* chore(deps): bump platform pin to PR #3968 latest (4f0fd091)

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]>

* chore(deps): bump platform pin to PR #3968 latest (396977be)

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]>

* chore(deps): bump platform pin to PR #3968 latest (a844aecf)

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]>

* docs(wallet): note why the daily withdrawal limit uses today's total

thepastaclaw flagged (PR dashpay#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]>

---------

Co-authored-by: Lukasz Klimek <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
(cherry picked from commit 05572d6)
orchardpaytl pushed a commit to orchardpaytl/orchardpay that referenced this pull request Aug 27, 2026
…iterals

Upstream's dashpay#960 (platform pin -> a844aecf) added DocumentV0::contract_version,
adapting its own call sites. contact_anchor.rs, messages.rs, and
shielded_address.rs under src/backend_task/orchardpay/ don't exist upstream
and needed the same None default at their 6 struct-literal call sites.
orchardpaytl pushed a commit to orchardpaytl/orchardpay that referenced this pull request Aug 27, 2026
lklimek added a commit that referenced this pull request Aug 31, 2026
…to 1.98 (#968)

* chore(deps): bump platform pin to PR #3968 latest (4f0fd091)

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]>

* chore(deps): bump platform pin to PR #3968 latest (396977be)

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]>

* chore(deps): bump platform pin to PR #3968 latest (a844aecf)

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]>

* docs(wallet): note why the daily withdrawal limit uses today's total

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]>

* chore(deps): bump Rust toolchain to 1.98

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]>

---------

Co-authored-by: Lukasz Klimek <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
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