Skip to content

feat(sdk): platform address support part 1 - #2875

Merged
QuantumExplorer merged 111 commits into
feat/platformAddressesfrom
feat/singleUseKeys-sdk
Dec 10, 2025
Merged

QuantumExplorer merged 111 commits into
feat/platformAddressesfrom
feat/singleUseKeys-sdk

Conversation

@lklimek

@lklimek lklimek commented Dec 2, 2025 •

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

In #2884 , we introduce platform addresses, with the following gRPC endpoints:

  • GetAddressInfoRequest
  • GetAddressesInfosRequest

and several new state transitions related to the addresses:

  • credit withdrawals to core chain
  • address top up with core asset locks
  • transfers between addresses
  • funding new identities
  • transferring credits from identity to address
  • transferring credits from addresses to identity

This PR contains initial SDK implementation for these functions.

What was done?

Completed implementation of:

  • GetAddressInfoRequest
  • GetAddressesInfosRequest

See tests for details.

initial implementation of state transitions:

  • credit withdrawals to core chain:
  • address top up with core asset locks
  • transfers between addresses
  • funding new identities
  • transferring credits from identity to address
  • transferring credits from addresses to identity

TODO

Parsing the proofs returned by state transitions and adjusting return value from these state transitions will be implemented in separate PR.

How Has This Been Tested?

gRPC endpoints tested with unit tests. Test vectors generated.
State transitions integrated into Dash Evo Tool and tested manually.

Breaking Changes

None

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Summary by CodeRabbit

Release Notes

  • New Features

    • Added address information API endpoints for querying single and multiple address balances and nonces
    • Added new address-based fund management capabilities: transfer funds between addresses, withdraw funds to external scripts, and top-up addresses
    • Added identity creation and operations using address funding sources
    • Extended identity operations to support credit transfers to addresses
  • Bug Fixes

    • Improved error logging to prevent potential runtime issues
    • Fixed nonce refresh logic in broadcast error handling
  • Chores

    • Standardized file formatting across package configuration files

✏️ Tip: You can customize this high-level summary in your review settings.

Base automatically changed from feat/singleUseKeys to feat/platformAddresses December 9, 2025 01:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR implements comprehensive platform address support for the Dash Platform SDK, enabling direct credit transfers and operations using platform addresses (P2PKH/P2SH) rather than requiring identity-based transactions. The implementation spans multiple layers from low-level Rust state transitions to high-level SDK APIs.

Key Changes:

  • Adds new state transition types for address-based operations (transfer, top-up, withdrawal, create identity)
  • Implements SimpleAddressSigner for P2PKH address signing
  • Adds validation infrastructure for new state transition types
  • Extends SDK with helper traits for address-based credit operations
  • Includes comprehensive test fixtures and vector data

Reviewed changes

Copilot reviewed 71 out of 106 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
packages/simple-signer/src/simple_address_signer.rs New P2PKH address signer implementation
packages/rs-sdk/src/platform/transition/*.rs New transition modules for address operations (transfer, top-up, withdrawal)
packages/rs-sdk/src/platform/transition/validation.rs Centralized state transition structure validation
packages/rs-sdk/src/platform/transition/put_identity.rs Extended identity creation with address funding support
packages/wasm-sdk/src/error.rs Added InvalidCreditTransfer error variant
packages/wasm-dpp2/src/state_transitions/base/state_transition.rs Updated for new address-based state transitions
packages/rs-drive-proof-verifier/src/types.rs Added AddressInfo and AddressInfos types
packages/rs-sdk/src/error.rs Added error conversions for address validation
packages/rs-sdk/tests/fetch/address_funds.rs Integration tests for address info fetching
packages/dapi-grpc/clients/* Generated gRPC client code for address queries
Multiple package.json files Trailing newline formatting fixes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lklimek
lklimek marked this pull request as ready for review December 10, 2025 12:01
@lklimek

lklimek commented Dec 10, 2025

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Dec 10, 2025

Copy link
Copy Markdown
Contributor
✅ Actions performed

Review triggered.

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 9

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
packages/rs-sdk/src/platform/transition/update_price_of_document.rs (1)

101-111: Settings parameter is ignored in the inner call.

The settings parameter received at line 99 is passed as None at line 109 instead of being forwarded to update_price_of_document. This means user-provided settings (e.g., user_fee_increase, request_settings) won't be applied during the broadcast phase.

         let state_transition = self
             .update_price_of_document(
                 price,
                 sdk,
                 document_type,
                 identity_public_key,
                 token_payment_info,
                 signer,
-                None,
+                settings,
             )
             .await?;
🧹 Nitpick comments (19)
packages/rs-drive-abci/src/execution/platform_events/withdrawals/dequeue_and_build_unsigned_withdrawal_transactions/v0/mod.rs (1)

71-76: Safety improvement approved; optional refinement for cleaner logs.

The change eliminates panic risk by removing .expect() calls, which is a good defensive coding practice.

However, the {:?} formatter will now print Some(...) wrappers in the log output (e.g., "from Some(1) to Some(4)"). Since the early return at lines 55-57 guarantees transaction_indices is non-empty at this point, using .unwrap() would be equally safe and produce cleaner log messages.

Apply this diff for cleaner log output:

         tracing::debug!(
             "Deque {} unsigned withdrawal transactions for signing with indices from {:?} to {:?}",
             documents.len(),
-            transaction_indices.first(),
-            transaction_indices.last()
+            transaction_indices.first().unwrap(),
+            transaction_indices.last().unwrap()
         );
packages/rs-dpp/src/state_transition/mod.rs (1)

1170-1196: Consider delegating to inner types for consistency.

The older transition types return default() directly. If these inner types (e.g., DataContractCreateTransition) already implement StateTransitionStructureValidation returning a default, delegating would be more consistent and future-proof—any future validation logic in the inner types would be automatically picked up.

// Example for one arm:
StateTransition::DataContractCreate(transition) => {
    transition.validate_structure(platform_version)
}

This is a minor refactor suggestion; the current approach works correctly if inner types don't implement the trait.

packages/rs-drive-abci/src/execution/validation/state_transition/processor/traits/address_balances_and_nonces.rs (2)

24-25: Method name TODO is valid; consider aligning with trait scope

The TODO makes sense: this helper now serves non-identity transitions too, so validate_identity_balances_and_nonces_validation is slightly misleading. When convenient, consider renaming to something like validate_address_balances_and_nonces_inner (and updating call sites) or filing an issue so it doesn’t get lost.


85-101: Nonce-mismatch debug logging and error wiring look solid

The new debug log on nonce mismatch provides clear, structured context (?address, expected_nonce, provided_nonce) plus a human-readable message, and the subsequent AddressInvalidNonceError::new(*address, *expected_nonce, expected_next_nonce) matches the (address, provided, expected) convention from AddressInvalidNonceError. Only minor nit (optional): the information in the format string is already present in the structured fields, so you could drop the explicit {:?}/{} arguments later if you want leaner logs.

packages/rs-sdk/src/platform/transition/address_inputs.rs (2)

33-40: Consider handling potential nonce overflow.

The nonce + 1 operation could theoretically overflow if AddressNonce is at its maximum value. While extremely unlikely in practice, consider using checked_add or saturating_add for defensive coding.

 pub(crate) fn nonce_inc(
     data: BTreeMap<PlatformAddress, (AddressNonce, Credits)>,
 ) -> BTreeMap<PlatformAddress, (AddressNonce, Credits)> {
     data.into_iter()
-        .map(|(address, (nonce, credits))| (address, (nonce + 1, credits)))
+        .map(|(address, (nonce, credits))| (address, (nonce.saturating_add(1), credits)))
         .collect()
 }

44-90: Minor: Redundant by_ref() call on line 65.

The .by_ref() call is unnecessary here since iter() already returns an iterator over references. This doesn't affect correctness but is slightly non-idiomatic.

     let address_infos_keys: BTreeSet<&PlatformAddress> = address_infos_map.keys().collect();
     let expected_addresses_ref: BTreeSet<&PlatformAddress> =
-        expected_addresses.iter().by_ref().collect();
+        expected_addresses.iter().collect();
packages/rs-sdk/tests/fetch/address_funds.rs (2)

16-17: Test names should start with 'should …' per coding guidelines.

As per the coding guidelines for test files, test names should be descriptive starting with 'should …'.

Consider renaming for consistency:

-async fn test_fetch_address_info() {
+async fn should_fetch_address_info_with_balance_and_nonce() {
-async fn test_fetch_addresses_infos() {
+async fn should_fetch_multiple_addresses_infos_indexed_by_address() {

Also applies to: 34-35


47-49: Unnecessary .clone() on addresses.

The addresses set is not used after the fetch_many call, so cloning is unnecessary.

-    let infos = AddressInfo::fetch_many(&sdk, addresses.clone())
+    let infos = AddressInfo::fetch_many(&sdk, addresses)
         .await
         .expect("fetch addresses infos");
-
-    assert_eq!(infos.len(), addresses.len());

Note: If you remove the clone, you'll need to store addresses.len() before the call or hardcode 3 in the assertion.

packages/rs-sdk/src/platform/fetch_many.rs (1)

546-548: LGTM! FetchMany implementation for AddressInfo correctly added.

The implementation follows the established pattern for simple FetchMany impls.

Consider adding a doc comment for consistency with other impls that describe supported query types:

+/// Fetch multiple address infos.
+///
+/// Returns [AddressInfos](drive_proof_verifier::types::AddressInfos) indexed by
+/// [PlatformAddress](dpp::address_funds::PlatformAddress).
+///
+/// ## Supported query types
+///
+/// * [BTreeSet<PlatformAddress>](dpp::address_funds::PlatformAddress) - set of platform addresses to fetch
 impl FetchMany<PlatformAddress, AddressInfos> for drive_proof_verifier::types::AddressInfo {
     type Request = GetAddressesInfosRequest;
 }
packages/rs-sdk/src/platform/transition/transfer_address_funds.rs (1)

94-96: Consider validating the proof result type for consistency.

The broadcast_and_wait result is discarded without checking its variant. Other similar transitions (e.g., transfer_to_addresses.rs line 71-82) explicitly match on the expected result type. While the broadcast succeeding implies the transition was accepted, validating the proof result type would provide better consistency and catch unexpected behavior.

-        state_transition
+        let result = state_transition
             .broadcast_and_wait::<StateTransitionProofResult>(self, settings)
             .await?;
+        
+        match result {
+            StateTransitionProofResult::VerifiedAddressInfos(_) => {}
+            other => {
+                tracing::warn!(?other, "unexpected proof result for address funds transfer");
+            }
+        }
packages/rs-sdk/src/platform/transition/put_identity.rs (3)

173-187: Consider avoiding the clone for AddressesWithNonce variant.

The inputs.clone() at line 180 could potentially be avoided by destructuring the enum and moving the value. However, this would require restructuring the match to take ownership, which might reduce code clarity. Given that this operation happens infrequently (identity creation) and the BTreeMap is unlikely to be large, the performance impact is negligible.

If desired, you could restructure to avoid the clone:

match funding {
    IdentityFunding::AddressesWithNonce { inputs, input_private_keys } => {
        send_identity_with_addresses(identity, sdk, inputs, &input_private_keys, signer, settings).await
    }
    // other variants...
}

However, this requires taking ownership of funding, which may not fit the current design.


190-197: Consider more idiomatic parameter type.

The parameter input_private_keys: &Vec<Vec<u8>> could be more idiomatically written as input_private_keys: &[Vec<u8>] to accept any slice-like type, not just borrowed vectors. This is a common Rust pattern for borrowed sequential collections.

 async fn send_identity_with_addresses<S: Signer<IdentityPublicKey>>(
     identity: &Identity,
     sdk: &Sdk,
     inputs: BTreeMap<PlatformAddress, (AddressNonce, Credits)>,
-    input_private_keys: &Vec<Vec<u8>>,
+    input_private_keys: &[Vec<u8>],
     signer: &S,
     settings: Option<PutSettings>,
 ) -> Result<StateTransition, Error> {

209-211: Document that fee strategy has fallback logic for insufficient balance in first input.

The default fee strategy deducts from the first input, but this is adequately handled by the underlying transition validation. The fee deduction mechanism (in rs-drive) automatically falls back to deducting from subsequent inputs if the first input has insufficient balance, deducting as much as possible from each input before moving to the next. Error handling is enforced through ensure_valid_state_transition_structure validation. Consider adding a comment explaining this fallback behavior to clarify that the hardcoded strategy is not inflexible.

packages/dapi-grpc/clients/platform/v0/nodejs/platform_protoc.js (1)

72393-74573: Serialization/oneof helpers are internally consistent; consider treating file as generated for linting

The added oneofGroups_, VersionCase/ResultCase enums, toObject, (de)serialization, and getter/setter helpers for all new messages are consistent with each other and with standard js-protobuf output (bytes wrappers, repeated bytes handling, nested message wrappers, and metadata kept outside the result oneofs). I don’t see any field-number or wiring mistakes.

Given this is generated code, any “unused variable f” or similar lint warnings should ideally be handled via tooling (e.g., marking this file as generated or relaxing lint rules here) rather than manual edits.

packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbobjc.h (1)

7812-7848: Consider documenting address encoding and balance/nonce semantics at the proto level

GetAddressInfoRequest_GetAddressInfoRequestV0.address and BalanceAndNonce.balance/nonce lack comments, whereas many nearby messages document ID formats, units, and expected sizes. To reduce cross-SDK ambiguity, consider:

  • Clarifying in the .proto whether address is raw bytes (e.g., script hash) or an encoded address (and expected length/network).
  • Documenting what unit balance is in (credits vs smallest token unit) and how nonce is intended to be used.

These comments would then propagate into all generated bindings, including this ObjC header.

packages/simple-signer/src/simple_address_signer.rs (1)

49-99: Consider extracting shared validation logic.

The validation logic in from_addresses_and_keys (key length check, SecretKey creation, pubkey hash derivation, address hash extraction, hash comparison) is duplicated in add_key. Consider extracting a helper method.

+    /// Validate and extract the address hash from a private key and address pair.
+    fn validate_key_for_address(
+        address: &PlatformAddress,
+        private_key: &[u8],
+    ) -> Result<([u8; 20], [u8; 32]), ProtocolError> {
+        if private_key.len() != 32 {
+            return Err(ProtocolError::Generic(
+                "Private key must be 32 bytes".to_string(),
+            ));
+        }
+
+        let mut key_bytes = [0u8; 32];
+        key_bytes.copy_from_slice(private_key);
+
+        let secp = Secp256k1::new();
+        let secret_key = SecretKey::from_byte_array(&key_bytes)
+            .map_err(|e| ProtocolError::Generic(format!("Invalid private key: {}", e)))?;
+        let public_key =
+            dpp::dashcore::secp256k1::PublicKey::from_secret_key(&secp, &secret_key);
+        let pubkey_hash: [u8; 20] =
+            hash160::Hash::hash(&public_key.serialize()).to_byte_array();
+
+        let address_hash = match address {
+            PlatformAddress::P2pkh(hash) => *hash,
+            PlatformAddress::P2sh(_) => {
+                return Err(ProtocolError::Generic(
+                    "P2SH addresses not yet supported in SimpleAddressSigner".to_string(),
+                ));
+            }
+        };
+
+        if pubkey_hash != address_hash {
+            return Err(ProtocolError::Generic(
+                "Private key does not match address".to_string(),
+            ));
+        }
+
+        Ok((address_hash, key_bytes))
+    }
packages/rs-drive/src/verify/state_transition/verify_state_transition_was_executed_with_proof/v0/mod.rs (1)

1062-1076: Consider verifying output/change addresses for completeness.

The current implementation only verifies input addresses via st.inputs().keys(). However, in the test file verify_state_transitions.rs, the verification also includes the optional change address from address_credit_withdrawal_action.output(). For comprehensive proof verification, consider also verifying any output addresses if they exist in the state transition.

             StateTransition::AddressCreditWithdrawal(st) => {
                 // Verify balances for input addresses after withdrawal
                 use dpp::state_transition::StateTransitionWitnessSigned;
+                use dpp::state_transition::address_credit_withdrawal_transition::accessors::AddressCreditWithdrawalTransitionAccessorsV0;
+                
+                // Collect both input addresses and optional change address
+                let mut addresses_to_verify: Vec<_> = st.inputs().keys().collect();
+                if let Some((change_address, _)) = st.output() {
+                    addresses_to_verify.push(&change_address);
+                }
+                
                 let (root_hash, balances): (
                     RootHash,
                     BTreeMap<PlatformAddress, Option<(AddressNonce, Credits)>>,
                 ) = Drive::verify_addresses_infos(
                     proof,
-                    st.inputs().keys(),
+                    addresses_to_verify,
                     false,
                     platform_version,
                 )?;

                 Ok((root_hash, VerifiedAddressInfos(balances)))
             }
packages/rs-drive-abci/tests/strategy_tests/strategy.rs (2)

22-23: Unused import: PlatformAddress

The PlatformAddress import does not appear to be used anywhere in this file.

 use dpp::address_funds::fee_strategy::AddressFundsFeeStrategyStep;
-use dpp::address_funds::PlatformAddress;

1966-1966: Logging level should be debug or trace, not warn.

This informational message about preparing a transition is not a warning condition. Using warn level will create noise in test output.

-        tracing::warn!(?inputs, "Preparing identity top-up transition with address");
+        tracing::debug!(?inputs, "Preparing identity top-up transition with address");

@@ -1,9 +1,12 @@
use crate::address_funds::PlatformAddress;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

cat -n packages/rs-dpp/src/state_transition/proof_result.rs

Repository: dashpay/platform

Length of output: 2529


🏁 Script executed:

rg -n "StateTransitionProofResult" -g'*.rs' --max-count=50 | head -100

Repository: dashpay/platform

Length of output: 14748


🏁 Script executed:

sed -n '136,200p' packages/wasm-drive-verify/src/state_transition/verify_state_transition_was_executed_with_proof.rs

Repository: dashpay/platform

Length of output: 2885


🏁 Script executed:

sed -n '140,210p' packages/wasm-drive-verify/src/state_transition/verify_state_transition_was_executed_with_proof.rs

Repository: dashpay/platform

Length of output: 2964


🏁 Script executed:

rg -B2 -A10 "match.*StateTransitionProofResult" -g'*.rs' | grep -A10 "match" | head -80

Repository: dashpay/platform

Length of output: 1778


🏁 Script executed:

rg -A20 "match.*proof_result" -g'*.rs' packages/rs-sdk/ | head -100

Repository: dashpay/platform

Length of output: 11629


🏁 Script executed:

grep -n "VerifiedAddressInfos\|VerifiedIdentityWithAddressInfos" packages/rs-sdk/src/platform/transition/*.rs

Repository: dashpay/platform

Length of output: 511


Update match statements on StateTransitionProofResult to handle new address-info variants

The added imports and enum variants are well-shaped, but only 3 call sites currently handle the new VerifiedAddressInfos and VerifiedIdentityWithAddressInfos variants:

  • packages/rs-sdk/src/platform/transition/top_up_address.rs:104
  • packages/rs-sdk/src/platform/transition/address_credit_withdrawal.rs:114
  • packages/rs-sdk/src/platform/transition/top_up_identity_from_addresses.rs:88

Many other match statements on StateTransitionProofResult (e.g., in unfreeze.rs, set_price_for_direct_purchase.rs, transfer.rs, mint.rs, freeze.rs) use catch-all patterns that will silently route the new variants to error handlers. Update all match statements to explicitly handle these variants.

Comment on lines +3399 to +3485
#[test]
fn run_chain_top_up_identities_from_addresses() {
let platform_version = PlatformVersion::latest();
drive_abci::logging::init_for_tests(LogLevel::Debug);

let strategy = NetworkStrategy {
strategy: Strategy {
start_contracts: vec![],
operations: vec![Operation {
op_type: OperationType::IdentityTopUpFromAddresses(
dash_to_duffs!(5)..=dash_to_duffs!(5),
),
frequency: Frequency {
times_per_block_range: 1..3,
chance_per_block: None,
},
}],
start_identities: StartIdentities::default(),
identity_inserts: IdentityInsertInfo {
frequency: Frequency {
times_per_block_range: 1..2,
chance_per_block: None,
},
..Default::default()
},

identity_contract_nonce_gaps: None,
signer: None,
},
total_hpmns: 100,
extra_normal_mns: 0,
validator_quorum_count: 24,
chain_lock_quorum_count: 24,
upgrading_info: None,

proposer_strategy: Default::default(),
rotate_quorums: false,
failure_testing: None,
query_testing: None,
verify_state_transition_results: true,
sign_instant_locks: true,
..Default::default()
};
let config = PlatformConfig {
validator_set: ValidatorSetConfig::default_100_67(),
chain_lock: ChainLockConfig::default_100_67(),
instant_lock: InstantLockConfig::default_100_67(),
execution: ExecutionConfig {
verify_sum_trees: true,

..Default::default()
},
block_spacing_ms: 3000,
testing_configs: PlatformTestConfig::default_minimal_verifications(),
..Default::default()
};
let mut platform = TestPlatformBuilder::new()
.with_config(config.clone())
.build_with_mock_rpc();

let outcome = run_chain_for_strategy(
&mut platform,
10,
strategy,
config,
15,
&mut None,
&mut None,
);

let executed = outcome
.state_transition_results_per_block
.values()
.flat_map(|results| results.iter())
.filter(|(state_transition, result)| {
result.code == 0
&& matches!(
state_transition,
StateTransition::IdentityTopUpFromAddresses(_)
)
})
.count();
assert!(
executed > 0,
"expected at least one identity top up from addresses"
);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

# First, let's read the exact code section to verify platform_version usage
head -c 500 packages/rs-drive-abci/tests/strategy_tests/main.rs | tail -c 100
wc -l packages/rs-drive-abci/tests/strategy_tests/main.rs

Repository: dashpay/platform

Length of output: 216


🏁 Script executed:

# Read the specific code section around lines 3399-3485
sed -n '3399,3450p' packages/rs-drive-abci/tests/strategy_tests/main.rs

Repository: dashpay/platform

Length of output: 2018


🏁 Script executed:

# Search for OperationType::IdentityTopUpFromAddresses handling in the codebase
rg "IdentityTopUpFromAddresses" --type rs -B 2 -A 5

Repository: dashpay/platform

Length of output: 86


🏁 Script executed:

# Check test naming patterns in main.rs - look for test functions
rg "#\[test\]" packages/rs-drive-abci/tests/strategy_tests/main.rs -A 1 | head -50

Repository: dashpay/platform

Length of output: 1431


🏁 Script executed:

# Search for OperationType::IdentityTopUpFromAddresses in the codebase
find packages/rs-drive-abci -name "*.rs" -type f -exec grep -l "IdentityTopUpFromAddresses" {} \;

Repository: dashpay/platform

Length of output: 1684


🏁 Script executed:

# Search more specifically for the enum definition and match statements
rg "OperationType" packages/rs-drive-abci/tests/strategy_tests -A 10 | head -100

Repository: dashpay/platform

Length of output: 10007


🏁 Script executed:

# Look for executor/strategy implementation that processes operations
fd "strategy" packages/rs-drive-abci/tests -type d

Repository: dashpay/platform

Length of output: 230


🏁 Script executed:

# Check the strategy module for operation handling
ls -la packages/rs-drive-abci/tests/strategy_tests/

Repository: dashpay/platform

Length of output: 1209


🏁 Script executed:

# Search for IdentityTopUpFromAddresses in strategy.rs
rg "IdentityTopUpFromAddresses" packages/rs-drive-abci/tests/strategy_tests/strategy.rs -B 5 -A 10

Repository: dashpay/platform

Length of output: 2585


🏁 Script executed:

# Look for OperationType enum and all its variants
rg "enum OperationType" packages/rs-drive-abci/tests/strategy_tests -A 20

Repository: dashpay/platform

Length of output: 42


🏁 Script executed:

# Search for where operations are actually processed
rg "match.*op_type" packages/rs-drive-abci/tests/strategy_tests/strategy.rs -B 2 -A 15 | head -150

Repository: dashpay/platform

Length of output: 955


🏁 Script executed:

# Read the complete test function to check all uses of platform_version
sed -n '3399,3485p' packages/rs-drive-abci/tests/strategy_tests/main.rs | grep -i "platform_version"

Repository: dashpay/platform

Length of output: 117


🏁 Script executed:

# Double-check by reading a bit more lines to ensure we have the complete function
sed -n '3399,3495p' packages/rs-drive-abci/tests/strategy_tests/main.rs | tail -30

Repository: dashpay/platform

Length of output: 1031


Remove unused platform_version variable

The variable declared at line 3401 is never used in this test. Either remove it or rename to _platform_version if you intend to use it later. This will trigger clippy's unused-variable lint.

The rest of the test is correct: the executor properly creates IdentityTopUpFromAddresses state transitions via create_identity_top_up_from_addresses_transitions, so the assertion counting successful transitions is valid.

🤖 Prompt for AI Agents
In packages/rs-drive-abci/tests/strategy_tests/main.rs around lines 3399 to 3485
the local variable `platform_version` declared at line ~3401 is unused which
triggers an unused-variable lint; remove the `let platform_version =
PlatformVersion::latest();` line or rename it to `_platform_version` to silence
the warning.

Comment on lines +1904 to +1915
let funded_amount = match &asset_lock_proof {
AssetLockProof::Instant(proof) => {
let output_index = proof.output_index() as usize;
proof
.transaction()
.output
.get(output_index)
.map(|output| output.value)
.unwrap_or_default()
}
AssetLockProof::Chain(_chain) => 0,
};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Chain proof handling returns zero funded_amount.

When AssetLockProof::Chain is encountered, funded_amount is set to 0. If chain proofs are ever used with this method, downstream calculations (like spend_amount at line 1959) will yield unexpected results.

Consider extracting the actual funded amount from chain proofs, or document/assert that this method only supports instant lock proofs:

-            AssetLockProof::Chain(_chain) => 0,
+            AssetLockProof::Chain(_) => {
+                panic!("Chain proofs are not supported for address funding")
+            }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
let funded_amount = match &asset_lock_proof {
AssetLockProof::Instant(proof) => {
let output_index = proof.output_index() as usize;
proof
.transaction()
.output
.get(output_index)
.map(|output| output.value)
.unwrap_or_default()
}
AssetLockProof::Chain(_chain) => 0,
};
let funded_amount = match &asset_lock_proof {
AssetLockProof::Instant(proof) => {
let output_index = proof.output_index() as usize;
proof
.transaction()
.output
.get(output_index)
.map(|output| output.value)
.unwrap_or_default()
}
AssetLockProof::Chain(_) => {
panic!("Chain proofs are not supported for address funding")
}
};
🤖 Prompt for AI Agents
In packages/rs-drive-abci/tests/strategy_tests/strategy.rs around lines 1904 to
1915, the AssetLockProof::Chain branch returns a funded_amount of 0 which will
break downstream calculations; update the Chain arm to extract the real funded
amount (e.g., access the chain proof's transaction and the output at the proof's
output_index, mirroring the Instant handling) and return that value, or if chain
proofs are out-of-scope for this function, add an explicit assert or
documentation at the top of the function stating only Instant proofs are
supported and fail fast instead of returning 0.

Comment on lines +1959 to +1976
let spend_amount = std::cmp::max(funded_amount / 10, 1);
let mut inputs = BTreeMap::new();
// Funding tx should bump nonce to 1, so we provide 1 (from funding) plus 1 here.
// FIXME: this is unreliable, fails after a few runs
let nonce_to_provide = 1 + 1;

inputs.insert(address.clone(), (nonce_to_provide, spend_amount));
tracing::warn!(?inputs, "Preparing identity top-up transition with address");
let top_up_transition =
IdentityTopUpFromAddressesTransitionV0::try_from_inputs_with_signer(
identity,
inputs,
&self.address_signer,
0,
platform_version,
None,
)?;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Hardcoded nonce causes unreliable test behavior.

The FIXME comment at line 1962 acknowledges this issue: the hardcoded nonce_to_provide = 2 will fail when the same address is used multiple times. This undermines test reliability.

Consider tracking address nonces in StrategyAddressSigner or passing nonce state through the method parameters.

Would you like me to propose a design for tracking address nonces in StrategyAddressSigner?

🤖 Prompt for AI Agents
In packages/rs-drive-abci/tests/strategy_tests/strategy.rs around lines 1959 to
1976, the test currently hardcodes nonce_to_provide = 2 which makes the test
flaky when the same address is reused; update the test to obtain and provide the
correct nonce dynamically instead of a hardcoded value by either: 1) adding
nonce tracking to StrategyAddressSigner (store and increment per-address nonces
on each signing/funding operation and expose a getter to retrieve the next nonce
for tests), or 2) query the actual nonce after the funding transaction (or from
the identity/state fixture) and set nonce_to_provide = current_nonce + 1 before
inserting into inputs; implement one of these approaches and remove the
hardcoded value and FIXME comment.

Comment on lines +861 to +866
// TODO: put correct nonce assertion (nonce or nonce + 1?)
assert_eq!(
returned_nonce, expected_nonce,
"nonce mismatch for withdrawal input {:?}",
address
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Clarify nonce expectation after withdrawal execution.

The TODO at line 861 indicates uncertainty about whether the nonce should be expected_nonce or expected_nonce + 1 after the withdrawal is executed. Typically, after a transaction is processed, the nonce is incremented. If inputs_with_remaining_balance() returns the post-execution nonce, then the current assertion is correct. Otherwise, if it returns the pre-execution nonce, the assertion should expect expected_nonce + 1.

Would you like me to help investigate how inputs_with_remaining_balance() computes the nonce values to clarify this assertion?

🤖 Prompt for AI Agents
In packages/rs-drive-abci/tests/strategy_tests/verify_state_transitions.rs
around lines 861 to 866, the test TODO questions whether the asserted nonce
should be expected_nonce or expected_nonce + 1 after a withdrawal; inspect the
implementation of inputs_with_remaining_balance() to determine whether it
returns pre-execution or post-execution nonces, then update the assertion
accordingly (if it returns post-execution nonces keep expected_nonce, otherwise
change to expected_nonce + 1), remove the TODO, and add a brief clarifying
comment indicating which form inputs_with_remaining_balance() returns so future
readers won’t be uncertain.

Comment on lines +1205 to +1211
OperationType::IdentityTopUpFromAddresses(_amount_range) => {
tracing::warn!(
"IdentityTopUpFromAddresses operations are not supported \
by the generic strategy executor"
);
continue;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Inspect usage of IdentityTopUpFromAddresses across the workspace
rg -n "IdentityTopUpFromAddresses" -g'*.rs' .

Repository: dashpay/platform

Length of output: 45731


🏁 Script executed:

#!/bin/bash
# Check the operations_based_transitions function and surrounding context
head -n 1220 packages/strategy-tests/src/lib.rs | tail -n 50

Repository: dashpay/platform

Length of output: 2850


🏁 Script executed:

#!/bin/bash
# Search for tests related to IdentityTopUpFromAddresses in strategy-tests
rg -n "IdentityTopUpFromAddresses" packages/strategy-tests -A 5 -B 2

Repository: dashpay/platform

Length of output: 4119


🏁 Script executed:

#!/bin/bash
# Check how OperationType::IdentityTopUp is handled
rg -n "OperationType::IdentityTopUp" packages/strategy-tests/src/lib.rs -A 10

Repository: dashpay/platform

Length of output: 1475


🏁 Script executed:

#!/bin/bash
# Search for test files and test cases related to IdentityTopUpFromAddresses
fd '\.rs$' packages/strategy-tests -type f | xargs grep -l "test" | head -10

Repository: dashpay/platform

Length of output: 230


🏁 Script executed:

#!/bin/bash
# Look for TODO or FIXME comments related to IdentityTopUpFromAddresses
rg -i "todo|fixme" packages/strategy-tests/src/lib.rs -B 2 -A 2 | head -50

Repository: dashpay/platform

Length of output: 1274


🏁 Script executed:

#!/bin/bash
# Search more broadly for what tests import or use from strategy-tests
rg "operations_based_transitions|IdentityTopUpFromAddresses" packages/rs-drive-abci/tests -l

Repository: dashpay/platform

Length of output: 239


🏁 Script executed:

#!/bin/bash
# Check the rs-drive-abci test around line 3408
sed -n '3400,3420p' packages/rs-drive-abci/tests/strategy_tests/main.rs

Repository: dashpay/platform

Length of output: 1000


🏁 Script executed:

#!/bin/bash
# Check what imports or calls operations_based_transitions in rs-drive-abci tests
rg "operations_based_transitions" packages/rs-drive-abci/tests -B 5 -A 5

Repository: dashpay/platform

Length of output: 2136


🏁 Script executed:

#!/bin/bash
# Look at the overall structure to see if rs-drive-abci uses strategy-tests
rg "strategy.tests" packages/rs-drive-abci/tests/strategy_tests/main.rs -B 2 -A 2

Repository: dashpay/platform

Length of output: 1173


🏁 Script executed:

#!/bin/bash
# Check rs-drive-abci's strategy.rs for how it handles IdentityTopUpFromAddresses
rg -n "IdentityTopUpFromAddresses" packages/rs-drive-abci/tests/strategy_tests/strategy.rs -B 3 -A 10

Repository: dashpay/platform

Length of output: 2522


🏁 Script executed:

#!/bin/bash
# Check if rs-drive-abci actually uses the packages/strategy-tests operations_based_transitions
# or if it has completely separate logic
rg "use.*strategy.tests" packages/rs-drive-abci/tests/strategy_tests/strategy.rs

Repository: dashpay/platform

Length of output: 528


🏁 Script executed:

#!/bin/bash
# Look at the full structure of the create_identity_top_up_from_addresses_transitions function
rg -n "fn create_identity_top_up_from_addresses_transitions" packages/rs-drive-abci/tests/strategy_tests/strategy.rs -A 50 | head -80

Repository: dashpay/platform

Length of output: 2383


🏁 Script executed:

#!/bin/bash
# Check the README or any documentation in strategy-tests package
cat packages/strategy-tests/README.md 2>/dev/null || echo "No README found"

Repository: dashpay/platform

Length of output: 2164


IdentityTopUpFromAddresses operations are currently not implemented in the generic strategy executor

The match arm at lines 1205–1211 only logs a warning and skips processing. However, OperationType::IdentityTopUpFromAddresses is defined as part of the operation types (in packages/strategy-tests/src/operations.rs) and the library's README states it is "designed to simulate every type of state transition possible on the Dash Platform."

Additionally, this operation type is actively used in tests via the rs-drive-abci test suite (packages/rs-drive-abci/tests/strategy_tests/strategy.rs), which implements its own create_identity_top_up_from_addresses_transitions method to work around this limitation.

Either implement the handler here to match the pattern used for OperationType::IdentityTopUp (lines 1183–1204), or document that address-based top-ups are not supported by the generic executor and remove the operation type from the library's public API.

🤖 Prompt for AI Agents
In packages/strategy-tests/src/lib.rs around lines 1205–1211, the match arm for
OperationType::IdentityTopUpFromAddresses only logs and skips; implement it to
mirror the IdentityTopUp handler (lines ~1183–1204) or explicitly
remove/document the unsupported operation from the public API. If implementing:
add a match arm that calls a new helper (e.g.,
create_identity_top_up_from_addresses_transitions) that builds transitions from
the provided addresses and amounts, reuse the same flow used by IdentityTopUp
(create identity top-up transitions, push them into the generated transitions
vector, handle errors with tracing::error and continue), import any required
types/functions, and add tests or update existing ones to use the new helper. If
opting to remove/support-by-documentation: delete the OperationType variant from
packages/strategy-tests/src/operations.rs and update README and any usages
(including tests) to avoid IdentityTopUpFromAddresses, or change this match arm
to return a clear error explaining the operation is unsupported and update
callers/tests accordingly.

Comment on lines +86 to +99
let Some(signature) = self.0.signature() else {
return Err(WasmDppError::generic(
"Signature was not set after signing the state transition; this is a bug",
));
};

let Some(signature_public_key) = self.0.signature_public_key_id() else {
return Err(WasmDppError::generic(
"Signature public key ID was not set after signing the state transition; this is a bug",
));
};

self.0.set_signature(signature.clone());
self.0.set_signature_public_key_id(signature_public_key);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion | 🟠 Major

Remove redundant setter calls after verification.

The code verifies that signature and signature_public_key_id are set after signing (lines 86-96), then immediately re-sets them with the same values (lines 98-99). Since the verification confirms these fields are already populated by the sign() call, the explicit set_signature() and set_signature_public_key_id() calls are redundant.

Apply this diff to remove the redundant operations:

     let Some(signature) = self.0.signature() else {
         return Err(WasmDppError::generic(
             "Signature was not set after signing the state transition; this is a bug",
         ));
     };

     let Some(signature_public_key) = self.0.signature_public_key_id() else {
         return Err(WasmDppError::generic(
             "Signature public key ID was not set after signing the state transition; this is a bug",
         ));
     };

-    self.0.set_signature(signature.clone());
-    self.0.set_signature_public_key_id(signature_public_key);
-
     Ok(self.0.serialize_to_bytes()?)
🤖 Prompt for AI Agents
packages/wasm-dpp2/src/state_transitions/base/state_transition.rs lines 86-99:
the code checks that signature and signature_public_key_id are present after
signing, then unnecessarily calls set_signature() and
set_signature_public_key_id() with the same values; remove the two redundant
setter calls (self.0.set_signature(...) and
self.0.set_signature_public_key_id(...)) so the function simply verifies
presence and returns without reassigning already-set fields.

Comment on lines +312 to 319
pub fn get_owner_id(&self) -> Option<IdentifierWasm> {
self.0.owner_id().map(Into::into)
}

#[wasm_bindgen(getter = "signature")]
pub fn get_signature(&self) -> Vec<u8> {
self.0.signature().to_vec()
pub fn get_signature(&self) -> Option<Vec<u8>> {
self.0.signature().map(BinaryData::to_vec)
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

# Search for usage of getOwnerId and signature in JS/TS files
rg -n --type=ts --type=js 'getOwnerId|\.signature' -C 2

Repository: dashpay/platform

Length of output: 50373


🏁 Script executed:

# Also search for any WASM binding tests that might reference these methods
find . -name "*.test.ts" -o -name "*.test.js" -o -name "*.spec.ts" -o -name "*.spec.js" | head -20

Repository: dashpay/platform

Length of output: 1867


🏁 Script executed:

# Check if there are any JavaScript/TypeScript SDK files in the wasm-dpp2 package
find packages/wasm-dpp2 -type f \( -name "*.ts" -o -name "*.js" -o -name "*.d.ts" \) | head -20

Repository: dashpay/platform

Length of output: 774


🏁 Script executed:

# Check the exact return types in the state_transition.rs file
sed -n '312,319p' packages/wasm-dpp2/src/state_transitions/base/state_transition.rs

Repository: dashpay/platform

Length of output: 319


🏁 Script executed:

# Get more context around these methods to understand the full signature
sed -n '310,325p' packages/wasm-dpp2/src/state_transitions/base/state_transition.rs

Repository: dashpay/platform

Length of output: 531


🏁 Script executed:

# Search for any tests related to these methods in wasm-dpp2
find packages/wasm-dpp2 -type f \( -name "*.rs" -o -name "*.js" -o -name "*.ts" \) -exec grep -l "get_owner_id\|get_signature\|getOwnerId\|\.signature" {} \;

Repository: dashpay/platform

Length of output: 857


🏁 Script executed:

# Check if there's a CHANGELOG or migration guide
find packages/wasm-dpp2 -type f \( -name "CHANGELOG*" -o -name "MIGRATION*" -o -name "README*" \) | head -5

Repository: dashpay/platform

Length of output: 88


🏁 Script executed:

# Check the README for any mention of breaking changes or API versioning
cat packages/wasm-dpp2/README.md

Repository: dashpay/platform

Length of output: 552


🏁 Script executed:

# Search for any version information or CHANGELOG in the package
cat packages/wasm-dpp2/package.json | grep -A 5 -B 5 "version"

Repository: dashpay/platform

Length of output: 224


🏁 Script executed:

# Check if there are any JS/TS integration tests that might import these methods
rg -n "getOwnerId|\.signature" packages/wasm-dpp2/tests --type=js --type=ts -C 2

Repository: dashpay/platform

Length of output: 42


Breaking API changes in WASM state transition getters: return types now optional.

Both get_owner_id() (line 312) and get_signature() (line 317) now return Option<IdentifierWasm> and Option<Vec<u8>> respectively, exposed to JavaScript as getOwnerId() and .signature property getter. This is a breaking change—JavaScript consumers must now handle null/undefined returns instead of always receiving concrete values.

Verify that:

  • Test coverage in wasm-dpp2 includes handling the optional return values
  • Any existing JavaScript/TypeScript code consuming these WASM bindings is updated to safely handle nulls
  • Type definitions in the generated .d.ts file correctly reflect the Option<T> types
🤖 Prompt for AI Agents
In packages/wasm-dpp2/src/state_transitions/base/state_transition.rs around
lines 312 to 319, the getters get_owner_id() and get_signature() now return
Option types which breaks the JS API by introducing nullable returns; update
tests, TypeScript declarations and consumers to handle nulls. Update wasm-dpp2
unit/wasm tests to assert both Some and None paths for these getters; regenerate
or edit the generated .d.ts so getOwnerId(): IdentifierWasm | null and get
signature(): Uint8Array | null (or Array<number> | null) are reflected; scan and
update JS/TS caller sites to handle null/undefined (add null checks or fallback
values) and run the build/test suite to verify no runtime type errors remain.

Comment on lines +418 to 420
pub fn set_signature(&mut self, signature: Vec<u8>) -> bool {
self.0.set_signature(BinaryData::from(signature))
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion | 🟠 Major

Document the boolean return value.

The set_signature method now returns bool (previously returned unit). The meaning of this boolean is not documented—does it indicate whether the signature was successfully set, or whether the transition type supports signatures?

Add a doc comment to clarify the return value's meaning:

+    /// Sets the signature for this state transition.
+    /// Returns `true` if the signature was set, `false` if this transition type does not support signatures.
     #[wasm_bindgen(setter = "signature")]
     pub fn set_signature(&mut self, signature: Vec<u8>) -> bool {

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In packages/wasm-dpp2/src/state_transitions/base/state_transition.rs around
lines 418 to 420, the set_signature method now returns a bool but there's no
documentation explaining what that boolean represents; add a concise doc comment
above the method stating the exact semantic (e.g., "Returns true if the
signature was accepted and applied to the underlying transition, false if the
transition type does not support signatures or the signature was rejected"), and
mention any side-effects (it mutates self) and error conditions if applicable so
callers know how to interpret true/false.

Comment on lines +126 to +129
/// Nonce associated with the address.
pub nonce: AddressNonce,
/// Balance stored for the address.
pub balance: Credits,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

shouldn't these be optional?

xxhash-rust = { version = "0.8.15", features = ["xxh3"] }
# Dash Platform dependencies (using workspace versions)
dpp = { path = "../rs-dpp", default-features = false }
dpp = { path = "../rs-dpp", default-features = false, features = ["state-transitions"] }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why do you need this all of a sudden?

Comment on lines +1170 to +1196
StateTransition::DataContractCreate(_) => {
crate::validation::SimpleConsensusValidationResult::default()
}
StateTransition::DataContractUpdate(_) => {
crate::validation::SimpleConsensusValidationResult::default()
}
StateTransition::Batch(_) => {
crate::validation::SimpleConsensusValidationResult::default()
}
StateTransition::IdentityCreate(_) => {
crate::validation::SimpleConsensusValidationResult::default()
}
StateTransition::IdentityTopUp(_) => {
crate::validation::SimpleConsensusValidationResult::default()
}
StateTransition::IdentityCreditWithdrawal(_) => {
crate::validation::SimpleConsensusValidationResult::default()
}
StateTransition::IdentityUpdate(_) => {
crate::validation::SimpleConsensusValidationResult::default()
}
StateTransition::IdentityCreditTransfer(_) => {
crate::validation::SimpleConsensusValidationResult::default()
}
StateTransition::MasternodeVote(_) => {
crate::validation::SimpleConsensusValidationResult::default()
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

issue here is that since we don't have validate structure for the others... the whole call is meaningless.

},
Addresses {
inputs: BTreeMap<PlatformAddress, Credits>,
input_private_keys: Vec<Vec<u8>>,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why would we want the private keys here?


/// Simple signer that manages randomly generated P2PKH addresses for strategy tests.
#[derive(Debug, Clone)]
pub struct StrategyAddressSigner {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

probably no longer will need this.

@QuantumExplorer

Copy link
Copy Markdown
Member

Decided that we will merge this as is. And fix things in future PRs.

@QuantumExplorer QuantumExplorer changed the title feat(sdk): platform address support feat(sdk): platform address support part 1 Dec 10, 2025
@QuantumExplorer
QuantumExplorer merged commit 38d368e into feat/platformAddresses Dec 10, 2025
@QuantumExplorer
QuantumExplorer deleted the feat/singleUseKeys-sdk branch December 10, 2025 23:53
@thephez thephez added this to the v3.0 milestone Dec 22, 2025
shumkov added a commit that referenced this pull request May 22, 2026
Restore the descriptive legacy name across rs-platform-wallet,
rs-platform-wallet-ffi, Swift SDK, and SwiftExampleApp. The previous
`top_up` name was ambiguous next to the identity-side
`register_identity_with_funding` and conflicted with the prior legacy
`fund_from_asset_lock` terminology.

Pre-existing `TopUpAddress` SDK trait and `top_up_with_signers` method
in rs-sdk (added in #2875/#3008) are untouched — they're shared SDK API,
not part of this PR's surface. Same for `AssetLockFundingType::*TopUp`
enum variants.

Build verified: cargo check -p platform-wallet-ffi, ./build_ios.sh
(sim, debug), xcodebuild SwiftExampleApp — all green.
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.

5 participants