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

1// @generated
2/// ParameterChangeProposal defines a proposal to change one or more parameters.
3#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct ParameterChangeProposal {
6    #[prost(string, tag = "1")]
7    pub title: ::prost::alloc::string::String,
8    #[prost(string, tag = "2")]
9    pub description: ::prost::alloc::string::String,
10    #[prost(message, repeated, tag = "3")]
11    pub changes: ::prost::alloc::vec::Vec<ParamChange>,
12}
13impl ::prost::Name for ParameterChangeProposal {
14    const NAME: &'static str = "ParameterChangeProposal";
15    const PACKAGE: &'static str = "cosmos.params.v1beta1";
16    fn full_name() -> ::prost::alloc::string::String {
17        ::prost::alloc::format!("cosmos.params.v1beta1.{}", Self::NAME)
18    }
19}
20/// ParamChange defines an individual parameter change, for use in
21/// ParameterChangeProposal.
22#[allow(clippy::derive_partial_eq_without_eq)]
23#[derive(Clone, PartialEq, ::prost::Message)]
24pub struct ParamChange {
25    #[prost(string, tag = "1")]
26    pub subspace: ::prost::alloc::string::String,
27    #[prost(string, tag = "2")]
28    pub key: ::prost::alloc::string::String,
29    #[prost(string, tag = "3")]
30    pub value: ::prost::alloc::string::String,
31}
32impl ::prost::Name for ParamChange {
33    const NAME: &'static str = "ParamChange";
34    const PACKAGE: &'static str = "cosmos.params.v1beta1";
35    fn full_name() -> ::prost::alloc::string::String {
36        ::prost::alloc::format!("cosmos.params.v1beta1.{}", Self::NAME)
37    }
38}
39/// QueryParamsRequest is request type for the Query/Params RPC method.
40#[allow(clippy::derive_partial_eq_without_eq)]
41#[derive(Clone, PartialEq, ::prost::Message)]
42pub struct QueryParamsRequest {
43    /// subspace defines the module to query the parameter for.
44    #[prost(string, tag = "1")]
45    pub subspace: ::prost::alloc::string::String,
46    /// key defines the key of the parameter in the subspace.
47    #[prost(string, tag = "2")]
48    pub key: ::prost::alloc::string::String,
49}
50impl ::prost::Name for QueryParamsRequest {
51    const NAME: &'static str = "QueryParamsRequest";
52    const PACKAGE: &'static str = "cosmos.params.v1beta1";
53    fn full_name() -> ::prost::alloc::string::String {
54        ::prost::alloc::format!("cosmos.params.v1beta1.{}", Self::NAME)
55    }
56}
57/// QueryParamsResponse is response type for the Query/Params RPC method.
58#[allow(clippy::derive_partial_eq_without_eq)]
59#[derive(Clone, PartialEq, ::prost::Message)]
60pub struct QueryParamsResponse {
61    /// param defines the queried parameter.
62    #[prost(message, optional, tag = "1")]
63    pub param: ::core::option::Option<ParamChange>,
64}
65impl ::prost::Name for QueryParamsResponse {
66    const NAME: &'static str = "QueryParamsResponse";
67    const PACKAGE: &'static str = "cosmos.params.v1beta1";
68    fn full_name() -> ::prost::alloc::string::String {
69        ::prost::alloc::format!("cosmos.params.v1beta1.{}", Self::NAME)
70    }
71}
72/// QuerySubspacesRequest defines a request type for querying for all registered
73/// subspaces and all keys for a subspace.
74///
75/// Since: cosmos-sdk 0.46
76#[allow(clippy::derive_partial_eq_without_eq)]
77#[derive(Clone, PartialEq, ::prost::Message)]
78pub struct QuerySubspacesRequest {}
79impl ::prost::Name for QuerySubspacesRequest {
80    const NAME: &'static str = "QuerySubspacesRequest";
81    const PACKAGE: &'static str = "cosmos.params.v1beta1";
82    fn full_name() -> ::prost::alloc::string::String {
83        ::prost::alloc::format!("cosmos.params.v1beta1.{}", Self::NAME)
84    }
85}
86/// QuerySubspacesResponse defines the response types for querying for all
87/// registered subspaces and all keys for a subspace.
88///
89/// Since: cosmos-sdk 0.46
90#[allow(clippy::derive_partial_eq_without_eq)]
91#[derive(Clone, PartialEq, ::prost::Message)]
92pub struct QuerySubspacesResponse {
93    #[prost(message, repeated, tag = "1")]
94    pub subspaces: ::prost::alloc::vec::Vec<Subspace>,
95}
96impl ::prost::Name for QuerySubspacesResponse {
97    const NAME: &'static str = "QuerySubspacesResponse";
98    const PACKAGE: &'static str = "cosmos.params.v1beta1";
99    fn full_name() -> ::prost::alloc::string::String {
100        ::prost::alloc::format!("cosmos.params.v1beta1.{}", Self::NAME)
101    }
102}
103/// Subspace defines a parameter subspace name and all the keys that exist for
104/// the subspace.
105///
106/// Since: cosmos-sdk 0.46
107#[allow(clippy::derive_partial_eq_without_eq)]
108#[derive(Clone, PartialEq, ::prost::Message)]
109pub struct Subspace {
110    #[prost(string, tag = "1")]
111    pub subspace: ::prost::alloc::string::String,
112    #[prost(string, repeated, tag = "2")]
113    pub keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
114}
115impl ::prost::Name for Subspace {
116    const NAME: &'static str = "Subspace";
117    const PACKAGE: &'static str = "cosmos.params.v1beta1";
118    fn full_name() -> ::prost::alloc::string::String {
119        ::prost::alloc::format!("cosmos.params.v1beta1.{}", Self::NAME)
120    }
121}
122include!("cosmos.params.v1beta1.serde.rs");
123include!("cosmos.params.v1beta1.tonic.rs");
124// @@protoc_insertion_point(module)