Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ members = [
]

[workspace.dependencies]
dashcore = { git = "https://github.com/dashpay/rust-dashcore", rev = "5877d15f26aeb3f6d43b010ed919a9a77f78815d" }
dash-network-seeds = { git = "https://github.com/dashpay/rust-dashcore", rev = "5877d15f26aeb3f6d43b010ed919a9a77f78815d" }
dash-spv = { git = "https://github.com/dashpay/rust-dashcore", rev = "5877d15f26aeb3f6d43b010ed919a9a77f78815d" }
key-wallet = { git = "https://github.com/dashpay/rust-dashcore", rev = "5877d15f26aeb3f6d43b010ed919a9a77f78815d" }
key-wallet-ffi = { git = "https://github.com/dashpay/rust-dashcore", rev = "5877d15f26aeb3f6d43b010ed919a9a77f78815d" }
key-wallet-manager = { git = "https://github.com/dashpay/rust-dashcore", rev = "5877d15f26aeb3f6d43b010ed919a9a77f78815d" }
dash-network = { git = "https://github.com/dashpay/rust-dashcore", rev = "5877d15f26aeb3f6d43b010ed919a9a77f78815d" }
dashcore-rpc = { git = "https://github.com/dashpay/rust-dashcore", rev = "5877d15f26aeb3f6d43b010ed919a9a77f78815d" }
dashcore = { git = "https://github.com/dashpay/rust-dashcore", rev = "9a68e6528072523eb210a5338bcb0edace9ff453" }
dash-network-seeds = { git = "https://github.com/dashpay/rust-dashcore", rev = "9a68e6528072523eb210a5338bcb0edace9ff453" }
dash-spv = { git = "https://github.com/dashpay/rust-dashcore", rev = "9a68e6528072523eb210a5338bcb0edace9ff453" }
key-wallet = { git = "https://github.com/dashpay/rust-dashcore", rev = "9a68e6528072523eb210a5338bcb0edace9ff453" }
key-wallet-ffi = { git = "https://github.com/dashpay/rust-dashcore", rev = "9a68e6528072523eb210a5338bcb0edace9ff453" }
key-wallet-manager = { git = "https://github.com/dashpay/rust-dashcore", rev = "9a68e6528072523eb210a5338bcb0edace9ff453" }
dash-network = { git = "https://github.com/dashpay/rust-dashcore", rev = "9a68e6528072523eb210a5338bcb0edace9ff453" }
dashcore-rpc = { git = "https://github.com/dashpay/rust-dashcore", rev = "9a68e6528072523eb210a5338bcb0edace9ff453" }

tokio-metrics = "0.5"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,25 @@ internal object WalletManagerNative {
/** Balance as `long[4]` = {confirmed, unconfirmed, immature, locked}. */
external fun walletGetBalance(walletHandle: Long): LongArray

/**
* The engine's full UTXO inventory for one wallet, every account, as
* JSON `{"utxos":[...],"errors":[...]}` — the source of truth the
* TXO-store reconciler ([PlatformWalletManager.reconcileTxoStore])
* diffs against the Room `txos` mirror. Each `utxos` row carries the
* owning account tags, the txid hex in the same byte order the
* changeset path hands [PlatformWalletPersistenceHandler] (so
* hex→bytes reproduces the `txos.txid` blob), vout, amount (duffs),
* derived address (empty when the script has no address form),
* scriptHex, height and isLocked. Per-account read failures land in
* `errors` instead of failing the sweep. `network` is
* [org.dashfoundation.dashsdk.Network.ffiValue].
*/
external fun walletManagerAllUtxosJson(
managerHandle: Long,
walletId: ByteArray,
network: Int,
): String?

// ── Core transaction builder (1:1 over `core_wallet_tx_builder_*`) ─
//
// Each step is a thin extern (one export = one FFI call, per
Expand Down
Loading
Loading