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

1// @generated
2/// BaseAccount defines a base account type. It contains all the necessary fields
3/// for basic account functionality. Any custom account type should extend this
4/// type for additional functionality (e.g. vesting).
5#[allow(clippy::derive_partial_eq_without_eq)]
6#[derive(Clone, PartialEq, ::prost::Message)]
7pub struct BaseAccount {
8    #[prost(string, tag = "1")]
9    pub address: ::prost::alloc::string::String,
10    #[prost(message, optional, tag = "2")]
11    pub pub_key: ::core::option::Option<::tendermint_proto::google::protobuf::Any>,
12    #[prost(uint64, tag = "3")]
13    pub account_number: u64,
14    #[prost(uint64, tag = "4")]
15    pub sequence: u64,
16}
17impl ::prost::Name for BaseAccount {
18    const NAME: &'static str = "BaseAccount";
19    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
20    fn full_name() -> ::prost::alloc::string::String {
21        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
22    }
23}
24/// ModuleAccount defines an account for modules that holds coins on a pool.
25#[allow(clippy::derive_partial_eq_without_eq)]
26#[derive(Clone, PartialEq, ::prost::Message)]
27pub struct ModuleAccount {
28    #[prost(message, optional, tag = "1")]
29    pub base_account: ::core::option::Option<BaseAccount>,
30    #[prost(string, tag = "2")]
31    pub name: ::prost::alloc::string::String,
32    #[prost(string, repeated, tag = "3")]
33    pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
34}
35impl ::prost::Name for ModuleAccount {
36    const NAME: &'static str = "ModuleAccount";
37    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
38    fn full_name() -> ::prost::alloc::string::String {
39        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
40    }
41}
42/// ModuleCredential represents a unclaimable pubkey for base accounts controlled by modules.
43///
44/// Since: cosmos-sdk 0.47
45#[allow(clippy::derive_partial_eq_without_eq)]
46#[derive(Clone, PartialEq, ::prost::Message)]
47pub struct ModuleCredential {
48    /// module_name is the name of the module used for address derivation (passed into address.Module).
49    #[prost(string, tag = "1")]
50    pub module_name: ::prost::alloc::string::String,
51    /// derivation_keys is for deriving a module account address (passed into address.Module)
52    /// adding more keys creates sub-account addresses (passed into address.Derive)
53    #[prost(bytes = "vec", repeated, tag = "2")]
54    pub derivation_keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
55}
56impl ::prost::Name for ModuleCredential {
57    const NAME: &'static str = "ModuleCredential";
58    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
59    fn full_name() -> ::prost::alloc::string::String {
60        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
61    }
62}
63/// Params defines the parameters for the auth module.
64#[allow(clippy::derive_partial_eq_without_eq)]
65#[derive(Clone, PartialEq, ::prost::Message)]
66pub struct Params {
67    #[prost(uint64, tag = "1")]
68    pub max_memo_characters: u64,
69    #[prost(uint64, tag = "2")]
70    pub tx_sig_limit: u64,
71    #[prost(uint64, tag = "3")]
72    pub tx_size_cost_per_byte: u64,
73    #[prost(uint64, tag = "4")]
74    pub sig_verify_cost_ed25519: u64,
75    #[prost(uint64, tag = "5")]
76    pub sig_verify_cost_secp256k1: u64,
77}
78impl ::prost::Name for Params {
79    const NAME: &'static str = "Params";
80    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
81    fn full_name() -> ::prost::alloc::string::String {
82        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
83    }
84}
85/// GenesisState defines the auth module's genesis state.
86#[allow(clippy::derive_partial_eq_without_eq)]
87#[derive(Clone, PartialEq, ::prost::Message)]
88pub struct GenesisState {
89    /// params defines all the parameters of the module.
90    #[prost(message, optional, tag = "1")]
91    pub params: ::core::option::Option<Params>,
92    /// accounts are the accounts present at genesis.
93    #[prost(message, repeated, tag = "2")]
94    pub accounts: ::prost::alloc::vec::Vec<::tendermint_proto::google::protobuf::Any>,
95}
96impl ::prost::Name for GenesisState {
97    const NAME: &'static str = "GenesisState";
98    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
99    fn full_name() -> ::prost::alloc::string::String {
100        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
101    }
102}
103/// QueryAccountsRequest is the request type for the Query/Accounts RPC method.
104///
105/// Since: cosmos-sdk 0.43
106#[allow(clippy::derive_partial_eq_without_eq)]
107#[derive(Clone, PartialEq, ::prost::Message)]
108pub struct QueryAccountsRequest {
109    /// pagination defines an optional pagination for the request.
110    #[prost(message, optional, tag = "1")]
111    pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageRequest>,
112}
113impl ::prost::Name for QueryAccountsRequest {
114    const NAME: &'static str = "QueryAccountsRequest";
115    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
116    fn full_name() -> ::prost::alloc::string::String {
117        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
118    }
119}
120/// QueryAccountsResponse is the response type for the Query/Accounts RPC method.
121///
122/// Since: cosmos-sdk 0.43
123#[allow(clippy::derive_partial_eq_without_eq)]
124#[derive(Clone, PartialEq, ::prost::Message)]
125pub struct QueryAccountsResponse {
126    /// accounts are the existing accounts
127    #[prost(message, repeated, tag = "1")]
128    pub accounts: ::prost::alloc::vec::Vec<::tendermint_proto::google::protobuf::Any>,
129    /// pagination defines the pagination in the response.
130    #[prost(message, optional, tag = "2")]
131    pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageResponse>,
132}
133impl ::prost::Name for QueryAccountsResponse {
134    const NAME: &'static str = "QueryAccountsResponse";
135    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
136    fn full_name() -> ::prost::alloc::string::String {
137        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
138    }
139}
140/// QueryAccountRequest is the request type for the Query/Account RPC method.
141#[allow(clippy::derive_partial_eq_without_eq)]
142#[derive(Clone, PartialEq, ::prost::Message)]
143pub struct QueryAccountRequest {
144    /// address defines the address to query for.
145    #[prost(string, tag = "1")]
146    pub address: ::prost::alloc::string::String,
147}
148impl ::prost::Name for QueryAccountRequest {
149    const NAME: &'static str = "QueryAccountRequest";
150    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
151    fn full_name() -> ::prost::alloc::string::String {
152        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
153    }
154}
155/// QueryAccountResponse is the response type for the Query/Account RPC method.
156#[allow(clippy::derive_partial_eq_without_eq)]
157#[derive(Clone, PartialEq, ::prost::Message)]
158pub struct QueryAccountResponse {
159    /// account defines the account of the corresponding address.
160    #[prost(message, optional, tag = "1")]
161    pub account: ::core::option::Option<::tendermint_proto::google::protobuf::Any>,
162}
163impl ::prost::Name for QueryAccountResponse {
164    const NAME: &'static str = "QueryAccountResponse";
165    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
166    fn full_name() -> ::prost::alloc::string::String {
167        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
168    }
169}
170/// QueryParamsRequest is the request type for the Query/Params RPC method.
171#[allow(clippy::derive_partial_eq_without_eq)]
172#[derive(Clone, PartialEq, ::prost::Message)]
173pub struct QueryParamsRequest {}
174impl ::prost::Name for QueryParamsRequest {
175    const NAME: &'static str = "QueryParamsRequest";
176    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
177    fn full_name() -> ::prost::alloc::string::String {
178        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
179    }
180}
181/// QueryParamsResponse is the response type for the Query/Params RPC method.
182#[allow(clippy::derive_partial_eq_without_eq)]
183#[derive(Clone, PartialEq, ::prost::Message)]
184pub struct QueryParamsResponse {
185    /// params defines the parameters of the module.
186    #[prost(message, optional, tag = "1")]
187    pub params: ::core::option::Option<Params>,
188}
189impl ::prost::Name for QueryParamsResponse {
190    const NAME: &'static str = "QueryParamsResponse";
191    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
192    fn full_name() -> ::prost::alloc::string::String {
193        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
194    }
195}
196/// QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method.
197///
198/// Since: cosmos-sdk 0.46
199#[allow(clippy::derive_partial_eq_without_eq)]
200#[derive(Clone, PartialEq, ::prost::Message)]
201pub struct QueryModuleAccountsRequest {}
202impl ::prost::Name for QueryModuleAccountsRequest {
203    const NAME: &'static str = "QueryModuleAccountsRequest";
204    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
205    fn full_name() -> ::prost::alloc::string::String {
206        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
207    }
208}
209/// QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method.
210///
211/// Since: cosmos-sdk 0.46
212#[allow(clippy::derive_partial_eq_without_eq)]
213#[derive(Clone, PartialEq, ::prost::Message)]
214pub struct QueryModuleAccountsResponse {
215    #[prost(message, repeated, tag = "1")]
216    pub accounts: ::prost::alloc::vec::Vec<::tendermint_proto::google::protobuf::Any>,
217}
218impl ::prost::Name for QueryModuleAccountsResponse {
219    const NAME: &'static str = "QueryModuleAccountsResponse";
220    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
221    fn full_name() -> ::prost::alloc::string::String {
222        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
223    }
224}
225/// QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method.
226#[allow(clippy::derive_partial_eq_without_eq)]
227#[derive(Clone, PartialEq, ::prost::Message)]
228pub struct QueryModuleAccountByNameRequest {
229    #[prost(string, tag = "1")]
230    pub name: ::prost::alloc::string::String,
231}
232impl ::prost::Name for QueryModuleAccountByNameRequest {
233    const NAME: &'static str = "QueryModuleAccountByNameRequest";
234    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
235    fn full_name() -> ::prost::alloc::string::String {
236        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
237    }
238}
239/// QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method.
240#[allow(clippy::derive_partial_eq_without_eq)]
241#[derive(Clone, PartialEq, ::prost::Message)]
242pub struct QueryModuleAccountByNameResponse {
243    #[prost(message, optional, tag = "1")]
244    pub account: ::core::option::Option<::tendermint_proto::google::protobuf::Any>,
245}
246impl ::prost::Name for QueryModuleAccountByNameResponse {
247    const NAME: &'static str = "QueryModuleAccountByNameResponse";
248    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
249    fn full_name() -> ::prost::alloc::string::String {
250        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
251    }
252}
253/// Bech32PrefixRequest is the request type for Bech32Prefix rpc method.
254///
255/// Since: cosmos-sdk 0.46
256#[allow(clippy::derive_partial_eq_without_eq)]
257#[derive(Clone, PartialEq, ::prost::Message)]
258pub struct Bech32PrefixRequest {}
259impl ::prost::Name for Bech32PrefixRequest {
260    const NAME: &'static str = "Bech32PrefixRequest";
261    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
262    fn full_name() -> ::prost::alloc::string::String {
263        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
264    }
265}
266/// Bech32PrefixResponse is the response type for Bech32Prefix rpc method.
267///
268/// Since: cosmos-sdk 0.46
269#[allow(clippy::derive_partial_eq_without_eq)]
270#[derive(Clone, PartialEq, ::prost::Message)]
271pub struct Bech32PrefixResponse {
272    #[prost(string, tag = "1")]
273    pub bech32_prefix: ::prost::alloc::string::String,
274}
275impl ::prost::Name for Bech32PrefixResponse {
276    const NAME: &'static str = "Bech32PrefixResponse";
277    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
278    fn full_name() -> ::prost::alloc::string::String {
279        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
280    }
281}
282/// AddressBytesToStringRequest is the request type for AddressString rpc method.
283///
284/// Since: cosmos-sdk 0.46
285#[allow(clippy::derive_partial_eq_without_eq)]
286#[derive(Clone, PartialEq, ::prost::Message)]
287pub struct AddressBytesToStringRequest {
288    #[prost(bytes = "vec", tag = "1")]
289    pub address_bytes: ::prost::alloc::vec::Vec<u8>,
290}
291impl ::prost::Name for AddressBytesToStringRequest {
292    const NAME: &'static str = "AddressBytesToStringRequest";
293    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
294    fn full_name() -> ::prost::alloc::string::String {
295        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
296    }
297}
298/// AddressBytesToStringResponse is the response type for AddressString rpc method.
299///
300/// Since: cosmos-sdk 0.46
301#[allow(clippy::derive_partial_eq_without_eq)]
302#[derive(Clone, PartialEq, ::prost::Message)]
303pub struct AddressBytesToStringResponse {
304    #[prost(string, tag = "1")]
305    pub address_string: ::prost::alloc::string::String,
306}
307impl ::prost::Name for AddressBytesToStringResponse {
308    const NAME: &'static str = "AddressBytesToStringResponse";
309    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
310    fn full_name() -> ::prost::alloc::string::String {
311        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
312    }
313}
314/// AddressStringToBytesRequest is the request type for AccountBytes rpc method.
315///
316/// Since: cosmos-sdk 0.46
317#[allow(clippy::derive_partial_eq_without_eq)]
318#[derive(Clone, PartialEq, ::prost::Message)]
319pub struct AddressStringToBytesRequest {
320    #[prost(string, tag = "1")]
321    pub address_string: ::prost::alloc::string::String,
322}
323impl ::prost::Name for AddressStringToBytesRequest {
324    const NAME: &'static str = "AddressStringToBytesRequest";
325    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
326    fn full_name() -> ::prost::alloc::string::String {
327        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
328    }
329}
330/// AddressStringToBytesResponse is the response type for AddressBytes rpc method.
331///
332/// Since: cosmos-sdk 0.46
333#[allow(clippy::derive_partial_eq_without_eq)]
334#[derive(Clone, PartialEq, ::prost::Message)]
335pub struct AddressStringToBytesResponse {
336    #[prost(bytes = "vec", tag = "1")]
337    pub address_bytes: ::prost::alloc::vec::Vec<u8>,
338}
339impl ::prost::Name for AddressStringToBytesResponse {
340    const NAME: &'static str = "AddressStringToBytesResponse";
341    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
342    fn full_name() -> ::prost::alloc::string::String {
343        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
344    }
345}
346/// QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
347///
348/// Since: cosmos-sdk 0.46.2
349#[allow(clippy::derive_partial_eq_without_eq)]
350#[derive(Clone, PartialEq, ::prost::Message)]
351pub struct QueryAccountAddressByIdRequest {
352    /// Deprecated, use account_id instead
353    ///
354    /// id is the account number of the address to be queried. This field
355    /// should have been an uint64 (like all account numbers), and will be
356    /// updated to uint64 in a future version of the auth query.
357    #[deprecated]
358    #[prost(int64, tag = "1")]
359    pub id: i64,
360    /// account_id is the account number of the address to be queried.
361    ///
362    /// Since: cosmos-sdk 0.47
363    #[prost(uint64, tag = "2")]
364    pub account_id: u64,
365}
366impl ::prost::Name for QueryAccountAddressByIdRequest {
367    const NAME: &'static str = "QueryAccountAddressByIDRequest";
368    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
369    fn full_name() -> ::prost::alloc::string::String {
370        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
371    }
372}
373/// QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method
374///
375/// Since: cosmos-sdk 0.46.2
376#[allow(clippy::derive_partial_eq_without_eq)]
377#[derive(Clone, PartialEq, ::prost::Message)]
378pub struct QueryAccountAddressByIdResponse {
379    #[prost(string, tag = "1")]
380    pub account_address: ::prost::alloc::string::String,
381}
382impl ::prost::Name for QueryAccountAddressByIdResponse {
383    const NAME: &'static str = "QueryAccountAddressByIDResponse";
384    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
385    fn full_name() -> ::prost::alloc::string::String {
386        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
387    }
388}
389/// QueryAccountInfoRequest is the Query/AccountInfo request type.
390///
391/// Since: cosmos-sdk 0.47
392#[allow(clippy::derive_partial_eq_without_eq)]
393#[derive(Clone, PartialEq, ::prost::Message)]
394pub struct QueryAccountInfoRequest {
395    /// address is the account address string.
396    #[prost(string, tag = "1")]
397    pub address: ::prost::alloc::string::String,
398}
399impl ::prost::Name for QueryAccountInfoRequest {
400    const NAME: &'static str = "QueryAccountInfoRequest";
401    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
402    fn full_name() -> ::prost::alloc::string::String {
403        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
404    }
405}
406/// QueryAccountInfoResponse is the Query/AccountInfo response type.
407///
408/// Since: cosmos-sdk 0.47
409#[allow(clippy::derive_partial_eq_without_eq)]
410#[derive(Clone, PartialEq, ::prost::Message)]
411pub struct QueryAccountInfoResponse {
412    /// info is the account info which is represented by BaseAccount.
413    #[prost(message, optional, tag = "1")]
414    pub info: ::core::option::Option<BaseAccount>,
415}
416impl ::prost::Name for QueryAccountInfoResponse {
417    const NAME: &'static str = "QueryAccountInfoResponse";
418    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
419    fn full_name() -> ::prost::alloc::string::String {
420        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
421    }
422}
423/// MsgUpdateParams is the Msg/UpdateParams request type.
424///
425/// Since: cosmos-sdk 0.47
426#[allow(clippy::derive_partial_eq_without_eq)]
427#[derive(Clone, PartialEq, ::prost::Message)]
428pub struct MsgUpdateParams {
429    /// authority is the address that controls the module (defaults to x/gov unless overwritten).
430    #[prost(string, tag = "1")]
431    pub authority: ::prost::alloc::string::String,
432    /// params defines the x/auth parameters to update.
433    ///
434    /// NOTE: All parameters must be supplied.
435    #[prost(message, optional, tag = "2")]
436    pub params: ::core::option::Option<Params>,
437}
438impl ::prost::Name for MsgUpdateParams {
439    const NAME: &'static str = "MsgUpdateParams";
440    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
441    fn full_name() -> ::prost::alloc::string::String {
442        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
443    }
444}
445/// MsgUpdateParamsResponse defines the response structure for executing a
446/// MsgUpdateParams message.
447///
448/// Since: cosmos-sdk 0.47
449#[allow(clippy::derive_partial_eq_without_eq)]
450#[derive(Clone, PartialEq, ::prost::Message)]
451pub struct MsgUpdateParamsResponse {}
452impl ::prost::Name for MsgUpdateParamsResponse {
453    const NAME: &'static str = "MsgUpdateParamsResponse";
454    const PACKAGE: &'static str = "cosmos.auth.v1beta1";
455    fn full_name() -> ::prost::alloc::string::String {
456        ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME)
457    }
458}
459include!("cosmos.auth.v1beta1.serde.rs");
460include!("cosmos.auth.v1beta1.tonic.rs");
461// @@protoc_insertion_point(module)