Skip to content

Commit

Permalink
chore: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrobot committed Jul 26, 2024
1 parent aeed443 commit ddecbab
Show file tree
Hide file tree
Showing 28 changed files with 1,685 additions and 4,151 deletions.
4 changes: 2 additions & 2 deletions packages/injective-protobuf/src/proto/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @generated

pub mod account;
pub mod auth;
pub mod coin;
pub mod distribution;
pub mod exchange;
pub mod tx;
pub mod oracle;
pub mod account;
pub mod tx;
6 changes: 2 additions & 4 deletions packages/injective-std/src/types/cosmos/auth/module/v1.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use osmosis_std_derive::CosmwasmExt;
/// Module is the config object for the auth module.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message)]
#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.auth.module.v1.Module")]
pub struct Module {
/// bech32_prefix is the bech32 account prefix for the app.
Expand All @@ -17,8 +16,7 @@ pub struct Module {
}
/// ModuleAccountPermission represents permissions for a module account.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message)]
#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.auth.module.v1.ModuleAccountPermission")]
pub struct ModuleAccountPermission {
/// account is the name of the module.
Expand Down
139 changes: 39 additions & 100 deletions packages/injective-std/src/types/cosmos/auth/v1beta1.rs

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions packages/injective-std/src/types/cosmos/authz/module/v1.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use osmosis_std_derive::CosmwasmExt;
/// Module is the config object of the authz module.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message)]
#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.authz.module.v1.Module")]
pub struct Module {}
113 changes: 33 additions & 80 deletions packages/injective-std/src/types/cosmos/authz/v1beta1.rs

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions packages/injective-std/src/types/cosmos/bank/module/v1.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
use osmosis_std_derive::CosmwasmExt;
/// Module is the config object of the bank module.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message)]
#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.bank.module.v1.Module")]
pub struct Module {
/// blocked_module_accounts_override configures exceptional module accounts which should be blocked from receiving
/// funds. If left empty it defaults to the list of account names supplied in the auth module configuration as
/// module_account_permissions
#[prost(string, repeated, tag = "1")]
pub blocked_module_accounts_override: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
pub blocked_module_accounts_override: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// authority defines the custom module authority. If not set, defaults to the governance module.
#[prost(string, tag = "2")]
pub authority: ::prost::alloc::string::String,
Expand Down
296 changes: 82 additions & 214 deletions packages/injective-std/src/types/cosmos/bank/v1beta1.rs

Large diffs are not rendered by default.

12 changes: 4 additions & 8 deletions packages/injective-std/src/types/cosmos/base/node/v1beta1.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
use osmosis_std_derive::CosmwasmExt;
/// ConfigRequest defines the request structure for the Config gRPC query.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message)]
#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.base.node.v1beta1.ConfigRequest")]
pub struct ConfigRequest {}
/// ConfigResponse defines the response structure for the Config gRPC query.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message)]
#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.base.node.v1beta1.ConfigResponse")]
pub struct ConfigResponse {
#[prost(string, tag = "1")]
Expand All @@ -26,14 +24,12 @@ pub struct ConfigResponse {
}
/// StateRequest defines the request structure for the status of a node.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message)]
#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.base.node.v1beta1.StatusRequest")]
pub struct StatusRequest {}
/// StateResponse defines the response structure for the status of a node.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message)]
#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.base.node.v1beta1.StatusResponse")]
pub struct StatusResponse {
/// earliest block height available in the store
Expand Down
14 changes: 4 additions & 10 deletions packages/injective-std/src/types/cosmos/base/query/v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ use osmosis_std_derive::CosmwasmExt;
/// PageRequest pagination = 2;
/// }
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message)]
#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(
type_url = "/cosmos.base.query.v1beta1.PageRequestPageRequestPageRequest"
)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.base.query.v1beta1.PageRequestPageRequestPageRequest")]
pub struct PageRequest {
/// key is a value returned in PageResponse.next_key to begin
/// querying the next page most efficiently. Only one of offset or key
Expand Down Expand Up @@ -55,11 +52,8 @@ pub struct PageRequest {
/// PageResponse page = 2;
/// }
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message)]
#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(
type_url = "/cosmos.base.query.v1beta1.PageResponsePageResponsePageResponse"
)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.base.query.v1beta1.PageResponsePageResponsePageResponse")]
pub struct PageResponse {
/// next_key is the key to be passed to PageRequest.key to
/// query the next page most efficiently. It will be empty if
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use osmosis_std_derive::CosmwasmExt;
/// Module is the config object of the distribution module.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message)]
#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.distribution.module.v1.Module")]
pub struct Module {
#[prost(string, tag = "1")]
Expand Down
Loading

0 comments on commit ddecbab

Please sign in to comment.