Repository navigation
feat(drive-abci): strategy tests for platform addresses - #2892
Merged
QuantumExplorer merged 106 commits intoDec 11, 2025
Merged
QuantumExplorer merged 106 commits into
QuantumExplorer merged 106 commits into
Conversation
Co-authored-by: Quantum Explorer <[email protected]> Co-authored-by: Lukasz Klimek <[email protected]>
…sam-strategy-tests
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 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 |
Contributor
✅ gRPC Query Coverage Report |
Contributor
|
✅ DashSDKFFI.xcframework built for this PR.
SwiftPM (host the zip at a stable URL, then use): .binaryTarget(
name: "DashSDKFFI",
url: "https://your.cdn.example/DashSDKFFI.xcframework.zip",
checksum: "88f907f0a6adebd666872e649f7db9fb83531d79abac272698797c4da0d8df33"
)Xcode manual integration:
|
QuantumExplorer
deleted the
feat/singleUseKeys-proofs-sam-strategy-tests-2
branch
December 11, 2025 01:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue being fixed or feature implemented
Strategy tests did not cover the new address-based state transitions (AddressFundsTransfer, AddressCreditWithdrawal, IdentityCreateFromAddresses, IdentityTopUpFromAddresses, etc.). This made it
difficult to test these transitions in randomized execution scenarios alongside existing identity-based operations.
What was done?
Strategy Test Infrastructure
AddressesWithBalancehelper struct to track address balances and nonces during strategy test execution, with support for in-block staging and commit/rollback semanticsAddressTransferandAddressWithdrawaloperation types toOperationTypeenum with proper serialization/deserializationcreate_address_transfer_transitionandcreate_address_withdrawal_transitionfunctions in strategy.rsValidation Improvements
UnsupportedFeatureErrorinstead of empty validation result invalidate_structure, making itexplicit that client-side structure validation is not implemented
ensure_valid_state_transition_structureto allowUnsupportedFeatureErrorto pass through, enabling broadcast of legacy transitions while still catching real validation errorsfor address-based transitions
Test Updates
addresses_with_balance.rsverify_state_transitions.rsto properly validate address balances after transitionsinputs()method toStateTransitionenum for retrieving address inputsHow Has This Been Tested?
cargo check -p dash-sdkpassescargo check -p dpp --features state-transition-validationpassescargo check -p strategy-tests -p drive-abci --testspasses