#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(oneof="request::Value", tags="1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17")]
pub value: ::core::option::Option<request::Value>,
}
pub mod request {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(message, tag="1")]
Echo(super::RequestEcho),
#[prost(message, tag="2")]
Flush(super::RequestFlush),
#[prost(message, tag="3")]
Info(super::RequestInfo),
#[prost(message, tag="5")]
InitChain(super::RequestInitChain),
#[prost(message, tag="6")]
Query(super::RequestQuery),
#[prost(message, tag="7")]
BeginBlock(super::RequestBeginBlock),
#[prost(message, tag="8")]
CheckTx(super::RequestCheckTx),
#[prost(message, tag="9")]
DeliverTx(super::RequestDeliverTx),
#[prost(message, tag="10")]
EndBlock(super::RequestEndBlock),
#[prost(message, tag="11")]
Commit(super::RequestCommit),
#[prost(message, tag="12")]
ListSnapshots(super::RequestListSnapshots),
#[prost(message, tag="13")]
OfferSnapshot(super::RequestOfferSnapshot),
#[prost(message, tag="14")]
LoadSnapshotChunk(super::RequestLoadSnapshotChunk),
#[prost(message, tag="15")]
ApplySnapshotChunk(super::RequestApplySnapshotChunk),
#[prost(message, tag="16")]
PrepareProposal(super::RequestPrepareProposal),
#[prost(message, tag="17")]
ProcessProposal(super::RequestProcessProposal),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestEcho {
#[prost(string, tag="1")]
pub message: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestFlush {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestInfo {
#[prost(string, tag="1")]
pub version: ::prost::alloc::string::String,
#[prost(uint64, tag="2")]
pub block_version: u64,
#[prost(uint64, tag="3")]
pub p2p_version: u64,
#[prost(string, tag="4")]
pub abci_version: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestInitChain {
#[prost(message, optional, tag="1")]
pub time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag="2")]
pub chain_id: ::prost::alloc::string::String,
#[prost(message, optional, tag="3")]
pub consensus_params: ::core::option::Option<super::types::ConsensusParams>,
#[prost(message, repeated, tag="4")]
pub validators: ::prost::alloc::vec::Vec<ValidatorUpdate>,
#[prost(bytes="bytes", tag="5")]
pub app_state_bytes: ::prost::bytes::Bytes,
#[prost(int64, tag="6")]
pub initial_height: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestQuery {
#[prost(bytes="bytes", tag="1")]
pub data: ::prost::bytes::Bytes,
#[prost(string, tag="2")]
pub path: ::prost::alloc::string::String,
#[prost(int64, tag="3")]
pub height: i64,
#[prost(bool, tag="4")]
pub prove: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestBeginBlock {
#[prost(bytes="bytes", tag="1")]
pub hash: ::prost::bytes::Bytes,
#[prost(message, optional, tag="2")]
pub header: ::core::option::Option<super::types::Header>,
#[prost(message, optional, tag="3")]
pub last_commit_info: ::core::option::Option<CommitInfo>,
#[prost(message, repeated, tag="4")]
pub byzantine_validators: ::prost::alloc::vec::Vec<Misbehavior>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestCheckTx {
#[prost(bytes="bytes", tag="1")]
pub tx: ::prost::bytes::Bytes,
#[prost(enumeration="CheckTxType", tag="2")]
pub r#type: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestDeliverTx {
#[prost(bytes="bytes", tag="1")]
pub tx: ::prost::bytes::Bytes,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestEndBlock {
#[prost(int64, tag="1")]
pub height: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestCommit {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestListSnapshots {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestOfferSnapshot {
#[prost(message, optional, tag="1")]
pub snapshot: ::core::option::Option<Snapshot>,
#[prost(bytes="bytes", tag="2")]
pub app_hash: ::prost::bytes::Bytes,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestLoadSnapshotChunk {
#[prost(uint64, tag="1")]
pub height: u64,
#[prost(uint32, tag="2")]
pub format: u32,
#[prost(uint32, tag="3")]
pub chunk: u32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestApplySnapshotChunk {
#[prost(uint32, tag="1")]
pub index: u32,
#[prost(bytes="bytes", tag="2")]
pub chunk: ::prost::bytes::Bytes,
#[prost(string, tag="3")]
pub sender: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestPrepareProposal {
#[prost(int64, tag="1")]
pub max_tx_bytes: i64,
#[prost(bytes="bytes", repeated, tag="2")]
pub txs: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
#[prost(message, optional, tag="3")]
pub local_last_commit: ::core::option::Option<ExtendedCommitInfo>,
#[prost(message, repeated, tag="4")]
pub misbehavior: ::prost::alloc::vec::Vec<Misbehavior>,
#[prost(int64, tag="5")]
pub height: i64,
#[prost(message, optional, tag="6")]
pub time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(bytes="bytes", tag="7")]
pub next_validators_hash: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="8")]
pub proposer_address: ::prost::bytes::Bytes,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestProcessProposal {
#[prost(bytes="bytes", repeated, tag="1")]
pub txs: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
#[prost(message, optional, tag="2")]
pub proposed_last_commit: ::core::option::Option<CommitInfo>,
#[prost(message, repeated, tag="3")]
pub misbehavior: ::prost::alloc::vec::Vec<Misbehavior>,
#[prost(bytes="bytes", tag="4")]
pub hash: ::prost::bytes::Bytes,
#[prost(int64, tag="5")]
pub height: i64,
#[prost(message, optional, tag="6")]
pub time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(bytes="bytes", tag="7")]
pub next_validators_hash: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="8")]
pub proposer_address: ::prost::bytes::Bytes,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Response {
#[prost(oneof="response::Value", tags="1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18")]
pub value: ::core::option::Option<response::Value>,
}
pub mod response {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(message, tag="1")]
Exception(super::ResponseException),
#[prost(message, tag="2")]
Echo(super::ResponseEcho),
#[prost(message, tag="3")]
Flush(super::ResponseFlush),
#[prost(message, tag="4")]
Info(super::ResponseInfo),
#[prost(message, tag="6")]
InitChain(super::ResponseInitChain),
#[prost(message, tag="7")]
Query(super::ResponseQuery),
#[prost(message, tag="8")]
BeginBlock(super::ResponseBeginBlock),
#[prost(message, tag="9")]
CheckTx(super::ResponseCheckTx),
#[prost(message, tag="10")]
DeliverTx(super::ResponseDeliverTx),
#[prost(message, tag="11")]
EndBlock(super::ResponseEndBlock),
#[prost(message, tag="12")]
Commit(super::ResponseCommit),
#[prost(message, tag="13")]
ListSnapshots(super::ResponseListSnapshots),
#[prost(message, tag="14")]
OfferSnapshot(super::ResponseOfferSnapshot),
#[prost(message, tag="15")]
LoadSnapshotChunk(super::ResponseLoadSnapshotChunk),
#[prost(message, tag="16")]
ApplySnapshotChunk(super::ResponseApplySnapshotChunk),
#[prost(message, tag="17")]
PrepareProposal(super::ResponsePrepareProposal),
#[prost(message, tag="18")]
ProcessProposal(super::ResponseProcessProposal),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseException {
#[prost(string, tag="1")]
pub error: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseEcho {
#[prost(string, tag="1")]
pub message: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseFlush {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseInfo {
#[prost(string, tag="1")]
pub data: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub version: ::prost::alloc::string::String,
#[prost(uint64, tag="3")]
pub app_version: u64,
#[prost(int64, tag="4")]
pub last_block_height: i64,
#[prost(bytes="bytes", tag="5")]
pub last_block_app_hash: ::prost::bytes::Bytes,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseInitChain {
#[prost(message, optional, tag="1")]
pub consensus_params: ::core::option::Option<super::types::ConsensusParams>,
#[prost(message, repeated, tag="2")]
pub validators: ::prost::alloc::vec::Vec<ValidatorUpdate>,
#[prost(bytes="bytes", tag="3")]
pub app_hash: ::prost::bytes::Bytes,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseQuery {
#[prost(uint32, tag="1")]
pub code: u32,
#[prost(string, tag="3")]
pub log: ::prost::alloc::string::String,
#[prost(string, tag="4")]
pub info: ::prost::alloc::string::String,
#[prost(int64, tag="5")]
pub index: i64,
#[prost(bytes="bytes", tag="6")]
pub key: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="7")]
pub value: ::prost::bytes::Bytes,
#[prost(message, optional, tag="8")]
pub proof_ops: ::core::option::Option<super::crypto::ProofOps>,
#[prost(int64, tag="9")]
pub height: i64,
#[prost(string, tag="10")]
pub codespace: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseBeginBlock {
#[prost(message, repeated, tag="1")]
pub events: ::prost::alloc::vec::Vec<Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseCheckTx {
#[prost(uint32, tag="1")]
pub code: u32,
#[prost(bytes="bytes", tag="2")]
pub data: ::prost::bytes::Bytes,
#[prost(string, tag="3")]
pub log: ::prost::alloc::string::String,
#[prost(string, tag="4")]
pub info: ::prost::alloc::string::String,
#[prost(int64, tag="5")]
pub gas_wanted: i64,
#[prost(int64, tag="6")]
pub gas_used: i64,
#[prost(message, repeated, tag="7")]
pub events: ::prost::alloc::vec::Vec<Event>,
#[prost(string, tag="8")]
pub codespace: ::prost::alloc::string::String,
#[prost(string, tag="9")]
pub sender: ::prost::alloc::string::String,
#[prost(int64, tag="10")]
pub priority: i64,
#[prost(string, tag="11")]
pub mempool_error: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseDeliverTx {
#[prost(uint32, tag="1")]
pub code: u32,
#[prost(bytes="bytes", tag="2")]
pub data: ::prost::bytes::Bytes,
#[prost(string, tag="3")]
pub log: ::prost::alloc::string::String,
#[prost(string, tag="4")]
pub info: ::prost::alloc::string::String,
#[prost(int64, tag="5")]
pub gas_wanted: i64,
#[prost(int64, tag="6")]
pub gas_used: i64,
#[prost(message, repeated, tag="7")]
pub events: ::prost::alloc::vec::Vec<Event>,
#[prost(string, tag="8")]
pub codespace: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseEndBlock {
#[prost(message, repeated, tag="1")]
pub validator_updates: ::prost::alloc::vec::Vec<ValidatorUpdate>,
#[prost(message, optional, tag="2")]
pub consensus_param_updates: ::core::option::Option<super::types::ConsensusParams>,
#[prost(message, repeated, tag="3")]
pub events: ::prost::alloc::vec::Vec<Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseCommit {
#[prost(bytes="bytes", tag="2")]
pub data: ::prost::bytes::Bytes,
#[prost(int64, tag="3")]
pub retain_height: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseListSnapshots {
#[prost(message, repeated, tag="1")]
pub snapshots: ::prost::alloc::vec::Vec<Snapshot>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseOfferSnapshot {
#[prost(enumeration="response_offer_snapshot::Result", tag="1")]
pub result: i32,
}
pub mod response_offer_snapshot {
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Result {
Unknown = 0,
Accept = 1,
Abort = 2,
Reject = 3,
RejectFormat = 4,
RejectSender = 5,
}
impl Result {
pub fn as_str_name(&self) -> &'static str {
match self {
Result::Unknown => "UNKNOWN",
Result::Accept => "ACCEPT",
Result::Abort => "ABORT",
Result::Reject => "REJECT",
Result::RejectFormat => "REJECT_FORMAT",
Result::RejectSender => "REJECT_SENDER",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNKNOWN" => Some(Self::Unknown),
"ACCEPT" => Some(Self::Accept),
"ABORT" => Some(Self::Abort),
"REJECT" => Some(Self::Reject),
"REJECT_FORMAT" => Some(Self::RejectFormat),
"REJECT_SENDER" => Some(Self::RejectSender),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseLoadSnapshotChunk {
#[prost(bytes="bytes", tag="1")]
pub chunk: ::prost::bytes::Bytes,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseApplySnapshotChunk {
#[prost(enumeration="response_apply_snapshot_chunk::Result", tag="1")]
pub result: i32,
#[prost(uint32, repeated, tag="2")]
pub refetch_chunks: ::prost::alloc::vec::Vec<u32>,
#[prost(string, repeated, tag="3")]
pub reject_senders: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
pub mod response_apply_snapshot_chunk {
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Result {
Unknown = 0,
Accept = 1,
Abort = 2,
Retry = 3,
RetrySnapshot = 4,
RejectSnapshot = 5,
}
impl Result {
pub fn as_str_name(&self) -> &'static str {
match self {
Result::Unknown => "UNKNOWN",
Result::Accept => "ACCEPT",
Result::Abort => "ABORT",
Result::Retry => "RETRY",
Result::RetrySnapshot => "RETRY_SNAPSHOT",
Result::RejectSnapshot => "REJECT_SNAPSHOT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNKNOWN" => Some(Self::Unknown),
"ACCEPT" => Some(Self::Accept),
"ABORT" => Some(Self::Abort),
"RETRY" => Some(Self::Retry),
"RETRY_SNAPSHOT" => Some(Self::RetrySnapshot),
"REJECT_SNAPSHOT" => Some(Self::RejectSnapshot),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponsePrepareProposal {
#[prost(bytes="bytes", repeated, tag="1")]
pub txs: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseProcessProposal {
#[prost(enumeration="response_process_proposal::ProposalStatus", tag="1")]
pub status: i32,
}
pub mod response_process_proposal {
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ProposalStatus {
Unknown = 0,
Accept = 1,
Reject = 2,
}
impl ProposalStatus {
pub fn as_str_name(&self) -> &'static str {
match self {
ProposalStatus::Unknown => "UNKNOWN",
ProposalStatus::Accept => "ACCEPT",
ProposalStatus::Reject => "REJECT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNKNOWN" => Some(Self::Unknown),
"ACCEPT" => Some(Self::Accept),
"REJECT" => Some(Self::Reject),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommitInfo {
#[prost(int32, tag="1")]
pub round: i32,
#[prost(message, repeated, tag="2")]
pub votes: ::prost::alloc::vec::Vec<VoteInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExtendedCommitInfo {
#[prost(int32, tag="1")]
pub round: i32,
#[prost(message, repeated, tag="2")]
pub votes: ::prost::alloc::vec::Vec<ExtendedVoteInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
#[prost(string, tag="1")]
pub r#type: ::prost::alloc::string::String,
#[prost(message, repeated, tag="2")]
pub attributes: ::prost::alloc::vec::Vec<EventAttribute>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventAttribute {
#[prost(string, tag="1")]
pub key: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub value: ::prost::alloc::string::String,
#[prost(bool, tag="3")]
pub index: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TxResult {
#[prost(int64, tag="1")]
pub height: i64,
#[prost(uint32, tag="2")]
pub index: u32,
#[prost(bytes="bytes", tag="3")]
pub tx: ::prost::bytes::Bytes,
#[prost(message, optional, tag="4")]
pub result: ::core::option::Option<ResponseDeliverTx>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Validator {
#[prost(bytes="bytes", tag="1")]
pub address: ::prost::bytes::Bytes,
#[prost(int64, tag="3")]
pub power: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorUpdate {
#[prost(message, optional, tag="1")]
pub pub_key: ::core::option::Option<super::crypto::PublicKey>,
#[prost(int64, tag="2")]
pub power: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VoteInfo {
#[prost(message, optional, tag="1")]
pub validator: ::core::option::Option<Validator>,
#[prost(bool, tag="2")]
pub signed_last_block: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExtendedVoteInfo {
#[prost(message, optional, tag="1")]
pub validator: ::core::option::Option<Validator>,
#[prost(bool, tag="2")]
pub signed_last_block: bool,
#[prost(bytes="bytes", tag="3")]
pub vote_extension: ::prost::bytes::Bytes,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Misbehavior {
#[prost(enumeration="MisbehaviorType", tag="1")]
pub r#type: i32,
#[prost(message, optional, tag="2")]
pub validator: ::core::option::Option<Validator>,
#[prost(int64, tag="3")]
pub height: i64,
#[prost(message, optional, tag="4")]
pub time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(int64, tag="5")]
pub total_voting_power: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Snapshot {
#[prost(uint64, tag="1")]
pub height: u64,
#[prost(uint32, tag="2")]
pub format: u32,
#[prost(uint32, tag="3")]
pub chunks: u32,
#[prost(bytes="bytes", tag="4")]
pub hash: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="5")]
pub metadata: ::prost::bytes::Bytes,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CheckTxType {
New = 0,
Recheck = 1,
}
impl CheckTxType {
pub fn as_str_name(&self) -> &'static str {
match self {
CheckTxType::New => "NEW",
CheckTxType::Recheck => "RECHECK",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"NEW" => Some(Self::New),
"RECHECK" => Some(Self::Recheck),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MisbehaviorType {
Unknown = 0,
DuplicateVote = 1,
LightClientAttack = 2,
}
impl MisbehaviorType {
pub fn as_str_name(&self) -> &'static str {
match self {
MisbehaviorType::Unknown => "UNKNOWN",
MisbehaviorType::DuplicateVote => "DUPLICATE_VOTE",
MisbehaviorType::LightClientAttack => "LIGHT_CLIENT_ATTACK",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNKNOWN" => Some(Self::Unknown),
"DUPLICATE_VOTE" => Some(Self::DuplicateVote),
"LIGHT_CLIENT_ATTACK" => Some(Self::LightClientAttack),
_ => None,
}
}
}