Enum aptos_operational_tool::command::Command
source · [−]pub enum Command {
Show 28 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),
VerifyValidatorState(VerifyValidatorState),
}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)
VerifyValidatorState(VerifyValidatorState)
Implementations
sourceimpl Command
impl Command
pub async fn execute(self) -> Result<String, Error>
sourcepub fn print_transaction_context(
result: Result<TransactionContext, Error>
) -> Result<String, Error>
pub fn print_transaction_context(
result: Result<TransactionContext, Error>
) -> Result<String, Error>
Show the transaction context and validation result in a friendly way
pub async fn account_resource(self) -> Result<SimplifiedAccountResource, Error>
pub async fn add_validator(self) -> Result<TransactionContext, Error>
pub async fn check_endpoint(self) -> Result<String, Error>
pub async fn check_validator_set_endpoints(self) -> Result<String, Error>
pub async fn create_validator(
self
) -> Result<(TransactionContext, AccountAddress), Error>
pub async fn create_validator_operator(
self
) -> Result<(TransactionContext, AccountAddress), Error>
pub async fn extract_private_key(self) -> Result<(), Error>
pub async fn extract_public_key(self) -> Result<(), Error>
pub async fn extract_peer_from_storage(
self
) -> Result<HashMap<PeerId, Peer>, Error>
pub async fn extract_peer_from_file(
self
) -> Result<HashMap<PeerId, Peer>, Error>
pub async fn extract_peers_from_keys(
self
) -> Result<HashMap<PeerId, Peer>, Error>
pub async fn generate_key(self) -> Result<(), Error>
pub async fn insert_waypoint(self) -> Result<(), Error>
pub async fn print_account(self) -> Result<AccountAddress, Error>
pub async fn print_key(self) -> Result<Ed25519PublicKey, Error>
pub async fn print_x_key(self) -> Result<PublicKey, Error>
pub async fn print_waypoint(self) -> Result<Waypoint, Error>
pub async fn remove_validator(self) -> Result<TransactionContext, Error>
pub async fn rotate_consensus_key(
self
) -> Result<(TransactionContext, Ed25519PublicKey), Error>
pub async fn rotate_operator_key(
self
) -> Result<(TransactionContext, Ed25519PublicKey), Error>
pub async fn rotate_fullnode_network_key(
self
) -> Result<(TransactionContext, PublicKey), Error>
pub async fn rotate_validator_network_key(
self
) -> Result<(TransactionContext, PublicKey), Error>
pub async fn set_validator_config(self) -> Result<TransactionContext, Error>
pub async fn set_validator_operator(self) -> Result<TransactionContext, Error>
pub async fn validate_transaction(self) -> Result<TransactionContext, Error>
pub async fn validator_config(self) -> Result<DecodedValidatorConfig, Error>
pub async fn validator_set(self) -> Result<Vec<DecryptedValidatorInfo>, Error>
pub async fn verify_validator_state(
self
) -> Result<VerifyValidatorStateResult, Error>
Trait Implementations
sourceimpl From<&Command> for CommandName
impl From<&Command> for CommandName
sourceimpl StructOpt for Command
impl StructOpt for Command
sourcefn from_clap(matches: &ArgMatches<'_>) -> Self
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. Read more
sourcefn from_args() -> Self
fn from_args() -> Self
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. Read more
sourcefn from_args_safe() -> Result<Self, Error>
fn from_args_safe() -> Result<Self, Error>
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. Read more
sourcefn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: 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
sourcefn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec of your making. Read more
Auto Trait Implementations
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more