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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

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