nibiru_std/proto/buf/
cosmos.authz.v1beta1.rs

1// @generated
2/// GenericAuthorization gives the grantee unrestricted permissions to execute
3/// the provided method on behalf of the granter's account.
4#[allow(clippy::derive_partial_eq_without_eq)]
5#[derive(Clone, PartialEq, ::prost::Message)]
6pub struct GenericAuthorization {
7    /// Msg, identified by it's type URL, to grant unrestricted permissions to execute
8    #[prost(string, tag="1")]
9    pub msg: ::prost::alloc::string::String,
10}
11/// Grant gives permissions to execute
12/// the provide method with expiration time.
13#[allow(clippy::derive_partial_eq_without_eq)]
14#[derive(Clone, PartialEq, ::prost::Message)]
15pub struct Grant {
16    #[prost(message, optional, tag="1")]
17    pub authorization: ::core::option::Option<::prost_types::Any>,
18    /// time when the grant will expire and will be pruned. If null, then the grant
19    /// doesn't have a time expiration (other conditions  in `authorization`
20    /// may apply to invalidate the grant)
21    #[prost(message, optional, tag="2")]
22    pub expiration: ::core::option::Option<::prost_types::Timestamp>,
23}
24/// GrantAuthorization extends a grant with both the addresses of the grantee and granter.
25/// It is used in genesis.proto and query.proto
26#[allow(clippy::derive_partial_eq_without_eq)]
27#[derive(Clone, PartialEq, ::prost::Message)]
28pub struct GrantAuthorization {
29    #[prost(string, tag="1")]
30    pub granter: ::prost::alloc::string::String,
31    #[prost(string, tag="2")]
32    pub grantee: ::prost::alloc::string::String,
33    #[prost(message, optional, tag="3")]
34    pub authorization: ::core::option::Option<::prost_types::Any>,
35    #[prost(message, optional, tag="4")]
36    pub expiration: ::core::option::Option<::prost_types::Timestamp>,
37}
38/// GrantQueueItem contains the list of TypeURL of a sdk.Msg.
39#[allow(clippy::derive_partial_eq_without_eq)]
40#[derive(Clone, PartialEq, ::prost::Message)]
41pub struct GrantQueueItem {
42    /// msg_type_urls contains the list of TypeURL of a sdk.Msg.
43    #[prost(string, repeated, tag="1")]
44    pub msg_type_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
45}
46/// EventGrant is emitted on Msg/Grant
47#[allow(clippy::derive_partial_eq_without_eq)]
48#[derive(Clone, PartialEq, ::prost::Message)]
49pub struct EventGrant {
50    /// Msg type URL for which an autorization is granted
51    #[prost(string, tag="2")]
52    pub msg_type_url: ::prost::alloc::string::String,
53    /// Granter account address
54    #[prost(string, tag="3")]
55    pub granter: ::prost::alloc::string::String,
56    /// Grantee account address
57    #[prost(string, tag="4")]
58    pub grantee: ::prost::alloc::string::String,
59}
60/// EventRevoke is emitted on Msg/Revoke
61#[allow(clippy::derive_partial_eq_without_eq)]
62#[derive(Clone, PartialEq, ::prost::Message)]
63pub struct EventRevoke {
64    /// Msg type URL for which an autorization is revoked
65    #[prost(string, tag="2")]
66    pub msg_type_url: ::prost::alloc::string::String,
67    /// Granter account address
68    #[prost(string, tag="3")]
69    pub granter: ::prost::alloc::string::String,
70    /// Grantee account address
71    #[prost(string, tag="4")]
72    pub grantee: ::prost::alloc::string::String,
73}
74/// GenesisState defines the authz module's genesis state.
75#[allow(clippy::derive_partial_eq_without_eq)]
76#[derive(Clone, PartialEq, ::prost::Message)]
77pub struct GenesisState {
78    #[prost(message, repeated, tag="1")]
79    pub authorization: ::prost::alloc::vec::Vec<GrantAuthorization>,
80}
81/// QueryGrantsRequest is the request type for the Query/Grants RPC method.
82#[allow(clippy::derive_partial_eq_without_eq)]
83#[derive(Clone, PartialEq, ::prost::Message)]
84pub struct QueryGrantsRequest {
85    #[prost(string, tag="1")]
86    pub granter: ::prost::alloc::string::String,
87    #[prost(string, tag="2")]
88    pub grantee: ::prost::alloc::string::String,
89    /// Optional, msg_type_url, when set, will query only grants matching given msg type.
90    #[prost(string, tag="3")]
91    pub msg_type_url: ::prost::alloc::string::String,
92    /// pagination defines an pagination for the request.
93    #[prost(message, optional, tag="4")]
94    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageRequest>,
95}
96/// QueryGrantsResponse is the response type for the Query/Authorizations RPC method.
97#[allow(clippy::derive_partial_eq_without_eq)]
98#[derive(Clone, PartialEq, ::prost::Message)]
99pub struct QueryGrantsResponse {
100    /// authorizations is a list of grants granted for grantee by granter.
101    #[prost(message, repeated, tag="1")]
102    pub grants: ::prost::alloc::vec::Vec<Grant>,
103    /// pagination defines an pagination for the response.
104    #[prost(message, optional, tag="2")]
105    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageResponse>,
106}
107/// QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method.
108#[allow(clippy::derive_partial_eq_without_eq)]
109#[derive(Clone, PartialEq, ::prost::Message)]
110pub struct QueryGranterGrantsRequest {
111    #[prost(string, tag="1")]
112    pub granter: ::prost::alloc::string::String,
113    /// pagination defines an pagination for the request.
114    #[prost(message, optional, tag="2")]
115    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageRequest>,
116}
117/// QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method.
118#[allow(clippy::derive_partial_eq_without_eq)]
119#[derive(Clone, PartialEq, ::prost::Message)]
120pub struct QueryGranterGrantsResponse {
121    /// grants is a list of grants granted by the granter.
122    #[prost(message, repeated, tag="1")]
123    pub grants: ::prost::alloc::vec::Vec<GrantAuthorization>,
124    /// pagination defines an pagination for the response.
125    #[prost(message, optional, tag="2")]
126    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageResponse>,
127}
128/// QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method.
129#[allow(clippy::derive_partial_eq_without_eq)]
130#[derive(Clone, PartialEq, ::prost::Message)]
131pub struct QueryGranteeGrantsRequest {
132    #[prost(string, tag="1")]
133    pub grantee: ::prost::alloc::string::String,
134    /// pagination defines an pagination for the request.
135    #[prost(message, optional, tag="2")]
136    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageRequest>,
137}
138/// QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method.
139#[allow(clippy::derive_partial_eq_without_eq)]
140#[derive(Clone, PartialEq, ::prost::Message)]
141pub struct QueryGranteeGrantsResponse {
142    /// grants is a list of grants granted to the grantee.
143    #[prost(message, repeated, tag="1")]
144    pub grants: ::prost::alloc::vec::Vec<GrantAuthorization>,
145    /// pagination defines an pagination for the response.
146    #[prost(message, optional, tag="2")]
147    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageResponse>,
148}
149/// MsgGrant is a request type for Grant method. It declares authorization to the grantee
150/// on behalf of the granter with the provided expiration time.
151#[allow(clippy::derive_partial_eq_without_eq)]
152#[derive(Clone, PartialEq, ::prost::Message)]
153pub struct MsgGrant {
154    #[prost(string, tag="1")]
155    pub granter: ::prost::alloc::string::String,
156    #[prost(string, tag="2")]
157    pub grantee: ::prost::alloc::string::String,
158    #[prost(message, optional, tag="3")]
159    pub grant: ::core::option::Option<Grant>,
160}
161/// MsgExecResponse defines the Msg/MsgExecResponse response type.
162#[allow(clippy::derive_partial_eq_without_eq)]
163#[derive(Clone, PartialEq, ::prost::Message)]
164pub struct MsgExecResponse {
165    #[prost(bytes="bytes", repeated, tag="1")]
166    pub results: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
167}
168/// MsgExec attempts to execute the provided messages using
169/// authorizations granted to the grantee. Each message should have only
170/// one signer corresponding to the granter of the authorization.
171#[allow(clippy::derive_partial_eq_without_eq)]
172#[derive(Clone, PartialEq, ::prost::Message)]
173pub struct MsgExec {
174    #[prost(string, tag="1")]
175    pub grantee: ::prost::alloc::string::String,
176    /// Execute Msg.
177    /// The x/authz will try to find a grant matching (msg.signers\[0\], grantee, MsgTypeURL(msg))
178    /// triple and validate it.
179    #[prost(message, repeated, tag="2")]
180    pub msgs: ::prost::alloc::vec::Vec<::prost_types::Any>,
181}
182/// MsgGrantResponse defines the Msg/MsgGrant response type.
183#[allow(clippy::derive_partial_eq_without_eq)]
184#[derive(Clone, PartialEq, ::prost::Message)]
185pub struct MsgGrantResponse {
186}
187/// MsgRevoke revokes any authorization with the provided sdk.Msg type on the
188/// granter's account with that has been granted to the grantee.
189#[allow(clippy::derive_partial_eq_without_eq)]
190#[derive(Clone, PartialEq, ::prost::Message)]
191pub struct MsgRevoke {
192    #[prost(string, tag="1")]
193    pub granter: ::prost::alloc::string::String,
194    #[prost(string, tag="2")]
195    pub grantee: ::prost::alloc::string::String,
196    #[prost(string, tag="3")]
197    pub msg_type_url: ::prost::alloc::string::String,
198}
199/// MsgRevokeResponse defines the Msg/MsgRevokeResponse response type.
200#[allow(clippy::derive_partial_eq_without_eq)]
201#[derive(Clone, PartialEq, ::prost::Message)]
202pub struct MsgRevokeResponse {
203}
204// @@protoc_insertion_point(module)