pub enum Component {
    Accounts(Accounts),
    Assets(Assets),
    Staking(Staking),
}

Variants§

§

Accounts(Accounts)

§

Assets(Assets)

§

Staking(Staking)

Trait Implementations§

source§

impl ABCIComponent for Component

source§

fn init_chain<'life0, 'life1, 'life2, 'async_trait, S>( &'life0 self, state: &'life1 mut S, app_state: &'life2 AppState ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where S: 'async_trait + StateWrite, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Called once upon genesis.If ResponseInitChain.Validators is empty, the initial validator set will be the RequestInitChain.ValidatorsIf ResponseInitChain.Validators is not empty, it will be the initial validator set (regardless of what is in RequestInitChain.Validators).This allows the app to decide if it wants to accept the initial validator set proposed by tendermint (ie. in the genesis file), or if it wants to use a different one (perhaps computed based on some application specific information in the genesis file). Read more
source§

fn begin_block<'life0, 'life1, 'life2, 'async_trait, S>( &'life0 self, state: &'life1 mut S, begin_block: &'life2 BeginBlock ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where S: 'async_trait + StateWrite, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Signals the beginning of a new block.Called prior to any DeliverTx method calls.The header contains the height, timestamp, and more - it exactly matches the Tendermint block header. We may seek to generalize this in the future.The LastCommitInfo and ByzantineValidators can be used to determine rewards and punishments for the validators. Read more
source§

fn end_block<'life0, 'life1, 'life2, 'async_trait, S>( &'life0 self, state: &'life1 mut S, end_block: &'life2 EndBlock ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where S: 'async_trait + StateWrite, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Signals the end of a block.Called after all the transactions for the current block have been delivered, prior to the block’s Commit message.Optional validator_updates triggered by block H. These updates affect validation for blocks H+1, H+2, and H+3.Heights following a validator update are affected in the following way:H+1: NextValidatorsHash includes the new validator_updates value.H+2: The validator set change takes effect and ValidatorsHash is updated.H+3: LastCommitInfo is changed to include the altered validator set.consensus_param_updates returned for block H apply to the consensus params for block H+1. For more information on the consensus parameters, see the application spec entry on consensus parameters. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

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 T
where U: From<T>,

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.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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