nibiru_std/proto/buf/
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<::prost_types::Any>,
12    #[prost(uint64, tag="3")]
13    pub account_number: u64,
14    #[prost(uint64, tag="4")]
15    pub sequence: u64,
16}
17/// ModuleAccount defines an account for modules that holds coins on a pool.
18#[allow(clippy::derive_partial_eq_without_eq)]
19#[derive(Clone, PartialEq, ::prost::Message)]
20pub struct ModuleAccount {
21    #[prost(message, optional, tag="1")]
22    pub base_account: ::core::option::Option<BaseAccount>,
23    #[prost(string, tag="2")]
24    pub name: ::prost::alloc::string::String,
25    #[prost(string, repeated, tag="3")]
26    pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
27}
28/// ModuleCredential represents a unclaimable pubkey for base accounts controlled by modules.
29///
30/// Since: cosmos-sdk 0.47
31#[allow(clippy::derive_partial_eq_without_eq)]
32#[derive(Clone, PartialEq, ::prost::Message)]
33pub struct ModuleCredential {
34    /// module_name is the name of the module used for address derivation (passed into address.Module).
35    #[prost(string, tag="1")]
36    pub module_name: ::prost::alloc::string::String,
37    /// derivation_keys is for deriving a module account address (passed into address.Module)
38    /// adding more keys creates sub-account addresses (passed into address.Derive)
39    #[prost(bytes="bytes", repeated, tag="2")]
40    pub derivation_keys: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
41}
42/// Params defines the parameters for the auth module.
43#[allow(clippy::derive_partial_eq_without_eq)]
44#[derive(Clone, PartialEq, ::prost::Message)]
45pub struct Params {
46    #[prost(uint64, tag="1")]
47    pub max_memo_characters: u64,
48    #[prost(uint64, tag="2")]
49    pub tx_sig_limit: u64,
50    #[prost(uint64, tag="3")]
51    pub tx_size_cost_per_byte: u64,
52    #[prost(uint64, tag="4")]
53    pub sig_verify_cost_ed25519: u64,
54    #[prost(uint64, tag="5")]
55    pub sig_verify_cost_secp256k1: u64,
56}
57/// GenesisState defines the auth module's genesis state.
58#[allow(clippy::derive_partial_eq_without_eq)]
59#[derive(Clone, PartialEq, ::prost::Message)]
60pub struct GenesisState {
61    /// params defines all the parameters of the module.
62    #[prost(message, optional, tag="1")]
63    pub params: ::core::option::Option<Params>,
64    /// accounts are the accounts present at genesis.
65    #[prost(message, repeated, tag="2")]
66    pub accounts: ::prost::alloc::vec::Vec<::prost_types::Any>,
67}
68/// QueryAccountsRequest is the request type for the Query/Accounts RPC method.
69///
70/// Since: cosmos-sdk 0.43
71#[allow(clippy::derive_partial_eq_without_eq)]
72#[derive(Clone, PartialEq, ::prost::Message)]
73pub struct QueryAccountsRequest {
74    /// pagination defines an optional pagination for the request.
75    #[prost(message, optional, tag="1")]
76    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageRequest>,
77}
78/// QueryAccountsResponse is the response type for the Query/Accounts RPC method.
79///
80/// Since: cosmos-sdk 0.43
81#[allow(clippy::derive_partial_eq_without_eq)]
82#[derive(Clone, PartialEq, ::prost::Message)]
83pub struct QueryAccountsResponse {
84    /// accounts are the existing accounts
85    #[prost(message, repeated, tag="1")]
86    pub accounts: ::prost::alloc::vec::Vec<::prost_types::Any>,
87    /// pagination defines the pagination in the response.
88    #[prost(message, optional, tag="2")]
89    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageResponse>,
90}
91/// QueryAccountRequest is the request type for the Query/Account RPC method.
92#[allow(clippy::derive_partial_eq_without_eq)]
93#[derive(Clone, PartialEq, ::prost::Message)]
94pub struct QueryAccountRequest {
95    /// address defines the address to query for.
96    #[prost(string, tag="1")]
97    pub address: ::prost::alloc::string::String,
98}
99/// QueryAccountResponse is the response type for the Query/Account RPC method.
100#[allow(clippy::derive_partial_eq_without_eq)]
101#[derive(Clone, PartialEq, ::prost::Message)]
102pub struct QueryAccountResponse {
103    /// account defines the account of the corresponding address.
104    #[prost(message, optional, tag="1")]
105    pub account: ::core::option::Option<::prost_types::Any>,
106}
107/// QueryParamsRequest is the request type for the Query/Params RPC method.
108#[allow(clippy::derive_partial_eq_without_eq)]
109#[derive(Clone, PartialEq, ::prost::Message)]
110pub struct QueryParamsRequest {
111}
112/// QueryParamsResponse is the response type for the Query/Params RPC method.
113#[allow(clippy::derive_partial_eq_without_eq)]
114#[derive(Clone, PartialEq, ::prost::Message)]
115pub struct QueryParamsResponse {
116    /// params defines the parameters of the module.
117    #[prost(message, optional, tag="1")]
118    pub params: ::core::option::Option<Params>,
119}
120/// QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method.
121///
122/// Since: cosmos-sdk 0.46
123#[allow(clippy::derive_partial_eq_without_eq)]
124#[derive(Clone, PartialEq, ::prost::Message)]
125pub struct QueryModuleAccountsRequest {
126}
127/// QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method.
128///
129/// Since: cosmos-sdk 0.46
130#[allow(clippy::derive_partial_eq_without_eq)]
131#[derive(Clone, PartialEq, ::prost::Message)]
132pub struct QueryModuleAccountsResponse {
133    #[prost(message, repeated, tag="1")]
134    pub accounts: ::prost::alloc::vec::Vec<::prost_types::Any>,
135}
136/// QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method.
137#[allow(clippy::derive_partial_eq_without_eq)]
138#[derive(Clone, PartialEq, ::prost::Message)]
139pub struct QueryModuleAccountByNameRequest {
140    #[prost(string, tag="1")]
141    pub name: ::prost::alloc::string::String,
142}
143/// QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method.
144#[allow(clippy::derive_partial_eq_without_eq)]
145#[derive(Clone, PartialEq, ::prost::Message)]
146pub struct QueryModuleAccountByNameResponse {
147    #[prost(message, optional, tag="1")]
148    pub account: ::core::option::Option<::prost_types::Any>,
149}
150/// Bech32PrefixRequest is the request type for Bech32Prefix rpc method.
151///
152/// Since: cosmos-sdk 0.46
153#[allow(clippy::derive_partial_eq_without_eq)]
154#[derive(Clone, PartialEq, ::prost::Message)]
155pub struct Bech32PrefixRequest {
156}
157/// Bech32PrefixResponse is the response type for Bech32Prefix rpc method.
158///
159/// Since: cosmos-sdk 0.46
160#[allow(clippy::derive_partial_eq_without_eq)]
161#[derive(Clone, PartialEq, ::prost::Message)]
162pub struct Bech32PrefixResponse {
163    #[prost(string, tag="1")]
164    pub bech32_prefix: ::prost::alloc::string::String,
165}
166/// AddressBytesToStringRequest is the request type for AddressString rpc method.
167///
168/// Since: cosmos-sdk 0.46
169#[allow(clippy::derive_partial_eq_without_eq)]
170#[derive(Clone, PartialEq, ::prost::Message)]
171pub struct AddressBytesToStringRequest {
172    #[prost(bytes="bytes", tag="1")]
173    pub address_bytes: ::prost::bytes::Bytes,
174}
175/// AddressBytesToStringResponse is the response type for AddressString rpc method.
176///
177/// Since: cosmos-sdk 0.46
178#[allow(clippy::derive_partial_eq_without_eq)]
179#[derive(Clone, PartialEq, ::prost::Message)]
180pub struct AddressBytesToStringResponse {
181    #[prost(string, tag="1")]
182    pub address_string: ::prost::alloc::string::String,
183}
184/// AddressStringToBytesRequest is the request type for AccountBytes rpc method.
185///
186/// Since: cosmos-sdk 0.46
187#[allow(clippy::derive_partial_eq_without_eq)]
188#[derive(Clone, PartialEq, ::prost::Message)]
189pub struct AddressStringToBytesRequest {
190    #[prost(string, tag="1")]
191    pub address_string: ::prost::alloc::string::String,
192}
193/// AddressStringToBytesResponse is the response type for AddressBytes rpc method.
194///
195/// Since: cosmos-sdk 0.46
196#[allow(clippy::derive_partial_eq_without_eq)]
197#[derive(Clone, PartialEq, ::prost::Message)]
198pub struct AddressStringToBytesResponse {
199    #[prost(bytes="bytes", tag="1")]
200    pub address_bytes: ::prost::bytes::Bytes,
201}
202/// QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
203///
204/// Since: cosmos-sdk 0.46.2
205#[allow(clippy::derive_partial_eq_without_eq)]
206#[derive(Clone, PartialEq, ::prost::Message)]
207pub struct QueryAccountAddressByIdRequest {
208    /// Deprecated, use account_id instead
209    ///
210    /// id is the account number of the address to be queried. This field
211    /// should have been an uint64 (like all account numbers), and will be
212    /// updated to uint64 in a future version of the auth query.
213    #[deprecated]
214    #[prost(int64, tag="1")]
215    pub id: i64,
216    /// account_id is the account number of the address to be queried.
217    ///
218    /// Since: cosmos-sdk 0.47
219    #[prost(uint64, tag="2")]
220    pub account_id: u64,
221}
222/// QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method
223///
224/// Since: cosmos-sdk 0.46.2
225#[allow(clippy::derive_partial_eq_without_eq)]
226#[derive(Clone, PartialEq, ::prost::Message)]
227pub struct QueryAccountAddressByIdResponse {
228    #[prost(string, tag="1")]
229    pub account_address: ::prost::alloc::string::String,
230}
231/// QueryAccountInfoRequest is the Query/AccountInfo request type.
232///
233/// Since: cosmos-sdk 0.47
234#[allow(clippy::derive_partial_eq_without_eq)]
235#[derive(Clone, PartialEq, ::prost::Message)]
236pub struct QueryAccountInfoRequest {
237    /// address is the account address string.
238    #[prost(string, tag="1")]
239    pub address: ::prost::alloc::string::String,
240}
241/// QueryAccountInfoResponse is the Query/AccountInfo response type.
242///
243/// Since: cosmos-sdk 0.47
244#[allow(clippy::derive_partial_eq_without_eq)]
245#[derive(Clone, PartialEq, ::prost::Message)]
246pub struct QueryAccountInfoResponse {
247    /// info is the account info which is represented by BaseAccount.
248    #[prost(message, optional, tag="1")]
249    pub info: ::core::option::Option<BaseAccount>,
250}
251/// MsgUpdateParams is the Msg/UpdateParams request type.
252///
253/// Since: cosmos-sdk 0.47
254#[allow(clippy::derive_partial_eq_without_eq)]
255#[derive(Clone, PartialEq, ::prost::Message)]
256pub struct MsgUpdateParams {
257    /// authority is the address that controls the module (defaults to x/gov unless overwritten).
258    #[prost(string, tag="1")]
259    pub authority: ::prost::alloc::string::String,
260    /// params defines the x/auth parameters to update.
261    ///
262    /// NOTE: All parameters must be supplied.
263    #[prost(message, optional, tag="2")]
264    pub params: ::core::option::Option<Params>,
265}
266/// MsgUpdateParamsResponse defines the response structure for executing a
267/// MsgUpdateParams message.
268///
269/// Since: cosmos-sdk 0.47
270#[allow(clippy::derive_partial_eq_without_eq)]
271#[derive(Clone, PartialEq, ::prost::Message)]
272pub struct MsgUpdateParamsResponse {
273}
274// @@protoc_insertion_point(module)