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

Cleanup of wallet owner API, rustdoc documentation #2036

Merged
merged 7 commits into from
Nov 28, 2018

Conversation

yeastplume
Copy link
Member

@yeastplume yeastplume commented Nov 28, 2018

Cleans up the libwallet::api::OwnerAPI somewhat:

  • change post_tx to take a transaction instead of a slate
  • remove dump_stored_tx and post_stored_tx. caller can instead just call get_stored_tx on a TxLogEntry and either save the results or call post_tx with it
  • add set_active_account convenience function

Also, large chunk of proper rustdoc documentation for the API (about half-done in this PR).

Note none of these changes affect the HTTP wrapper found in wallet/src/controller.rs, which are wired to work as before while using the changed OwnerAPI underneath. Cleanup of that wrapper is next on the list after cleaning up/documenting the underlying Owner/Foreign APIs.

@yeastplume yeastplume merged commit fdb0197 into mimblewimble:master Nov 28, 2018
@yeastplume yeastplume deleted the wallet_api_doc1 branch November 28, 2018 15:32
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.

1 participant