pub enum Command {
Show 27 variants AccountResource(AccountResource), AddValidator(AddValidator), CheckEndpoint(CheckEndpoint), CheckValidatorSetEndpoints(CheckValidatorSetEndpoints), CreateValidator(CreateValidator), CreateValidatorOperator(CreateValidatorOperator), ExtractPeerFromFile(ExtractPeerFromFile), ExtractPeerFromStorage(ExtractPeerFromStorage), ExtractPeersFromKeys(ExtractPeersFromKeys), ExtractPrivateKey(ExtractPrivateKey), ExtractPublicKey(ExtractPublicKey), GenerateKey(GenerateKey), InsertWaypoint(InsertWaypoint), PrintAccount(PrintAccount), PrintKey(PrintKey), PrintXKey(PrintXKey), PrintWaypoint(PrintWaypoint), RemoveValidator(RemoveValidator), RotateConsensusKey(RotateConsensusKey), RotateFullNodeNetworkKey(RotateFullNodeNetworkKey), RotateOperatorKey(RotateOperatorKey), RotateValidatorNetworkKey(RotateValidatorNetworkKey), SetValidatorConfig(SetValidatorConfig), SetValidatorOperator(SetValidatorOperator), ValidateTransaction(ValidateTransaction), ValidatorConfig(ValidatorConfig), ValidatorSet(ValidatorSet),
}

Variants§

§

AccountResource(AccountResource)

§

AddValidator(AddValidator)

§

CheckEndpoint(CheckEndpoint)

§

CheckValidatorSetEndpoints(CheckValidatorSetEndpoints)

§

CreateValidator(CreateValidator)

§

CreateValidatorOperator(CreateValidatorOperator)

§

ExtractPeerFromFile(ExtractPeerFromFile)

§

ExtractPeerFromStorage(ExtractPeerFromStorage)

§

ExtractPeersFromKeys(ExtractPeersFromKeys)

§

ExtractPrivateKey(ExtractPrivateKey)

§

ExtractPublicKey(ExtractPublicKey)

§

GenerateKey(GenerateKey)

§

InsertWaypoint(InsertWaypoint)

§

PrintAccount(PrintAccount)

§

PrintKey(PrintKey)

§

PrintXKey(PrintXKey)

§

PrintWaypoint(PrintWaypoint)

§

RemoveValidator(RemoveValidator)

§

RotateConsensusKey(RotateConsensusKey)

§

RotateFullNodeNetworkKey(RotateFullNodeNetworkKey)

§

RotateOperatorKey(RotateOperatorKey)

§

RotateValidatorNetworkKey(RotateValidatorNetworkKey)

§

SetValidatorConfig(SetValidatorConfig)

§

SetValidatorOperator(SetValidatorOperator)

§

ValidateTransaction(ValidateTransaction)

§

ValidatorConfig(ValidatorConfig)

§

ValidatorSet(ValidatorSet)

Implementations§

source§

impl Command

source

pub fn execute(self) -> Result<String, Error>

source

pub fn print_transaction_context( result: Result<TransactionContext, Error> ) -> Result<String, Error>

Show the transaction context and validation result in a friendly way

source

pub fn account_resource(self) -> Result<SimplifiedAccountResource, Error>

source

pub fn add_validator(self) -> Result<TransactionContext, Error>

source

pub fn check_endpoint(self) -> Result<String, Error>

source

pub fn check_validator_set_endpoints(self) -> Result<String, Error>

source

pub fn create_validator( self ) -> Result<(TransactionContext, AccountAddress), Error>

source

pub fn create_validator_operator( self ) -> Result<(TransactionContext, AccountAddress), Error>

source

pub fn extract_private_key(self) -> Result<(), Error>

source

pub fn extract_public_key(self) -> Result<(), Error>

source

pub fn extract_peer_from_storage(self) -> Result<HashMap<PeerId, Peer>, Error>

source

pub fn extract_peer_from_file(self) -> Result<HashMap<PeerId, Peer>, Error>

source

pub fn extract_peers_from_keys(self) -> Result<HashMap<PeerId, Peer>, Error>

source

pub fn generate_key(self) -> Result<(), Error>

source

pub fn insert_waypoint(self) -> Result<(), Error>

source

pub fn print_account(self) -> Result<AccountAddress, Error>

source

pub fn print_key(self) -> Result<Ed25519PublicKey, Error>

source

pub fn print_x_key(self) -> Result<PublicKey, Error>

source

pub fn print_waypoint(self) -> Result<Waypoint, Error>

source

pub fn remove_validator(self) -> Result<TransactionContext, Error>

source

pub fn rotate_consensus_key( self ) -> Result<(TransactionContext, Ed25519PublicKey), Error>

source

pub fn rotate_operator_key( self ) -> Result<(TransactionContext, Ed25519PublicKey), Error>

source

pub fn rotate_fullnode_network_key( self ) -> Result<(TransactionContext, PublicKey), Error>

source

pub fn rotate_validator_network_key( self ) -> Result<(TransactionContext, PublicKey), Error>

source

pub fn set_validator_config(self) -> Result<TransactionContext, Error>

source

pub fn set_validator_operator(self) -> Result<TransactionContext, Error>

source

pub fn validate_transaction(self) -> Result<TransactionContext, Error>

source

pub fn validator_config(self) -> Result<DecryptedValidatorConfig, Error>

source

pub fn validator_set(self) -> Result<Vec<DecryptedValidatorInfo>, Error>

Trait Implementations§

source§

impl Debug for Command

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&Command> for CommandName

source§

fn from(command: &Command) -> Self

Converts to this type from the input type.
source§

impl StructOpt for Command

source§

fn clap<'a, 'b>() -> App<'a, 'b>

Returns clap::App corresponding to the struct.
source§

fn from_clap(matches: &ArgMatches<'_>) -> Self

Builds the struct from clap::ArgMatches. It’s guaranteed to succeed if matches originates from an App generated by [StructOpt::clap] called on the same type, otherwise it must panic.
§

fn from_args() -> Selfwhere Self: Sized,

Builds the struct from the command line arguments (std::env::args_os). Calls clap::Error::exit on failure, printing the error message and aborting the program.
§

fn from_args_safe() -> Result<Self, Error>where Self: Sized,

Builds the struct from the command line arguments (std::env::args_os). Unlike [StructOpt::from_args], returns clap::Error on failure instead of aborting the program, so calling .exit is up to you.
§

fn from_iter<I>(iter: I) -> Selfwhere Self: Sized, I: IntoIterator, <I as IntoIterator>::Item: Into<OsString> + Clone,

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more
§

fn from_iter_safe<I>(iter: I) -> Result<Self, Error>where Self: Sized, I: IntoIterator, <I as IntoIterator>::Item: Into<OsString> + Clone,

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more