Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(wallet_ffi): wallet_get_utxos() #4209

Merged
merged 2 commits into from Jun 20, 2022

Conversation

agubarev
Copy link
Contributor

Description

Added an FFI function to get a list utxos, a simple output storage querying interface and a circumvented output database access from the FFI context.

Motivation and Context

To let mobile wallets obtain a list of UTXOs.

How Has This Been Tested?

individual unit tests and cargo test

added a simple output querying function

Signed-off-by: Andrey Gubarev <agubarev@protonmail.com>
added a simple output querying function.
added an output database shortcut for easier access from the wallet context, circumventing hops through async fall-through constructs; updated all usages - `cargo test` passing.

Signed-off-by: Andrey Gubarev <agubarev@protonmail.com>
@agubarev agubarev closed this Jun 17, 2022
@CjS77 CjS77 reopened this Jun 17, 2022
@CjS77 CjS77 changed the base branch from development to testnet-dibbler June 17, 2022 12:33
@stringhandler stringhandler merged commit 1b30524 into tari-project:testnet-dibbler Jun 20, 2022
sdbondi added a commit to sdbondi/tari that referenced this pull request Jun 22, 2022
* testnet-dibbler:
  v0.32.5
  chore: update toolchain and fix clippy (tari-project#4212)
  feat(wallet_ffi): wallet_get_utxos() (tari-project#4209)
  chore: bump lmdb-sys dependency (tari-project#4195)
  chore(deps): upgrade randomx (tari-project#4196)
  Bump croaring to 0.5.2 - improve cross-compile in docker
  bug: remove deprecated tauri config variable (tari-project#4194)
  feat: generate wallet ffi header file automatically (tari-project#4183)
  v0.32.4
  feat(wallet-ffi): adds FFI wallet_get_utxos() and test_wallet_get_utxos() (tari-project#4180)
sdbondi added a commit to sdbondi/tari that referenced this pull request Jun 22, 2022
* testnet-dibbler:
  v0.32.5
  chore: update toolchain and fix clippy (tari-project#4212)
  feat(wallet_ffi): wallet_get_utxos() (tari-project#4209)
  chore: bump lmdb-sys dependency (tari-project#4195)
  chore(deps): upgrade randomx (tari-project#4196)
  Bump croaring to 0.5.2 - improve cross-compile in docker
  bug: remove deprecated tauri config variable (tari-project#4194)
  feat: generate wallet ffi header file automatically (tari-project#4183)
  v0.32.4
  feat(wallet-ffi): adds FFI wallet_get_utxos() and test_wallet_get_utxos() (tari-project#4180)
sdbondi added a commit to sdbondi/tari that referenced this pull request Jun 22, 2022
* development:
  fix clippies
  remove tari_core_from cbindgen build
  feat(miner): friendlier miner output (tari-project#4219)
  v0.32.5
  chore: update toolchain and fix clippy (tari-project#4212)
  feat(wallet_ffi): wallet_get_utxos() (tari-project#4209)
  chore: bump lmdb-sys dependency (tari-project#4195)
  chore(deps): upgrade randomx (tari-project#4196)
  Bump croaring to 0.5.2 - improve cross-compile in docker
  bug: remove deprecated tauri config variable (tari-project#4194)
  feat: generate wallet ffi header file automatically (tari-project#4183)
  v0.32.4
  feat(wallet-ffi): adds FFI wallet_get_utxos() and test_wallet_get_utxos() (tari-project#4180)
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.

None yet

4 participants