coreum_wasm_sdk/types/cosmos/auth/
v1beta1.rs

1use coreum_std_derive::CosmwasmExt;
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(
7    Clone,
8    PartialEq,
9    Eq,
10    ::prost::Message,
11    ::serde::Serialize,
12    ::serde::Deserialize,
13    ::schemars::JsonSchema,
14    CosmwasmExt,
15)]
16#[proto_message(type_url = "/cosmos.auth.v1beta1.BaseAccount")]
17pub struct BaseAccount {
18    #[prost(string, tag = "1")]
19    pub address: ::prost::alloc::string::String,
20    #[prost(message, optional, tag = "2")]
21    pub pub_key: ::core::option::Option<crate::shim::Any>,
22    #[prost(uint64, tag = "3")]
23    pub account_number: u64,
24    #[prost(uint64, tag = "4")]
25    pub sequence: u64,
26}
27/// ModuleAccount defines an account for modules that holds coins on a pool.
28#[allow(clippy::derive_partial_eq_without_eq)]
29#[derive(
30    Clone,
31    PartialEq,
32    Eq,
33    ::prost::Message,
34    ::serde::Serialize,
35    ::serde::Deserialize,
36    ::schemars::JsonSchema,
37    CosmwasmExt,
38)]
39#[proto_message(type_url = "/cosmos.auth.v1beta1.ModuleAccount")]
40pub struct ModuleAccount {
41    #[prost(message, optional, tag = "1")]
42    pub base_account: ::core::option::Option<BaseAccount>,
43    #[prost(string, tag = "2")]
44    pub name: ::prost::alloc::string::String,
45    #[prost(string, repeated, tag = "3")]
46    pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
47}
48/// ModuleCredential represents a unclaimable pubkey for base accounts controlled by modules.
49///
50/// Since: cosmos-sdk 0.47
51#[allow(clippy::derive_partial_eq_without_eq)]
52#[derive(
53    Clone,
54    PartialEq,
55    Eq,
56    ::prost::Message,
57    ::serde::Serialize,
58    ::serde::Deserialize,
59    ::schemars::JsonSchema,
60    CosmwasmExt,
61)]
62#[proto_message(type_url = "/cosmos.auth.v1beta1.ModuleCredential")]
63pub struct ModuleCredential {
64    /// module_name is the name of the module used for address derivation (passed into address.Module).
65    #[prost(string, tag = "1")]
66    pub module_name: ::prost::alloc::string::String,
67    /// derivation_keys is for deriving a module account address (passed into address.Module)
68    /// adding more keys creates sub-account addresses (passed into address.Derive)
69    #[prost(bytes = "vec", repeated, tag = "2")]
70    pub derivation_keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
71}
72/// Params defines the parameters for the auth module.
73#[allow(clippy::derive_partial_eq_without_eq)]
74#[derive(
75    Clone,
76    Copy,
77    PartialEq,
78    Eq,
79    ::prost::Message,
80    ::serde::Serialize,
81    ::serde::Deserialize,
82    ::schemars::JsonSchema,
83    CosmwasmExt,
84)]
85#[proto_message(type_url = "/cosmos.auth.v1beta1.Params")]
86pub struct Params {
87    #[prost(uint64, tag = "1")]
88    pub max_memo_characters: u64,
89    #[prost(uint64, tag = "2")]
90    pub tx_sig_limit: u64,
91    #[prost(uint64, tag = "3")]
92    pub tx_size_cost_per_byte: u64,
93    #[prost(uint64, tag = "4")]
94    pub sig_verify_cost_ed25519: u64,
95    #[prost(uint64, tag = "5")]
96    pub sig_verify_cost_secp256k1: u64,
97}
98/// GenesisState defines the auth module's genesis state.
99#[allow(clippy::derive_partial_eq_without_eq)]
100#[derive(
101    Clone,
102    PartialEq,
103    Eq,
104    ::prost::Message,
105    ::serde::Serialize,
106    ::serde::Deserialize,
107    ::schemars::JsonSchema,
108    CosmwasmExt,
109)]
110#[proto_message(type_url = "/cosmos.auth.v1beta1.GenesisState")]
111pub struct GenesisState {
112    /// params defines all the parameters of the module.
113    #[prost(message, optional, tag = "1")]
114    pub params: ::core::option::Option<Params>,
115    /// accounts are the accounts present at genesis.
116    #[prost(message, repeated, tag = "2")]
117    pub accounts: ::prost::alloc::vec::Vec<crate::shim::Any>,
118}
119/// QueryAccountsRequest is the request type for the Query/Accounts RPC method.
120///
121/// Since: cosmos-sdk 0.43
122#[allow(clippy::derive_partial_eq_without_eq)]
123#[derive(
124    Clone,
125    PartialEq,
126    Eq,
127    ::prost::Message,
128    ::serde::Serialize,
129    ::serde::Deserialize,
130    ::schemars::JsonSchema,
131    CosmwasmExt,
132)]
133#[proto_message(type_url = "/cosmos.auth.v1beta1.QueryAccountsRequest")]
134#[proto_query(
135    path = "/cosmos.auth.v1beta1.Query/Accounts",
136    response_type = QueryAccountsResponse
137)]
138pub struct QueryAccountsRequest {
139    /// pagination defines an optional pagination for the request.
140    #[prost(message, optional, tag = "1")]
141    pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageRequest>,
142}
143/// QueryAccountsResponse is the response type for the Query/Accounts RPC method.
144///
145/// Since: cosmos-sdk 0.43
146#[allow(clippy::derive_partial_eq_without_eq)]
147#[derive(
148    Clone,
149    PartialEq,
150    Eq,
151    ::prost::Message,
152    ::serde::Serialize,
153    ::serde::Deserialize,
154    ::schemars::JsonSchema,
155    CosmwasmExt,
156)]
157#[proto_message(type_url = "/cosmos.auth.v1beta1.QueryAccountsResponse")]
158pub struct QueryAccountsResponse {
159    /// accounts are the existing accounts
160    #[prost(message, repeated, tag = "1")]
161    pub accounts: ::prost::alloc::vec::Vec<crate::shim::Any>,
162    /// pagination defines the pagination in the response.
163    #[prost(message, optional, tag = "2")]
164    pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageResponse>,
165}
166/// QueryAccountRequest is the request type for the Query/Account RPC method.
167#[allow(clippy::derive_partial_eq_without_eq)]
168#[derive(
169    Clone,
170    PartialEq,
171    Eq,
172    ::prost::Message,
173    ::serde::Serialize,
174    ::serde::Deserialize,
175    ::schemars::JsonSchema,
176    CosmwasmExt,
177)]
178#[proto_message(type_url = "/cosmos.auth.v1beta1.QueryAccountRequest")]
179#[proto_query(
180    path = "/cosmos.auth.v1beta1.Query/Account",
181    response_type = QueryAccountResponse
182)]
183pub struct QueryAccountRequest {
184    /// address defines the address to query for.
185    #[prost(string, tag = "1")]
186    pub address: ::prost::alloc::string::String,
187}
188/// QueryAccountResponse is the response type for the Query/Account RPC method.
189#[allow(clippy::derive_partial_eq_without_eq)]
190#[derive(
191    Clone,
192    PartialEq,
193    Eq,
194    ::prost::Message,
195    ::serde::Serialize,
196    ::serde::Deserialize,
197    ::schemars::JsonSchema,
198    CosmwasmExt,
199)]
200#[proto_message(type_url = "/cosmos.auth.v1beta1.QueryAccountResponse")]
201pub struct QueryAccountResponse {
202    /// account defines the account of the corresponding address.
203    #[prost(message, optional, tag = "1")]
204    pub account: ::core::option::Option<crate::shim::Any>,
205}
206/// QueryParamsRequest is the request type for the Query/Params RPC method.
207#[allow(clippy::derive_partial_eq_without_eq)]
208#[derive(
209    Clone,
210    Copy,
211    PartialEq,
212    Eq,
213    ::prost::Message,
214    ::serde::Serialize,
215    ::serde::Deserialize,
216    ::schemars::JsonSchema,
217    CosmwasmExt,
218)]
219#[proto_message(type_url = "/cosmos.auth.v1beta1.QueryParamsRequest")]
220#[proto_query(
221    path = "/cosmos.auth.v1beta1.Query/Params",
222    response_type = QueryParamsResponse
223)]
224pub struct QueryParamsRequest {}
225/// QueryParamsResponse is the response type for the Query/Params RPC method.
226#[allow(clippy::derive_partial_eq_without_eq)]
227#[derive(
228    Clone,
229    Copy,
230    PartialEq,
231    Eq,
232    ::prost::Message,
233    ::serde::Serialize,
234    ::serde::Deserialize,
235    ::schemars::JsonSchema,
236    CosmwasmExt,
237)]
238#[proto_message(type_url = "/cosmos.auth.v1beta1.QueryParamsResponse")]
239pub struct QueryParamsResponse {
240    /// params defines the parameters of the module.
241    #[prost(message, optional, tag = "1")]
242    pub params: ::core::option::Option<Params>,
243}
244/// QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method.
245///
246/// Since: cosmos-sdk 0.46
247#[allow(clippy::derive_partial_eq_without_eq)]
248#[derive(
249    Clone,
250    Copy,
251    PartialEq,
252    Eq,
253    ::prost::Message,
254    ::serde::Serialize,
255    ::serde::Deserialize,
256    ::schemars::JsonSchema,
257    CosmwasmExt,
258)]
259#[proto_message(type_url = "/cosmos.auth.v1beta1.QueryModuleAccountsRequest")]
260#[proto_query(
261    path = "/cosmos.auth.v1beta1.Query/ModuleAccounts",
262    response_type = QueryModuleAccountsResponse
263)]
264pub struct QueryModuleAccountsRequest {}
265/// QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method.
266///
267/// Since: cosmos-sdk 0.46
268#[allow(clippy::derive_partial_eq_without_eq)]
269#[derive(
270    Clone,
271    PartialEq,
272    Eq,
273    ::prost::Message,
274    ::serde::Serialize,
275    ::serde::Deserialize,
276    ::schemars::JsonSchema,
277    CosmwasmExt,
278)]
279#[proto_message(type_url = "/cosmos.auth.v1beta1.QueryModuleAccountsResponse")]
280pub struct QueryModuleAccountsResponse {
281    #[prost(message, repeated, tag = "1")]
282    pub accounts: ::prost::alloc::vec::Vec<crate::shim::Any>,
283}
284/// QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method.
285#[allow(clippy::derive_partial_eq_without_eq)]
286#[derive(
287    Clone,
288    PartialEq,
289    Eq,
290    ::prost::Message,
291    ::serde::Serialize,
292    ::serde::Deserialize,
293    ::schemars::JsonSchema,
294    CosmwasmExt,
295)]
296#[proto_message(type_url = "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest")]
297#[proto_query(
298    path = "/cosmos.auth.v1beta1.Query/ModuleAccountByName",
299    response_type = QueryModuleAccountByNameResponse
300)]
301pub struct QueryModuleAccountByNameRequest {
302    #[prost(string, tag = "1")]
303    pub name: ::prost::alloc::string::String,
304}
305/// QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method.
306#[allow(clippy::derive_partial_eq_without_eq)]
307#[derive(
308    Clone,
309    PartialEq,
310    Eq,
311    ::prost::Message,
312    ::serde::Serialize,
313    ::serde::Deserialize,
314    ::schemars::JsonSchema,
315    CosmwasmExt,
316)]
317#[proto_message(type_url = "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse")]
318pub struct QueryModuleAccountByNameResponse {
319    #[prost(message, optional, tag = "1")]
320    pub account: ::core::option::Option<crate::shim::Any>,
321}
322/// Bech32PrefixRequest is the request type for Bech32Prefix rpc method.
323///
324/// Since: cosmos-sdk 0.46
325#[allow(clippy::derive_partial_eq_without_eq)]
326#[derive(
327    Clone,
328    Copy,
329    PartialEq,
330    Eq,
331    ::prost::Message,
332    ::serde::Serialize,
333    ::serde::Deserialize,
334    ::schemars::JsonSchema,
335    CosmwasmExt,
336)]
337#[proto_message(type_url = "/cosmos.auth.v1beta1.Bech32PrefixRequest")]
338#[proto_query(
339    path = "/cosmos.auth.v1beta1.Query/Bech32Prefix",
340    response_type = Bech32PrefixResponse
341)]
342pub struct Bech32PrefixRequest {}
343/// Bech32PrefixResponse is the response type for Bech32Prefix rpc method.
344///
345/// Since: cosmos-sdk 0.46
346#[allow(clippy::derive_partial_eq_without_eq)]
347#[derive(
348    Clone,
349    PartialEq,
350    Eq,
351    ::prost::Message,
352    ::serde::Serialize,
353    ::serde::Deserialize,
354    ::schemars::JsonSchema,
355    CosmwasmExt,
356)]
357#[proto_message(type_url = "/cosmos.auth.v1beta1.Bech32PrefixResponse")]
358pub struct Bech32PrefixResponse {
359    #[prost(string, tag = "1")]
360    pub bech32_prefix: ::prost::alloc::string::String,
361}
362/// AddressBytesToStringRequest is the request type for AddressString rpc method.
363///
364/// Since: cosmos-sdk 0.46
365#[allow(clippy::derive_partial_eq_without_eq)]
366#[derive(
367    Clone,
368    PartialEq,
369    Eq,
370    ::prost::Message,
371    ::serde::Serialize,
372    ::serde::Deserialize,
373    ::schemars::JsonSchema,
374    CosmwasmExt,
375)]
376#[proto_message(type_url = "/cosmos.auth.v1beta1.AddressBytesToStringRequest")]
377#[proto_query(
378    path = "/cosmos.auth.v1beta1.Query/AddressBytesToString",
379    response_type = AddressBytesToStringResponse
380)]
381pub struct AddressBytesToStringRequest {
382    #[prost(bytes = "vec", tag = "1")]
383    pub address_bytes: ::prost::alloc::vec::Vec<u8>,
384}
385/// AddressBytesToStringResponse is the response type for AddressString rpc method.
386///
387/// Since: cosmos-sdk 0.46
388#[allow(clippy::derive_partial_eq_without_eq)]
389#[derive(
390    Clone,
391    PartialEq,
392    Eq,
393    ::prost::Message,
394    ::serde::Serialize,
395    ::serde::Deserialize,
396    ::schemars::JsonSchema,
397    CosmwasmExt,
398)]
399#[proto_message(type_url = "/cosmos.auth.v1beta1.AddressBytesToStringResponse")]
400pub struct AddressBytesToStringResponse {
401    #[prost(string, tag = "1")]
402    pub address_string: ::prost::alloc::string::String,
403}
404/// AddressStringToBytesRequest is the request type for AccountBytes rpc method.
405///
406/// Since: cosmos-sdk 0.46
407#[allow(clippy::derive_partial_eq_without_eq)]
408#[derive(
409    Clone,
410    PartialEq,
411    Eq,
412    ::prost::Message,
413    ::serde::Serialize,
414    ::serde::Deserialize,
415    ::schemars::JsonSchema,
416    CosmwasmExt,
417)]
418#[proto_message(type_url = "/cosmos.auth.v1beta1.AddressStringToBytesRequest")]
419#[proto_query(
420    path = "/cosmos.auth.v1beta1.Query/AddressStringToBytes",
421    response_type = AddressStringToBytesResponse
422)]
423pub struct AddressStringToBytesRequest {
424    #[prost(string, tag = "1")]
425    pub address_string: ::prost::alloc::string::String,
426}
427/// AddressStringToBytesResponse is the response type for AddressBytes rpc method.
428///
429/// Since: cosmos-sdk 0.46
430#[allow(clippy::derive_partial_eq_without_eq)]
431#[derive(
432    Clone,
433    PartialEq,
434    Eq,
435    ::prost::Message,
436    ::serde::Serialize,
437    ::serde::Deserialize,
438    ::schemars::JsonSchema,
439    CosmwasmExt,
440)]
441#[proto_message(type_url = "/cosmos.auth.v1beta1.AddressStringToBytesResponse")]
442pub struct AddressStringToBytesResponse {
443    #[prost(bytes = "vec", tag = "1")]
444    pub address_bytes: ::prost::alloc::vec::Vec<u8>,
445}
446/// QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
447///
448/// Since: cosmos-sdk 0.46.2
449#[allow(clippy::derive_partial_eq_without_eq)]
450#[derive(
451    Clone,
452    Copy,
453    PartialEq,
454    Eq,
455    ::prost::Message,
456    ::serde::Serialize,
457    ::serde::Deserialize,
458    ::schemars::JsonSchema,
459    CosmwasmExt,
460)]
461#[proto_message(type_url = "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest")]
462#[proto_query(
463    path = "/cosmos.auth.v1beta1.Query/AccountAddressByID",
464    response_type = QueryAccountAddressByIdResponse
465)]
466pub struct QueryAccountAddressByIdRequest {
467    /// Deprecated, use account_id instead
468    ///
469    /// id is the account number of the address to be queried. This field
470    /// should have been an uint64 (like all account numbers), and will be
471    /// updated to uint64 in a future version of the auth query.
472    #[deprecated]
473    #[prost(int64, tag = "1")]
474    pub id: i64,
475    /// account_id is the account number of the address to be queried.
476    ///
477    /// Since: cosmos-sdk 0.47
478    #[prost(uint64, tag = "2")]
479    pub account_id: u64,
480}
481/// QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method
482///
483/// Since: cosmos-sdk 0.46.2
484#[allow(clippy::derive_partial_eq_without_eq)]
485#[derive(
486    Clone,
487    PartialEq,
488    Eq,
489    ::prost::Message,
490    ::serde::Serialize,
491    ::serde::Deserialize,
492    ::schemars::JsonSchema,
493    CosmwasmExt,
494)]
495#[proto_message(type_url = "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse")]
496pub struct QueryAccountAddressByIdResponse {
497    #[prost(string, tag = "1")]
498    pub account_address: ::prost::alloc::string::String,
499}
500/// QueryAccountInfoRequest is the Query/AccountInfo request type.
501///
502/// Since: cosmos-sdk 0.47
503#[allow(clippy::derive_partial_eq_without_eq)]
504#[derive(
505    Clone,
506    PartialEq,
507    Eq,
508    ::prost::Message,
509    ::serde::Serialize,
510    ::serde::Deserialize,
511    ::schemars::JsonSchema,
512    CosmwasmExt,
513)]
514#[proto_message(type_url = "/cosmos.auth.v1beta1.QueryAccountInfoRequest")]
515#[proto_query(
516    path = "/cosmos.auth.v1beta1.Query/AccountInfo",
517    response_type = QueryAccountInfoResponse
518)]
519pub struct QueryAccountInfoRequest {
520    /// address is the account address string.
521    #[prost(string, tag = "1")]
522    pub address: ::prost::alloc::string::String,
523}
524/// QueryAccountInfoResponse is the Query/AccountInfo response type.
525///
526/// Since: cosmos-sdk 0.47
527#[allow(clippy::derive_partial_eq_without_eq)]
528#[derive(
529    Clone,
530    PartialEq,
531    Eq,
532    ::prost::Message,
533    ::serde::Serialize,
534    ::serde::Deserialize,
535    ::schemars::JsonSchema,
536    CosmwasmExt,
537)]
538#[proto_message(type_url = "/cosmos.auth.v1beta1.QueryAccountInfoResponse")]
539pub struct QueryAccountInfoResponse {
540    /// info is the account info which is represented by BaseAccount.
541    #[prost(message, optional, tag = "1")]
542    pub info: ::core::option::Option<BaseAccount>,
543}
544/// MsgUpdateParams is the Msg/UpdateParams request type.
545///
546/// Since: cosmos-sdk 0.47
547#[allow(clippy::derive_partial_eq_without_eq)]
548#[derive(
549    Clone,
550    PartialEq,
551    Eq,
552    ::prost::Message,
553    ::serde::Serialize,
554    ::serde::Deserialize,
555    ::schemars::JsonSchema,
556    CosmwasmExt,
557)]
558#[proto_message(type_url = "/cosmos.auth.v1beta1.MsgUpdateParams")]
559pub struct MsgUpdateParams {
560    /// authority is the address that controls the module (defaults to x/gov unless overwritten).
561    #[prost(string, tag = "1")]
562    pub authority: ::prost::alloc::string::String,
563    /// params defines the x/auth parameters to update.
564    ///
565    /// NOTE: All parameters must be supplied.
566    #[prost(message, optional, tag = "2")]
567    pub params: ::core::option::Option<Params>,
568}
569/// MsgUpdateParamsResponse defines the response structure for executing a
570/// MsgUpdateParams message.
571///
572/// Since: cosmos-sdk 0.47
573#[allow(clippy::derive_partial_eq_without_eq)]
574#[derive(
575    Clone,
576    Copy,
577    PartialEq,
578    Eq,
579    ::prost::Message,
580    ::serde::Serialize,
581    ::serde::Deserialize,
582    ::schemars::JsonSchema,
583    CosmwasmExt,
584)]
585#[proto_message(type_url = "/cosmos.auth.v1beta1.MsgUpdateParamsResponse")]
586pub struct MsgUpdateParamsResponse {}