desmos_bindings/proto/cosmos/authz/
v1beta1.rs

1/// GenericAuthorization gives the grantee unrestricted permissions to execute
2/// the provided method on behalf of the granter's account.
3#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(
5    Clone,
6    PartialEq,
7    ::prost::Message,
8    schemars::JsonSchema,
9    serde::Serialize,
10    serde::Deserialize,
11    desmos_std_derive::CosmwasmExt,
12)]
13#[proto_message(type_url = "/cosmos.authz.v1beta1.GenericAuthorization")]
14#[serde(rename_all = "snake_case")]
15pub struct GenericAuthorization {
16    /// Msg, identified by it's type URL, to grant unrestricted permissions to execute
17    #[prost(string, tag = "1")]
18    pub msg: ::prost::alloc::string::String,
19}
20/// Grant gives permissions to execute
21/// the provide method with expiration time.
22#[allow(clippy::derive_partial_eq_without_eq)]
23#[derive(
24    Clone,
25    PartialEq,
26    ::prost::Message,
27    schemars::JsonSchema,
28    serde::Serialize,
29    serde::Deserialize,
30    desmos_std_derive::CosmwasmExt,
31)]
32#[proto_message(type_url = "/cosmos.authz.v1beta1.Grant")]
33#[serde(rename_all = "snake_case")]
34pub struct Grant {
35    #[prost(message, optional, tag = "1")]
36    pub authorization: ::core::option::Option<crate::shim::Any>,
37    /// time when the grant will expire and will be pruned. If null, then the grant
38    /// doesn't have a time expiration (other conditions  in `authorization`
39    /// may apply to invalidate the grant)
40    #[prost(message, optional, tag = "2")]
41    pub expiration: ::core::option::Option<crate::shim::Timestamp>,
42}
43/// GrantAuthorization extends a grant with both the addresses of the grantee and granter.
44/// It is used in genesis.proto and query.proto
45#[allow(clippy::derive_partial_eq_without_eq)]
46#[derive(
47    Clone,
48    PartialEq,
49    ::prost::Message,
50    schemars::JsonSchema,
51    serde::Serialize,
52    serde::Deserialize,
53    desmos_std_derive::CosmwasmExt,
54)]
55#[proto_message(type_url = "/cosmos.authz.v1beta1.GrantAuthorization")]
56#[serde(rename_all = "snake_case")]
57pub struct GrantAuthorization {
58    #[prost(string, tag = "1")]
59    pub granter: ::prost::alloc::string::String,
60    #[prost(string, tag = "2")]
61    pub grantee: ::prost::alloc::string::String,
62    #[prost(message, optional, tag = "3")]
63    pub authorization: ::core::option::Option<crate::shim::Any>,
64    #[prost(message, optional, tag = "4")]
65    pub expiration: ::core::option::Option<crate::shim::Timestamp>,
66}
67/// GrantQueueItem contains the list of TypeURL of a sdk.Msg.
68#[allow(clippy::derive_partial_eq_without_eq)]
69#[derive(
70    Clone,
71    PartialEq,
72    ::prost::Message,
73    schemars::JsonSchema,
74    serde::Serialize,
75    serde::Deserialize,
76    desmos_std_derive::CosmwasmExt,
77)]
78#[proto_message(type_url = "/cosmos.authz.v1beta1.GrantQueueItem")]
79#[serde(rename_all = "snake_case")]
80pub struct GrantQueueItem {
81    /// msg_type_urls contains the list of TypeURL of a sdk.Msg.
82    #[prost(string, repeated, tag = "1")]
83    pub msg_type_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
84}