-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move wallet commands under a
wallet
subcommand
The PCZT commands are left at the top level, because only a couple of them are connected to a wallet.
- Loading branch information
Showing
19 changed files
with
161 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
use clap::Subcommand; | ||
|
||
pub(crate) mod balance; | ||
pub(crate) mod enhance; | ||
pub(crate) mod import_ufvk; | ||
pub(crate) mod init; | ||
pub(crate) mod init_fvk; | ||
pub(crate) mod list_accounts; | ||
pub(crate) mod list_addresses; | ||
pub(crate) mod list_tx; | ||
pub(crate) mod list_unspent; | ||
pub(crate) mod propose; | ||
pub(crate) mod reset; | ||
pub(crate) mod send; | ||
pub(crate) mod shield; | ||
pub(crate) mod sync; | ||
pub(crate) mod upgrade; | ||
|
||
#[derive(Debug, Subcommand)] | ||
pub(crate) enum Command { | ||
/// Initialise a new light wallet | ||
Init(init::Command), | ||
|
||
/// Initialise a new view-only light wallet | ||
InitFvk(init_fvk::Command), | ||
|
||
/// Reset an existing light wallet (does not preserve imported UFVKs) | ||
Reset(reset::Command), | ||
|
||
/// Import a UFVK | ||
ImportUfvk(import_ufvk::Command), | ||
|
||
/// Upgrade an existing light wallet | ||
Upgrade(upgrade::Command), | ||
|
||
/// Scan the chain and sync the wallet | ||
Sync(sync::Command), | ||
|
||
/// Ensure all transactions have full data available | ||
Enhance(enhance::Command), | ||
|
||
/// Get the balance in the wallet | ||
Balance(balance::Command), | ||
|
||
/// List the accounts in the wallet | ||
ListAccounts(list_accounts::Command), | ||
|
||
/// List the addresses for an account in the wallet | ||
ListAddresses(list_addresses::Command), | ||
|
||
/// List the transactions in the wallet | ||
ListTx(list_tx::Command), | ||
|
||
/// List the unspent notes in the wallet | ||
ListUnspent(list_unspent::Command), | ||
|
||
/// Shield transparent funds received by the wallet | ||
Shield(shield::Command), | ||
|
||
/// Propose a transfer of funds to the given address and display the proposal | ||
Propose(propose::Command), | ||
|
||
/// Send funds to the given address | ||
Send(send::Command), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters