pub enum StakingSudo {
Slash {
validator: String,
percentage: Decimal,
},
ProcessQueue {},
}Expand description
Staking privileged action definition.
We need to expand on this, but we will need this to properly test out staking
Variants§
Slash
Slashes the given percentage of the validator’s stake. For now, you cannot slash retrospectively in tests.
Fields
ProcessQueue
👎Deprecated: This is not needed anymore. Just call
update_blockCauses the unbonding queue to be processed.
This needs to be triggered manually, since there is no good place to do this right now.
In cosmos-sdk, this is done in EndBlock, but we don’t have that here.
Trait Implementations§
source§impl Clone for StakingSudo
impl Clone for StakingSudo
source§fn clone(&self) -> StakingSudo
fn clone(&self) -> StakingSudo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for StakingSudo
impl Debug for StakingSudo
source§impl From<StakingSudo> for SudoMsg
impl From<StakingSudo> for SudoMsg
source§fn from(staking: StakingSudo) -> Self
fn from(staking: StakingSudo) -> Self
Converts to this type from the input type.
source§impl JsonSchema for StakingSudo
impl JsonSchema for StakingSudo
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl PartialEq for StakingSudo
impl PartialEq for StakingSudo
source§fn eq(&self, other: &StakingSudo) -> bool
fn eq(&self, other: &StakingSudo) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for StakingSudo
impl StructuralPartialEq for StakingSudo
Auto Trait Implementations§
impl Freeze for StakingSudo
impl RefUnwindSafe for StakingSudo
impl Send for StakingSudo
impl Sync for StakingSudo
impl Unpin for StakingSudo
impl UnwindSafe for StakingSudo
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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