Expand description
Trait preludes for the ICS-02 client implementation.
Traits§
- Client
Execution Context - Defines the methods that all client
ExecutionContext
s (precisely the generic parameter ofcrate::client_state::ClientStateExecution
) must implement. - Client
State - Primary client trait. Defines all the methods that clients must implement.
- Client
State Common ClientState
methods needed in both validation and execution.- Client
State Execution ClientState
methods which require access to the client’sExecutionContext
.- Client
State Validation ClientState
methods which require access to the client’s validation context- Client
Validation Context - Defines the methods available to clients for validating client state
transitions. The generic
V
parameter in crate::client_state::ClientStateValidation must inherit from this trait. - Consensus
State - Defines methods that all
ConsensusState
s should provide. - Convertible
- General-purpose helper converter enabling
TryFrom
andInto
conversions primarily intended between an enum and its variants. This usually used by standalone functions as a trait bound allowing them to obtain the concrete local type from the enum containing that concrete type as its variant, like when enumAnyConsensusState
contains the TendermintConsensusState
. - ExtClient
Execution Context - An optional trait that extends the client context required during execution.
- ExtClient
Validation Context - An optional trait that extends the client validation context capabilities by providing additional methods for validating a client state. Mainly benefiting ICS-07 Tendermint clients by granting access to essential information from hosts.