Skip to content

Commit

Permalink
Wallet Interactive-mode, Part 1 (mimblewimble#295)
Browse files Browse the repository at this point in the history
* cli addition to yml

* first experiments with CLI mode

* rustfmt

* modify owner_single_use to take optional instantiated API

* refactor command functions to take owner api instance

* modify commands to use single owner api instance

* add ability to pass customised message handler to API

* prevent update wallet attempt if wallet hasn't been opened

* fix output when internal updater is running

* add termion, use cli for status updates, remove logging output from CLI

* some attempts to clean up the command prompt and accomodate scanning intervals

* rework listener slightly to allow for cli mode, add close command

* remove termion dependency
  • Loading branch information
yeastplume authored Feb 6, 2020
1 parent 0ae9214 commit 2d264db
Show file tree
Hide file tree
Showing 28 changed files with 930 additions and 315 deletions.
88 changes: 88 additions & 0 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ prettytable-rs = "0.7"
log = "0.4"
linefeed = "0.5"
semver = "0.9"
rustyline = "6"
colored = "1.6"
lazy_static = "1"

grin_wallet_api = { path = "./api", version = "3.1.0-beta.1" }
grin_wallet_impls = { path = "./impls", version = "3.1.0-beta.1" }
Expand Down
2 changes: 1 addition & 1 deletion api/src/foreign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ where
/// ```
/// # grin_wallet_api::doctest_helper_setup_doc_env_foreign!(wallet, wallet_config);
///
/// let mut api_owner = Owner::new(wallet.clone());
/// let mut api_owner = Owner::new(wallet.clone(), None);
/// let mut api_foreign = Foreign::new(wallet.clone(), None, None);
///
/// // . . .
Expand Down
Loading

0 comments on commit 2d264db

Please sign in to comment.