|
| 1 | +use injective_std_derive::CosmwasmExt; |
| 2 | +/// Module is the config object for the auth module. |
| 3 | +#[allow(clippy::derive_partial_eq_without_eq)] |
| 4 | +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] |
| 5 | +#[proto_message(type_url = "/cosmos.auth.module.v1.Module")] |
| 6 | +pub struct Module { |
| 7 | + /// bech32_prefix is the bech32 account prefix for the app. |
| 8 | + #[prost(string, tag = "1")] |
| 9 | + pub bech32_prefix: ::prost::alloc::string::String, |
| 10 | + /// module_account_permissions are module account permissions. |
| 11 | + #[prost(message, repeated, tag = "2")] |
| 12 | + pub module_account_permissions: ::prost::alloc::vec::Vec<ModuleAccountPermission>, |
| 13 | + /// authority defines the custom module authority. If not set, defaults to the governance module. |
| 14 | + #[prost(string, tag = "3")] |
| 15 | + pub authority: ::prost::alloc::string::String, |
| 16 | +} |
| 17 | +/// ModuleAccountPermission represents permissions for a module account. |
| 18 | +#[allow(clippy::derive_partial_eq_without_eq)] |
| 19 | +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] |
| 20 | +#[proto_message(type_url = "/cosmos.auth.module.v1.ModuleAccountPermission")] |
| 21 | +pub struct ModuleAccountPermission { |
| 22 | + /// account is the name of the module. |
| 23 | + #[prost(string, tag = "1")] |
| 24 | + pub account: ::prost::alloc::string::String, |
| 25 | + /// permissions are the permissions this module has. Currently recognized |
| 26 | + /// values are minter, burner and staking. |
| 27 | + #[prost(string, repeated, tag = "2")] |
| 28 | + pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, |
| 29 | +} |
0 commit comments