cosmos_sdk_proto/prost/cosmos-sdk/
cosmos.evidence.v1beta1.rs

1// @generated
2/// Equivocation implements the Evidence interface and defines evidence of double
3/// signing misbehavior.
4#[allow(clippy::derive_partial_eq_without_eq)]
5#[derive(Clone, PartialEq, ::prost::Message)]
6pub struct Equivocation {
7    /// height is the equivocation height.
8    #[prost(int64, tag = "1")]
9    pub height: i64,
10    /// time is the equivocation time.
11    #[prost(message, optional, tag = "2")]
12    pub time: ::core::option::Option<::tendermint_proto::google::protobuf::Timestamp>,
13    /// power is the equivocation validator power.
14    #[prost(int64, tag = "3")]
15    pub power: i64,
16    /// consensus_address is the equivocation validator consensus address.
17    #[prost(string, tag = "4")]
18    pub consensus_address: ::prost::alloc::string::String,
19}
20impl ::prost::Name for Equivocation {
21    const NAME: &'static str = "Equivocation";
22    const PACKAGE: &'static str = "cosmos.evidence.v1beta1";
23    fn full_name() -> ::prost::alloc::string::String {
24        ::prost::alloc::format!("cosmos.evidence.v1beta1.{}", Self::NAME)
25    }
26}
27/// GenesisState defines the evidence module's genesis state.
28#[allow(clippy::derive_partial_eq_without_eq)]
29#[derive(Clone, PartialEq, ::prost::Message)]
30pub struct GenesisState {
31    /// evidence defines all the evidence at genesis.
32    #[prost(message, repeated, tag = "1")]
33    pub evidence: ::prost::alloc::vec::Vec<::tendermint_proto::google::protobuf::Any>,
34}
35impl ::prost::Name for GenesisState {
36    const NAME: &'static str = "GenesisState";
37    const PACKAGE: &'static str = "cosmos.evidence.v1beta1";
38    fn full_name() -> ::prost::alloc::string::String {
39        ::prost::alloc::format!("cosmos.evidence.v1beta1.{}", Self::NAME)
40    }
41}
42/// QueryEvidenceRequest is the request type for the Query/Evidence RPC method.
43#[allow(clippy::derive_partial_eq_without_eq)]
44#[derive(Clone, PartialEq, ::prost::Message)]
45pub struct QueryEvidenceRequest {
46    /// evidence_hash defines the hash of the requested evidence.
47    /// Deprecated: Use hash, a HEX encoded string, instead.
48    #[deprecated]
49    #[prost(bytes = "vec", tag = "1")]
50    pub evidence_hash: ::prost::alloc::vec::Vec<u8>,
51    /// hash defines the evidence hash of the requested evidence.
52    ///
53    /// Since: cosmos-sdk 0.47
54    #[prost(string, tag = "2")]
55    pub hash: ::prost::alloc::string::String,
56}
57impl ::prost::Name for QueryEvidenceRequest {
58    const NAME: &'static str = "QueryEvidenceRequest";
59    const PACKAGE: &'static str = "cosmos.evidence.v1beta1";
60    fn full_name() -> ::prost::alloc::string::String {
61        ::prost::alloc::format!("cosmos.evidence.v1beta1.{}", Self::NAME)
62    }
63}
64/// QueryEvidenceResponse is the response type for the Query/Evidence RPC method.
65#[allow(clippy::derive_partial_eq_without_eq)]
66#[derive(Clone, PartialEq, ::prost::Message)]
67pub struct QueryEvidenceResponse {
68    /// evidence returns the requested evidence.
69    #[prost(message, optional, tag = "1")]
70    pub evidence: ::core::option::Option<::tendermint_proto::google::protobuf::Any>,
71}
72impl ::prost::Name for QueryEvidenceResponse {
73    const NAME: &'static str = "QueryEvidenceResponse";
74    const PACKAGE: &'static str = "cosmos.evidence.v1beta1";
75    fn full_name() -> ::prost::alloc::string::String {
76        ::prost::alloc::format!("cosmos.evidence.v1beta1.{}", Self::NAME)
77    }
78}
79/// QueryEvidenceRequest is the request type for the Query/AllEvidence RPC
80/// method.
81#[allow(clippy::derive_partial_eq_without_eq)]
82#[derive(Clone, PartialEq, ::prost::Message)]
83pub struct QueryAllEvidenceRequest {
84    /// pagination defines an optional pagination for the request.
85    #[prost(message, optional, tag = "1")]
86    pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageRequest>,
87}
88impl ::prost::Name for QueryAllEvidenceRequest {
89    const NAME: &'static str = "QueryAllEvidenceRequest";
90    const PACKAGE: &'static str = "cosmos.evidence.v1beta1";
91    fn full_name() -> ::prost::alloc::string::String {
92        ::prost::alloc::format!("cosmos.evidence.v1beta1.{}", Self::NAME)
93    }
94}
95/// QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC
96/// method.
97#[allow(clippy::derive_partial_eq_without_eq)]
98#[derive(Clone, PartialEq, ::prost::Message)]
99pub struct QueryAllEvidenceResponse {
100    /// evidence returns all evidences.
101    #[prost(message, repeated, tag = "1")]
102    pub evidence: ::prost::alloc::vec::Vec<::tendermint_proto::google::protobuf::Any>,
103    /// pagination defines the pagination in the response.
104    #[prost(message, optional, tag = "2")]
105    pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageResponse>,
106}
107impl ::prost::Name for QueryAllEvidenceResponse {
108    const NAME: &'static str = "QueryAllEvidenceResponse";
109    const PACKAGE: &'static str = "cosmos.evidence.v1beta1";
110    fn full_name() -> ::prost::alloc::string::String {
111        ::prost::alloc::format!("cosmos.evidence.v1beta1.{}", Self::NAME)
112    }
113}
114/// MsgSubmitEvidence represents a message that supports submitting arbitrary
115/// Evidence of misbehavior such as equivocation or counterfactual signing.
116#[allow(clippy::derive_partial_eq_without_eq)]
117#[derive(Clone, PartialEq, ::prost::Message)]
118pub struct MsgSubmitEvidence {
119    /// submitter is the signer account address of evidence.
120    #[prost(string, tag = "1")]
121    pub submitter: ::prost::alloc::string::String,
122    /// evidence defines the evidence of misbehavior.
123    #[prost(message, optional, tag = "2")]
124    pub evidence: ::core::option::Option<::tendermint_proto::google::protobuf::Any>,
125}
126impl ::prost::Name for MsgSubmitEvidence {
127    const NAME: &'static str = "MsgSubmitEvidence";
128    const PACKAGE: &'static str = "cosmos.evidence.v1beta1";
129    fn full_name() -> ::prost::alloc::string::String {
130        ::prost::alloc::format!("cosmos.evidence.v1beta1.{}", Self::NAME)
131    }
132}
133/// MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type.
134#[allow(clippy::derive_partial_eq_without_eq)]
135#[derive(Clone, PartialEq, ::prost::Message)]
136pub struct MsgSubmitEvidenceResponse {
137    /// hash defines the hash of the evidence.
138    #[prost(bytes = "vec", tag = "4")]
139    pub hash: ::prost::alloc::vec::Vec<u8>,
140}
141impl ::prost::Name for MsgSubmitEvidenceResponse {
142    const NAME: &'static str = "MsgSubmitEvidenceResponse";
143    const PACKAGE: &'static str = "cosmos.evidence.v1beta1";
144    fn full_name() -> ::prost::alloc::string::String {
145        ::prost::alloc::format!("cosmos.evidence.v1beta1.{}", Self::NAME)
146    }
147}
148include!("cosmos.evidence.v1beta1.serde.rs");
149include!("cosmos.evidence.v1beta1.tonic.rs");
150// @@protoc_insertion_point(module)