Trait ibc::ics02_client::context::ClientKeeper[][src]

pub trait ClientKeeper {
    fn store_client_type(
        &mut self,
        client_id: ClientId,
        client_type: ClientType
    ) -> Result<(), Error>;
fn store_client_state(
        &mut self,
        client_id: ClientId,
        client_state: AnyClientState
    ) -> Result<(), Error>;
fn store_consensus_state(
        &mut self,
        client_id: ClientId,
        height: Height,
        consensus_state: AnyConsensusState
    ) -> Result<(), Error>;
fn increase_client_counter(&mut self); fn store_client_result(
        &mut self,
        handler_res: ClientResult
    ) -> Result<(), Error> { ... } }

Defines the write-only part of ICS2 (client functions) context.

Required methods

fn store_client_type(
    &mut self,
    client_id: ClientId,
    client_type: ClientType
) -> Result<(), Error>
[src]

Called upon successful client creation

fn store_client_state(
    &mut self,
    client_id: ClientId,
    client_state: AnyClientState
) -> Result<(), Error>
[src]

Called upon successful client creation and update

fn store_consensus_state(
    &mut self,
    client_id: ClientId,
    height: Height,
    consensus_state: AnyConsensusState
) -> Result<(), Error>
[src]

Called upon successful client creation and update

fn increase_client_counter(&mut self)[src]

Called upon client creation. Increases the counter which keeps track of how many clients have been created. Should never fail.

Loading content...

Provided methods

fn store_client_result(
    &mut self,
    handler_res: ClientResult
) -> Result<(), Error>
[src]

Loading content...

Implementors

Loading content...