#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorSetChangePacketData {
#[prost(message, repeated, tag = "1")]
pub validator_updates: ::prost::alloc::vec::Vec<
::tendermint_proto::abci::ValidatorUpdate,
>,
#[prost(uint64, tag = "2")]
pub valset_update_id: u64,
#[prost(string, repeated, tag = "3")]
pub slash_acks: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorSetChangePackets {
#[prost(message, repeated, tag = "1")]
pub list: ::prost::alloc::vec::Vec<ValidatorSetChangePacketData>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VscMaturedPacketData {
#[prost(uint64, tag = "1")]
pub valset_update_id: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SlashPacketData {
#[prost(message, optional, tag = "1")]
pub validator: ::core::option::Option<::tendermint_proto::abci::Validator>,
#[prost(uint64, tag = "2")]
pub valset_update_id: u64,
#[prost(
enumeration = "super::super::super::cosmos::staking::v1beta1::Infraction",
tag = "3"
)]
pub infraction: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MaturedUnbondingOps {
#[prost(uint64, repeated, tag = "1")]
pub ids: ::prost::alloc::vec::Vec<u64>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConsumerPacketData {
#[prost(enumeration = "ConsumerPacketDataType", tag = "1")]
pub r#type: i32,
#[prost(oneof = "consumer_packet_data::Data", tags = "2, 3")]
pub data: ::core::option::Option<consumer_packet_data::Data>,
}
pub mod consumer_packet_data {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Data {
#[prost(message, tag = "2")]
SlashPacketData(super::SlashPacketData),
#[prost(message, tag = "3")]
VscMaturedPacketData(super::VscMaturedPacketData),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConsumerPacketDataList {
#[prost(message, repeated, tag = "1")]
pub list: ::prost::alloc::vec::Vec<ConsumerPacketData>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConsumerPacketDataV1 {
#[prost(enumeration = "ConsumerPacketDataType", tag = "1")]
pub r#type: i32,
#[prost(oneof = "consumer_packet_data_v1::Data", tags = "2, 3")]
pub data: ::core::option::Option<consumer_packet_data_v1::Data>,
}
pub mod consumer_packet_data_v1 {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Data {
#[prost(message, tag = "2")]
SlashPacketData(super::SlashPacketDataV1),
#[prost(message, tag = "3")]
VscMaturedPacketData(super::VscMaturedPacketData),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SlashPacketDataV1 {
#[prost(message, optional, tag = "1")]
pub validator: ::core::option::Option<::tendermint_proto::abci::Validator>,
#[prost(uint64, tag = "2")]
pub valset_update_id: u64,
#[prost(enumeration = "InfractionType", tag = "3")]
pub infraction: i32,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ConsumerPacketDataType {
ConsumerPacketTypeUnspecified = 0,
ConsumerPacketTypeSlash = 1,
ConsumerPacketTypeVscm = 2,
}
impl ConsumerPacketDataType {
pub fn as_str_name(&self) -> &'static str {
match self {
ConsumerPacketDataType::ConsumerPacketTypeUnspecified => {
"CONSUMER_PACKET_TYPE_UNSPECIFIED"
}
ConsumerPacketDataType::ConsumerPacketTypeSlash => {
"CONSUMER_PACKET_TYPE_SLASH"
}
ConsumerPacketDataType::ConsumerPacketTypeVscm => "CONSUMER_PACKET_TYPE_VSCM",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CONSUMER_PACKET_TYPE_UNSPECIFIED" => {
Some(Self::ConsumerPacketTypeUnspecified)
}
"CONSUMER_PACKET_TYPE_SLASH" => Some(Self::ConsumerPacketTypeSlash),
"CONSUMER_PACKET_TYPE_VSCM" => Some(Self::ConsumerPacketTypeVscm),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum InfractionType {
Unspecified = 0,
DoubleSign = 1,
Downtime = 2,
}
impl InfractionType {
pub fn as_str_name(&self) -> &'static str {
match self {
InfractionType::Unspecified => "INFRACTION_TYPE_UNSPECIFIED",
InfractionType::DoubleSign => "INFRACTION_TYPE_DOUBLE_SIGN",
InfractionType::Downtime => "INFRACTION_TYPE_DOWNTIME",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"INFRACTION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"INFRACTION_TYPE_DOUBLE_SIGN" => Some(Self::DoubleSign),
"INFRACTION_TYPE_DOWNTIME" => Some(Self::Downtime),
_ => None,
}
}
}