pub struct DeregisterArgs {
pub yes: bool,
pub chain: ChainArgs,
}Expand description
decdn node deregister — leave the active set via
CapacityBond.deregisterNode (ADR 003 § Node Registry, #1359).
Deliberately flagless beyond the confirmation gate: deregisterNode() takes
no arguments and needs no EIP-712 or ed25519 signature — unlike
RegisterArgs, which builds both — so the operator signer is the whole
input. There is no state-driven phase selection either, the way
UnbondArgs has: deregistration is a single transaction that either
applies or reverts NodeNotActive.
It is nonetheless at least as consequential as starting an unbonding window,
which is why it carries the same --yes gate: it drops the node from the
active set, bumps registrationNonce[nodeId] (invalidating any
previously-signed registration signature), and clears the declared tier, so
re-entry costs a fresh declareMbps + registerNode.
Fields§
§yes: boolSkip the interactive confirmation. Required from a non-interactive shell, since deregistration takes the node out of the active set immediately. The consequences are printed either way — this suppresses the prompt, not the warning.
chain: ChainArgsChain coordinates: RPC endpoint, contract addresses, and keystore.
Trait Implementations§
Source§impl Args for DeregisterArgs
impl Args for DeregisterArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for DeregisterArgs
impl Debug for DeregisterArgs
Source§impl FromArgMatches for DeregisterArgs
impl FromArgMatches for DeregisterArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for DeregisterArgs
impl RefUnwindSafe for DeregisterArgs
impl Send for DeregisterArgs
impl Sync for DeregisterArgs
impl Unpin for DeregisterArgs
impl UnsafeUnpin for DeregisterArgs
impl UnwindSafe for DeregisterArgs
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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