pub struct GenesisState {Show 14 fields
pub params: Option<ConsumerParams>,
pub provider_client_id: String,
pub provider_channel_id: String,
pub new_chain: bool,
pub provider_client_state: Option<ClientState>,
pub provider_consensus_state: Option<ConsensusState>,
pub maturing_packets: Vec<MaturingVscPacket>,
pub initial_val_set: Vec<ValidatorUpdate>,
pub height_to_valset_update_id: Vec<HeightToValsetUpdateId>,
pub outstanding_downtime_slashing: Vec<OutstandingDowntime>,
pub pending_consumer_packets: Option<ConsumerPacketDataList>,
pub last_transmission_block_height: Option<LastTransmissionBlockHeight>,
pub pre_ccv: bool,
pub provider: Option<ProviderInfo>,
}
Expand description
GenesisState defines the CCV consumer genesis state
Note: this type is only used on consumer side and references shared types with provider
Fields§
§params: Option<ConsumerParams>
ConsumerParams is a shared type with provider module
provider_client_id: String
Client ID of the provider. Empty for a new chain, filled in on restart.
provider_channel_id: String
Channel ID of the provider. Empty for a new chain, filled in on restart.
new_chain: bool
true for new chain, false for chain restart.
provider_client_state: Option<ClientState>
!!! DEPRECATED !!! ProviderClientState is deprecated. Use provider.client_state instead
provider_consensus_state: Option<ConsensusState>
!!! DEPRECATED !!! ProviderConsensusState is deprecated. Use provider.consensus_state instead
maturing_packets: Vec<MaturingVscPacket>
MaturingPackets nil on new chain, filled in on restart.
initial_val_set: Vec<ValidatorUpdate>
!!! DEPRECATED !!!! InitialValset is deprecated. Use provider.initial_val_set instead
height_to_valset_update_id: Vec<HeightToValsetUpdateId>
HeightToValsetUpdateId nil on new chain, filled in on restart.
outstanding_downtime_slashing: Vec<OutstandingDowntime>
OutstandingDowntimes nil on new chain, filled in on restart.
pending_consumer_packets: Option<ConsumerPacketDataList>
PendingConsumerPackets nil on new chain, filled in on restart.
last_transmission_block_height: Option<LastTransmissionBlockHeight>
LastTransmissionBlockHeight nil on new chain, filled in on restart.
pre_ccv: bool
flag indicating whether the consumer CCV module starts in pre-CCV state
provider: Option<ProviderInfo>
Trait Implementations§
Source§impl Clone for GenesisState
impl Clone for GenesisState
Source§fn clone(&self) -> GenesisState
fn clone(&self) -> GenesisState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GenesisState
impl Debug for GenesisState
Source§impl Default for GenesisState
impl Default for GenesisState
Source§impl Message for GenesisState
impl Message for GenesisState
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl Name for GenesisState
impl Name for GenesisState
Source§const NAME: &'static str = "GenesisState"
const NAME: &'static str = "GenesisState"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.Source§const PACKAGE: &'static str = "interchain_security.ccv.consumer.v1"
const PACKAGE: &'static str = "interchain_security.ccv.consumer.v1"
.
, e.g. google.protobuf
.Source§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for GenesisState
impl PartialEq for GenesisState
impl StructuralPartialEq for GenesisState
Auto Trait Implementations§
impl Freeze for GenesisState
impl RefUnwindSafe for GenesisState
impl Send for GenesisState
impl Sync for GenesisState
impl Unpin for GenesisState
impl UnwindSafe for GenesisState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request