Skip to content

Merge UniFFI bridge module into v0.42-dev #18

@xdustinface

Description

@xdustinface

Description

The feat/spv-client-uniffi-v2 branch has a working UniFFI bridge module for dash-spv with:

  • UniFFI feature flag in dash-spv/Cargo.toml
  • bridge/mod.rs with custom type mappings (Network, SocketAddr, PathBuf, ClientConfig)
  • SyncEvent enum (14 variants) and NetworkEvent enum (3 variants) with UniFFI derives
  • SpvEventListener callback trait (on_sync_event, on_network_event, on_sync_progress)
  • SpvClient UniFFI object with lifecycle methods (start, stop, shutdown, is_running, tip_height, tip_hash, peer_count, sync_progress, is_syncing)
  • Comprehensive tests

This needs to be rebased onto v0.42-dev and merged, since v0.42-dev has progressed significantly (mempool support, etc.) since the uniffi branch diverged.

Acceptance Criteria

  • feat/spv-client-uniffi-v2 rebased onto current v0.42-dev
  • All conflicts resolved (especially in bridge/mod.rs and Cargo.toml)
  • cargo test -p dash-spv --features uniffi --lib passes
  • cargo build -p dash-spv --features uniffi succeeds
  • PR created and CI green

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions