pub struct MockIbcStore {Show 17 fields
pub clients: BTreeMap<ClientId, MockClientRecord>,
pub client_processed_times: BTreeMap<(ClientId, Height), Timestamp>,
pub client_processed_heights: BTreeMap<(ClientId, Height), Height>,
pub client_ids_counter: u64,
pub client_connections: BTreeMap<ClientId, ConnectionId>,
pub connections: BTreeMap<ConnectionId, ConnectionEnd>,
pub connection_ids_counter: u64,
pub connection_channels: BTreeMap<ConnectionId, Vec<(PortId, ChannelId)>>,
pub channel_ids_counter: u64,
pub channels: BTreeMap<(PortId, ChannelId), ChannelEnd>,
pub next_sequence_send: BTreeMap<(PortId, ChannelId), Sequence>,
pub next_sequence_recv: BTreeMap<(PortId, ChannelId), Sequence>,
pub next_sequence_ack: BTreeMap<(PortId, ChannelId), Sequence>,
pub packet_acknowledgement: BTreeMap<(PortId, ChannelId, Sequence), AcknowledgementCommitment>,
pub port_to_module: BTreeMap<PortId, ModuleId>,
pub packet_commitment: BTreeMap<(PortId, ChannelId, Sequence), PacketCommitment>,
pub packet_receipt: BTreeMap<(PortId, ChannelId, Sequence), Receipt>,
}
Expand description
An object that stores all IBC related data.
Fields
clients: BTreeMap<ClientId, MockClientRecord>
The set of all clients, indexed by their id.
client_processed_times: BTreeMap<(ClientId, Height), Timestamp>
Tracks the processed time for clients header updates
client_processed_heights: BTreeMap<(ClientId, Height), Height>
Tracks the processed height for the clients
client_ids_counter: u64
Counter for the client identifiers, necessary for increase_client_counter
and the
client_counter
methods.
client_connections: BTreeMap<ClientId, ConnectionId>
Association between client ids and connection ids.
connections: BTreeMap<ConnectionId, ConnectionEnd>
All the connections in the store.
connection_ids_counter: u64
Counter for connection identifiers (see increase_connection_counter
).
connection_channels: BTreeMap<ConnectionId, Vec<(PortId, ChannelId)>>
Association between connection ids and channel ids.
channel_ids_counter: u64
Counter for channel identifiers (see increase_channel_counter
).
channels: BTreeMap<(PortId, ChannelId), ChannelEnd>
All the channels in the store. TODO Make new key PortId X ChanneId
next_sequence_send: BTreeMap<(PortId, ChannelId), Sequence>
Tracks the sequence number for the next packet to be sent.
next_sequence_recv: BTreeMap<(PortId, ChannelId), Sequence>
Tracks the sequence number for the next packet to be received.
next_sequence_ack: BTreeMap<(PortId, ChannelId), Sequence>
Tracks the sequence number for the next packet to be acknowledged.
packet_acknowledgement: BTreeMap<(PortId, ChannelId, Sequence), AcknowledgementCommitment>
port_to_module: BTreeMap<PortId, ModuleId>
Maps ports to the the module that owns it
packet_commitment: BTreeMap<(PortId, ChannelId, Sequence), PacketCommitment>
Constant-size commitments to packets data fields
packet_receipt: BTreeMap<(PortId, ChannelId, Sequence), Receipt>
Trait Implementations
sourceimpl Clone for MockIbcStore
impl Clone for MockIbcStore
sourcefn clone(&self) -> MockIbcStore
fn clone(&self) -> MockIbcStore
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MockIbcStore
impl Debug for MockIbcStore
sourceimpl Default for MockIbcStore
impl Default for MockIbcStore
sourcefn default() -> MockIbcStore
fn default() -> MockIbcStore
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for MockIbcStore
impl Send for MockIbcStore
impl Sync for MockIbcStore
impl Unpin for MockIbcStore
impl UnwindSafe for MockIbcStore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more