nibiru_std/proto/buf/
cosmos.slashing.v1beta1.rs

1// @generated
2/// ValidatorSigningInfo defines a validator's signing info for monitoring their
3/// liveness activity.
4#[allow(clippy::derive_partial_eq_without_eq)]
5#[derive(Clone, PartialEq, ::prost::Message)]
6pub struct ValidatorSigningInfo {
7    #[prost(string, tag="1")]
8    pub address: ::prost::alloc::string::String,
9    /// Height at which validator was first a candidate OR was unjailed
10    #[prost(int64, tag="2")]
11    pub start_height: i64,
12    /// Index which is incremented each time the validator was a bonded
13    /// in a block and may have signed a precommit or not. This in conjunction with the
14    /// `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`.
15    #[prost(int64, tag="3")]
16    pub index_offset: i64,
17    /// Timestamp until which the validator is jailed due to liveness downtime.
18    #[prost(message, optional, tag="4")]
19    pub jailed_until: ::core::option::Option<::prost_types::Timestamp>,
20    /// Whether or not a validator has been tombstoned (killed out of validator set). It is set
21    /// once the validator commits an equivocation or for any other configured misbehiavor.
22    #[prost(bool, tag="5")]
23    pub tombstoned: bool,
24    /// A counter kept to avoid unnecessary array reads.
25    /// Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`.
26    #[prost(int64, tag="6")]
27    pub missed_blocks_counter: i64,
28}
29/// Params represents the parameters used for by the slashing module.
30#[allow(clippy::derive_partial_eq_without_eq)]
31#[derive(Clone, PartialEq, ::prost::Message)]
32pub struct Params {
33    #[prost(int64, tag="1")]
34    pub signed_blocks_window: i64,
35    #[prost(bytes="bytes", tag="2")]
36    pub min_signed_per_window: ::prost::bytes::Bytes,
37    #[prost(message, optional, tag="3")]
38    pub downtime_jail_duration: ::core::option::Option<::prost_types::Duration>,
39    #[prost(bytes="bytes", tag="4")]
40    pub slash_fraction_double_sign: ::prost::bytes::Bytes,
41    #[prost(bytes="bytes", tag="5")]
42    pub slash_fraction_downtime: ::prost::bytes::Bytes,
43}
44/// GenesisState defines the slashing module's genesis state.
45#[allow(clippy::derive_partial_eq_without_eq)]
46#[derive(Clone, PartialEq, ::prost::Message)]
47pub struct GenesisState {
48    /// params defines all the parameters of the module.
49    #[prost(message, optional, tag="1")]
50    pub params: ::core::option::Option<Params>,
51    /// signing_infos represents a map between validator addresses and their
52    /// signing infos.
53    #[prost(message, repeated, tag="2")]
54    pub signing_infos: ::prost::alloc::vec::Vec<SigningInfo>,
55    /// missed_blocks represents a map between validator addresses and their
56    /// missed blocks.
57    #[prost(message, repeated, tag="3")]
58    pub missed_blocks: ::prost::alloc::vec::Vec<ValidatorMissedBlocks>,
59}
60/// SigningInfo stores validator signing info of corresponding address.
61#[allow(clippy::derive_partial_eq_without_eq)]
62#[derive(Clone, PartialEq, ::prost::Message)]
63pub struct SigningInfo {
64    /// address is the validator address.
65    #[prost(string, tag="1")]
66    pub address: ::prost::alloc::string::String,
67    /// validator_signing_info represents the signing info of this validator.
68    #[prost(message, optional, tag="2")]
69    pub validator_signing_info: ::core::option::Option<ValidatorSigningInfo>,
70}
71/// ValidatorMissedBlocks contains array of missed blocks of corresponding
72/// address.
73#[allow(clippy::derive_partial_eq_without_eq)]
74#[derive(Clone, PartialEq, ::prost::Message)]
75pub struct ValidatorMissedBlocks {
76    /// address is the validator address.
77    #[prost(string, tag="1")]
78    pub address: ::prost::alloc::string::String,
79    /// missed_blocks is an array of missed blocks by the validator.
80    #[prost(message, repeated, tag="2")]
81    pub missed_blocks: ::prost::alloc::vec::Vec<MissedBlock>,
82}
83/// MissedBlock contains height and missed status as boolean.
84#[allow(clippy::derive_partial_eq_without_eq)]
85#[derive(Clone, PartialEq, ::prost::Message)]
86pub struct MissedBlock {
87    /// index is the height at which the block was missed.
88    #[prost(int64, tag="1")]
89    pub index: i64,
90    /// missed is the missed status.
91    #[prost(bool, tag="2")]
92    pub missed: bool,
93}
94/// QueryParamsRequest is the request type for the Query/Params RPC method
95#[allow(clippy::derive_partial_eq_without_eq)]
96#[derive(Clone, PartialEq, ::prost::Message)]
97pub struct QueryParamsRequest {
98}
99/// QueryParamsResponse is the response type for the Query/Params RPC method
100#[allow(clippy::derive_partial_eq_without_eq)]
101#[derive(Clone, PartialEq, ::prost::Message)]
102pub struct QueryParamsResponse {
103    #[prost(message, optional, tag="1")]
104    pub params: ::core::option::Option<Params>,
105}
106/// QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC
107/// method
108#[allow(clippy::derive_partial_eq_without_eq)]
109#[derive(Clone, PartialEq, ::prost::Message)]
110pub struct QuerySigningInfoRequest {
111    /// cons_address is the address to query signing info of
112    #[prost(string, tag="1")]
113    pub cons_address: ::prost::alloc::string::String,
114}
115/// QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC
116/// method
117#[allow(clippy::derive_partial_eq_without_eq)]
118#[derive(Clone, PartialEq, ::prost::Message)]
119pub struct QuerySigningInfoResponse {
120    /// val_signing_info is the signing info of requested val cons address
121    #[prost(message, optional, tag="1")]
122    pub val_signing_info: ::core::option::Option<ValidatorSigningInfo>,
123}
124/// QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC
125/// method
126#[allow(clippy::derive_partial_eq_without_eq)]
127#[derive(Clone, PartialEq, ::prost::Message)]
128pub struct QuerySigningInfosRequest {
129    #[prost(message, optional, tag="1")]
130    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageRequest>,
131}
132/// QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC
133/// method
134#[allow(clippy::derive_partial_eq_without_eq)]
135#[derive(Clone, PartialEq, ::prost::Message)]
136pub struct QuerySigningInfosResponse {
137    /// info is the signing info of all validators
138    #[prost(message, repeated, tag="1")]
139    pub info: ::prost::alloc::vec::Vec<ValidatorSigningInfo>,
140    #[prost(message, optional, tag="2")]
141    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageResponse>,
142}
143/// MsgUnjail defines the Msg/Unjail request type
144#[allow(clippy::derive_partial_eq_without_eq)]
145#[derive(Clone, PartialEq, ::prost::Message)]
146pub struct MsgUnjail {
147    #[prost(string, tag="1")]
148    pub validator_addr: ::prost::alloc::string::String,
149}
150/// MsgUnjailResponse defines the Msg/Unjail response type
151#[allow(clippy::derive_partial_eq_without_eq)]
152#[derive(Clone, PartialEq, ::prost::Message)]
153pub struct MsgUnjailResponse {
154}
155/// MsgUpdateParams is the Msg/UpdateParams request type.
156///
157/// Since: cosmos-sdk 0.47
158#[allow(clippy::derive_partial_eq_without_eq)]
159#[derive(Clone, PartialEq, ::prost::Message)]
160pub struct MsgUpdateParams {
161    /// authority is the address that controls the module (defaults to x/gov unless overwritten).
162    #[prost(string, tag="1")]
163    pub authority: ::prost::alloc::string::String,
164    /// params defines the x/slashing parameters to update.
165    ///
166    /// NOTE: All parameters must be supplied.
167    #[prost(message, optional, tag="2")]
168    pub params: ::core::option::Option<Params>,
169}
170/// MsgUpdateParamsResponse defines the response structure for executing a
171/// MsgUpdateParams message.
172///
173/// Since: cosmos-sdk 0.47
174#[allow(clippy::derive_partial_eq_without_eq)]
175#[derive(Clone, PartialEq, ::prost::Message)]
176pub struct MsgUpdateParamsResponse {
177}
178// @@protoc_insertion_point(module)