Skip to content

Commit 3a9ad51

Browse files
committed
feat: fmt
1 parent b34157b commit 3a9ad51

File tree

31 files changed

+483
-29
lines changed

31 files changed

+483
-29
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pub mod module;
2+
pub mod v1beta1;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub mod v1;
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
}

packages/injective-std/src/types/cosmos/auth/v1beta1.rs

Lines changed: 421 additions & 0 deletions
Large diffs are not rendered by default.

packages/injective-std/src/types/cosmos/authz/module/v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use osmosis_std_derive::CosmwasmExt;
1+
use injective_std_derive::CosmwasmExt;
22
/// Module is the config object of the authz module.
33
#[allow(clippy::derive_partial_eq_without_eq)]
44
#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]

packages/injective-std/src/types/cosmos/authz/v1beta1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use osmosis_std_derive::CosmwasmExt;
1+
use injective_std_derive::CosmwasmExt;
22
/// GenericAuthorization gives the grantee unrestricted permissions to execute
33
/// the provided method on behalf of the granter's account.
44
#[allow(clippy::derive_partial_eq_without_eq)]

packages/injective-std/src/types/cosmos/bank/module/v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use osmosis_std_derive::CosmwasmExt;
1+
use injective_std_derive::CosmwasmExt;
22
/// Module is the config object of the bank module.
33
#[allow(clippy::derive_partial_eq_without_eq)]
44
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]

packages/injective-std/src/types/cosmos/bank/v1beta1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use osmosis_std_derive::CosmwasmExt;
1+
use injective_std_derive::CosmwasmExt;
22
/// SendAuthorization allows the grantee to spend up to spend_limit coins from
33
/// the granter's account.
44
///

packages/injective-std/src/types/cosmos/base/node/v1beta1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use osmosis_std_derive::CosmwasmExt;
1+
use injective_std_derive::CosmwasmExt;
22
/// ConfigRequest defines the request structure for the Config gRPC query.
33
#[allow(clippy::derive_partial_eq_without_eq)]
44
#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]

packages/injective-std/src/types/cosmos/base/query/v1beta1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use osmosis_std_derive::CosmwasmExt;
1+
use injective_std_derive::CosmwasmExt;
22
/// PageRequest is to be embedded in gRPC request messages for efficient
33
/// pagination. Ex:
44
///

0 commit comments

Comments
 (0)