Trait IbcStore
Source pub trait IbcStore: Sync + Send {
// Required methods
fn get_client_state(
&self,
height: StoreHeight,
path: &ClientStatePath,
) -> Result<Option<Box<dyn ClientState>>>;
fn get_consensus_state(
&self,
height: StoreHeight,
path: &ClientConsensusStatePath,
) -> Result<Option<Box<dyn ConsensusState>>>;
fn get_connection_end(
&self,
height: StoreHeight,
path: &ConnectionsPath,
) -> Result<Option<ConnectionEnd>>;
fn get_connection_ids(
&self,
height: StoreHeight,
path: &ClientConnectionsPath,
) -> Result<Vec<ConnectionId>>;
fn get_acknowledgement_commitment(
&self,
height: StoreHeight,
path: &AcksPath,
) -> Result<Option<AcknowledgementCommitment>>;
fn get_channel_end(
&self,
height: StoreHeight,
path: &ChannelEndsPath,
) -> Result<Option<ChannelEnd>>;
fn get_opt(
&self,
height: StoreHeight,
path: &ReceiptsPath,
) -> Result<Option<()>>;
fn get_packet_commitment(
&self,
height: StoreHeight,
path: &CommitmentsPath,
) -> Result<Option<PacketCommitment>>;
fn get_paths_by_prefix(&self, key_prefix: &Path) -> Result<Vec<Path>>;
fn current_height(&self) -> u64;
}