nibiru_std/proto/buf/cosmos.upgrade.v1beta1.rs
1// @generated
2/// Plan specifies information about a planned upgrade and when it should occur.
3#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct Plan {
6 /// Sets the name for the upgrade. This name will be used by the upgraded
7 /// version of the software to apply any special "on-upgrade" commands during
8 /// the first BeginBlock method after the upgrade is applied. It is also used
9 /// to detect whether a software version can handle a given upgrade. If no
10 /// upgrade handler with this name has been set in the software, it will be
11 /// assumed that the software is out-of-date when the upgrade Time or Height is
12 /// reached and the software will exit.
13 #[prost(string, tag="1")]
14 pub name: ::prost::alloc::string::String,
15 /// Deprecated: Time based upgrades have been deprecated. Time based upgrade logic
16 /// has been removed from the SDK.
17 /// If this field is not empty, an error will be thrown.
18 #[deprecated]
19 #[prost(message, optional, tag="2")]
20 pub time: ::core::option::Option<::prost_types::Timestamp>,
21 /// The height at which the upgrade must be performed.
22 #[prost(int64, tag="3")]
23 pub height: i64,
24 /// Any application specific upgrade info to be included on-chain
25 /// such as a git commit that validators could automatically upgrade to
26 #[prost(string, tag="4")]
27 pub info: ::prost::alloc::string::String,
28 /// Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been
29 /// moved to the IBC module in the sub module 02-client.
30 /// If this field is not empty, an error will be thrown.
31 #[deprecated]
32 #[prost(message, optional, tag="5")]
33 pub upgraded_client_state: ::core::option::Option<::prost_types::Any>,
34}
35/// SoftwareUpgradeProposal is a gov Content type for initiating a software
36/// upgrade.
37/// Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
38/// proposals, see MsgSoftwareUpgrade.
39#[allow(clippy::derive_partial_eq_without_eq)]
40#[derive(Clone, PartialEq, ::prost::Message)]
41pub struct SoftwareUpgradeProposal {
42 /// title of the proposal
43 #[prost(string, tag="1")]
44 pub title: ::prost::alloc::string::String,
45 /// description of the proposal
46 #[prost(string, tag="2")]
47 pub description: ::prost::alloc::string::String,
48 /// plan of the proposal
49 #[prost(message, optional, tag="3")]
50 pub plan: ::core::option::Option<Plan>,
51}
52/// CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software
53/// upgrade.
54/// Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
55/// proposals, see MsgCancelUpgrade.
56#[allow(clippy::derive_partial_eq_without_eq)]
57#[derive(Clone, PartialEq, ::prost::Message)]
58pub struct CancelSoftwareUpgradeProposal {
59 /// title of the proposal
60 #[prost(string, tag="1")]
61 pub title: ::prost::alloc::string::String,
62 /// description of the proposal
63 #[prost(string, tag="2")]
64 pub description: ::prost::alloc::string::String,
65}
66/// ModuleVersion specifies a module and its consensus version.
67///
68/// Since: cosmos-sdk 0.43
69#[allow(clippy::derive_partial_eq_without_eq)]
70#[derive(Clone, PartialEq, ::prost::Message)]
71pub struct ModuleVersion {
72 /// name of the app module
73 #[prost(string, tag="1")]
74 pub name: ::prost::alloc::string::String,
75 /// consensus version of the app module
76 #[prost(uint64, tag="2")]
77 pub version: u64,
78}
79/// QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC
80/// method.
81#[allow(clippy::derive_partial_eq_without_eq)]
82#[derive(Clone, PartialEq, ::prost::Message)]
83pub struct QueryCurrentPlanRequest {
84}
85/// QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC
86/// method.
87#[allow(clippy::derive_partial_eq_without_eq)]
88#[derive(Clone, PartialEq, ::prost::Message)]
89pub struct QueryCurrentPlanResponse {
90 /// plan is the current upgrade plan.
91 #[prost(message, optional, tag="1")]
92 pub plan: ::core::option::Option<Plan>,
93}
94/// QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC
95/// method.
96#[allow(clippy::derive_partial_eq_without_eq)]
97#[derive(Clone, PartialEq, ::prost::Message)]
98pub struct QueryAppliedPlanRequest {
99 /// name is the name of the applied plan to query for.
100 #[prost(string, tag="1")]
101 pub name: ::prost::alloc::string::String,
102}
103/// QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC
104/// method.
105#[allow(clippy::derive_partial_eq_without_eq)]
106#[derive(Clone, PartialEq, ::prost::Message)]
107pub struct QueryAppliedPlanResponse {
108 /// height is the block height at which the plan was applied.
109 #[prost(int64, tag="1")]
110 pub height: i64,
111}
112/// QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState
113/// RPC method.
114#[allow(clippy::derive_partial_eq_without_eq)]
115#[derive(Clone, PartialEq, ::prost::Message)]
116pub struct QueryUpgradedConsensusStateRequest {
117 /// last height of the current chain must be sent in request
118 /// as this is the height under which next consensus state is stored
119 #[prost(int64, tag="1")]
120 pub last_height: i64,
121}
122/// QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState
123/// RPC method.
124#[allow(clippy::derive_partial_eq_without_eq)]
125#[derive(Clone, PartialEq, ::prost::Message)]
126pub struct QueryUpgradedConsensusStateResponse {
127 /// Since: cosmos-sdk 0.43
128 #[prost(bytes="bytes", tag="2")]
129 pub upgraded_consensus_state: ::prost::bytes::Bytes,
130}
131/// QueryModuleVersionsRequest is the request type for the Query/ModuleVersions
132/// RPC method.
133///
134/// Since: cosmos-sdk 0.43
135#[allow(clippy::derive_partial_eq_without_eq)]
136#[derive(Clone, PartialEq, ::prost::Message)]
137pub struct QueryModuleVersionsRequest {
138 /// module_name is a field to query a specific module
139 /// consensus version from state. Leaving this empty will
140 /// fetch the full list of module versions from state
141 #[prost(string, tag="1")]
142 pub module_name: ::prost::alloc::string::String,
143}
144/// QueryModuleVersionsResponse is the response type for the Query/ModuleVersions
145/// RPC method.
146///
147/// Since: cosmos-sdk 0.43
148#[allow(clippy::derive_partial_eq_without_eq)]
149#[derive(Clone, PartialEq, ::prost::Message)]
150pub struct QueryModuleVersionsResponse {
151 /// module_versions is a list of module names with their consensus versions.
152 #[prost(message, repeated, tag="1")]
153 pub module_versions: ::prost::alloc::vec::Vec<ModuleVersion>,
154}
155/// QueryAuthorityRequest is the request type for Query/Authority
156///
157/// Since: cosmos-sdk 0.46
158#[allow(clippy::derive_partial_eq_without_eq)]
159#[derive(Clone, PartialEq, ::prost::Message)]
160pub struct QueryAuthorityRequest {
161}
162/// QueryAuthorityResponse is the response type for Query/Authority
163///
164/// Since: cosmos-sdk 0.46
165#[allow(clippy::derive_partial_eq_without_eq)]
166#[derive(Clone, PartialEq, ::prost::Message)]
167pub struct QueryAuthorityResponse {
168 #[prost(string, tag="1")]
169 pub address: ::prost::alloc::string::String,
170}
171/// MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type.
172///
173/// Since: cosmos-sdk 0.46
174#[allow(clippy::derive_partial_eq_without_eq)]
175#[derive(Clone, PartialEq, ::prost::Message)]
176pub struct MsgSoftwareUpgrade {
177 /// authority is the address that controls the module (defaults to x/gov unless overwritten).
178 #[prost(string, tag="1")]
179 pub authority: ::prost::alloc::string::String,
180 /// plan is the upgrade plan.
181 #[prost(message, optional, tag="2")]
182 pub plan: ::core::option::Option<Plan>,
183}
184/// MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type.
185///
186/// Since: cosmos-sdk 0.46
187#[allow(clippy::derive_partial_eq_without_eq)]
188#[derive(Clone, PartialEq, ::prost::Message)]
189pub struct MsgSoftwareUpgradeResponse {
190}
191/// MsgCancelUpgrade is the Msg/CancelUpgrade request type.
192///
193/// Since: cosmos-sdk 0.46
194#[allow(clippy::derive_partial_eq_without_eq)]
195#[derive(Clone, PartialEq, ::prost::Message)]
196pub struct MsgCancelUpgrade {
197 /// authority is the address that controls the module (defaults to x/gov unless overwritten).
198 #[prost(string, tag="1")]
199 pub authority: ::prost::alloc::string::String,
200}
201/// MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type.
202///
203/// Since: cosmos-sdk 0.46
204#[allow(clippy::derive_partial_eq_without_eq)]
205#[derive(Clone, PartialEq, ::prost::Message)]
206pub struct MsgCancelUpgradeResponse {
207}
208// @@protoc_insertion_point(module)