pub enum NetworkRegistrySubcommands {
ManagerRegister {
network_provider: NetworkProviderArgs,
node_address: Option<String>,
safe_address: Option<String>,
local_identity: IdentityFileArgs,
private_key: PrivateKeyArgs,
},
ManagerDeregister {
network_provider: NetworkProviderArgs,
node_address: Option<String>,
local_identity: IdentityFileArgs,
private_key: PrivateKeyArgs,
},
ManagerForceSync {
network_provider: NetworkProviderArgs,
safe_address: Option<String>,
private_key: PrivateKeyArgs,
eligibility: Option<bool>,
},
Toggle {
network_provider: NetworkProviderArgs,
private_key: PrivateKeyArgs,
enable: bool,
},
}
Expand description
CLI arguments for hopli network-registry
Variants§
ManagerRegister
Fields
network_provider: NetworkProviderArgs
Network name, contracts config file root, and customized provider, if available
local_identity: IdentityFileArgs
Arguments to locate identity file(s) of HOPR node(s)
private_key: PrivateKeyArgs
Access to the private key of a manager of Network Registry contract
ManagerDeregister
Remove nodes and safes with a manager account
Fields
network_provider: NetworkProviderArgs
Network name, contracts config file root, and customized provider, if available
local_identity: IdentityFileArgs
Arguments to locate identity file(s) of HOPR node(s)
private_key: PrivateKeyArgs
Access to the private key of a manager of Network Registry contract
ManagerForceSync
Force sync the eligibility of safe accounts
Fields
network_provider: NetworkProviderArgs
Network name, contracts config file root, and customized provider, if available
private_key: PrivateKeyArgs
Access to the private key of a manager of Network Registry contract
Toggle
Fields
network_provider: NetworkProviderArgs
Network name, contracts config file root, and customized provider, if available
private_key: PrivateKeyArgs
Access to the private key of a manager of Network Registry contract
Implementations§
Source§impl NetworkRegistrySubcommands
impl NetworkRegistrySubcommands
Sourcepub async fn execute_manager_register(
network_provider: NetworkProviderArgs,
local_identity: IdentityFileArgs,
node_address: Option<String>,
safe_address: Option<String>,
private_key: PrivateKeyArgs,
) -> Result<(), HelperErrors>
pub async fn execute_manager_register( network_provider: NetworkProviderArgs, local_identity: IdentityFileArgs, node_address: Option<String>, safe_address: Option<String>, private_key: PrivateKeyArgs, ) -> Result<(), HelperErrors>
Execute command to register a node and its staking account (safe) with manager privilege and make the safe eligible.
Manager wallet registers nodes with associated staking accounts
Sourcepub async fn execute_manager_deregister(
network_provider: NetworkProviderArgs,
local_identity: IdentityFileArgs,
node_address: Option<String>,
private_key: PrivateKeyArgs,
) -> Result<(), HelperErrors>
pub async fn execute_manager_deregister( network_provider: NetworkProviderArgs, local_identity: IdentityFileArgs, node_address: Option<String>, private_key: PrivateKeyArgs, ) -> Result<(), HelperErrors>
Execute command to deregister a node and its staking account with manager privilege
This action does not need to provide safe_address Manager wallet deregisters nodes from associated staking accounts
Sourcepub async fn execute_manager_force_sync(
network_provider: NetworkProviderArgs,
safe_address: Option<String>,
private_key: PrivateKeyArgs,
eligibility: Option<bool>,
) -> Result<(), HelperErrors>
pub async fn execute_manager_force_sync( network_provider: NetworkProviderArgs, safe_address: Option<String>, private_key: PrivateKeyArgs, eligibility: Option<bool>, ) -> Result<(), HelperErrors>
Execute command to force sync eligibility of staking accounts with manager privilege
This action does not need to provide node_address Manager wallet sync eligibility of staking accounts to a given value
Sourcepub async fn execute_toggle(
network_provider: NetworkProviderArgs,
private_key: PrivateKeyArgs,
enable: bool,
) -> Result<(), HelperErrors>
pub async fn execute_toggle( network_provider: NetworkProviderArgs, private_key: PrivateKeyArgs, enable: bool, ) -> Result<(), HelperErrors>
Execute command to enable or disable the network registry with manager privilege
Trait Implementations§
Source§impl Clone for NetworkRegistrySubcommands
impl Clone for NetworkRegistrySubcommands
Source§fn clone(&self) -> NetworkRegistrySubcommands
fn clone(&self) -> NetworkRegistrySubcommands
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Cmd for NetworkRegistrySubcommands
impl Cmd for NetworkRegistrySubcommands
Source§impl CommandFactory for NetworkRegistrySubcommands
impl CommandFactory for NetworkRegistrySubcommands
Source§impl Debug for NetworkRegistrySubcommands
impl Debug for NetworkRegistrySubcommands
Source§impl FromArgMatches for NetworkRegistrySubcommands
impl FromArgMatches for NetworkRegistrySubcommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.Source§impl Parser for NetworkRegistrySubcommands
impl Parser for NetworkRegistrySubcommands
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Source§impl Subcommand for NetworkRegistrySubcommands
impl Subcommand for NetworkRegistrySubcommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command
] so it can instantiate self
via
[FromArgMatches::update_from_arg_matches_mut
] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self
can parse a specific subcommandAuto Trait Implementations§
impl Freeze for NetworkRegistrySubcommands
impl RefUnwindSafe for NetworkRegistrySubcommands
impl Send for NetworkRegistrySubcommands
impl Sync for NetworkRegistrySubcommands
impl Unpin for NetworkRegistrySubcommands
impl UnwindSafe for NetworkRegistrySubcommands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more