diff --git a/packages/injective-protobuf/src/proto/mod.rs b/packages/injective-protobuf/src/proto/mod.rs index de6005c4..de0fb666 100644 --- a/packages/injective-protobuf/src/proto/mod.rs +++ b/packages/injective-protobuf/src/proto/mod.rs @@ -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; diff --git a/packages/injective-std/src/types/cosmos/auth/module/v1.rs b/packages/injective-std/src/types/cosmos/auth/module/v1.rs index 42ec7fe6..419b8338 100644 --- a/packages/injective-std/src/types/cosmos/auth/module/v1.rs +++ b/packages/injective-std/src/types/cosmos/auth/module/v1.rs @@ -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. @@ -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. diff --git a/packages/injective-std/src/types/cosmos/auth/v1beta1.rs b/packages/injective-std/src/types/cosmos/auth/v1beta1.rs index 833f3c1a..a168ee21 100644 --- a/packages/injective-std/src/types/cosmos/auth/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/auth/v1beta1.rs @@ -3,8 +3,7 @@ use osmosis_std_derive::CosmwasmExt; /// for basic account functionality. Any custom account type should extend this /// type for additional functionality (e.g. vesting). #[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.v1beta1.BaseAccount")] pub struct BaseAccount { #[prost(string, tag = "1")] @@ -26,8 +25,7 @@ pub struct BaseAccount { } /// ModuleAccount defines an account for modules that holds coins on a pool. #[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.v1beta1.ModuleAccount")] pub struct ModuleAccount { #[prost(message, optional, tag = "1")] @@ -41,8 +39,7 @@ pub struct ModuleAccount { /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.ModuleCredential")] pub struct ModuleCredential { /// module_name is the name of the module used for address derivation (passed into address.Module). @@ -55,8 +52,7 @@ pub struct ModuleCredential { } /// Params defines the parameters 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.v1beta1.Params")] pub struct Params { #[prost(uint64, tag = "1")] @@ -92,8 +88,7 @@ pub struct Params { } /// GenesisState defines the auth module's genesis state. #[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.v1beta1.GenesisState")] pub struct GenesisState { /// params defines all the parameters of the module. @@ -107,8 +102,7 @@ pub struct GenesisState { /// /// Since: cosmos-sdk 0.43 #[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.v1beta1.QueryAccountsRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/Accounts", @@ -117,16 +111,13 @@ pub struct GenesisState { pub struct QueryAccountsRequest { /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "1")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryAccountsResponse is the response type for the Query/Accounts RPC method. /// /// Since: cosmos-sdk 0.43 #[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.v1beta1.QueryAccountsResponse")] pub struct QueryAccountsResponse { /// accounts are the existing accounts @@ -134,14 +125,11 @@ pub struct QueryAccountsResponse { pub accounts: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryAccountRequest is the request type for the Query/Account RPC method. #[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.v1beta1.QueryAccountRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/Account", @@ -154,8 +142,7 @@ pub struct QueryAccountRequest { } /// QueryAccountResponse is the response type for the Query/Account RPC method. #[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.v1beta1.QueryAccountResponse")] pub struct QueryAccountResponse { /// account defines the account of the corresponding address. @@ -164,8 +151,7 @@ pub struct QueryAccountResponse { } /// QueryParamsRequest is the request type for the Query/Params RPC method. #[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.v1beta1.QueryParamsRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/Params", @@ -174,8 +160,7 @@ pub struct QueryAccountResponse { pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. #[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.v1beta1.QueryParamsResponse")] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -186,8 +171,7 @@ pub struct QueryParamsResponse { /// /// Since: cosmos-sdk 0.46 #[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.v1beta1.QueryModuleAccountsRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/ModuleAccounts", @@ -198,8 +182,7 @@ pub struct QueryModuleAccountsRequest {} /// /// Since: cosmos-sdk 0.46 #[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.v1beta1.QueryModuleAccountsResponse")] pub struct QueryModuleAccountsResponse { #[prost(message, repeated, tag = "1")] @@ -207,8 +190,7 @@ pub struct QueryModuleAccountsResponse { } /// QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. #[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.v1beta1.QueryModuleAccountByNameRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/ModuleAccountByName", @@ -220,8 +202,7 @@ pub struct QueryModuleAccountByNameRequest { } /// QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. #[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.v1beta1.QueryModuleAccountByNameResponse")] pub struct QueryModuleAccountByNameResponse { #[prost(message, optional, tag = "1")] @@ -231,8 +212,7 @@ pub struct QueryModuleAccountByNameResponse { /// /// Since: cosmos-sdk 0.46 #[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.v1beta1.Bech32PrefixRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/Bech32Prefix", @@ -243,8 +223,7 @@ pub struct Bech32PrefixRequest {} /// /// Since: cosmos-sdk 0.46 #[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.v1beta1.Bech32PrefixResponse")] pub struct Bech32PrefixResponse { #[prost(string, tag = "1")] @@ -254,8 +233,7 @@ pub struct Bech32PrefixResponse { /// /// Since: cosmos-sdk 0.46 #[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.v1beta1.AddressBytesToStringRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/AddressBytesToString", @@ -269,8 +247,7 @@ pub struct AddressBytesToStringRequest { /// /// Since: cosmos-sdk 0.46 #[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.v1beta1.AddressBytesToStringResponse")] pub struct AddressBytesToStringResponse { #[prost(string, tag = "1")] @@ -280,8 +257,7 @@ pub struct AddressBytesToStringResponse { /// /// Since: cosmos-sdk 0.46 #[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.v1beta1.AddressStringToBytesRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/AddressStringToBytes", @@ -295,8 +271,7 @@ pub struct AddressStringToBytesRequest { /// /// Since: cosmos-sdk 0.46 #[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.v1beta1.AddressStringToBytesResponse")] pub struct AddressStringToBytesResponse { #[prost(bytes = "vec", tag = "1")] @@ -306,8 +281,7 @@ pub struct AddressStringToBytesResponse { /// /// Since: cosmos-sdk 0.46.2 #[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.v1beta1.QueryAccountAddressByIDRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/AccountAddressByID", @@ -342,8 +316,7 @@ pub struct QueryAccountAddressByIdRequest { /// /// Since: cosmos-sdk 0.46.2 #[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.v1beta1.QueryAccountAddressByIDResponse")] pub struct QueryAccountAddressByIdResponse { #[prost(string, tag = "1")] @@ -353,8 +326,7 @@ pub struct QueryAccountAddressByIdResponse { /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.QueryAccountInfoRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/AccountInfo", @@ -369,8 +341,7 @@ pub struct QueryAccountInfoRequest { /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.QueryAccountInfoResponse")] pub struct QueryAccountInfoResponse { /// info is the account info which is represented by BaseAccount. @@ -381,8 +352,7 @@ pub struct QueryAccountInfoResponse { /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.MsgUpdateParams")] pub struct MsgUpdateParams { /// authority is the address that controls the module (defaults to x/gov unless overwritten). @@ -399,8 +369,7 @@ pub struct MsgUpdateParams { /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} pub struct AuthQuerier<'a, Q: cosmwasm_std::CustomQuery> { @@ -412,45 +381,24 @@ impl<'a, Q: cosmwasm_std::CustomQuery> AuthQuerier<'a, Q> { } pub fn accounts( &self, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { QueryAccountsRequest { pagination }.query(self.querier) } - pub fn account( - &self, - address: ::prost::alloc::string::String, - ) -> Result { + pub fn account(&self, address: ::prost::alloc::string::String) -> Result { QueryAccountRequest { address }.query(self.querier) } - pub fn account_address_by_id( - &self, - id: i64, - account_id: u64, - ) -> Result { - QueryAccountAddressByIdRequest { - id, - account_id, - } - .query(self.querier) + pub fn account_address_by_id(&self, id: i64, account_id: u64) -> Result { + QueryAccountAddressByIdRequest { id, account_id }.query(self.querier) } pub fn params(&self) -> Result { QueryParamsRequest {}.query(self.querier) } - pub fn module_accounts( - &self, - ) -> Result { + pub fn module_accounts(&self) -> Result { QueryModuleAccountsRequest {}.query(self.querier) } - pub fn module_account_by_name( - &self, - name: ::prost::alloc::string::String, - ) -> Result { - QueryModuleAccountByNameRequest { - name, - } - .query(self.querier) + pub fn module_account_by_name(&self, name: ::prost::alloc::string::String) -> Result { + QueryModuleAccountByNameRequest { name }.query(self.querier) } pub fn bech32_prefix(&self) -> Result { Bech32PrefixRequest {}.query(self.querier) @@ -459,24 +407,15 @@ impl<'a, Q: cosmwasm_std::CustomQuery> AuthQuerier<'a, Q> { &self, address_bytes: ::prost::alloc::vec::Vec, ) -> Result { - AddressBytesToStringRequest { - address_bytes, - } - .query(self.querier) + AddressBytesToStringRequest { address_bytes }.query(self.querier) } pub fn address_string_to_bytes( &self, address_string: ::prost::alloc::string::String, ) -> Result { - AddressStringToBytesRequest { - address_string, - } - .query(self.querier) + AddressStringToBytesRequest { address_string }.query(self.querier) } - pub fn account_info( - &self, - address: ::prost::alloc::string::String, - ) -> Result { + pub fn account_info(&self, address: ::prost::alloc::string::String) -> Result { QueryAccountInfoRequest { address }.query(self.querier) } } diff --git a/packages/injective-std/src/types/cosmos/authz/module/v1.rs b/packages/injective-std/src/types/cosmos/authz/module/v1.rs index 5f8292ac..780ad8cc 100644 --- a/packages/injective-std/src/types/cosmos/authz/module/v1.rs +++ b/packages/injective-std/src/types/cosmos/authz/module/v1.rs @@ -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 {} diff --git a/packages/injective-std/src/types/cosmos/authz/v1beta1.rs b/packages/injective-std/src/types/cosmos/authz/v1beta1.rs index dea940db..3d255fb2 100644 --- a/packages/injective-std/src/types/cosmos/authz/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/authz/v1beta1.rs @@ -2,8 +2,7 @@ use osmosis_std_derive::CosmwasmExt; /// GenericAuthorization gives the grantee unrestricted permissions to execute /// the provided method on behalf of the granter's 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.authz.v1beta1.GenericAuthorization")] pub struct GenericAuthorization { /// Msg, identified by it's type URL, to grant unrestricted permissions to execute @@ -13,8 +12,7 @@ pub struct GenericAuthorization { /// Grant gives permissions to execute /// the provide method with expiration time. #[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.v1beta1.Grant")] pub struct Grant { #[prost(message, optional, tag = "1")] @@ -28,8 +26,7 @@ pub struct Grant { /// GrantAuthorization extends a grant with both the addresses of the grantee and granter. /// It is used in genesis.proto and query.proto #[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.v1beta1.GrantAuthorization")] pub struct GrantAuthorization { #[prost(string, tag = "1")] @@ -43,8 +40,7 @@ pub struct GrantAuthorization { } /// GrantQueueItem contains the list of TypeURL of a sdk.Msg. #[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.v1beta1.GrantQueueItem")] pub struct GrantQueueItem { /// msg_type_urls contains the list of TypeURL of a sdk.Msg. @@ -53,8 +49,7 @@ pub struct GrantQueueItem { } /// EventGrant is emitted on Msg/Grant #[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.v1beta1.EventGrant")] pub struct EventGrant { /// Msg type URL for which an autorization is granted @@ -69,8 +64,7 @@ pub struct EventGrant { } /// EventRevoke is emitted on Msg/Revoke #[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.v1beta1.EventRevoke")] pub struct EventRevoke { /// Msg type URL for which an autorization is revoked @@ -85,8 +79,7 @@ pub struct EventRevoke { } /// GenesisState defines the authz module's genesis state. #[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.v1beta1.GenesisState")] pub struct GenesisState { #[prost(message, repeated, tag = "1")] @@ -94,8 +87,7 @@ pub struct GenesisState { } /// QueryGrantsRequest is the request type for the Query/Grants RPC method. #[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.v1beta1.QueryGrantsRequest")] #[proto_query( path = "/cosmos.authz.v1beta1.Query/Grants", @@ -111,14 +103,11 @@ pub struct QueryGrantsRequest { pub msg_type_url: ::prost::alloc::string::String, /// pagination defines an pagination for the request. #[prost(message, optional, tag = "4")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryGrantsResponse is the response type for the Query/Authorizations RPC method. #[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.v1beta1.QueryGrantsResponse")] pub struct QueryGrantsResponse { /// authorizations is a list of grants granted for grantee by granter. @@ -126,14 +115,11 @@ pub struct QueryGrantsResponse { pub grants: ::prost::alloc::vec::Vec, /// pagination defines an pagination for the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. #[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.v1beta1.QueryGranterGrantsRequest")] #[proto_query( path = "/cosmos.authz.v1beta1.Query/GranterGrants", @@ -144,14 +130,11 @@ pub struct QueryGranterGrantsRequest { pub granter: ::prost::alloc::string::String, /// pagination defines an pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. #[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.v1beta1.QueryGranterGrantsResponse")] pub struct QueryGranterGrantsResponse { /// grants is a list of grants granted by the granter. @@ -159,14 +142,11 @@ pub struct QueryGranterGrantsResponse { pub grants: ::prost::alloc::vec::Vec, /// pagination defines an pagination for the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. #[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.v1beta1.QueryGranteeGrantsRequest")] #[proto_query( path = "/cosmos.authz.v1beta1.Query/GranteeGrants", @@ -177,14 +157,11 @@ pub struct QueryGranteeGrantsRequest { pub grantee: ::prost::alloc::string::String, /// pagination defines an pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. #[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.v1beta1.QueryGranteeGrantsResponse")] pub struct QueryGranteeGrantsResponse { /// grants is a list of grants granted to the grantee. @@ -192,15 +169,12 @@ pub struct QueryGranteeGrantsResponse { pub grants: ::prost::alloc::vec::Vec, /// pagination defines an pagination for the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// MsgGrant is a request type for Grant method. It declares authorization to the grantee /// on behalf of the granter with the provided expiration time. #[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.v1beta1.MsgGrant")] pub struct MsgGrant { #[prost(string, tag = "1")] @@ -212,8 +186,7 @@ pub struct MsgGrant { } /// MsgExecResponse defines the Msg/MsgExecResponse response type. #[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.v1beta1.MsgExecResponse")] pub struct MsgExecResponse { #[prost(bytes = "vec", repeated, tag = "1")] @@ -223,8 +196,7 @@ pub struct MsgExecResponse { /// authorizations granted to the grantee. Each message should have only /// one signer corresponding to the granter of the authorization. #[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.v1beta1.MsgExec")] pub struct MsgExec { #[prost(string, tag = "1")] @@ -237,15 +209,13 @@ pub struct MsgExec { } /// MsgGrantResponse defines the Msg/MsgGrant response type. #[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.v1beta1.MsgGrantResponse")] pub struct MsgGrantResponse {} /// MsgRevoke revokes any authorization with the provided sdk.Msg type on the /// granter's account with that has been granted to the grantee. #[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.v1beta1.MsgRevoke")] pub struct MsgRevoke { #[prost(string, tag = "1")] @@ -257,8 +227,7 @@ pub struct MsgRevoke { } /// MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. #[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.v1beta1.MsgRevokeResponse")] pub struct MsgRevokeResponse {} pub struct AuthzQuerier<'a, Q: cosmwasm_std::CustomQuery> { @@ -273,9 +242,7 @@ impl<'a, Q: cosmwasm_std::CustomQuery> AuthzQuerier<'a, Q> { granter: ::prost::alloc::string::String, grantee: ::prost::alloc::string::String, msg_type_url: ::prost::alloc::string::String, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { QueryGrantsRequest { granter, @@ -283,32 +250,20 @@ impl<'a, Q: cosmwasm_std::CustomQuery> AuthzQuerier<'a, Q> { msg_type_url, pagination, } - .query(self.querier) + .query(self.querier) } pub fn granter_grants( &self, granter: ::prost::alloc::string::String, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryGranterGrantsRequest { - granter, - pagination, - } - .query(self.querier) + QueryGranterGrantsRequest { granter, pagination }.query(self.querier) } pub fn grantee_grants( &self, grantee: ::prost::alloc::string::String, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryGranteeGrantsRequest { - grantee, - pagination, - } - .query(self.querier) + QueryGranteeGrantsRequest { grantee, pagination }.query(self.querier) } } diff --git a/packages/injective-std/src/types/cosmos/bank/module/v1.rs b/packages/injective-std/src/types/cosmos/bank/module/v1.rs index acd5b0a6..8a2e6b7d 100644 --- a/packages/injective-std/src/types/cosmos/bank/module/v1.rs +++ b/packages/injective-std/src/types/cosmos/bank/module/v1.rs @@ -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 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, diff --git a/packages/injective-std/src/types/cosmos/bank/v1beta1.rs b/packages/injective-std/src/types/cosmos/bank/v1beta1.rs index 41fd4d76..5735245d 100644 --- a/packages/injective-std/src/types/cosmos/bank/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/bank/v1beta1.rs @@ -4,8 +4,7 @@ use osmosis_std_derive::CosmwasmExt; /// /// Since: cosmos-sdk 0.43 #[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.v1beta1.SendAuthorization")] pub struct SendAuthorization { #[prost(message, repeated, tag = "1")] @@ -19,8 +18,7 @@ pub struct SendAuthorization { } /// Params defines the parameters for 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.v1beta1.ParamsParams")] pub struct Params { /// Deprecated: Use of SendEnabled in params is deprecated. @@ -37,8 +35,7 @@ pub struct Params { /// SendEnabled maps coin denom to a send_enabled status (whether a denom is /// sendable). #[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.v1beta1.SendEnabledSendEnabled")] pub struct SendEnabled { #[prost(string, tag = "1")] @@ -48,8 +45,7 @@ pub struct SendEnabled { } /// Input models transaction input. #[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.v1beta1.InputInput")] pub struct Input { #[prost(string, tag = "1")] @@ -59,8 +55,7 @@ pub struct Input { } /// Output models transaction outputs. #[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.v1beta1.OutputOutput")] pub struct Output { #[prost(string, tag = "1")] @@ -72,8 +67,7 @@ pub struct Output { /// amounts in the network. /// This message is deprecated now that supply is indexed by denom. #[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.v1beta1.SupplySupply")] #[deprecated] pub struct Supply { @@ -83,8 +77,7 @@ pub struct Supply { /// DenomUnit represents a struct that describes a given /// denomination unit of the basic token. #[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.v1beta1.DenomUnitDenomUnit")] pub struct DenomUnit { /// denom represents the string name of the given denom unit (e.g uatom). @@ -108,8 +101,7 @@ pub struct DenomUnit { /// Metadata represents a struct that describes /// a basic token. #[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.v1beta1.MetadataMetadata")] pub struct Metadata { #[prost(string, tag = "1")] @@ -149,8 +141,7 @@ pub struct Metadata { } /// GenesisState defines the bank module's genesis state. #[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.v1beta1.GenesisState")] pub struct GenesisState { /// params defines all the parameters of the module. @@ -175,8 +166,7 @@ pub struct GenesisState { /// Balance defines an account address and balance pair used in the bank module's /// genesis state. #[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.v1beta1.Balance")] pub struct Balance { /// address is the address of the balance holder. @@ -188,8 +178,7 @@ pub struct Balance { } /// QueryBalanceRequest is the request type for the Query/Balance RPC method. #[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.v1beta1.QueryBalanceRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/Balance", @@ -205,8 +194,7 @@ pub struct QueryBalanceRequest { } /// QueryBalanceResponse is the response type for the Query/Balance RPC method. #[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.v1beta1.QueryBalanceResponse")] pub struct QueryBalanceResponse { /// balance is the balance of the coin. @@ -215,8 +203,7 @@ pub struct QueryBalanceResponse { } /// QueryBalanceRequest is the request type for the Query/AllBalances RPC method. #[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.v1beta1.QueryAllBalancesRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/AllBalances", @@ -228,15 +215,12 @@ pub struct QueryAllBalancesRequest { pub address: ::prost::alloc::string::String, /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC /// method. #[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.v1beta1.QueryAllBalancesResponse")] pub struct QueryAllBalancesResponse { /// balances is the balances of all the coins. @@ -244,17 +228,14 @@ pub struct QueryAllBalancesResponse { pub balances: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QuerySpendableBalancesRequest defines the gRPC request structure for querying /// an account's spendable balances. /// /// Since: cosmos-sdk 0.46 #[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.v1beta1.QuerySpendableBalancesRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/SpendableBalances", @@ -266,17 +247,14 @@ pub struct QuerySpendableBalancesRequest { pub address: ::prost::alloc::string::String, /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QuerySpendableBalancesResponse defines the gRPC response structure for querying /// an account's spendable balances. /// /// Since: cosmos-sdk 0.46 #[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.v1beta1.QuerySpendableBalancesResponse")] pub struct QuerySpendableBalancesResponse { /// balances is the spendable balances of all the coins. @@ -284,17 +262,14 @@ pub struct QuerySpendableBalancesResponse { pub balances: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QuerySpendableBalanceByDenomRequest defines the gRPC request structure for /// querying an account's spendable balance for a specific denom. /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.QuerySpendableBalanceByDenomRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/SpendableBalanceByDenom", @@ -313,8 +288,7 @@ pub struct QuerySpendableBalanceByDenomRequest { /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.QuerySpendableBalanceByDenomResponse")] pub struct QuerySpendableBalanceByDenomResponse { /// balance is the balance of the coin. @@ -324,8 +298,7 @@ pub struct QuerySpendableBalanceByDenomResponse { /// QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC /// method. #[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.v1beta1.QueryTotalSupplyRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/TotalSupply", @@ -336,15 +309,12 @@ pub struct QueryTotalSupplyRequest { /// /// Since: cosmos-sdk 0.43 #[prost(message, optional, tag = "1")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC /// method #[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.v1beta1.QueryTotalSupplyResponse")] pub struct QueryTotalSupplyResponse { /// supply is the supply of the coins @@ -354,14 +324,11 @@ pub struct QueryTotalSupplyResponse { /// /// Since: cosmos-sdk 0.43 #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. #[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.v1beta1.QuerySupplyOfRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/SupplyOf", @@ -374,8 +341,7 @@ pub struct QuerySupplyOfRequest { } /// QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. #[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.v1beta1.QuerySupplyOfResponse")] pub struct QuerySupplyOfResponse { /// amount is the supply of the coin. @@ -384,8 +350,7 @@ pub struct QuerySupplyOfResponse { } /// QueryParamsRequest defines the request type for querying x/bank parameters. #[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.v1beta1.QueryParamsRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/Params", @@ -394,8 +359,7 @@ pub struct QuerySupplyOfResponse { pub struct QueryParamsRequest {} /// QueryParamsResponse defines the response type for querying x/bank parameters. #[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.v1beta1.QueryParamsResponse")] pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] @@ -403,8 +367,7 @@ pub struct QueryParamsResponse { } /// QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. #[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.v1beta1.QueryDenomsMetadataRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/DenomsMetadata", @@ -413,15 +376,12 @@ pub struct QueryParamsResponse { pub struct QueryDenomsMetadataRequest { /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "1")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC /// method. #[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.v1beta1.QueryDenomsMetadataResponse")] pub struct QueryDenomsMetadataResponse { /// metadata provides the client information for all the registered tokens. @@ -429,14 +389,11 @@ pub struct QueryDenomsMetadataResponse { pub metadatas: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. #[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.v1beta1.QueryDenomMetadataRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/DenomMetadata", @@ -450,8 +407,7 @@ pub struct QueryDenomMetadataRequest { /// QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC /// method. #[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.v1beta1.QueryDenomMetadataResponse")] pub struct QueryDenomMetadataResponse { /// metadata describes and provides all the client information for the requested token. @@ -462,8 +418,7 @@ pub struct QueryDenomMetadataResponse { /// which queries for a paginated set of all account holders of a particular /// denomination. #[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.v1beta1.QueryDenomOwnersRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/DenomOwners", @@ -475,9 +430,7 @@ pub struct QueryDenomOwnersRequest { pub denom: ::prost::alloc::string::String, /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// DenomOwner defines structure representing an account that owns or holds a /// particular denominated token. It contains the account address and account @@ -485,8 +438,7 @@ pub struct QueryDenomOwnersRequest { /// /// Since: cosmos-sdk 0.46 #[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.v1beta1.DenomOwner")] pub struct DenomOwner { /// address defines the address that owns a particular denomination. @@ -500,24 +452,20 @@ pub struct DenomOwner { /// /// Since: cosmos-sdk 0.46 #[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.v1beta1.QueryDenomOwnersResponse")] pub struct QueryDenomOwnersResponse { #[prost(message, repeated, tag = "1")] pub denom_owners: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QuerySendEnabledRequest defines the RPC request for looking up SendEnabled entries. /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.QuerySendEnabledRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/SendEnabled", @@ -530,16 +478,13 @@ pub struct QuerySendEnabledRequest { /// pagination defines an optional pagination for the request. This field is /// only read if the denoms field is empty. #[prost(message, optional, tag = "99")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QuerySendEnabledResponse defines the RPC response of a SendEnable query. /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.QuerySendEnabledResponse")] pub struct QuerySendEnabledResponse { #[prost(message, repeated, tag = "1")] @@ -547,14 +492,11 @@ pub struct QuerySendEnabledResponse { /// pagination defines the pagination in the response. This field is only /// populated if the denoms field in the request is empty. #[prost(message, optional, tag = "99")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// MsgSend represents a message to send coins from one account to another. #[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.v1beta1.MsgSend")] pub struct MsgSend { #[prost(string, tag = "1")] @@ -566,14 +508,12 @@ pub struct MsgSend { } /// MsgSendResponse defines the Msg/Send response type. #[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.v1beta1.MsgSendResponse")] pub struct MsgSendResponse {} /// MsgMultiSend represents an arbitrary multi-in, multi-out send message. #[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.v1beta1.MsgMultiSend")] pub struct MsgMultiSend { /// Inputs, despite being `repeated`, only allows one sender input. This is @@ -585,16 +525,14 @@ pub struct MsgMultiSend { } /// MsgMultiSendResponse defines the Msg/MultiSend response type. #[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.v1beta1.MsgMultiSendResponse")] pub struct MsgMultiSendResponse {} /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.MsgUpdateParams")] pub struct MsgUpdateParams { /// authority is the address that controls the module (defaults to x/gov unless overwritten). @@ -611,8 +549,7 @@ pub struct MsgUpdateParams { /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} /// MsgSetSendEnabled is the Msg/SetSendEnabled request type. @@ -623,8 +560,7 @@ pub struct MsgUpdateParamsResponse {} /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.MsgSetSendEnabled")] pub struct MsgSetSendEnabled { #[prost(string, tag = "1")] @@ -643,8 +579,7 @@ pub struct MsgSetSendEnabled { /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.MsgSetSendEnabledResponse")] pub struct MsgSetSendEnabledResponse {} pub struct BankQuerier<'a, Q: cosmwasm_std::CustomQuery> { @@ -659,110 +594,62 @@ impl<'a, Q: cosmwasm_std::CustomQuery> BankQuerier<'a, Q> { address: ::prost::alloc::string::String, denom: ::prost::alloc::string::String, ) -> Result { - QueryBalanceRequest { - address, - denom, - } - .query(self.querier) + QueryBalanceRequest { address, denom }.query(self.querier) } pub fn all_balances( &self, address: ::prost::alloc::string::String, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryAllBalancesRequest { - address, - pagination, - } - .query(self.querier) + QueryAllBalancesRequest { address, pagination }.query(self.querier) } pub fn spendable_balances( &self, address: ::prost::alloc::string::String, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QuerySpendableBalancesRequest { - address, - pagination, - } - .query(self.querier) + QuerySpendableBalancesRequest { address, pagination }.query(self.querier) } pub fn spendable_balance_by_denom( &self, address: ::prost::alloc::string::String, denom: ::prost::alloc::string::String, ) -> Result { - QuerySpendableBalanceByDenomRequest { - address, - denom, - } - .query(self.querier) + QuerySpendableBalanceByDenomRequest { address, denom }.query(self.querier) } pub fn total_supply( &self, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryTotalSupplyRequest { - pagination, - } - .query(self.querier) + QueryTotalSupplyRequest { pagination }.query(self.querier) } - pub fn supply_of( - &self, - denom: ::prost::alloc::string::String, - ) -> Result { + pub fn supply_of(&self, denom: ::prost::alloc::string::String) -> Result { QuerySupplyOfRequest { denom }.query(self.querier) } pub fn params(&self) -> Result { QueryParamsRequest {}.query(self.querier) } - pub fn denom_metadata( - &self, - denom: ::prost::alloc::string::String, - ) -> Result { + pub fn denom_metadata(&self, denom: ::prost::alloc::string::String) -> Result { QueryDenomMetadataRequest { denom }.query(self.querier) } pub fn denoms_metadata( &self, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryDenomsMetadataRequest { - pagination, - } - .query(self.querier) + QueryDenomsMetadataRequest { pagination }.query(self.querier) } pub fn denom_owners( &self, denom: ::prost::alloc::string::String, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryDenomOwnersRequest { - denom, - pagination, - } - .query(self.querier) + QueryDenomOwnersRequest { denom, pagination }.query(self.querier) } pub fn send_enabled( &self, denoms: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QuerySendEnabledRequest { - denoms, - pagination, - } - .query(self.querier) + QuerySendEnabledRequest { denoms, pagination }.query(self.querier) } } diff --git a/packages/injective-std/src/types/cosmos/base/node/v1beta1.rs b/packages/injective-std/src/types/cosmos/base/node/v1beta1.rs index 1acadb13..ab7a2706 100644 --- a/packages/injective-std/src/types/cosmos/base/node/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/base/node/v1beta1.rs @@ -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")] diff --git a/packages/injective-std/src/types/cosmos/base/query/v1beta1.rs b/packages/injective-std/src/types/cosmos/base/query/v1beta1.rs index 0c243361..3a772e71 100644 --- a/packages/injective-std/src/types/cosmos/base/query/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/base/query/v1beta1.rs @@ -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 @@ -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 diff --git a/packages/injective-std/src/types/cosmos/base/v1beta1.rs b/packages/injective-std/src/types/cosmos/base/v1beta1.rs index f366ad5e..d55de8ab 100644 --- a/packages/injective-std/src/types/cosmos/base/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/base/v1beta1.rs @@ -4,8 +4,7 @@ use osmosis_std_derive::CosmwasmExt; /// NOTE: The amount field is an Int which implements the custom method /// signatures required by gogoproto. #[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.v1beta1.CoinCoinCoin")] pub struct Coin { #[prost(string, tag = "1")] @@ -18,8 +17,7 @@ pub struct Coin { /// NOTE: The amount field is an Dec which implements the custom method /// signatures required by gogoproto. #[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.v1beta1.DecCoinDecCoinDecCoin")] pub struct DecCoin { #[prost(string, tag = "1")] @@ -29,8 +27,7 @@ pub struct DecCoin { } /// IntProto defines a Protobuf wrapper around an Int object. #[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.v1beta1.IntProtoIntProtoIntProto")] pub struct IntProto { #[prost(string, tag = "1")] @@ -38,8 +35,7 @@ pub struct IntProto { } /// DecProto defines a Protobuf wrapper around a Dec object. #[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.v1beta1.DecProtoDecProtoDecProto")] pub struct DecProto { #[prost(string, tag = "1")] diff --git a/packages/injective-std/src/types/cosmos/distribution/module/v1.rs b/packages/injective-std/src/types/cosmos/distribution/module/v1.rs index 29d49653..6ee96c65 100644 --- a/packages/injective-std/src/types/cosmos/distribution/module/v1.rs +++ b/packages/injective-std/src/types/cosmos/distribution/module/v1.rs @@ -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")] diff --git a/packages/injective-std/src/types/cosmos/distribution/v1beta1.rs b/packages/injective-std/src/types/cosmos/distribution/v1beta1.rs index 8169d6c6..ee7adae6 100644 --- a/packages/injective-std/src/types/cosmos/distribution/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/distribution/v1beta1.rs @@ -1,8 +1,7 @@ use osmosis_std_derive::CosmwasmExt; /// Params defines the set of params for 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.v1beta1.ParamsParams")] pub struct Params { #[prost(string, tag = "1")] @@ -33,16 +32,11 @@ pub struct Params { /// read that record) /// + one per validator for the zeroeth period, set on initialization #[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.distribution.v1beta1.ValidatorHistoricalRewardsValidatorHistoricalRewards" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsValidatorHistoricalRewards")] pub struct ValidatorHistoricalRewards { #[prost(message, repeated, tag = "1")] - pub cumulative_reward_ratio: ::prost::alloc::vec::Vec< - super::super::base::v1beta1::DecCoin, - >, + pub cumulative_reward_ratio: ::prost::alloc::vec::Vec, #[prost(uint32, tag = "2")] #[serde( serialize_with = "crate::serde::as_str::serialize", @@ -54,11 +48,8 @@ pub struct ValidatorHistoricalRewards { /// period for a validator kept as a running counter and incremented /// each block as long as the validator's tokens remain constant. #[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.distribution.v1beta1.ValidatorCurrentRewardsValidatorCurrentRewards" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsValidatorCurrentRewards")] pub struct ValidatorCurrentRewards { #[prost(message, repeated, tag = "1")] pub rewards: ::prost::alloc::vec::Vec, @@ -72,11 +63,8 @@ pub struct ValidatorCurrentRewards { /// ValidatorAccumulatedCommission represents accumulated commission /// for a validator kept as a running counter, can be withdrawn at any time. #[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.distribution.v1beta1.ValidatorAccumulatedCommissionValidatorAccumulatedCommission" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionValidatorAccumulatedCommission")] pub struct ValidatorAccumulatedCommission { #[prost(message, repeated, tag = "1")] pub commission: ::prost::alloc::vec::Vec, @@ -84,11 +72,8 @@ pub struct ValidatorAccumulatedCommission { /// ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards /// for a validator inexpensive to track, allows simple sanity checks. #[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.distribution.v1beta1.ValidatorOutstandingRewardsValidatorOutstandingRewards" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsValidatorOutstandingRewards")] pub struct ValidatorOutstandingRewards { #[prost(message, repeated, tag = "1")] pub rewards: ::prost::alloc::vec::Vec, @@ -98,11 +83,8 @@ pub struct ValidatorOutstandingRewards { /// This is needed to calculate appropriate amount of staking tokens /// for delegations which are withdrawn after a slash has occurred. #[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.distribution.v1beta1.ValidatorSlashEventValidatorSlashEvent" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorSlashEventValidatorSlashEvent")] pub struct ValidatorSlashEvent { #[prost(uint64, tag = "1")] #[serde( @@ -115,19 +97,15 @@ pub struct ValidatorSlashEvent { } /// ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. #[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.distribution.v1beta1.ValidatorSlashEventsValidatorSlashEvents" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorSlashEventsValidatorSlashEvents")] pub struct ValidatorSlashEvents { #[prost(message, repeated, tag = "1")] pub validator_slash_events: ::prost::alloc::vec::Vec, } /// FeePool is the global fee pool for distribution. #[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.v1beta1.FeePoolFeePool")] pub struct FeePool { #[prost(message, repeated, tag = "1")] @@ -142,11 +120,8 @@ pub struct FeePool { /// pool funds, a simple MsgCommunityPoolSpend can be invoked from the x/gov /// module via a v1 governance proposal. #[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.distribution.v1beta1.CommunityPoolSpendProposalCommunityPoolSpendProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalCommunityPoolSpendProposal")] #[deprecated] pub struct CommunityPoolSpendProposal { #[prost(string, tag = "1")] @@ -165,11 +140,8 @@ pub struct CommunityPoolSpendProposal { /// the delegators within the validator may be left with less than a full token, /// thus sdk.Dec is used. #[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.distribution.v1beta1.DelegatorStartingInfoDelegatorStartingInfo" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.DelegatorStartingInfoDelegatorStartingInfo")] pub struct DelegatorStartingInfo { #[prost(uint64, tag = "1")] #[serde( @@ -189,11 +161,8 @@ pub struct DelegatorStartingInfo { /// DelegationDelegatorReward represents the properties /// of a delegator's delegation reward. #[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.distribution.v1beta1.DelegationDelegatorRewardDelegationDelegatorReward" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.DelegationDelegatorRewardDelegationDelegatorReward")] pub struct DelegationDelegatorReward { #[prost(string, tag = "1")] pub validator_address: ::prost::alloc::string::String, @@ -203,11 +172,8 @@ pub struct DelegationDelegatorReward { /// CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal /// with a deposit #[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.distribution.v1beta1.CommunityPoolSpendProposalWithDepositCommunityPoolSpendProposalWithDeposit" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDepositCommunityPoolSpendProposalWithDeposit")] pub struct CommunityPoolSpendProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -224,8 +190,7 @@ pub struct CommunityPoolSpendProposalWithDeposit { /// withdrawn to by default this struct is only used at genesis to feed in /// default withdraw addresses. #[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.v1beta1.DelegatorWithdrawInfo")] pub struct DelegatorWithdrawInfo { /// delegator_address is the address of the delegator. @@ -237,29 +202,21 @@ pub struct DelegatorWithdrawInfo { } /// ValidatorOutstandingRewardsRecord is used for import/export via genesis json. #[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.distribution.v1beta1.ValidatorOutstandingRewardsRecord" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord")] pub struct ValidatorOutstandingRewardsRecord { /// validator_address is the address of the validator. #[prost(string, tag = "1")] pub validator_address: ::prost::alloc::string::String, /// outstanding_rewards represents the outstanding rewards of a validator. #[prost(message, repeated, tag = "2")] - pub outstanding_rewards: ::prost::alloc::vec::Vec< - super::super::base::v1beta1::DecCoin, - >, + pub outstanding_rewards: ::prost::alloc::vec::Vec, } /// ValidatorAccumulatedCommissionRecord is used for import / export via genesis /// json. #[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.distribution.v1beta1.ValidatorAccumulatedCommissionRecord" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord")] pub struct ValidatorAccumulatedCommissionRecord { /// validator_address is the address of the validator. #[prost(string, tag = "1")] @@ -271,11 +228,8 @@ pub struct ValidatorAccumulatedCommissionRecord { /// ValidatorHistoricalRewardsRecord is used for import / export via genesis /// json. #[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.distribution.v1beta1.ValidatorHistoricalRewardsRecord" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord")] pub struct ValidatorHistoricalRewardsRecord { /// validator_address is the address of the validator. #[prost(string, tag = "1")] @@ -293,8 +247,7 @@ pub struct ValidatorHistoricalRewardsRecord { } /// ValidatorCurrentRewardsRecord is used for import / export via genesis json. #[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.v1beta1.ValidatorCurrentRewardsRecord")] pub struct ValidatorCurrentRewardsRecord { /// validator_address is the address of the validator. @@ -306,8 +259,7 @@ pub struct ValidatorCurrentRewardsRecord { } /// DelegatorStartingInfoRecord used for import / export via genesis json. #[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.v1beta1.DelegatorStartingInfoRecord")] pub struct DelegatorStartingInfoRecord { /// delegator_address is the address of the delegator. @@ -322,8 +274,7 @@ pub struct DelegatorStartingInfoRecord { } /// ValidatorSlashEventRecord is used for import / export via genesis json. #[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.v1beta1.ValidatorSlashEventRecord")] pub struct ValidatorSlashEventRecord { /// validator_address is the address of the validator. @@ -349,8 +300,7 @@ pub struct ValidatorSlashEventRecord { } /// GenesisState defines the distribution module's genesis state. #[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.v1beta1.GenesisState")] pub struct GenesisState { /// params defines all the parameters of the module. @@ -370,19 +320,13 @@ pub struct GenesisState { pub outstanding_rewards: ::prost::alloc::vec::Vec, /// fee_pool defines the accumulated commissions of all validators at genesis. #[prost(message, repeated, tag = "6")] - pub validator_accumulated_commissions: ::prost::alloc::vec::Vec< - ValidatorAccumulatedCommissionRecord, - >, + pub validator_accumulated_commissions: ::prost::alloc::vec::Vec, /// fee_pool defines the historical rewards of all validators at genesis. #[prost(message, repeated, tag = "7")] - pub validator_historical_rewards: ::prost::alloc::vec::Vec< - ValidatorHistoricalRewardsRecord, - >, + pub validator_historical_rewards: ::prost::alloc::vec::Vec, /// fee_pool defines the current rewards of all validators at genesis. #[prost(message, repeated, tag = "8")] - pub validator_current_rewards: ::prost::alloc::vec::Vec< - ValidatorCurrentRewardsRecord, - >, + pub validator_current_rewards: ::prost::alloc::vec::Vec, /// fee_pool defines the delegator starting infos at genesis. #[prost(message, repeated, tag = "9")] pub delegator_starting_infos: ::prost::alloc::vec::Vec, @@ -392,8 +336,7 @@ pub struct GenesisState { } /// QueryParamsRequest is the request type for the Query/Params RPC method. #[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.v1beta1.QueryParamsRequest")] #[proto_query( path = "/cosmos.distribution.v1beta1.Query/Params", @@ -402,8 +345,7 @@ pub struct GenesisState { pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. #[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.v1beta1.QueryParamsResponse")] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -412,11 +354,8 @@ pub struct QueryParamsResponse { } /// QueryValidatorDistributionInfoRequest is the request type for the Query/ValidatorDistributionInfo RPC method. #[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.distribution.v1beta1.QueryValidatorDistributionInfoRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest")] #[proto_query( path = "/cosmos.distribution.v1beta1.Query/ValidatorDistributionInfo", response_type = QueryValidatorDistributionInfoResponse @@ -428,20 +367,15 @@ pub struct QueryValidatorDistributionInfoRequest { } /// QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method. #[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.distribution.v1beta1.QueryValidatorDistributionInfoResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse")] pub struct QueryValidatorDistributionInfoResponse { /// operator_address defines the validator operator address. #[prost(string, tag = "1")] pub operator_address: ::prost::alloc::string::String, /// self_bond_rewards defines the self delegations rewards. #[prost(message, repeated, tag = "2")] - pub self_bond_rewards: ::prost::alloc::vec::Vec< - super::super::base::v1beta1::DecCoin, - >, + pub self_bond_rewards: ::prost::alloc::vec::Vec, /// commission defines the commission the validator received. #[prost(message, repeated, tag = "3")] pub commission: ::prost::alloc::vec::Vec, @@ -449,11 +383,8 @@ pub struct QueryValidatorDistributionInfoResponse { /// QueryValidatorOutstandingRewardsRequest is the request type for the /// Query/ValidatorOutstandingRewards RPC method. #[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.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest")] #[proto_query( path = "/cosmos.distribution.v1beta1.Query/ValidatorOutstandingRewards", response_type = QueryValidatorOutstandingRewardsResponse @@ -466,11 +397,8 @@ pub struct QueryValidatorOutstandingRewardsRequest { /// QueryValidatorOutstandingRewardsResponse is the response type for the /// Query/ValidatorOutstandingRewards RPC method. #[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.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse")] pub struct QueryValidatorOutstandingRewardsResponse { #[prost(message, optional, tag = "1")] pub rewards: ::core::option::Option, @@ -478,11 +406,8 @@ pub struct QueryValidatorOutstandingRewardsResponse { /// QueryValidatorCommissionRequest is the request type for the /// Query/ValidatorCommission RPC method #[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.distribution.v1beta1.QueryValidatorCommissionRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest")] #[proto_query( path = "/cosmos.distribution.v1beta1.Query/ValidatorCommission", response_type = QueryValidatorCommissionResponse @@ -495,11 +420,8 @@ pub struct QueryValidatorCommissionRequest { /// QueryValidatorCommissionResponse is the response type for the /// Query/ValidatorCommission RPC method #[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.distribution.v1beta1.QueryValidatorCommissionResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse")] pub struct QueryValidatorCommissionResponse { /// commission defines the commission the validator received. #[prost(message, optional, tag = "1")] @@ -508,8 +430,7 @@ pub struct QueryValidatorCommissionResponse { /// QueryValidatorSlashesRequest is the request type for the /// Query/ValidatorSlashes RPC method #[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.v1beta1.QueryValidatorSlashesRequest")] #[proto_query( path = "/cosmos.distribution.v1beta1.Query/ValidatorSlashes", @@ -535,15 +456,12 @@ pub struct QueryValidatorSlashesRequest { pub ending_height: u64, /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "4")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryValidatorSlashesResponse is the response type for the /// Query/ValidatorSlashes RPC method. #[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.v1beta1.QueryValidatorSlashesResponse")] pub struct QueryValidatorSlashesResponse { /// slashes defines the slashes the validator received. @@ -551,15 +469,12 @@ pub struct QueryValidatorSlashesResponse { pub slashes: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryDelegationRewardsRequest is the request type for the /// Query/DelegationRewards RPC method. #[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.v1beta1.QueryDelegationRewardsRequest")] #[proto_query( path = "/cosmos.distribution.v1beta1.Query/DelegationRewards", @@ -576,11 +491,8 @@ pub struct QueryDelegationRewardsRequest { /// QueryDelegationRewardsResponse is the response type for the /// Query/DelegationRewards RPC method. #[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.distribution.v1beta1.QueryDelegationRewardsResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse")] pub struct QueryDelegationRewardsResponse { /// rewards defines the rewards accrued by a delegation. #[prost(message, repeated, tag = "1")] @@ -589,11 +501,8 @@ pub struct QueryDelegationRewardsResponse { /// QueryDelegationTotalRewardsRequest is the request type for the /// Query/DelegationTotalRewards RPC method. #[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.distribution.v1beta1.QueryDelegationTotalRewardsRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest")] #[proto_query( path = "/cosmos.distribution.v1beta1.Query/DelegationTotalRewards", response_type = QueryDelegationTotalRewardsResponse @@ -606,11 +515,8 @@ pub struct QueryDelegationTotalRewardsRequest { /// QueryDelegationTotalRewardsResponse is the response type for the /// Query/DelegationTotalRewards RPC method. #[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.distribution.v1beta1.QueryDelegationTotalRewardsResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse")] pub struct QueryDelegationTotalRewardsResponse { /// rewards defines all the rewards accrued by a delegator. #[prost(message, repeated, tag = "1")] @@ -622,11 +528,8 @@ pub struct QueryDelegationTotalRewardsResponse { /// QueryDelegatorValidatorsRequest is the request type for the /// Query/DelegatorValidators RPC method. #[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.distribution.v1beta1.QueryDelegatorValidatorsRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest")] #[proto_query( path = "/cosmos.distribution.v1beta1.Query/DelegatorValidators", response_type = QueryDelegatorValidatorsResponse @@ -639,11 +542,8 @@ pub struct QueryDelegatorValidatorsRequest { /// QueryDelegatorValidatorsResponse is the response type for the /// Query/DelegatorValidators RPC method. #[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.distribution.v1beta1.QueryDelegatorValidatorsResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse")] pub struct QueryDelegatorValidatorsResponse { /// validators defines the validators a delegator is delegating for. #[prost(string, repeated, tag = "1")] @@ -652,11 +552,8 @@ pub struct QueryDelegatorValidatorsResponse { /// QueryDelegatorWithdrawAddressRequest is the request type for the /// Query/DelegatorWithdrawAddress RPC method. #[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.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest")] #[proto_query( path = "/cosmos.distribution.v1beta1.Query/DelegatorWithdrawAddress", response_type = QueryDelegatorWithdrawAddressResponse @@ -669,11 +566,8 @@ pub struct QueryDelegatorWithdrawAddressRequest { /// QueryDelegatorWithdrawAddressResponse is the response type for the /// Query/DelegatorWithdrawAddress RPC method. #[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.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse")] pub struct QueryDelegatorWithdrawAddressResponse { /// withdraw_address defines the delegator address to query for. #[prost(string, tag = "1")] @@ -682,8 +576,7 @@ pub struct QueryDelegatorWithdrawAddressResponse { /// QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC /// method. #[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.v1beta1.QueryCommunityPoolRequest")] #[proto_query( path = "/cosmos.distribution.v1beta1.Query/CommunityPool", @@ -693,8 +586,7 @@ pub struct QueryCommunityPoolRequest {} /// QueryCommunityPoolResponse is the response type for the Query/CommunityPool /// RPC method. #[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.v1beta1.QueryCommunityPoolResponse")] pub struct QueryCommunityPoolResponse { /// pool defines community pool's coins. @@ -704,8 +596,7 @@ pub struct QueryCommunityPoolResponse { /// MsgSetWithdrawAddress sets the withdraw address for /// a delegator (or validator self-delegation). #[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.v1beta1.MsgSetWithdrawAddress")] pub struct MsgSetWithdrawAddress { #[prost(string, tag = "1")] @@ -716,15 +607,13 @@ pub struct MsgSetWithdrawAddress { /// MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response /// type. #[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.v1beta1.MsgSetWithdrawAddressResponse")] pub struct MsgSetWithdrawAddressResponse {} /// MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator /// from a single validator. #[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.v1beta1.MsgWithdrawDelegatorReward")] pub struct MsgWithdrawDelegatorReward { #[prost(string, tag = "1")] @@ -735,11 +624,8 @@ pub struct MsgWithdrawDelegatorReward { /// MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward /// response type. #[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.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse")] pub struct MsgWithdrawDelegatorRewardResponse { /// Since: cosmos-sdk 0.46 #[prost(message, repeated, tag = "1")] @@ -748,11 +634,8 @@ pub struct MsgWithdrawDelegatorRewardResponse { /// MsgWithdrawValidatorCommission withdraws the full commission to the validator /// address. #[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.distribution.v1beta1.MsgWithdrawValidatorCommission" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission")] pub struct MsgWithdrawValidatorCommission { #[prost(string, tag = "1")] pub validator_address: ::prost::alloc::string::String, @@ -760,11 +643,8 @@ pub struct MsgWithdrawValidatorCommission { /// MsgWithdrawValidatorCommissionResponse defines the /// Msg/WithdrawValidatorCommission response type. #[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.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse")] pub struct MsgWithdrawValidatorCommissionResponse { /// Since: cosmos-sdk 0.46 #[prost(message, repeated, tag = "1")] @@ -773,8 +653,7 @@ pub struct MsgWithdrawValidatorCommissionResponse { /// MsgFundCommunityPool allows an account to directly /// fund the community pool. #[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.v1beta1.MsgFundCommunityPool")] pub struct MsgFundCommunityPool { #[prost(message, repeated, tag = "1")] @@ -784,16 +663,14 @@ pub struct MsgFundCommunityPool { } /// MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. #[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.v1beta1.MsgFundCommunityPoolResponse")] pub struct MsgFundCommunityPoolResponse {} /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.MsgUpdateParams")] pub struct MsgUpdateParams { /// authority is the address that controls the module (defaults to x/gov unless overwritten). @@ -810,8 +687,7 @@ pub struct MsgUpdateParams { /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} /// MsgCommunityPoolSpend defines a message for sending tokens from the community @@ -820,8 +696,7 @@ pub struct MsgUpdateParamsResponse {} /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.MsgCommunityPoolSpend")] pub struct MsgCommunityPoolSpend { /// authority is the address that controls the module (defaults to x/gov unless overwritten). @@ -837,8 +712,7 @@ pub struct MsgCommunityPoolSpend { /// /// Since: cosmos-sdk 0.47 #[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.v1beta1.MsgCommunityPoolSpendResponse")] pub struct MsgCommunityPoolSpendResponse {} pub struct DistributionQuerier<'a, Q: cosmwasm_std::CustomQuery> { @@ -855,37 +729,26 @@ impl<'a, Q: cosmwasm_std::CustomQuery> DistributionQuerier<'a, Q> { &self, validator_address: ::prost::alloc::string::String, ) -> Result { - QueryValidatorDistributionInfoRequest { - validator_address, - } - .query(self.querier) + QueryValidatorDistributionInfoRequest { validator_address }.query(self.querier) } pub fn validator_outstanding_rewards( &self, validator_address: ::prost::alloc::string::String, ) -> Result { - QueryValidatorOutstandingRewardsRequest { - validator_address, - } - .query(self.querier) + QueryValidatorOutstandingRewardsRequest { validator_address }.query(self.querier) } pub fn validator_commission( &self, validator_address: ::prost::alloc::string::String, ) -> Result { - QueryValidatorCommissionRequest { - validator_address, - } - .query(self.querier) + QueryValidatorCommissionRequest { validator_address }.query(self.querier) } pub fn validator_slashes( &self, validator_address: ::prost::alloc::string::String, starting_height: u64, ending_height: u64, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { QueryValidatorSlashesRequest { validator_address, @@ -893,7 +756,7 @@ impl<'a, Q: cosmwasm_std::CustomQuery> DistributionQuerier<'a, Q> { ending_height, pagination, } - .query(self.querier) + .query(self.querier) } pub fn delegation_rewards( &self, @@ -904,38 +767,27 @@ impl<'a, Q: cosmwasm_std::CustomQuery> DistributionQuerier<'a, Q> { delegator_address, validator_address, } - .query(self.querier) + .query(self.querier) } pub fn delegation_total_rewards( &self, delegator_address: ::prost::alloc::string::String, ) -> Result { - QueryDelegationTotalRewardsRequest { - delegator_address, - } - .query(self.querier) + QueryDelegationTotalRewardsRequest { delegator_address }.query(self.querier) } pub fn delegator_validators( &self, delegator_address: ::prost::alloc::string::String, ) -> Result { - QueryDelegatorValidatorsRequest { - delegator_address, - } - .query(self.querier) + QueryDelegatorValidatorsRequest { delegator_address }.query(self.querier) } pub fn delegator_withdraw_address( &self, delegator_address: ::prost::alloc::string::String, ) -> Result { - QueryDelegatorWithdrawAddressRequest { - delegator_address, - } - .query(self.querier) + QueryDelegatorWithdrawAddressRequest { delegator_address }.query(self.querier) } - pub fn community_pool( - &self, - ) -> Result { + pub fn community_pool(&self) -> Result { QueryCommunityPoolRequest {}.query(self.querier) } } diff --git a/packages/injective-std/src/types/cosmos/feegrant/module/v1.rs b/packages/injective-std/src/types/cosmos/feegrant/module/v1.rs index fc4af18f..78dfd5a2 100644 --- a/packages/injective-std/src/types/cosmos/feegrant/module/v1.rs +++ b/packages/injective-std/src/types/cosmos/feegrant/module/v1.rs @@ -1,7 +1,6 @@ use osmosis_std_derive::CosmwasmExt; /// Module is the config object of the feegrant 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.feegrant.module.v1.Module")] pub struct Module {} diff --git a/packages/injective-std/src/types/cosmos/feegrant/v1beta1.rs b/packages/injective-std/src/types/cosmos/feegrant/v1beta1.rs index 90fd29dd..ad30e627 100644 --- a/packages/injective-std/src/types/cosmos/feegrant/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/feegrant/v1beta1.rs @@ -2,8 +2,7 @@ use osmosis_std_derive::CosmwasmExt; /// BasicAllowance implements Allowance with a one-time grant of coins /// that optionally expires. The grantee can use up to SpendLimit to cover fees. #[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.feegrant.v1beta1.BasicAllowance")] pub struct BasicAllowance { /// spend_limit specifies the maximum amount of coins that can be spent @@ -18,8 +17,7 @@ pub struct BasicAllowance { /// PeriodicAllowance extends Allowance to allow for both a maximum cap, /// as well as a limit per time period. #[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.feegrant.v1beta1.PeriodicAllowance")] pub struct PeriodicAllowance { /// basic specifies a struct of `BasicAllowance` @@ -44,8 +42,7 @@ pub struct PeriodicAllowance { } /// AllowedMsgAllowance creates allowance only for specified message types. #[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.feegrant.v1beta1.AllowedMsgAllowance")] pub struct AllowedMsgAllowance { /// allowance can be any of basic and periodic fee allowance. @@ -57,8 +54,7 @@ pub struct AllowedMsgAllowance { } /// Grant is stored in the KVStore to record a grant with full context #[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.feegrant.v1beta1.Grant")] pub struct Grant { /// granter is the address of the user granting an allowance of their funds. @@ -73,8 +69,7 @@ pub struct Grant { } /// GenesisState contains a set of fee allowances, persisted from the store #[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.feegrant.v1beta1.GenesisState")] pub struct GenesisState { #[prost(message, repeated, tag = "1")] @@ -82,8 +77,7 @@ pub struct GenesisState { } /// QueryAllowanceRequest is the request type for the Query/Allowance RPC method. #[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.feegrant.v1beta1.QueryAllowanceRequest")] #[proto_query( path = "/cosmos.feegrant.v1beta1.Query/Allowance", @@ -99,8 +93,7 @@ pub struct QueryAllowanceRequest { } /// QueryAllowanceResponse is the response type for the Query/Allowance RPC method. #[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.feegrant.v1beta1.QueryAllowanceResponse")] pub struct QueryAllowanceResponse { /// allowance is a allowance granted for grantee by granter. @@ -109,8 +102,7 @@ pub struct QueryAllowanceResponse { } /// QueryAllowancesRequest is the request type for the Query/Allowances RPC method. #[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.feegrant.v1beta1.QueryAllowancesRequest")] #[proto_query( path = "/cosmos.feegrant.v1beta1.Query/Allowances", @@ -121,14 +113,11 @@ pub struct QueryAllowancesRequest { pub grantee: ::prost::alloc::string::String, /// pagination defines an pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryAllowancesResponse is the response type for the Query/Allowances RPC method. #[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.feegrant.v1beta1.QueryAllowancesResponse")] pub struct QueryAllowancesResponse { /// allowances are allowance's granted for grantee by granter. @@ -136,16 +125,13 @@ pub struct QueryAllowancesResponse { pub allowances: ::prost::alloc::vec::Vec, /// pagination defines an pagination for the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. /// /// Since: cosmos-sdk 0.46 #[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.feegrant.v1beta1.QueryAllowancesByGranterRequest")] #[proto_query( path = "/cosmos.feegrant.v1beta1.Query/AllowancesByGranter", @@ -156,16 +142,13 @@ pub struct QueryAllowancesByGranterRequest { pub granter: ::prost::alloc::string::String, /// pagination defines an pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. /// /// Since: cosmos-sdk 0.46 #[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.feegrant.v1beta1.QueryAllowancesByGranterResponse")] pub struct QueryAllowancesByGranterResponse { /// allowances that have been issued by the granter. @@ -173,15 +156,12 @@ pub struct QueryAllowancesByGranterResponse { pub allowances: ::prost::alloc::vec::Vec, /// pagination defines an pagination for the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// MsgGrantAllowance adds permission for Grantee to spend up to Allowance /// of fees from the account of Granter. #[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.feegrant.v1beta1.MsgGrantAllowance")] pub struct MsgGrantAllowance { /// granter is the address of the user granting an allowance of their funds. @@ -196,14 +176,12 @@ pub struct MsgGrantAllowance { } /// MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. #[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.feegrant.v1beta1.MsgGrantAllowanceResponse")] pub struct MsgGrantAllowanceResponse {} /// MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. #[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.feegrant.v1beta1.MsgRevokeAllowance")] pub struct MsgRevokeAllowance { /// granter is the address of the user granting an allowance of their funds. @@ -215,8 +193,7 @@ pub struct MsgRevokeAllowance { } /// MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. #[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.feegrant.v1beta1.MsgRevokeAllowanceResponse")] pub struct MsgRevokeAllowanceResponse {} pub struct FeegrantQuerier<'a, Q: cosmwasm_std::CustomQuery> { @@ -231,36 +208,20 @@ impl<'a, Q: cosmwasm_std::CustomQuery> FeegrantQuerier<'a, Q> { granter: ::prost::alloc::string::String, grantee: ::prost::alloc::string::String, ) -> Result { - QueryAllowanceRequest { - granter, - grantee, - } - .query(self.querier) + QueryAllowanceRequest { granter, grantee }.query(self.querier) } pub fn allowances( &self, grantee: ::prost::alloc::string::String, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryAllowancesRequest { - grantee, - pagination, - } - .query(self.querier) + QueryAllowancesRequest { grantee, pagination }.query(self.querier) } pub fn allowances_by_granter( &self, granter: ::prost::alloc::string::String, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryAllowancesByGranterRequest { - granter, - pagination, - } - .query(self.querier) + QueryAllowancesByGranterRequest { granter, pagination }.query(self.querier) } } diff --git a/packages/injective-std/src/types/cosmos/gov/module/v1.rs b/packages/injective-std/src/types/cosmos/gov/module/v1.rs index ebe67598..9ff16316 100644 --- a/packages/injective-std/src/types/cosmos/gov/module/v1.rs +++ b/packages/injective-std/src/types/cosmos/gov/module/v1.rs @@ -1,8 +1,7 @@ use osmosis_std_derive::CosmwasmExt; /// Module is the config object of the gov 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.gov.module.v1.Module")] pub struct Module { /// max_metadata_len defines the maximum proposal metadata length. diff --git a/packages/injective-std/src/types/cosmos/gov/v1.rs b/packages/injective-std/src/types/cosmos/gov/v1.rs index 9e617af9..304ad453 100644 --- a/packages/injective-std/src/types/cosmos/gov/v1.rs +++ b/packages/injective-std/src/types/cosmos/gov/v1.rs @@ -1,8 +1,7 @@ use osmosis_std_derive::CosmwasmExt; /// WeightedVoteOption defines a unit of vote for vote split. #[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.gov.v1.WeightedVoteOption")] pub struct WeightedVoteOption { /// option defines the valid vote options, it must not contain duplicate vote options. @@ -19,8 +18,7 @@ pub struct WeightedVoteOption { /// Deposit defines an amount deposited by an account address to an active /// proposal. #[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.gov.v1.Deposit")] pub struct Deposit { /// proposal_id defines the unique id of the proposal. @@ -40,8 +38,7 @@ pub struct Deposit { } /// Proposal defines the core field members of a governance proposal. #[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.gov.v1.Proposal")] pub struct Proposal { /// id defines the unique id of the proposal. @@ -103,8 +100,7 @@ pub struct Proposal { } /// TallyResult defines a standard tally for a governance proposal. #[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.gov.v1.TallyResult")] pub struct TallyResult { /// yes_count is the number of yes votes on a proposal. @@ -123,8 +119,7 @@ pub struct TallyResult { /// Vote defines a vote on a governance proposal. /// A Vote consists of a proposal ID, the voter, and the vote option. #[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.gov.v1.Vote")] pub struct Vote { /// proposal_id defines the unique id of the proposal. @@ -147,8 +142,7 @@ pub struct Vote { } /// DepositParams defines the params for deposits on governance proposals. #[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.gov.v1.DepositParams")] pub struct DepositParams { /// Minimum deposit for a proposal to enter voting period. @@ -161,8 +155,7 @@ pub struct DepositParams { } /// VotingParams defines the params for voting on governance proposals. #[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.gov.v1.VotingParams")] pub struct VotingParams { /// Duration of the voting period. @@ -171,8 +164,7 @@ pub struct VotingParams { } /// TallyParams defines the params for tallying votes on governance proposals. #[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.gov.v1.TallyParams")] pub struct TallyParams { /// Minimum percentage of total stake needed to vote for a result to be @@ -191,8 +183,7 @@ pub struct TallyParams { /// /// Since: cosmos-sdk 0.47 #[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.gov.v1.Params")] pub struct Params { /// Minimum deposit for a proposal to enter voting period. @@ -324,8 +315,7 @@ impl ProposalStatus { } /// GenesisState defines the gov module's genesis state. #[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.gov.v1.GenesisState")] pub struct GenesisState { /// starting_proposal_id is the ID of the starting proposal. @@ -368,8 +358,7 @@ pub struct GenesisState { } /// QueryProposalRequest is the request type for the Query/Proposal RPC method. #[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.gov.v1.QueryProposalRequest")] #[proto_query( path = "/cosmos.gov.v1.Query/Proposal", @@ -387,8 +376,7 @@ pub struct QueryProposalRequest { } /// QueryProposalResponse is the response type for the Query/Proposal RPC method. #[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.gov.v1.QueryProposalResponse")] pub struct QueryProposalResponse { /// proposal is the requested governance proposal. @@ -397,8 +385,7 @@ pub struct QueryProposalResponse { } /// QueryProposalsRequest is the request type for the Query/Proposals RPC method. #[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.gov.v1.QueryProposalsRequest")] #[proto_query( path = "/cosmos.gov.v1.Query/Proposals", @@ -420,15 +407,12 @@ pub struct QueryProposalsRequest { pub depositor: ::prost::alloc::string::String, /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "4")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryProposalsResponse is the response type for the Query/Proposals RPC /// method. #[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.gov.v1.QueryProposalsResponse")] pub struct QueryProposalsResponse { /// proposals defines all the requested governance proposals. @@ -436,14 +420,11 @@ pub struct QueryProposalsResponse { pub proposals: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryVoteRequest is the request type for the Query/Vote RPC method. #[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.gov.v1.QueryVoteRequest")] #[proto_query(path = "/cosmos.gov.v1.Query/Vote", response_type = QueryVoteResponse)] pub struct QueryVoteRequest { @@ -461,8 +442,7 @@ pub struct QueryVoteRequest { } /// QueryVoteResponse is the response type for the Query/Vote RPC method. #[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.gov.v1.QueryVoteResponse")] pub struct QueryVoteResponse { /// vote defines the queried vote. @@ -471,8 +451,7 @@ pub struct QueryVoteResponse { } /// QueryVotesRequest is the request type for the Query/Votes RPC method. #[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.gov.v1.QueryVotesRequest")] #[proto_query(path = "/cosmos.gov.v1.Query/Votes", response_type = QueryVotesResponse)] pub struct QueryVotesRequest { @@ -486,14 +465,11 @@ pub struct QueryVotesRequest { pub proposal_id: u64, /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryVotesResponse is the response type for the Query/Votes RPC method. #[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.gov.v1.QueryVotesResponse")] pub struct QueryVotesResponse { /// votes defines the queried votes. @@ -501,14 +477,11 @@ pub struct QueryVotesResponse { pub votes: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryParamsRequest is the request type for the Query/Params RPC method. #[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.gov.v1.QueryParamsRequest")] #[proto_query(path = "/cosmos.gov.v1.Query/Params", response_type = QueryParamsResponse)] pub struct QueryParamsRequest { @@ -519,8 +492,7 @@ pub struct QueryParamsRequest { } /// QueryParamsResponse is the response type for the Query/Params RPC method. #[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.gov.v1.QueryParamsResponse")] pub struct QueryParamsResponse { /// Deprecated: Prefer to use `params` instead. @@ -546,8 +518,7 @@ pub struct QueryParamsResponse { } /// QueryDepositRequest is the request type for the Query/Deposit RPC method. #[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.gov.v1.QueryDepositRequest")] #[proto_query( path = "/cosmos.gov.v1.Query/Deposit", @@ -568,8 +539,7 @@ pub struct QueryDepositRequest { } /// QueryDepositResponse is the response type for the Query/Deposit RPC method. #[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.gov.v1.QueryDepositResponse")] pub struct QueryDepositResponse { /// deposit defines the requested deposit. @@ -578,8 +548,7 @@ pub struct QueryDepositResponse { } /// QueryDepositsRequest is the request type for the Query/Deposits RPC method. #[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.gov.v1.QueryDepositsRequest")] #[proto_query( path = "/cosmos.gov.v1.Query/Deposits", @@ -596,14 +565,11 @@ pub struct QueryDepositsRequest { pub proposal_id: u64, /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryDepositsResponse is the response type for the Query/Deposits RPC method. #[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.gov.v1.QueryDepositsResponse")] pub struct QueryDepositsResponse { /// deposits defines the requested deposits. @@ -611,14 +577,11 @@ pub struct QueryDepositsResponse { pub deposits: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryTallyResultRequest is the request type for the Query/Tally RPC method. #[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.gov.v1.QueryTallyResultRequest")] #[proto_query( path = "/cosmos.gov.v1.Query/TallyResult", @@ -636,8 +599,7 @@ pub struct QueryTallyResultRequest { } /// QueryTallyResultResponse is the response type for the Query/Tally RPC method. #[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.gov.v1.QueryTallyResultResponse")] pub struct QueryTallyResultResponse { /// tally defines the requested tally. @@ -647,8 +609,7 @@ pub struct QueryTallyResultResponse { /// MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary /// proposal Content. #[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.gov.v1.MsgSubmitProposal")] pub struct MsgSubmitProposal { /// messages are the arbitrary messages to be executed if proposal passes. @@ -676,8 +637,7 @@ pub struct MsgSubmitProposal { } /// MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. #[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.gov.v1.MsgSubmitProposalResponse")] pub struct MsgSubmitProposalResponse { /// proposal_id defines the unique id of the proposal. @@ -692,8 +652,7 @@ pub struct MsgSubmitProposalResponse { /// MsgExecLegacyContent is used to wrap the legacy content field into a message. /// This ensures backwards compatibility with v1beta1.MsgSubmitProposal. #[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.gov.v1.MsgExecLegacyContent")] pub struct MsgExecLegacyContent { /// content is the proposal's content. @@ -705,14 +664,12 @@ pub struct MsgExecLegacyContent { } /// MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. #[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.gov.v1.MsgExecLegacyContentResponse")] pub struct MsgExecLegacyContentResponse {} /// MsgVote defines a message to cast a vote. #[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.gov.v1.MsgVote")] pub struct MsgVote { /// proposal_id defines the unique id of the proposal. @@ -739,14 +696,12 @@ pub struct MsgVote { } /// MsgVoteResponse defines the Msg/Vote response type. #[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.gov.v1.MsgVoteResponse")] pub struct MsgVoteResponse {} /// MsgVoteWeighted defines a message to cast a vote. #[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.gov.v1.MsgVoteWeighted")] pub struct MsgVoteWeighted { /// proposal_id defines the unique id of the proposal. @@ -769,14 +724,12 @@ pub struct MsgVoteWeighted { } /// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. #[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.gov.v1.MsgVoteWeightedResponse")] pub struct MsgVoteWeightedResponse {} /// MsgDeposit defines a message to submit a deposit to an existing proposal. #[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.gov.v1.MsgDeposit")] pub struct MsgDeposit { /// proposal_id defines the unique id of the proposal. @@ -796,16 +749,14 @@ pub struct MsgDeposit { } /// MsgDepositResponse defines the Msg/Deposit response type. #[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.gov.v1.MsgDepositResponse")] pub struct MsgDepositResponse {} /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 #[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.gov.v1.MsgUpdateParams")] pub struct MsgUpdateParams { /// authority is the address that controls the module (defaults to x/gov unless overwritten). @@ -822,8 +773,7 @@ pub struct MsgUpdateParams { /// /// Since: cosmos-sdk 0.47 #[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.gov.v1.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} pub struct GovQuerier<'a, Q: cosmwasm_std::CustomQuery> { @@ -833,23 +783,15 @@ impl<'a, Q: cosmwasm_std::CustomQuery> GovQuerier<'a, Q> { pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self { Self { querier } } - pub fn proposal( - &self, - proposal_id: u64, - ) -> Result { - QueryProposalRequest { - proposal_id, - } - .query(self.querier) + pub fn proposal(&self, proposal_id: u64) -> Result { + QueryProposalRequest { proposal_id }.query(self.querier) } pub fn proposals( &self, proposal_status: i32, voter: ::prost::alloc::string::String, depositor: ::prost::alloc::string::String, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { QueryProposalsRequest { proposal_status, @@ -857,69 +799,32 @@ impl<'a, Q: cosmwasm_std::CustomQuery> GovQuerier<'a, Q> { depositor, pagination, } - .query(self.querier) + .query(self.querier) } - pub fn vote( - &self, - proposal_id: u64, - voter: ::prost::alloc::string::String, - ) -> Result { - QueryVoteRequest { - proposal_id, - voter, - } - .query(self.querier) + pub fn vote(&self, proposal_id: u64, voter: ::prost::alloc::string::String) -> Result { + QueryVoteRequest { proposal_id, voter }.query(self.querier) } pub fn votes( &self, proposal_id: u64, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryVotesRequest { - proposal_id, - pagination, - } - .query(self.querier) + QueryVotesRequest { proposal_id, pagination }.query(self.querier) } - pub fn params( - &self, - params_type: ::prost::alloc::string::String, - ) -> Result { + pub fn params(&self, params_type: ::prost::alloc::string::String) -> Result { QueryParamsRequest { params_type }.query(self.querier) } - pub fn deposit( - &self, - proposal_id: u64, - depositor: ::prost::alloc::string::String, - ) -> Result { - QueryDepositRequest { - proposal_id, - depositor, - } - .query(self.querier) + pub fn deposit(&self, proposal_id: u64, depositor: ::prost::alloc::string::String) -> Result { + QueryDepositRequest { proposal_id, depositor }.query(self.querier) } pub fn deposits( &self, proposal_id: u64, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryDepositsRequest { - proposal_id, - pagination, - } - .query(self.querier) + QueryDepositsRequest { proposal_id, pagination }.query(self.querier) } - pub fn tally_result( - &self, - proposal_id: u64, - ) -> Result { - QueryTallyResultRequest { - proposal_id, - } - .query(self.querier) + pub fn tally_result(&self, proposal_id: u64) -> Result { + QueryTallyResultRequest { proposal_id }.query(self.querier) } } diff --git a/packages/injective-std/src/types/cosmos/gov/v1beta1.rs b/packages/injective-std/src/types/cosmos/gov/v1beta1.rs index 37b662a8..7e1fc31a 100644 --- a/packages/injective-std/src/types/cosmos/gov/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/gov/v1beta1.rs @@ -3,8 +3,7 @@ use osmosis_std_derive::CosmwasmExt; /// /// Since: cosmos-sdk 0.43 #[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.gov.v1beta1.WeightedVoteOption")] pub struct WeightedVoteOption { /// option defines the valid vote options, it must not contain duplicate vote options. @@ -21,8 +20,7 @@ pub struct WeightedVoteOption { /// TextProposal defines a standard text proposal whose changes need to be /// manually updated in case of approval. #[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.gov.v1beta1.TextProposal")] pub struct TextProposal { /// title of the proposal. @@ -35,8 +33,7 @@ pub struct TextProposal { /// Deposit defines an amount deposited by an account address to an active /// proposal. #[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.gov.v1beta1.Deposit")] pub struct Deposit { /// proposal_id defines the unique id of the proposal. @@ -56,8 +53,7 @@ pub struct Deposit { } /// Proposal defines the core field members of a governance proposal. #[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.gov.v1beta1.Proposal")] pub struct Proposal { /// proposal_id defines the unique id of the proposal. @@ -101,8 +97,7 @@ pub struct Proposal { } /// TallyResult defines a standard tally for a governance proposal. #[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.gov.v1beta1.TallyResult")] pub struct TallyResult { /// yes is the number of yes votes on a proposal. @@ -121,8 +116,7 @@ pub struct TallyResult { /// Vote defines a vote on a governance proposal. /// A Vote consists of a proposal ID, the voter, and the vote option. #[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.gov.v1beta1.Vote")] pub struct Vote { /// proposal_id defines the unique id of the proposal. @@ -154,8 +148,7 @@ pub struct Vote { } /// DepositParams defines the params for deposits on governance proposals. #[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.gov.v1beta1.DepositParams")] pub struct DepositParams { /// Minimum deposit for a proposal to enter voting period. @@ -168,8 +161,7 @@ pub struct DepositParams { } /// VotingParams defines the params for voting on governance proposals. #[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.gov.v1beta1.VotingParams")] pub struct VotingParams { /// Duration of the voting period. @@ -178,8 +170,7 @@ pub struct VotingParams { } /// TallyParams defines the params for tallying votes on governance proposals. #[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.gov.v1beta1.TallyParams")] pub struct TallyParams { /// Minimum percentage of total stake needed to vote for a result to be @@ -289,8 +280,7 @@ impl ProposalStatus { } /// GenesisState defines the gov module's genesis state. #[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.gov.v1beta1.GenesisState")] pub struct GenesisState { /// starting_proposal_id is the ID of the starting proposal. @@ -322,8 +312,7 @@ pub struct GenesisState { } /// QueryProposalRequest is the request type for the Query/Proposal RPC method. #[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.gov.v1beta1.QueryProposalRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/Proposal", @@ -341,8 +330,7 @@ pub struct QueryProposalRequest { } /// QueryProposalResponse is the response type for the Query/Proposal RPC method. #[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.gov.v1beta1.QueryProposalResponse")] pub struct QueryProposalResponse { #[prost(message, optional, tag = "1")] @@ -350,8 +338,7 @@ pub struct QueryProposalResponse { } /// QueryProposalsRequest is the request type for the Query/Proposals RPC method. #[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.gov.v1beta1.QueryProposalsRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/Proposals", @@ -373,15 +360,12 @@ pub struct QueryProposalsRequest { pub depositor: ::prost::alloc::string::String, /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "4")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryProposalsResponse is the response type for the Query/Proposals RPC /// method. #[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.gov.v1beta1.QueryProposalsResponse")] pub struct QueryProposalsResponse { /// proposals defines all the requested governance proposals. @@ -389,14 +373,11 @@ pub struct QueryProposalsResponse { pub proposals: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryVoteRequest is the request type for the Query/Vote RPC method. #[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.gov.v1beta1.QueryVoteRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/Vote", @@ -417,8 +398,7 @@ pub struct QueryVoteRequest { } /// QueryVoteResponse is the response type for the Query/Vote RPC method. #[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.gov.v1beta1.QueryVoteResponse")] pub struct QueryVoteResponse { /// vote defines the queried vote. @@ -427,8 +407,7 @@ pub struct QueryVoteResponse { } /// QueryVotesRequest is the request type for the Query/Votes RPC method. #[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.gov.v1beta1.QueryVotesRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/Votes", @@ -445,14 +424,11 @@ pub struct QueryVotesRequest { pub proposal_id: u64, /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryVotesResponse is the response type for the Query/Votes RPC method. #[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.gov.v1beta1.QueryVotesResponse")] pub struct QueryVotesResponse { /// votes defines the queried votes. @@ -460,14 +436,11 @@ pub struct QueryVotesResponse { pub votes: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryParamsRequest is the request type for the Query/Params RPC method. #[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.gov.v1beta1.QueryParamsRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/Params", @@ -481,8 +454,7 @@ pub struct QueryParamsRequest { } /// QueryParamsResponse is the response type for the Query/Params RPC method. #[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.gov.v1beta1.QueryParamsResponse")] pub struct QueryParamsResponse { /// voting_params defines the parameters related to voting. @@ -497,8 +469,7 @@ pub struct QueryParamsResponse { } /// QueryDepositRequest is the request type for the Query/Deposit RPC method. #[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.gov.v1beta1.QueryDepositRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/Deposit", @@ -519,8 +490,7 @@ pub struct QueryDepositRequest { } /// QueryDepositResponse is the response type for the Query/Deposit RPC method. #[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.gov.v1beta1.QueryDepositResponse")] pub struct QueryDepositResponse { /// deposit defines the requested deposit. @@ -529,8 +499,7 @@ pub struct QueryDepositResponse { } /// QueryDepositsRequest is the request type for the Query/Deposits RPC method. #[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.gov.v1beta1.QueryDepositsRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/Deposits", @@ -547,14 +516,11 @@ pub struct QueryDepositsRequest { pub proposal_id: u64, /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryDepositsResponse is the response type for the Query/Deposits RPC method. #[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.gov.v1beta1.QueryDepositsResponse")] pub struct QueryDepositsResponse { /// deposits defines the requested deposits. @@ -562,14 +528,11 @@ pub struct QueryDepositsResponse { pub deposits: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryTallyResultRequest is the request type for the Query/Tally RPC method. #[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.gov.v1beta1.QueryTallyResultRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/TallyResult", @@ -587,8 +550,7 @@ pub struct QueryTallyResultRequest { } /// QueryTallyResultResponse is the response type for the Query/Tally RPC method. #[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.gov.v1beta1.QueryTallyResultResponse")] pub struct QueryTallyResultResponse { /// tally defines the requested tally. @@ -598,8 +560,7 @@ pub struct QueryTallyResultResponse { /// MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary /// proposal Content. #[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.gov.v1beta1.MsgSubmitProposal")] pub struct MsgSubmitProposal { /// content is the proposal's content. @@ -614,8 +575,7 @@ pub struct MsgSubmitProposal { } /// MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. #[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.gov.v1beta1.MsgSubmitProposalResponse")] pub struct MsgSubmitProposalResponse { /// proposal_id defines the unique id of the proposal. @@ -629,8 +589,7 @@ pub struct MsgSubmitProposalResponse { } /// MsgVote defines a message to cast a vote. #[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.gov.v1beta1.MsgVote")] pub struct MsgVote { /// proposal_id defines the unique id of the proposal. @@ -654,16 +613,14 @@ pub struct MsgVote { } /// MsgVoteResponse defines the Msg/Vote response type. #[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.gov.v1beta1.MsgVoteResponse")] pub struct MsgVoteResponse {} /// MsgVoteWeighted defines a message to cast a vote. /// /// Since: cosmos-sdk 0.43 #[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.gov.v1beta1.MsgVoteWeighted")] pub struct MsgVoteWeighted { /// proposal_id defines the unique id of the proposal. @@ -685,14 +642,12 @@ pub struct MsgVoteWeighted { /// /// Since: cosmos-sdk 0.43 #[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.gov.v1beta1.MsgVoteWeightedResponse")] pub struct MsgVoteWeightedResponse {} /// MsgDeposit defines a message to submit a deposit to an existing proposal. #[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.gov.v1beta1.MsgDeposit")] pub struct MsgDeposit { /// proposal_id defines the unique id of the proposal. @@ -712,8 +667,7 @@ pub struct MsgDeposit { } /// MsgDepositResponse defines the Msg/Deposit response type. #[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.gov.v1beta1.MsgDepositResponse")] pub struct MsgDepositResponse {} pub struct GovQuerier<'a, Q: cosmwasm_std::CustomQuery> { @@ -723,23 +677,15 @@ impl<'a, Q: cosmwasm_std::CustomQuery> GovQuerier<'a, Q> { pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self { Self { querier } } - pub fn proposal( - &self, - proposal_id: u64, - ) -> Result { - QueryProposalRequest { - proposal_id, - } - .query(self.querier) + pub fn proposal(&self, proposal_id: u64) -> Result { + QueryProposalRequest { proposal_id }.query(self.querier) } pub fn proposals( &self, proposal_status: i32, voter: ::prost::alloc::string::String, depositor: ::prost::alloc::string::String, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { QueryProposalsRequest { proposal_status, @@ -747,69 +693,32 @@ impl<'a, Q: cosmwasm_std::CustomQuery> GovQuerier<'a, Q> { depositor, pagination, } - .query(self.querier) + .query(self.querier) } - pub fn vote( - &self, - proposal_id: u64, - voter: ::prost::alloc::string::String, - ) -> Result { - QueryVoteRequest { - proposal_id, - voter, - } - .query(self.querier) + pub fn vote(&self, proposal_id: u64, voter: ::prost::alloc::string::String) -> Result { + QueryVoteRequest { proposal_id, voter }.query(self.querier) } pub fn votes( &self, proposal_id: u64, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryVotesRequest { - proposal_id, - pagination, - } - .query(self.querier) + QueryVotesRequest { proposal_id, pagination }.query(self.querier) } - pub fn params( - &self, - params_type: ::prost::alloc::string::String, - ) -> Result { + pub fn params(&self, params_type: ::prost::alloc::string::String) -> Result { QueryParamsRequest { params_type }.query(self.querier) } - pub fn deposit( - &self, - proposal_id: u64, - depositor: ::prost::alloc::string::String, - ) -> Result { - QueryDepositRequest { - proposal_id, - depositor, - } - .query(self.querier) + pub fn deposit(&self, proposal_id: u64, depositor: ::prost::alloc::string::String) -> Result { + QueryDepositRequest { proposal_id, depositor }.query(self.querier) } pub fn deposits( &self, proposal_id: u64, - pagination: ::core::option::Option< - super::super::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryDepositsRequest { - proposal_id, - pagination, - } - .query(self.querier) + QueryDepositsRequest { proposal_id, pagination }.query(self.querier) } - pub fn tally_result( - &self, - proposal_id: u64, - ) -> Result { - QueryTallyResultRequest { - proposal_id, - } - .query(self.querier) + pub fn tally_result(&self, proposal_id: u64) -> Result { + QueryTallyResultRequest { proposal_id }.query(self.querier) } } diff --git a/packages/injective-std/src/types/cosmos/params/module/v1.rs b/packages/injective-std/src/types/cosmos/params/module/v1.rs index 27d26168..74f4fade 100644 --- a/packages/injective-std/src/types/cosmos/params/module/v1.rs +++ b/packages/injective-std/src/types/cosmos/params/module/v1.rs @@ -1,7 +1,6 @@ use osmosis_std_derive::CosmwasmExt; /// Module is the config object of the params 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.params.module.v1.Module")] pub struct Module {} diff --git a/packages/injective-std/src/types/cosmos/params/v1beta1.rs b/packages/injective-std/src/types/cosmos/params/v1beta1.rs index 3ba58487..34b02c6e 100644 --- a/packages/injective-std/src/types/cosmos/params/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/params/v1beta1.rs @@ -1,8 +1,7 @@ use osmosis_std_derive::CosmwasmExt; /// ParameterChangeProposal defines a proposal to change one or more parameters. #[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.params.v1beta1.ParameterChangeProposal")] pub struct ParameterChangeProposal { #[prost(string, tag = "1")] @@ -15,8 +14,7 @@ pub struct ParameterChangeProposal { /// ParamChange defines an individual parameter change, for use in /// ParameterChangeProposal. #[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.params.v1beta1.ParamChange")] pub struct ParamChange { #[prost(string, tag = "1")] @@ -28,8 +26,7 @@ pub struct ParamChange { } /// QueryParamsRequest is request type for the Query/Params RPC method. #[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.params.v1beta1.QueryParamsRequest")] #[proto_query( path = "/cosmos.params.v1beta1.Query/Params", @@ -45,8 +42,7 @@ pub struct QueryParamsRequest { } /// QueryParamsResponse is response type for the Query/Params RPC method. #[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.params.v1beta1.QueryParamsResponse")] pub struct QueryParamsResponse { /// param defines the queried parameter. @@ -58,8 +54,7 @@ pub struct QueryParamsResponse { /// /// Since: cosmos-sdk 0.46 #[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.params.v1beta1.QuerySubspacesRequest")] #[proto_query( path = "/cosmos.params.v1beta1.Query/Subspaces", @@ -71,8 +66,7 @@ pub struct QuerySubspacesRequest {} /// /// Since: cosmos-sdk 0.46 #[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.params.v1beta1.QuerySubspacesResponse")] pub struct QuerySubspacesResponse { #[prost(message, repeated, tag = "1")] @@ -83,8 +77,7 @@ pub struct QuerySubspacesResponse { /// /// Since: cosmos-sdk 0.46 #[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.params.v1beta1.Subspace")] pub struct Subspace { #[prost(string, tag = "1")] @@ -104,11 +97,7 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ParamsQuerier<'a, Q> { subspace: ::prost::alloc::string::String, key: ::prost::alloc::string::String, ) -> Result { - QueryParamsRequest { - subspace, - key, - } - .query(self.querier) + QueryParamsRequest { subspace, key }.query(self.querier) } pub fn subspaces(&self) -> Result { QuerySubspacesRequest {}.query(self.querier) diff --git a/packages/injective-std/src/types/cosmos/staking/v1beta1.rs b/packages/injective-std/src/types/cosmos/staking/v1beta1.rs index b634030f..3d357e51 100644 --- a/packages/injective-std/src/types/cosmos/staking/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/staking/v1beta1.rs @@ -7,8 +7,7 @@ struct HistoricalInfo {} /// CommissionRates defines the initial commission rates to be used for creating /// a validator. #[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.staking.v1beta1.CommissionRates")] pub struct CommissionRates { /// rate is the commission rate charged to delegators, as a fraction. @@ -23,8 +22,7 @@ pub struct CommissionRates { } /// Commission defines commission parameters for a given validator. #[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.staking.v1beta1.Commission")] pub struct Commission { /// commission_rates defines the initial commission rates to be used for creating a validator. @@ -36,8 +34,7 @@ pub struct Commission { } /// Description defines a validator description. #[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.staking.v1beta1.Description")] pub struct Description { /// moniker defines a human-readable name for the validator. @@ -65,8 +62,7 @@ pub struct Description { /// exchange rate. Voting power can be calculated as total bonded shares /// multiplied by exchange rate. #[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.staking.v1beta1.Validator")] pub struct Validator { /// operator_address defines the address of the validator's operator; bech encoded in JSON. @@ -126,8 +122,7 @@ pub struct Validator { } /// ValAddresses defines a repeated set of validator addresses. #[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.staking.v1beta1.ValAddresses")] pub struct ValAddresses { #[prost(string, repeated, tag = "1")] @@ -137,8 +132,7 @@ pub struct ValAddresses { /// It is intended to be used as a marshalable pointer. For example, a DVPair can /// be used to construct the key to getting an UnbondingDelegation from state. #[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.staking.v1beta1.DVPair")] pub struct DvPair { #[prost(string, tag = "1")] @@ -148,8 +142,7 @@ pub struct DvPair { } /// DVPairs defines an array of DVPair objects. #[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.staking.v1beta1.DVPairs")] pub struct DvPairs { #[prost(message, repeated, tag = "1")] @@ -160,8 +153,7 @@ pub struct DvPairs { /// example, a DVVTriplet can be used to construct the key to getting a /// Redelegation from state. #[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.staking.v1beta1.DVVTriplet")] pub struct DvvTriplet { #[prost(string, tag = "1")] @@ -173,8 +165,7 @@ pub struct DvvTriplet { } /// DVVTriplets defines an array of DVVTriplet objects. #[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.staking.v1beta1.DVVTriplets")] pub struct DvvTriplets { #[prost(message, repeated, tag = "1")] @@ -184,8 +175,7 @@ pub struct DvvTriplets { /// owned by one delegator, and is associated with the voting power of one /// validator. #[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.staking.v1beta1.Delegation")] pub struct Delegation { /// delegator_address is the bech32-encoded address of the delegator. @@ -201,8 +191,7 @@ pub struct Delegation { /// UnbondingDelegation stores all of a single delegator's unbonding bonds /// for a single validator in an time-ordered list. #[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.staking.v1beta1.UnbondingDelegation")] pub struct UnbondingDelegation { /// delegator_address is the bech32-encoded address of the delegator. @@ -219,8 +208,7 @@ pub struct UnbondingDelegation { } /// UnbondingDelegationEntry defines an unbonding object with relevant metadata. #[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.staking.v1beta1.UnbondingDelegationEntry")] pub struct UnbondingDelegationEntry { /// creation_height is the height which the unbonding took place. @@ -257,8 +245,7 @@ pub struct UnbondingDelegationEntry { } /// RedelegationEntry defines a redelegation object with relevant metadata. #[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.staking.v1beta1.RedelegationEntry")] pub struct RedelegationEntry { /// creation_height defines the height which the redelegation took place. @@ -296,8 +283,7 @@ pub struct RedelegationEntry { /// Redelegation contains the list of a particular delegator's redelegating bonds /// from a particular source validator to a particular destination validator. #[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.staking.v1beta1.Redelegation")] pub struct Redelegation { /// delegator_address is the bech32-encoded address of the delegator. @@ -317,8 +303,7 @@ pub struct Redelegation { } /// Params defines the parameters for the x/staking 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.staking.v1beta1.Params")] pub struct Params { /// unbonding_time is the time duration of unbonding. @@ -355,8 +340,7 @@ pub struct Params { /// DelegationResponse is equivalent to Delegation except that it contains a /// balance in addition to shares which is more suitable for client responses. #[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.staking.v1beta1.DelegationResponse")] pub struct DelegationResponse { #[prost(message, optional, tag = "1")] @@ -368,8 +352,7 @@ pub struct DelegationResponse { /// contains a balance in addition to shares which is more suitable for client /// responses. #[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.staking.v1beta1.RedelegationEntryResponse")] pub struct RedelegationEntryResponse { #[prost(message, optional, tag = "1")] @@ -381,8 +364,7 @@ pub struct RedelegationEntryResponse { /// contain a balance in addition to shares which is more suitable for client /// responses. #[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.staking.v1beta1.RedelegationResponse")] pub struct RedelegationResponse { #[prost(message, optional, tag = "1")] @@ -393,8 +375,7 @@ pub struct RedelegationResponse { /// Pool is used for tracking bonded and not-bonded token supply of the bond /// denomination. #[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.staking.v1beta1.Pool")] pub struct Pool { #[prost(string, tag = "1")] @@ -481,8 +462,7 @@ impl Infraction { } /// GenesisState defines the staking module's genesis state. #[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.staking.v1beta1.GenesisState")] pub struct GenesisState { /// params defines all the parameters of related to deposit. @@ -513,8 +493,7 @@ pub struct GenesisState { } /// LastValidatorPower required for validator set update logic. #[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.staking.v1beta1.LastValidatorPower")] pub struct LastValidatorPower { /// address is the address of the validator. @@ -530,8 +509,7 @@ pub struct LastValidatorPower { } /// MsgCreateValidator defines a SDK message for creating a new validator. #[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.staking.v1beta1.MsgCreateValidator")] pub struct MsgCreateValidator { #[prost(message, optional, tag = "1")] @@ -551,14 +529,12 @@ pub struct MsgCreateValidator { } /// MsgCreateValidatorResponse defines the Msg/CreateValidator response type. #[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.staking.v1beta1.MsgCreateValidatorResponse")] pub struct MsgCreateValidatorResponse {} /// MsgEditValidator defines a SDK message for editing an existing validator. #[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.staking.v1beta1.MsgEditValidator")] pub struct MsgEditValidator { #[prost(message, optional, tag = "1")] @@ -576,15 +552,13 @@ pub struct MsgEditValidator { } /// MsgEditValidatorResponse defines the Msg/EditValidator response type. #[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.staking.v1beta1.MsgEditValidatorResponse")] pub struct MsgEditValidatorResponse {} /// MsgDelegate defines a SDK message for performing a delegation of coins /// from a delegator to a validator. #[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.staking.v1beta1.MsgDelegate")] pub struct MsgDelegate { #[prost(string, tag = "1")] @@ -596,15 +570,13 @@ pub struct MsgDelegate { } /// MsgDelegateResponse defines the Msg/Delegate response type. #[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.staking.v1beta1.MsgDelegateResponse")] pub struct MsgDelegateResponse {} /// MsgBeginRedelegate defines a SDK message for performing a redelegation /// of coins from a delegator and source validator to a destination validator. #[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.staking.v1beta1.MsgBeginRedelegate")] pub struct MsgBeginRedelegate { #[prost(string, tag = "1")] @@ -618,8 +590,7 @@ pub struct MsgBeginRedelegate { } /// MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. #[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.staking.v1beta1.MsgBeginRedelegateResponse")] pub struct MsgBeginRedelegateResponse { #[prost(message, optional, tag = "1")] @@ -628,8 +599,7 @@ pub struct MsgBeginRedelegateResponse { /// MsgUndelegate defines a SDK message for performing an undelegation from a /// delegate and a validator. #[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.staking.v1beta1.MsgUndelegate")] pub struct MsgUndelegate { #[prost(string, tag = "1")] @@ -641,8 +611,7 @@ pub struct MsgUndelegate { } /// MsgUndelegateResponse defines the Msg/Undelegate response type. #[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.staking.v1beta1.MsgUndelegateResponse")] pub struct MsgUndelegateResponse { #[prost(message, optional, tag = "1")] @@ -652,8 +621,7 @@ pub struct MsgUndelegateResponse { /// /// Since: cosmos-sdk 0.46 #[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.staking.v1beta1.MsgCancelUnbondingDelegation")] pub struct MsgCancelUnbondingDelegation { #[prost(string, tag = "1")] @@ -675,18 +643,14 @@ pub struct MsgCancelUnbondingDelegation { /// /// Since: cosmos-sdk 0.46 #[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.staking.v1beta1.MsgCancelUnbondingDelegationResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse")] pub struct MsgCancelUnbondingDelegationResponse {} /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 #[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.staking.v1beta1.MsgUpdateParams")] pub struct MsgUpdateParams { /// authority is the address that controls the module (defaults to x/gov unless overwritten). @@ -703,7 +667,6 @@ pub struct MsgUpdateParams { /// /// Since: cosmos-sdk 0.47 #[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.staking.v1beta1.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} diff --git a/packages/injective-std/src/types/cosmwasm/wasm/v1.rs b/packages/injective-std/src/types/cosmwasm/wasm/v1.rs index 605e4b3a..f1a0dde9 100644 --- a/packages/injective-std/src/types/cosmwasm/wasm/v1.rs +++ b/packages/injective-std/src/types/cosmwasm/wasm/v1.rs @@ -1,8 +1,7 @@ use osmosis_std_derive::CosmwasmExt; /// AccessTypeParam #[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 = "/cosmwasm.wasm.v1.AccessTypeParamAccessTypeParam")] pub struct AccessTypeParam { #[prost(enumeration = "AccessType", tag = "1")] @@ -14,8 +13,7 @@ pub struct AccessTypeParam { } /// AccessConfig access control type. #[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 = "/cosmwasm.wasm.v1.AccessConfigAccessConfig")] pub struct AccessConfig { #[prost(enumeration = "AccessType", tag = "1")] @@ -29,8 +27,7 @@ pub struct AccessConfig { } /// Params defines the set of wasm parameters. #[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 = "/cosmwasm.wasm.v1.ParamsParams")] pub struct Params { #[prost(message, optional, tag = "1")] @@ -44,8 +41,7 @@ pub struct Params { } /// CodeInfo is data for the uploaded contract WASM code #[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 = "/cosmwasm.wasm.v1.CodeInfoCodeInfo")] pub struct CodeInfo { /// CodeHash is the unique identifier created by wasmvm @@ -60,8 +56,7 @@ pub struct CodeInfo { } /// ContractInfo stores a WASM contract instance #[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 = "/cosmwasm.wasm.v1.ContractInfoContractInfo")] pub struct ContractInfo { /// CodeID is the reference to the stored Wasm code @@ -94,11 +89,8 @@ pub struct ContractInfo { } /// ContractCodeHistoryEntry metadata to a contract. #[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 = "/cosmwasm.wasm.v1.ContractCodeHistoryEntryContractCodeHistoryEntry" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmwasm.wasm.v1.ContractCodeHistoryEntryContractCodeHistoryEntry")] pub struct ContractCodeHistoryEntry { #[prost(enumeration = "ContractCodeHistoryOperationType", tag = "1")] #[serde( @@ -123,8 +115,7 @@ pub struct ContractCodeHistoryEntry { /// AbsoluteTxPosition is a unique transaction position that allows for global /// ordering of transactions. #[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 = "/cosmwasm.wasm.v1.AbsoluteTxPositionAbsoluteTxPosition")] pub struct AbsoluteTxPosition { /// BlockHeight is the block the contract was created at @@ -145,8 +136,7 @@ pub struct AbsoluteTxPosition { } /// Model is a struct that holds a KV pair #[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 = "/cosmwasm.wasm.v1.ModelModel")] pub struct Model { /// hex-encode key to read it better (this is often ascii) @@ -215,18 +205,10 @@ impl ContractCodeHistoryOperationType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ContractCodeHistoryOperationType::Unspecified => { - "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" - } - ContractCodeHistoryOperationType::Init => { - "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT" - } - ContractCodeHistoryOperationType::Migrate => { - "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE" - } - ContractCodeHistoryOperationType::Genesis => { - "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS" - } + ContractCodeHistoryOperationType::Unspecified => "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED", + ContractCodeHistoryOperationType::Init => "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT", + ContractCodeHistoryOperationType::Migrate => "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE", + ContractCodeHistoryOperationType::Genesis => "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -243,8 +225,7 @@ impl ContractCodeHistoryOperationType { /// StoreCodeAuthorization defines authorization for wasm code upload. /// Since: wasmd 0.42 #[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 = "/cosmwasm.wasm.v1.StoreCodeAuthorization")] pub struct StoreCodeAuthorization { /// Grants for code upload @@ -254,8 +235,7 @@ pub struct StoreCodeAuthorization { /// ContractExecutionAuthorization defines authorization for wasm execute. /// Since: wasmd 0.30 #[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 = "/cosmwasm.wasm.v1.ContractExecutionAuthorization")] pub struct ContractExecutionAuthorization { /// Grants for contract executions @@ -265,8 +245,7 @@ pub struct ContractExecutionAuthorization { /// ContractMigrationAuthorization defines authorization for wasm contract /// migration. Since: wasmd 0.30 #[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 = "/cosmwasm.wasm.v1.ContractMigrationAuthorization")] pub struct ContractMigrationAuthorization { /// Grants for contract migrations @@ -275,8 +254,7 @@ pub struct ContractMigrationAuthorization { } /// CodeGrant a granted permission for a single code #[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 = "/cosmwasm.wasm.v1.CodeGrant")] pub struct CodeGrant { /// CodeHash is the unique identifier created by wasmvm @@ -292,8 +270,7 @@ pub struct CodeGrant { /// ContractGrant a granted permission for a single contract /// Since: wasmd 0.30 #[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 = "/cosmwasm.wasm.v1.ContractGrant")] pub struct ContractGrant { /// Contract is the bech32 address of the smart contract @@ -312,8 +289,7 @@ pub struct ContractGrant { /// MaxCallsLimit limited number of calls to the contract. No funds transferable. /// Since: wasmd 0.30 #[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 = "/cosmwasm.wasm.v1.MaxCallsLimit")] pub struct MaxCallsLimit { /// Remaining number that is decremented on each execution @@ -327,22 +303,18 @@ pub struct MaxCallsLimit { /// MaxFundsLimit defines the maximal amounts that can be sent to the contract. /// Since: wasmd 0.30 #[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 = "/cosmwasm.wasm.v1.MaxFundsLimit")] pub struct MaxFundsLimit { /// Amounts is the maximal amount of tokens transferable to the contract. #[prost(message, repeated, tag = "1")] - pub amounts: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub amounts: ::prost::alloc::vec::Vec, } /// CombinedLimit defines the maximal amounts that can be sent to a contract and /// the maximal number of calls executable. Both need to remain >0 to be valid. /// Since: wasmd 0.30 #[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 = "/cosmwasm.wasm.v1.CombinedLimit")] pub struct CombinedLimit { /// Remaining number that is decremented on each execution @@ -354,24 +326,20 @@ pub struct CombinedLimit { pub calls_remaining: u64, /// Amounts is the maximal amount of tokens transferable to the contract. #[prost(message, repeated, tag = "2")] - pub amounts: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub amounts: ::prost::alloc::vec::Vec, } /// AllowAllMessagesFilter is a wildcard to allow any type of contract payload /// message. /// Since: wasmd 0.30 #[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 = "/cosmwasm.wasm.v1.AllowAllMessagesFilter")] pub struct AllowAllMessagesFilter {} /// AcceptedMessageKeysFilter accept only the specific contract message keys in /// the json object to be executed. /// Since: wasmd 0.30 #[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 = "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter")] pub struct AcceptedMessageKeysFilter { /// Messages is the list of unique keys @@ -382,8 +350,7 @@ pub struct AcceptedMessageKeysFilter { /// executed. /// Since: wasmd 0.30 #[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 = "/cosmwasm.wasm.v1.AcceptedMessagesFilter")] pub struct AcceptedMessagesFilter { /// Messages is the list of raw contract messages @@ -392,8 +359,7 @@ pub struct AcceptedMessagesFilter { } /// GenesisState - genesis state of x/wasm #[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 = "/cosmwasm.wasm.v1.GenesisState")] pub struct GenesisState { #[prost(message, optional, tag = "1")] @@ -407,8 +373,7 @@ pub struct GenesisState { } /// Code struct encompasses CodeInfo and CodeBytes #[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 = "/cosmwasm.wasm.v1.Code")] pub struct Code { #[prost(uint64, tag = "1")] @@ -428,8 +393,7 @@ pub struct Code { } /// Contract struct encompasses ContractAddress, ContractInfo, and ContractState #[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 = "/cosmwasm.wasm.v1.Contract")] pub struct Contract { #[prost(string, tag = "1")] @@ -443,8 +407,7 @@ pub struct Contract { } /// Sequence key and value of an id generation counter #[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 = "/cosmwasm.wasm.v1.Sequence")] pub struct Sequence { #[prost(bytes = "vec", tag = "1")] @@ -458,8 +421,7 @@ pub struct Sequence { } /// MsgIBCSend #[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 = "/cosmwasm.wasm.v1.MsgIBCSend")] pub struct MsgIbcSend { /// the channel by which the packet will be sent @@ -488,8 +450,7 @@ pub struct MsgIbcSend { } /// MsgIBCSendResponse #[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 = "/cosmwasm.wasm.v1.MsgIBCSendResponse")] pub struct MsgIbcSendResponse { /// Sequence number of the IBC packet sent @@ -502,8 +463,7 @@ pub struct MsgIbcSendResponse { } /// MsgIBCCloseChannel port and channel need to be owned by the contract #[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 = "/cosmwasm.wasm.v1.MsgIBCCloseChannel")] pub struct MsgIbcCloseChannel { #[prost(string, tag = "2")] @@ -514,8 +474,7 @@ pub struct MsgIbcCloseChannel { /// a simple MsgStoreCode can be invoked from the x/gov module via /// a v1 governance proposal. #[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 = "/cosmwasm.wasm.v1.StoreCodeProposalStoreCodeProposal")] #[deprecated] pub struct StoreCodeProposal { @@ -554,11 +513,8 @@ pub struct StoreCodeProposal { /// a simple MsgInstantiateContract can be invoked from the x/gov module via /// a v1 governance proposal. #[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 = "/cosmwasm.wasm.v1.InstantiateContractProposalInstantiateContractProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmwasm.wasm.v1.InstantiateContractProposalInstantiateContractProposal")] #[deprecated] pub struct InstantiateContractProposal { /// Title is a short summary @@ -589,20 +545,15 @@ pub struct InstantiateContractProposal { pub msg: ::prost::alloc::vec::Vec, /// Funds coins that are transferred to the contract on instantiation #[prost(message, repeated, tag = "8")] - pub funds: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub funds: ::prost::alloc::vec::Vec, } /// Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for /// an explicit InstantiateContract2Proposal. To instantiate contract 2, /// a simple MsgInstantiateContract2 can be invoked from the x/gov module via /// a v1 governance proposal. #[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 = "/cosmwasm.wasm.v1.InstantiateContract2ProposalInstantiateContract2Proposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmwasm.wasm.v1.InstantiateContract2ProposalInstantiateContract2Proposal")] #[deprecated] pub struct InstantiateContract2Proposal { /// Title is a short summary @@ -633,9 +584,7 @@ pub struct InstantiateContract2Proposal { pub msg: ::prost::alloc::vec::Vec, /// Funds coins that are transferred to the contract on instantiation #[prost(message, repeated, tag = "8")] - pub funds: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub funds: ::prost::alloc::vec::Vec, /// Salt is an arbitrary value provided by the sender. Size can be 1 to 64. #[prost(bytes = "vec", tag = "9")] pub salt: ::prost::alloc::vec::Vec, @@ -649,11 +598,8 @@ pub struct InstantiateContract2Proposal { /// a simple MsgMigrateContract can be invoked from the x/gov module via /// a v1 governance proposal. #[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 = "/cosmwasm.wasm.v1.MigrateContractProposalMigrateContractProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmwasm.wasm.v1.MigrateContractProposalMigrateContractProposal")] #[deprecated] pub struct MigrateContractProposal { /// Title is a short summary @@ -684,8 +630,7 @@ pub struct MigrateContractProposal { /// a simple MsgSudoContract can be invoked from the x/gov module via /// a v1 governance proposal. #[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 = "/cosmwasm.wasm.v1.SudoContractProposalSudoContractProposal")] #[deprecated] pub struct SudoContractProposal { @@ -707,11 +652,8 @@ pub struct SudoContractProposal { /// a simple MsgExecuteContract can be invoked from the x/gov module via /// a v1 governance proposal. #[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 = "/cosmwasm.wasm.v1.ExecuteContractProposalExecuteContractProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmwasm.wasm.v1.ExecuteContractProposalExecuteContractProposal")] #[deprecated] pub struct ExecuteContractProposal { /// Title is a short summary @@ -731,17 +673,14 @@ pub struct ExecuteContractProposal { pub msg: ::prost::alloc::vec::Vec, /// Funds coins that are transferred to the contract on instantiation #[prost(message, repeated, tag = "6")] - pub funds: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub funds: ::prost::alloc::vec::Vec, } /// Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for /// an explicit UpdateAdminProposal. To set an admin for a contract, /// a simple MsgUpdateAdmin can be invoked from the x/gov module via /// a v1 governance proposal. #[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 = "/cosmwasm.wasm.v1.UpdateAdminProposalUpdateAdminProposal")] #[deprecated] pub struct UpdateAdminProposal { @@ -763,8 +702,7 @@ pub struct UpdateAdminProposal { /// a simple MsgClearAdmin can be invoked from the x/gov module via /// a v1 governance proposal. #[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 = "/cosmwasm.wasm.v1.ClearAdminProposalClearAdminProposal")] #[deprecated] pub struct ClearAdminProposal { @@ -783,8 +721,7 @@ pub struct ClearAdminProposal { /// cache, a simple MsgPinCodes can be invoked from the x/gov module via /// a v1 governance proposal. #[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 = "/cosmwasm.wasm.v1.PinCodesProposalPinCodesProposal")] #[deprecated] pub struct PinCodesProposal { @@ -804,8 +741,7 @@ pub struct PinCodesProposal { /// cache, a simple MsgUnpinCodes can be invoked from the x/gov module via /// a v1 governance proposal. #[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 = "/cosmwasm.wasm.v1.UnpinCodesProposalUnpinCodesProposal")] #[deprecated] pub struct UnpinCodesProposal { @@ -823,8 +759,7 @@ pub struct UnpinCodesProposal { /// AccessConfigUpdate contains the code id and the access config to be /// applied. #[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 = "/cosmwasm.wasm.v1.AccessConfigUpdateAccessConfigUpdate")] pub struct AccessConfigUpdate { /// CodeID is the reference to the stored WASM code to be updated @@ -844,11 +779,8 @@ pub struct AccessConfigUpdate { /// to a set of code ids, a simple MsgUpdateInstantiateConfig can be invoked from /// the x/gov module via a v1 governance proposal. #[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 = "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposalUpdateInstantiateConfigProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposalUpdateInstantiateConfigProposal")] #[deprecated] pub struct UpdateInstantiateConfigProposal { /// Title is a short summary @@ -867,11 +799,8 @@ pub struct UpdateInstantiateConfigProposal { /// the contract, a simple MsgStoreAndInstantiateContract can be invoked from /// the x/gov module via a v1 governance proposal. #[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 = "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposalStoreAndInstantiateContractProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposalStoreAndInstantiateContractProposal")] #[deprecated] pub struct StoreAndInstantiateContractProposal { /// Title is a short summary @@ -903,9 +832,7 @@ pub struct StoreAndInstantiateContractProposal { pub msg: ::prost::alloc::vec::Vec, /// Funds coins that are transferred to the contract on instantiation #[prost(message, repeated, tag = "10")] - pub funds: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub funds: ::prost::alloc::vec::Vec, /// Source is the URL where the code is hosted #[prost(string, tag = "11")] pub source: ::prost::alloc::string::String, @@ -921,8 +848,7 @@ pub struct StoreAndInstantiateContractProposal { /// QueryContractInfoRequest is the request type for the Query/ContractInfo RPC /// method #[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 = "/cosmwasm.wasm.v1.QueryContractInfoRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/ContractInfo", @@ -936,8 +862,7 @@ pub struct QueryContractInfoRequest { /// QueryContractInfoResponse is the response type for the Query/ContractInfo RPC /// method #[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 = "/cosmwasm.wasm.v1.QueryContractInfoResponse")] pub struct QueryContractInfoResponse { /// address is the address of the contract @@ -949,8 +874,7 @@ pub struct QueryContractInfoResponse { /// QueryContractHistoryRequest is the request type for the Query/ContractHistory /// RPC method #[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 = "/cosmwasm.wasm.v1.QueryContractHistoryRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/ContractHistory", @@ -962,30 +886,24 @@ pub struct QueryContractHistoryRequest { pub address: ::prost::alloc::string::String, /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryContractHistoryResponse is the response type for the /// Query/ContractHistory RPC method #[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 = "/cosmwasm.wasm.v1.QueryContractHistoryResponse")] pub struct QueryContractHistoryResponse { #[prost(message, repeated, tag = "1")] pub entries: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryContractsByCodeRequest is the request type for the Query/ContractsByCode /// RPC method #[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 = "/cosmwasm.wasm.v1.QueryContractsByCodeRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/ContractsByCode", @@ -1002,15 +920,12 @@ pub struct QueryContractsByCodeRequest { pub code_id: u64, /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryContractsByCodeResponse is the response type for the /// Query/ContractsByCode RPC method #[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 = "/cosmwasm.wasm.v1.QueryContractsByCodeResponse")] pub struct QueryContractsByCodeResponse { /// contracts are a set of contract addresses @@ -1018,15 +933,12 @@ pub struct QueryContractsByCodeResponse { pub contracts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryAllContractStateRequest is the request type for the /// Query/AllContractState RPC method #[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 = "/cosmwasm.wasm.v1.QueryAllContractStateRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/AllContractState", @@ -1038,30 +950,24 @@ pub struct QueryAllContractStateRequest { pub address: ::prost::alloc::string::String, /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryAllContractStateResponse is the response type for the /// Query/AllContractState RPC method #[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 = "/cosmwasm.wasm.v1.QueryAllContractStateResponse")] pub struct QueryAllContractStateResponse { #[prost(message, repeated, tag = "1")] pub models: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryRawContractStateRequest is the request type for the /// Query/RawContractState RPC method #[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 = "/cosmwasm.wasm.v1.QueryRawContractStateRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/RawContractState", @@ -1077,8 +983,7 @@ pub struct QueryRawContractStateRequest { /// QueryRawContractStateResponse is the response type for the /// Query/RawContractState RPC method #[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 = "/cosmwasm.wasm.v1.QueryRawContractStateResponse")] pub struct QueryRawContractStateResponse { /// Data contains the raw store data @@ -1088,8 +993,7 @@ pub struct QueryRawContractStateResponse { /// QuerySmartContractStateRequest is the request type for the /// Query/SmartContractState RPC method #[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 = "/cosmwasm.wasm.v1.QuerySmartContractStateRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/SmartContractState", @@ -1106,8 +1010,7 @@ pub struct QuerySmartContractStateRequest { /// QuerySmartContractStateResponse is the response type for the /// Query/SmartContractState RPC method #[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 = "/cosmwasm.wasm.v1.QuerySmartContractStateResponse")] pub struct QuerySmartContractStateResponse { /// Data contains the json data returned from the smart contract @@ -1116,8 +1019,7 @@ pub struct QuerySmartContractStateResponse { } /// QueryCodeRequest is the request type for the Query/Code RPC method #[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 = "/cosmwasm.wasm.v1.QueryCodeRequest")] #[proto_query(path = "/cosmwasm.wasm.v1.Query/Code", response_type = QueryCodeResponse)] pub struct QueryCodeRequest { @@ -1132,8 +1034,7 @@ pub struct QueryCodeRequest { } /// CodeInfoResponse contains code meta data from CodeInfo #[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 = "/cosmwasm.wasm.v1.CodeInfoResponse")] pub struct CodeInfoResponse { /// id for legacy support @@ -1153,8 +1054,7 @@ pub struct CodeInfoResponse { } /// QueryCodeResponse is the response type for the Query/Code RPC method #[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 = "/cosmwasm.wasm.v1.QueryCodeResponse")] pub struct QueryCodeResponse { #[prost(message, optional, tag = "1")] @@ -1164,8 +1064,7 @@ pub struct QueryCodeResponse { } /// QueryCodesRequest is the request type for the Query/Codes RPC method #[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 = "/cosmwasm.wasm.v1.QueryCodesRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/Codes", @@ -1174,29 +1073,23 @@ pub struct QueryCodeResponse { pub struct QueryCodesRequest { /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "1")] - pub pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryCodesResponse is the response type for the Query/Codes RPC method #[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 = "/cosmwasm.wasm.v1.QueryCodesResponse")] pub struct QueryCodesResponse { #[prost(message, repeated, tag = "1")] pub code_infos: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryPinnedCodesRequest is the request type for the Query/PinnedCodes /// RPC method #[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 = "/cosmwasm.wasm.v1.QueryPinnedCodesRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/PinnedCodes", @@ -1205,15 +1098,12 @@ pub struct QueryCodesResponse { pub struct QueryPinnedCodesRequest { /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryPinnedCodesResponse is the response type for the /// Query/PinnedCodes RPC method #[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 = "/cosmwasm.wasm.v1.QueryPinnedCodesResponse")] pub struct QueryPinnedCodesResponse { #[prost(uint64, repeated, packed = "false", tag = "1")] @@ -1221,14 +1111,11 @@ pub struct QueryPinnedCodesResponse { pub code_ids: ::prost::alloc::vec::Vec, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// QueryParamsRequest is the request type for the Query/Params RPC method. #[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 = "/cosmwasm.wasm.v1.QueryParamsRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/Params", @@ -1237,8 +1124,7 @@ pub struct QueryPinnedCodesResponse { pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. #[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 = "/cosmwasm.wasm.v1.QueryParamsResponse")] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -1248,8 +1134,7 @@ pub struct QueryParamsResponse { /// QueryContractsByCreatorRequest is the request type for the /// Query/ContractsByCreator RPC method. #[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 = "/cosmwasm.wasm.v1.QueryContractsByCreatorRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/ContractsByCreator", @@ -1261,15 +1146,12 @@ pub struct QueryContractsByCreatorRequest { pub creator_address: ::prost::alloc::string::String, /// Pagination defines an optional pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageRequest, - >, + pub pagination: ::core::option::Option, } /// QueryContractsByCreatorResponse is the response type for the /// Query/ContractsByCreator RPC method. #[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 = "/cosmwasm.wasm.v1.QueryContractsByCreatorResponse")] pub struct QueryContractsByCreatorResponse { /// ContractAddresses result set @@ -1277,14 +1159,11 @@ pub struct QueryContractsByCreatorResponse { pub contract_addresses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, /// Pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageResponse, - >, + pub pagination: ::core::option::Option, } /// MsgStoreCode submit Wasm code to the system #[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 = "/cosmwasm.wasm.v1.MsgStoreCode")] pub struct MsgStoreCode { /// Sender is the actor that signed the messages @@ -1300,8 +1179,7 @@ pub struct MsgStoreCode { } /// MsgStoreCodeResponse returns store result data. #[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 = "/cosmwasm.wasm.v1.MsgStoreCodeResponse")] pub struct MsgStoreCodeResponse { /// CodeID is the reference to the stored WASM code @@ -1319,8 +1197,7 @@ pub struct MsgStoreCodeResponse { /// MsgInstantiateContract create a new smart contract instance for the given /// code id. #[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 = "/cosmwasm.wasm.v1.MsgInstantiateContract")] pub struct MsgInstantiateContract { /// Sender is the that actor that signed the messages @@ -1345,14 +1222,11 @@ pub struct MsgInstantiateContract { pub msg: ::prost::alloc::vec::Vec, /// Funds coins that are transferred to the contract on instantiation #[prost(message, repeated, tag = "6")] - pub funds: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub funds: ::prost::alloc::vec::Vec, } /// MsgInstantiateContractResponse return instantiation result data #[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 = "/cosmwasm.wasm.v1.MsgInstantiateContractResponse")] pub struct MsgInstantiateContractResponse { /// Address is the bech32 address of the new contract instance. @@ -1365,8 +1239,7 @@ pub struct MsgInstantiateContractResponse { /// MsgInstantiateContract2 create a new smart contract instance for the given /// code id with a predicable address. #[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 = "/cosmwasm.wasm.v1.MsgInstantiateContract2")] pub struct MsgInstantiateContract2 { /// Sender is the that actor that signed the messages @@ -1391,9 +1264,7 @@ pub struct MsgInstantiateContract2 { pub msg: ::prost::alloc::vec::Vec, /// Funds coins that are transferred to the contract on instantiation #[prost(message, repeated, tag = "6")] - pub funds: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub funds: ::prost::alloc::vec::Vec, /// Salt is an arbitrary value provided by the sender. Size can be 1 to 64. #[prost(bytes = "vec", tag = "7")] pub salt: ::prost::alloc::vec::Vec, @@ -1404,8 +1275,7 @@ pub struct MsgInstantiateContract2 { } /// MsgInstantiateContract2Response return instantiation result data #[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 = "/cosmwasm.wasm.v1.MsgInstantiateContract2Response")] pub struct MsgInstantiateContract2Response { /// Address is the bech32 address of the new contract instance. @@ -1417,8 +1287,7 @@ pub struct MsgInstantiateContract2Response { } /// MsgExecuteContract submits the given message data to a smart contract #[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 = "/cosmwasm.wasm.v1.MsgExecuteContract")] pub struct MsgExecuteContract { /// Sender is the that actor that signed the messages @@ -1432,14 +1301,11 @@ pub struct MsgExecuteContract { pub msg: ::prost::alloc::vec::Vec, /// Funds coins that are transferred to the contract on execution #[prost(message, repeated, tag = "5")] - pub funds: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub funds: ::prost::alloc::vec::Vec, } /// MsgExecuteContractResponse returns execution result data. #[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 = "/cosmwasm.wasm.v1.MsgExecuteContractResponse")] pub struct MsgExecuteContractResponse { /// Data contains bytes to returned from the contract @@ -1448,8 +1314,7 @@ pub struct MsgExecuteContractResponse { } /// MsgMigrateContract runs a code upgrade/ downgrade for a smart contract #[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 = "/cosmwasm.wasm.v1.MsgMigrateContract")] pub struct MsgMigrateContract { /// Sender is the that actor that signed the messages @@ -1472,8 +1337,7 @@ pub struct MsgMigrateContract { } /// MsgMigrateContractResponse returns contract migration result data. #[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 = "/cosmwasm.wasm.v1.MsgMigrateContractResponse")] pub struct MsgMigrateContractResponse { /// Data contains same raw bytes returned as data from the wasm contract. @@ -1483,8 +1347,7 @@ pub struct MsgMigrateContractResponse { } /// MsgUpdateAdmin sets a new admin for a smart contract #[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 = "/cosmwasm.wasm.v1.MsgUpdateAdmin")] pub struct MsgUpdateAdmin { /// Sender is the that actor that signed the messages @@ -1499,14 +1362,12 @@ pub struct MsgUpdateAdmin { } /// MsgUpdateAdminResponse returns empty data #[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 = "/cosmwasm.wasm.v1.MsgUpdateAdminResponse")] pub struct MsgUpdateAdminResponse {} /// MsgClearAdmin removes any admin stored for a smart contract #[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 = "/cosmwasm.wasm.v1.MsgClearAdmin")] pub struct MsgClearAdmin { /// Sender is the actor that signed the messages @@ -1518,14 +1379,12 @@ pub struct MsgClearAdmin { } /// MsgClearAdminResponse returns empty data #[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 = "/cosmwasm.wasm.v1.MsgClearAdminResponse")] pub struct MsgClearAdminResponse {} /// MsgUpdateInstantiateConfig updates instantiate config for a smart contract #[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 = "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig")] pub struct MsgUpdateInstantiateConfig { /// Sender is the that actor that signed the messages @@ -1545,16 +1404,14 @@ pub struct MsgUpdateInstantiateConfig { } /// MsgUpdateInstantiateConfigResponse returns empty data #[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 = "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse")] pub struct MsgUpdateInstantiateConfigResponse {} /// MsgUpdateParams is the MsgUpdateParams request type. /// /// Since: 0.40 #[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 = "/cosmwasm.wasm.v1.MsgUpdateParams")] pub struct MsgUpdateParams { /// Authority is the address of the governance account. @@ -1571,16 +1428,14 @@ pub struct MsgUpdateParams { /// /// Since: 0.40 #[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 = "/cosmwasm.wasm.v1.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} /// MsgSudoContract is the MsgSudoContract request type. /// /// Since: 0.40 #[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 = "/cosmwasm.wasm.v1.MsgSudoContract")] pub struct MsgSudoContract { /// Authority is the address of the governance account. @@ -1598,8 +1453,7 @@ pub struct MsgSudoContract { /// /// Since: 0.40 #[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 = "/cosmwasm.wasm.v1.MsgSudoContractResponse")] pub struct MsgSudoContractResponse { /// Data contains bytes to returned from the contract @@ -1610,8 +1464,7 @@ pub struct MsgSudoContractResponse { /// /// Since: 0.40 #[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 = "/cosmwasm.wasm.v1.MsgPinCodes")] pub struct MsgPinCodes { /// Authority is the address of the governance account. @@ -1627,16 +1480,14 @@ pub struct MsgPinCodes { /// /// Since: 0.40 #[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 = "/cosmwasm.wasm.v1.MsgPinCodesResponse")] pub struct MsgPinCodesResponse {} /// MsgUnpinCodes is the MsgUnpinCodes request type. /// /// Since: 0.40 #[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 = "/cosmwasm.wasm.v1.MsgUnpinCodes")] pub struct MsgUnpinCodes { /// Authority is the address of the governance account. @@ -1652,8 +1503,7 @@ pub struct MsgUnpinCodes { /// /// Since: 0.40 #[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 = "/cosmwasm.wasm.v1.MsgUnpinCodesResponse")] pub struct MsgUnpinCodesResponse {} /// MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract @@ -1661,8 +1511,7 @@ pub struct MsgUnpinCodesResponse {} /// /// Since: 0.40 #[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 = "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract")] pub struct MsgStoreAndInstantiateContract { /// Authority is the address of the governance account. @@ -1690,9 +1539,7 @@ pub struct MsgStoreAndInstantiateContract { /// Funds coins that are transferred from the authority account to the contract /// on instantiation #[prost(message, repeated, tag = "9")] - pub funds: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub funds: ::prost::alloc::vec::Vec, /// Source is the URL where the code is hosted #[prost(string, tag = "10")] pub source: ::prost::alloc::string::String, @@ -1710,8 +1557,7 @@ pub struct MsgStoreAndInstantiateContract { /// /// Since: 0.40 #[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 = "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse")] pub struct MsgStoreAndInstantiateContractResponse { /// Address is the bech32 address of the new contract instance. @@ -1724,8 +1570,7 @@ pub struct MsgStoreAndInstantiateContractResponse { /// MsgAddCodeUploadParamsAddresses is the /// MsgAddCodeUploadParamsAddresses request type. #[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 = "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses")] pub struct MsgAddCodeUploadParamsAddresses { /// Authority is the address of the governance account. @@ -1737,15 +1582,13 @@ pub struct MsgAddCodeUploadParamsAddresses { /// MsgAddCodeUploadParamsAddressesResponse defines the response /// structure for executing a MsgAddCodeUploadParamsAddresses message. #[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 = "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse")] pub struct MsgAddCodeUploadParamsAddressesResponse {} /// MsgRemoveCodeUploadParamsAddresses is the /// MsgRemoveCodeUploadParamsAddresses request type. #[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 = "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses")] pub struct MsgRemoveCodeUploadParamsAddresses { /// Authority is the address of the governance account. @@ -1757,19 +1600,15 @@ pub struct MsgRemoveCodeUploadParamsAddresses { /// MsgRemoveCodeUploadParamsAddressesResponse defines the response /// structure for executing a MsgRemoveCodeUploadParamsAddresses message. #[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 = "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse")] pub struct MsgRemoveCodeUploadParamsAddressesResponse {} /// MsgStoreAndMigrateContract is the MsgStoreAndMigrateContract /// request type. /// /// Since: 0.42 #[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 = "/cosmwasm.wasm.v1.MsgStoreAndMigrateContract")] pub struct MsgStoreAndMigrateContract { /// Authority is the address of the governance account. @@ -1793,8 +1632,7 @@ pub struct MsgStoreAndMigrateContract { /// /// Since: 0.42 #[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 = "/cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse")] pub struct MsgStoreAndMigrateContractResponse { /// CodeID is the reference to the stored WASM code @@ -1814,8 +1652,7 @@ pub struct MsgStoreAndMigrateContractResponse { } /// MsgUpdateContractLabel sets a new label for a smart contract #[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 = "/cosmwasm.wasm.v1.MsgUpdateContractLabel")] pub struct MsgUpdateContractLabel { /// Sender is the that actor that signed the messages @@ -1830,8 +1667,7 @@ pub struct MsgUpdateContractLabel { } /// MsgUpdateContractLabelResponse returns empty data #[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 = "/cosmwasm.wasm.v1.MsgUpdateContractLabelResponse")] pub struct MsgUpdateContractLabelResponse {} pub struct WasmQuerier<'a, Q: cosmwasm_std::CustomQuery> { @@ -1841,100 +1677,58 @@ impl<'a, Q: cosmwasm_std::CustomQuery> WasmQuerier<'a, Q> { pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self { Self { querier } } - pub fn contract_info( - &self, - address: ::prost::alloc::string::String, - ) -> Result { - QueryContractInfoRequest { - address, - } - .query(self.querier) + pub fn contract_info(&self, address: ::prost::alloc::string::String) -> Result { + QueryContractInfoRequest { address }.query(self.querier) } pub fn contract_history( &self, address: ::prost::alloc::string::String, - pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryContractHistoryRequest { - address, - pagination, - } - .query(self.querier) + QueryContractHistoryRequest { address, pagination }.query(self.querier) } pub fn contracts_by_code( &self, code_id: u64, - pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryContractsByCodeRequest { - code_id, - pagination, - } - .query(self.querier) + QueryContractsByCodeRequest { code_id, pagination }.query(self.querier) } pub fn all_contract_state( &self, address: ::prost::alloc::string::String, - pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryAllContractStateRequest { - address, - pagination, - } - .query(self.querier) + QueryAllContractStateRequest { address, pagination }.query(self.querier) } pub fn raw_contract_state( &self, address: ::prost::alloc::string::String, query_data: ::prost::alloc::vec::Vec, ) -> Result { - QueryRawContractStateRequest { - address, - query_data, - } - .query(self.querier) + QueryRawContractStateRequest { address, query_data }.query(self.querier) } pub fn smart_contract_state( &self, address: ::prost::alloc::string::String, query_data: ::prost::alloc::vec::Vec, ) -> Result { - QuerySmartContractStateRequest { - address, - query_data, - } - .query(self.querier) + QuerySmartContractStateRequest { address, query_data }.query(self.querier) } - pub fn code( - &self, - code_id: u64, - ) -> Result { + pub fn code(&self, code_id: u64) -> Result { QueryCodeRequest { code_id }.query(self.querier) } pub fn codes( &self, - pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { QueryCodesRequest { pagination }.query(self.querier) } pub fn pinned_codes( &self, - pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryPinnedCodesRequest { - pagination, - } - .query(self.querier) + QueryPinnedCodesRequest { pagination }.query(self.querier) } pub fn params(&self) -> Result { QueryParamsRequest {}.query(self.querier) @@ -1942,14 +1736,8 @@ impl<'a, Q: cosmwasm_std::CustomQuery> WasmQuerier<'a, Q> { pub fn contracts_by_creator( &self, creator_address: ::prost::alloc::string::String, - pagination: ::core::option::Option< - super::super::super::cosmos::base::query::v1beta1::PageRequest, - >, + pagination: ::core::option::Option, ) -> Result { - QueryContractsByCreatorRequest { - creator_address, - pagination, - } - .query(self.querier) + QueryContractsByCreatorRequest { creator_address, pagination }.query(self.querier) } } diff --git a/packages/injective-std/src/types/injective/auction/v1beta1.rs b/packages/injective-std/src/types/injective/auction/v1beta1.rs index d6e868b3..4baf8136 100644 --- a/packages/injective-std/src/types/injective/auction/v1beta1.rs +++ b/packages/injective-std/src/types/injective/auction/v1beta1.rs @@ -1,7 +1,6 @@ use osmosis_std_derive::CosmwasmExt; #[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 = "/injective.auction.v1beta1.Params")] pub struct Params { /// auction_period_duration defines the auction period duration @@ -16,8 +15,7 @@ pub struct Params { pub min_next_bid_increment_rate: ::prost::alloc::string::String, } #[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 = "/injective.auction.v1beta1.Bid")] pub struct Bid { #[prost(string, tag = "1")] @@ -26,8 +24,7 @@ pub struct Bid { pub amount: ::prost::alloc::string::String, } #[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 = "/injective.auction.v1beta1.EventBid")] pub struct EventBid { /// bidder describes the address of bidder @@ -45,8 +42,7 @@ pub struct EventBid { pub round: u64, } #[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 = "/injective.auction.v1beta1.EventAuctionResult")] pub struct EventAuctionResult { /// winner describes the address of the winner @@ -64,8 +60,7 @@ pub struct EventAuctionResult { pub round: u64, } #[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 = "/injective.auction.v1beta1.EventAuctionStart")] pub struct EventAuctionStart { /// round defines the round number of auction @@ -85,14 +80,11 @@ pub struct EventAuctionStart { /// new_basket describes auction module balance at the time of new auction /// start #[prost(message, repeated, tag = "3")] - pub new_basket: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub new_basket: ::prost::alloc::vec::Vec, } /// GenesisState defines the auction module's genesis state. #[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 = "/injective.auction.v1beta1.GenesisState")] pub struct GenesisState { /// params defines all the parameters of related to auction. @@ -119,8 +111,7 @@ pub struct GenesisState { /// QueryAuctionParamsRequest is the request type for the Query/AuctionParams RPC /// method. #[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 = "/injective.auction.v1beta1.QueryAuctionParamsRequest")] #[proto_query( path = "/injective.auction.v1beta1.Query/AuctionParams", @@ -130,8 +121,7 @@ pub struct QueryAuctionParamsRequest {} /// QueryAuctionParamsRequest is the response type for the Query/AuctionParams /// RPC method. #[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 = "/injective.auction.v1beta1.QueryAuctionParamsResponse")] pub struct QueryAuctionParamsResponse { #[prost(message, optional, tag = "1")] @@ -140,11 +130,8 @@ pub struct QueryAuctionParamsResponse { /// QueryCurrentAuctionBasketRequest is the request type for the /// Query/CurrentAuctionBasket RPC method. #[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 = "/injective.auction.v1beta1.QueryCurrentAuctionBasketRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.auction.v1beta1.QueryCurrentAuctionBasketRequest")] #[proto_query( path = "/injective.auction.v1beta1.Query/CurrentAuctionBasket", response_type = QueryCurrentAuctionBasketResponse @@ -153,17 +140,12 @@ pub struct QueryCurrentAuctionBasketRequest {} /// QueryCurrentAuctionBasketResponse is the response type for the /// Query/CurrentAuctionBasket RPC method. #[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 = "/injective.auction.v1beta1.QueryCurrentAuctionBasketResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.auction.v1beta1.QueryCurrentAuctionBasketResponse")] pub struct QueryCurrentAuctionBasketResponse { /// amount describes the amount put on auction #[prost(message, repeated, tag = "1")] - pub amount: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub amount: ::prost::alloc::vec::Vec, /// auctionRound describes current auction round #[prost(uint64, tag = "2")] #[serde( @@ -188,8 +170,7 @@ pub struct QueryCurrentAuctionBasketResponse { /// QueryModuleStateRequest is the request type for the Query/AuctionModuleState /// RPC method. #[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 = "/injective.auction.v1beta1.QueryModuleStateRequest")] #[proto_query( path = "/injective.auction.v1beta1.Query/AuctionModuleState", @@ -199,8 +180,7 @@ pub struct QueryModuleStateRequest {} /// QueryModuleStateResponse is the response type for the /// Query/AuctionModuleState RPC method. #[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 = "/injective.auction.v1beta1.QueryModuleStateResponse")] pub struct QueryModuleStateResponse { #[prost(message, optional, tag = "1")] @@ -208,17 +188,14 @@ pub struct QueryModuleStateResponse { } /// Bid defines a SDK message for placing a bid for an auction #[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 = "/injective.auction.v1beta1.MsgBid")] pub struct MsgBid { #[prost(string, tag = "1")] pub sender: ::prost::alloc::string::String, /// amount of the bid in INJ tokens #[prost(message, optional, tag = "2")] - pub bid_amount: ::core::option::Option< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub bid_amount: ::core::option::Option, /// the current auction round being bid on #[prost(uint64, tag = "3")] #[serde( @@ -228,13 +205,11 @@ pub struct MsgBid { pub round: u64, } #[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 = "/injective.auction.v1beta1.MsgBidResponse")] pub struct MsgBidResponse {} #[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 = "/injective.auction.v1beta1.MsgUpdateParams")] pub struct MsgUpdateParams { /// authority is the address of the governance account. @@ -247,8 +222,7 @@ pub struct MsgUpdateParams { pub params: ::core::option::Option, } #[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 = "/injective.auction.v1beta1.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} pub struct AuctionQuerier<'a, Q: cosmwasm_std::CustomQuery> { @@ -258,21 +232,13 @@ impl<'a, Q: cosmwasm_std::CustomQuery> AuctionQuerier<'a, Q> { pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self { Self { querier } } - pub fn auction_params( - &self, - ) -> Result { + pub fn auction_params(&self) -> Result { QueryAuctionParamsRequest {}.query(self.querier) } - pub fn current_auction_basket( - &self, - ) -> Result { - QueryCurrentAuctionBasketRequest { - } - .query(self.querier) + pub fn current_auction_basket(&self) -> Result { + QueryCurrentAuctionBasketRequest {}.query(self.querier) } - pub fn auction_module_state( - &self, - ) -> Result { + pub fn auction_module_state(&self) -> Result { QueryModuleStateRequest {}.query(self.querier) } } diff --git a/packages/injective-std/src/types/injective/exchange/v1beta1.rs b/packages/injective-std/src/types/injective/exchange/v1beta1.rs index 5b2770a9..49366734 100644 --- a/packages/injective-std/src/types/injective/exchange/v1beta1.rs +++ b/packages/injective-std/src/types/injective/exchange/v1beta1.rs @@ -1,8 +1,7 @@ use osmosis_std_derive::CosmwasmExt; /// spot authz messages #[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 = "/injective.exchange.v1beta1.CreateSpotLimitOrderAuthz")] pub struct CreateSpotLimitOrderAuthz { #[prost(string, tag = "1")] @@ -13,8 +12,7 @@ pub struct CreateSpotLimitOrderAuthz { pub market_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.exchange.v1beta1.CreateSpotMarketOrderAuthz")] pub struct CreateSpotMarketOrderAuthz { #[prost(string, tag = "1")] @@ -25,11 +23,8 @@ pub struct CreateSpotMarketOrderAuthz { pub market_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.exchange.v1beta1.BatchCreateSpotLimitOrdersAuthz" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.BatchCreateSpotLimitOrdersAuthz")] pub struct BatchCreateSpotLimitOrdersAuthz { #[prost(string, tag = "1")] #[serde(alias = "subaccountID")] @@ -39,8 +34,7 @@ pub struct BatchCreateSpotLimitOrdersAuthz { pub market_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.exchange.v1beta1.CancelSpotOrderAuthz")] pub struct CancelSpotOrderAuthz { #[prost(string, tag = "1")] @@ -51,8 +45,7 @@ pub struct CancelSpotOrderAuthz { pub market_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.exchange.v1beta1.BatchCancelSpotOrdersAuthz")] pub struct BatchCancelSpotOrdersAuthz { #[prost(string, tag = "1")] @@ -64,11 +57,8 @@ pub struct BatchCancelSpotOrdersAuthz { } /// derivative authz messages #[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 = "/injective.exchange.v1beta1.CreateDerivativeLimitOrderAuthz" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.CreateDerivativeLimitOrderAuthz")] pub struct CreateDerivativeLimitOrderAuthz { #[prost(string, tag = "1")] #[serde(alias = "subaccountID")] @@ -78,11 +68,8 @@ pub struct CreateDerivativeLimitOrderAuthz { pub market_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.exchange.v1beta1.CreateDerivativeMarketOrderAuthz" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.CreateDerivativeMarketOrderAuthz")] pub struct CreateDerivativeMarketOrderAuthz { #[prost(string, tag = "1")] #[serde(alias = "subaccountID")] @@ -92,11 +79,8 @@ pub struct CreateDerivativeMarketOrderAuthz { pub market_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.exchange.v1beta1.BatchCreateDerivativeLimitOrdersAuthz" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.BatchCreateDerivativeLimitOrdersAuthz")] pub struct BatchCreateDerivativeLimitOrdersAuthz { #[prost(string, tag = "1")] #[serde(alias = "subaccountID")] @@ -106,8 +90,7 @@ pub struct BatchCreateDerivativeLimitOrdersAuthz { pub market_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.exchange.v1beta1.CancelDerivativeOrderAuthz")] pub struct CancelDerivativeOrderAuthz { #[prost(string, tag = "1")] @@ -118,11 +101,8 @@ pub struct CancelDerivativeOrderAuthz { pub market_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.exchange.v1beta1.BatchCancelDerivativeOrdersAuthz" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.BatchCancelDerivativeOrdersAuthz")] pub struct BatchCancelDerivativeOrdersAuthz { #[prost(string, tag = "1")] #[serde(alias = "subaccountID")] @@ -133,8 +113,7 @@ pub struct BatchCancelDerivativeOrdersAuthz { } /// common authz message used in both spot & derivative markets #[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 = "/injective.exchange.v1beta1.BatchUpdateOrdersAuthz")] pub struct BatchUpdateOrdersAuthz { #[prost(string, tag = "1")] @@ -146,22 +125,17 @@ pub struct BatchUpdateOrdersAuthz { pub derivative_markets: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.exchange.v1beta1.Params")] pub struct Params { /// spot_market_instant_listing_fee defines the expedited fee in INJ required /// to create a spot market by bypassing governance #[prost(message, optional, tag = "1")] - pub spot_market_instant_listing_fee: ::core::option::Option< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub spot_market_instant_listing_fee: ::core::option::Option, /// derivative_market_instant_listing_fee defines the expedited fee in INJ /// required to create a derivative market by bypassing governance #[prost(message, optional, tag = "2")] - pub derivative_market_instant_listing_fee: ::core::option::Option< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub derivative_market_instant_listing_fee: ::core::option::Option, /// default_spot_maker_fee defines the default exchange trade fee for makers on /// a spot market #[prost(string, tag = "3")] @@ -240,9 +214,7 @@ pub struct Params { /// binary_options_market_instant_listing_fee defines the expedited fee in INJ /// required to create a derivative market by bypassing governance #[prost(message, optional, tag = "18")] - pub binary_options_market_instant_listing_fee: ::core::option::Option< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub binary_options_market_instant_listing_fee: ::core::option::Option, /// atomic_market_order_access_level defines the required access permissions /// for executing atomic market orders #[prost(enumeration = "AtomicMarketOrderAccessLevel", tag = "19")] @@ -278,8 +250,7 @@ pub struct Params { pub post_only_mode_height_threshold: i64, } #[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 = "/injective.exchange.v1beta1.MarketFeeMultiplier")] pub struct MarketFeeMultiplier { #[prost(string, tag = "1")] @@ -290,8 +261,7 @@ pub struct MarketFeeMultiplier { } /// An object describing a derivative market in the Injective Futures Protocol. #[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 = "/injective.exchange.v1beta1.DerivativeMarket")] pub struct DerivativeMarket { /// Ticker for the derivative contract. @@ -364,8 +334,7 @@ pub struct DerivativeMarket { } /// An object describing a binary options market in Injective Protocol. #[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 = "/injective.exchange.v1beta1.BinaryOptionsMarket")] pub struct BinaryOptionsMarket { /// Ticker for the derivative contract. @@ -444,8 +413,7 @@ pub struct BinaryOptionsMarket { pub settlement_price: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.ExpiryFuturesMarketInfo")] pub struct ExpiryFuturesMarketInfo { /// market ID. @@ -478,8 +446,7 @@ pub struct ExpiryFuturesMarketInfo { pub settlement_price: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.PerpetualMarketInfo")] pub struct PerpetualMarketInfo { /// market ID. @@ -511,8 +478,7 @@ pub struct PerpetualMarketInfo { pub funding_interval: i64, } #[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 = "/injective.exchange.v1beta1.PerpetualMarketFunding")] pub struct PerpetualMarketFunding { /// cumulative_funding defines the cumulative funding of a perpetual market. @@ -530,8 +496,7 @@ pub struct PerpetualMarketFunding { pub last_timestamp: i64, } #[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 = "/injective.exchange.v1beta1.DerivativeMarketSettlementInfo")] pub struct DerivativeMarketSettlementInfo { /// market ID. @@ -543,8 +508,7 @@ pub struct DerivativeMarketSettlementInfo { pub settlement_price: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.NextFundingTimestamp")] pub struct NextFundingTimestamp { #[prost(int64, tag = "1")] @@ -555,8 +519,7 @@ pub struct NextFundingTimestamp { pub next_timestamp: i64, } #[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 = "/injective.exchange.v1beta1.MidPriceAndTOB")] pub struct MidPriceAndTob { /// mid price of the market @@ -571,8 +534,7 @@ pub struct MidPriceAndTob { } /// An object describing trade pair of two assets. #[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 = "/injective.exchange.v1beta1.SpotMarket")] pub struct SpotMarket { /// A name of the pair in format AAA/BBB, where AAA is base asset, BBB is quote @@ -617,8 +579,7 @@ pub struct SpotMarket { } /// A subaccount's deposit for a given base currency #[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 = "/injective.exchange.v1beta1.Deposit")] pub struct Deposit { #[prost(string, tag = "1")] @@ -627,8 +588,7 @@ pub struct Deposit { pub total_balance: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.SubaccountTradeNonce")] pub struct SubaccountTradeNonce { #[prost(uint32, tag = "1")] @@ -639,8 +599,7 @@ pub struct SubaccountTradeNonce { pub nonce: u32, } #[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 = "/injective.exchange.v1beta1.OrderInfo")] pub struct OrderInfo { /// bytes32 subaccount ID that created the order @@ -660,8 +619,7 @@ pub struct OrderInfo { pub cid: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.SpotOrder")] pub struct SpotOrder { /// market_id represents the unique ID of the market @@ -684,8 +642,7 @@ pub struct SpotOrder { } /// A valid Spot limit order with Metadata. #[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 = "/injective.exchange.v1beta1.SpotLimitOrder")] pub struct SpotLimitOrder { /// order_info contains the information of the order @@ -709,8 +666,7 @@ pub struct SpotLimitOrder { } /// A valid Spot market order with Metadata. #[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 = "/injective.exchange.v1beta1.SpotMarketOrder")] pub struct SpotMarketOrder { /// order_info contains the information of the order @@ -732,8 +688,7 @@ pub struct SpotMarketOrder { pub trigger_price: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.DerivativeOrder")] pub struct DerivativeOrder { /// market_id represents the unique ID of the market @@ -758,8 +713,7 @@ pub struct DerivativeOrder { pub trigger_price: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.SubaccountOrderbookMetadata")] pub struct SubaccountOrderbookMetadata { #[prost(uint32, tag = "1")] @@ -796,8 +750,7 @@ pub struct SubaccountOrderbookMetadata { pub reduce_only_conditional_order_count: u32, } #[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 = "/injective.exchange.v1beta1.SubaccountOrder")] pub struct SubaccountOrder { /// price of the order @@ -810,8 +763,7 @@ pub struct SubaccountOrder { pub is_reduce_only: bool, } #[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 = "/injective.exchange.v1beta1.SubaccountOrderData")] pub struct SubaccountOrderData { #[prost(message, optional, tag = "1")] @@ -821,8 +773,7 @@ pub struct SubaccountOrderData { } /// A valid Derivative limit order with Metadata. #[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 = "/injective.exchange.v1beta1.DerivativeLimitOrder")] pub struct DerivativeLimitOrder { /// order_info contains the information of the order @@ -849,8 +800,7 @@ pub struct DerivativeLimitOrder { } /// A valid Derivative market order with Metadata. #[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 = "/injective.exchange.v1beta1.DerivativeMarketOrder")] pub struct DerivativeMarketOrder { /// order_info contains the information of the order @@ -874,8 +824,7 @@ pub struct DerivativeMarketOrder { pub order_hash: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.Position")] pub struct Position { #[prost(bool, tag = "1")] @@ -890,8 +839,7 @@ pub struct Position { pub cumulative_funding_entry: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.MarketOrderIndicator")] pub struct MarketOrderIndicator { /// market_id represents the unique ID of the market @@ -902,8 +850,7 @@ pub struct MarketOrderIndicator { pub is_buy: bool, } #[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 = "/injective.exchange.v1beta1.TradeLog")] pub struct TradeLog { #[prost(string, tag = "1")] @@ -924,8 +871,7 @@ pub struct TradeLog { pub cid: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.PositionDelta")] pub struct PositionDelta { #[prost(bool, tag = "1")] @@ -938,8 +884,7 @@ pub struct PositionDelta { pub execution_price: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.DerivativeTradeLog")] pub struct DerivativeTradeLog { #[prost(bytes = "vec", tag = "1")] @@ -959,8 +904,7 @@ pub struct DerivativeTradeLog { pub cid: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.SubaccountPosition")] pub struct SubaccountPosition { #[prost(message, optional, tag = "1")] @@ -970,8 +914,7 @@ pub struct SubaccountPosition { pub subaccount_id: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.SubaccountDeposit")] pub struct SubaccountDeposit { #[prost(bytes = "vec", tag = "1")] @@ -981,8 +924,7 @@ pub struct SubaccountDeposit { pub deposit: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.DepositUpdate")] pub struct DepositUpdate { #[prost(string, tag = "1")] @@ -991,8 +933,7 @@ pub struct DepositUpdate { pub deposits: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.PointsMultiplier")] pub struct PointsMultiplier { #[prost(string, tag = "1")] @@ -1001,28 +942,22 @@ pub struct PointsMultiplier { pub taker_points_multiplier: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.TradingRewardCampaignBoostInfo")] pub struct TradingRewardCampaignBoostInfo { #[prost(string, repeated, tag = "1")] #[serde(alias = "boosted_spot_marketIDs")] - pub boosted_spot_market_ids: ::prost::alloc::vec::Vec< - ::prost::alloc::string::String, - >, + pub boosted_spot_market_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(message, repeated, tag = "2")] pub spot_market_multipliers: ::prost::alloc::vec::Vec, #[prost(string, repeated, tag = "3")] #[serde(alias = "boosted_derivative_marketIDs")] - pub boosted_derivative_market_ids: ::prost::alloc::vec::Vec< - ::prost::alloc::string::String, - >, + pub boosted_derivative_market_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(message, repeated, tag = "4")] pub derivative_market_multipliers: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.CampaignRewardPool")] pub struct CampaignRewardPool { #[prost(int64, tag = "1")] @@ -1034,13 +969,10 @@ pub struct CampaignRewardPool { /// max_campaign_rewards are the maximum reward amounts to be disbursed at the /// end of the campaign #[prost(message, repeated, tag = "2")] - pub max_campaign_rewards: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub max_campaign_rewards: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.TradingRewardCampaignInfo")] pub struct TradingRewardCampaignInfo { /// number of seconds of the duration of each campaign @@ -1055,19 +987,14 @@ pub struct TradingRewardCampaignInfo { pub quote_denoms: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, /// the optional boost info for markets #[prost(message, optional, tag = "3")] - pub trading_reward_boost_info: ::core::option::Option< - TradingRewardCampaignBoostInfo, - >, + pub trading_reward_boost_info: ::core::option::Option, /// the marketIDs which are disqualified from being rewarded #[prost(string, repeated, tag = "4")] #[serde(alias = "disqualified_marketIDs")] - pub disqualified_market_ids: ::prost::alloc::vec::Vec< - ::prost::alloc::string::String, - >, + pub disqualified_market_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.exchange.v1beta1.FeeDiscountTierInfo")] pub struct FeeDiscountTierInfo { #[prost(string, tag = "1")] @@ -1080,8 +1007,7 @@ pub struct FeeDiscountTierInfo { pub volume: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.FeeDiscountSchedule")] pub struct FeeDiscountSchedule { #[prost(uint64, tag = "1")] @@ -1107,13 +1033,10 @@ pub struct FeeDiscountSchedule { /// amount #[prost(string, repeated, tag = "5")] #[serde(alias = "disqualified_marketIDs")] - pub disqualified_market_ids: ::prost::alloc::vec::Vec< - ::prost::alloc::string::String, - >, + pub disqualified_market_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.exchange.v1beta1.FeeDiscountTierTTL")] pub struct FeeDiscountTierTtl { #[prost(uint64, tag = "1")] @@ -1130,8 +1053,7 @@ pub struct FeeDiscountTierTtl { pub ttl_timestamp: i64, } #[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 = "/injective.exchange.v1beta1.VolumeRecord")] pub struct VolumeRecord { #[prost(string, tag = "1")] @@ -1140,20 +1062,16 @@ pub struct VolumeRecord { pub taker_volume: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.AccountRewards")] pub struct AccountRewards { #[prost(string, tag = "1")] pub account: ::prost::alloc::string::String, #[prost(message, repeated, tag = "2")] - pub rewards: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub rewards: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.TradeRecords")] pub struct TradeRecords { #[prost(string, tag = "1")] @@ -1163,8 +1081,7 @@ pub struct TradeRecords { pub latest_trade_records: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.SubaccountIDs")] pub struct SubaccountIDs { #[prost(bytes = "vec", repeated, tag = "1")] @@ -1172,8 +1089,7 @@ pub struct SubaccountIDs { pub subaccount_ids: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } #[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 = "/injective.exchange.v1beta1.TradeRecord")] pub struct TradeRecord { #[prost(int64, tag = "1")] @@ -1188,8 +1104,7 @@ pub struct TradeRecord { pub quantity: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.Level")] pub struct Level { /// price @@ -1200,11 +1115,8 @@ pub struct Level { pub q: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.AggregateSubaccountVolumeRecord" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.AggregateSubaccountVolumeRecord")] pub struct AggregateSubaccountVolumeRecord { #[prost(string, tag = "1")] #[serde(alias = "subaccountID")] @@ -1213,8 +1125,7 @@ pub struct AggregateSubaccountVolumeRecord { pub market_volumes: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.AggregateAccountVolumeRecord")] pub struct AggregateAccountVolumeRecord { #[prost(string, tag = "1")] @@ -1223,8 +1134,7 @@ pub struct AggregateAccountVolumeRecord { pub market_volumes: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.MarketVolume")] pub struct MarketVolume { #[prost(string, tag = "1")] @@ -1234,8 +1144,7 @@ pub struct MarketVolume { pub volume: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.DenomDecimals")] pub struct DenomDecimals { #[prost(string, tag = "1")] @@ -1265,9 +1174,7 @@ impl AtomicMarketOrderAccessLevel { pub fn as_str_name(&self) -> &'static str { match self { AtomicMarketOrderAccessLevel::Nobody => "Nobody", - AtomicMarketOrderAccessLevel::BeginBlockerSmartContractsOnly => { - "BeginBlockerSmartContractsOnly" - } + AtomicMarketOrderAccessLevel::BeginBlockerSmartContractsOnly => "BeginBlockerSmartContractsOnly", AtomicMarketOrderAccessLevel::SmartContractsOnly => "SmartContractsOnly", AtomicMarketOrderAccessLevel::Everyone => "Everyone", } @@ -1276,9 +1183,7 @@ impl AtomicMarketOrderAccessLevel { pub fn from_str_name(value: &str) -> ::core::option::Option { match value { "Nobody" => Some(Self::Nobody), - "BeginBlockerSmartContractsOnly" => { - Some(Self::BeginBlockerSmartContractsOnly) - } + "BeginBlockerSmartContractsOnly" => Some(Self::BeginBlockerSmartContractsOnly), "SmartContractsOnly" => Some(Self::SmartContractsOnly), "Everyone" => Some(Self::Everyone), _ => None, @@ -1465,8 +1370,7 @@ impl OrderMask { } } #[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 = "/injective.exchange.v1beta1.EventBatchSpotExecution")] pub struct EventBatchSpotExecution { #[prost(string, tag = "1")] @@ -1484,8 +1388,7 @@ pub struct EventBatchSpotExecution { pub trades: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.EventBatchDerivativeExecution")] pub struct EventBatchDerivativeExecution { #[prost(string, tag = "1")] @@ -1508,8 +1411,7 @@ pub struct EventBatchDerivativeExecution { pub trades: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.EventLostFundsFromLiquidation")] pub struct EventLostFundsFromLiquidation { #[prost(string, tag = "1")] @@ -1524,8 +1426,7 @@ pub struct EventLostFundsFromLiquidation { pub lost_funds_from_order_cancels: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.EventBatchDerivativePosition")] pub struct EventBatchDerivativePosition { #[prost(string, tag = "1")] @@ -1535,8 +1436,7 @@ pub struct EventBatchDerivativePosition { pub positions: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.EventDerivativeMarketPaused")] pub struct EventDerivativeMarketPaused { #[prost(string, tag = "1")] @@ -1550,8 +1450,7 @@ pub struct EventDerivativeMarketPaused { pub missing_funds_rate: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.EventMarketBeyondBankruptcy")] pub struct EventMarketBeyondBankruptcy { #[prost(string, tag = "1")] @@ -1563,8 +1462,7 @@ pub struct EventMarketBeyondBankruptcy { pub missing_market_funds: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.EventAllPositionsHaircut")] pub struct EventAllPositionsHaircut { #[prost(string, tag = "1")] @@ -1576,16 +1474,14 @@ pub struct EventAllPositionsHaircut { pub missing_funds_rate: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.EventBinaryOptionsMarketUpdate")] pub struct EventBinaryOptionsMarketUpdate { #[prost(message, optional, tag = "1")] pub market: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.EventNewSpotOrders")] pub struct EventNewSpotOrders { #[prost(string, tag = "1")] @@ -1597,8 +1493,7 @@ pub struct EventNewSpotOrders { pub sell_orders: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.EventNewDerivativeOrders")] pub struct EventNewDerivativeOrders { #[prost(string, tag = "1")] @@ -1610,8 +1505,7 @@ pub struct EventNewDerivativeOrders { pub sell_orders: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.EventCancelSpotOrder")] pub struct EventCancelSpotOrder { #[prost(string, tag = "1")] @@ -1621,16 +1515,14 @@ pub struct EventCancelSpotOrder { pub order: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.EventSpotMarketUpdate")] pub struct EventSpotMarketUpdate { #[prost(message, optional, tag = "1")] pub market: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.EventPerpetualMarketUpdate")] pub struct EventPerpetualMarketUpdate { #[prost(message, optional, tag = "1")] @@ -1641,8 +1533,7 @@ pub struct EventPerpetualMarketUpdate { pub funding: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.EventExpiryFuturesMarketUpdate")] pub struct EventExpiryFuturesMarketUpdate { #[prost(message, optional, tag = "1")] @@ -1651,11 +1542,8 @@ pub struct EventExpiryFuturesMarketUpdate { pub expiry_futures_market_info: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.EventPerpetualMarketFundingUpdate" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.EventPerpetualMarketFundingUpdate")] pub struct EventPerpetualMarketFundingUpdate { #[prost(string, tag = "1")] #[serde(alias = "marketID")] @@ -1670,8 +1558,7 @@ pub struct EventPerpetualMarketFundingUpdate { pub mark_price: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.EventSubaccountDeposit")] pub struct EventSubaccountDeposit { #[prost(string, tag = "1")] @@ -1683,8 +1570,7 @@ pub struct EventSubaccountDeposit { pub amount: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.EventSubaccountWithdraw")] pub struct EventSubaccountWithdraw { #[prost(bytes = "vec", tag = "1")] @@ -1696,8 +1582,7 @@ pub struct EventSubaccountWithdraw { pub amount: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.EventSubaccountBalanceTransfer")] pub struct EventSubaccountBalanceTransfer { #[prost(string, tag = "1")] @@ -1710,16 +1595,14 @@ pub struct EventSubaccountBalanceTransfer { pub amount: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.EventBatchDepositUpdate")] pub struct EventBatchDepositUpdate { #[prost(message, repeated, tag = "1")] pub deposit_updates: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.DerivativeMarketOrderCancel")] pub struct DerivativeMarketOrderCancel { #[prost(message, optional, tag = "1")] @@ -1728,8 +1611,7 @@ pub struct DerivativeMarketOrderCancel { pub cancel_quantity: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.EventCancelDerivativeOrder")] pub struct EventCancelDerivativeOrder { #[prost(string, tag = "1")] @@ -1743,19 +1625,15 @@ pub struct EventCancelDerivativeOrder { pub market_order_cancel: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.EventFeeDiscountSchedule")] pub struct EventFeeDiscountSchedule { #[prost(message, optional, tag = "1")] pub schedule: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.EventTradingRewardCampaignUpdate" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.EventTradingRewardCampaignUpdate")] pub struct EventTradingRewardCampaignUpdate { #[prost(message, optional, tag = "1")] pub campaign_info: ::core::option::Option, @@ -1763,19 +1641,15 @@ pub struct EventTradingRewardCampaignUpdate { pub campaign_reward_pools: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.EventTradingRewardDistribution")] pub struct EventTradingRewardDistribution { #[prost(message, repeated, tag = "1")] pub account_rewards: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.EventNewConditionalDerivativeOrder" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.EventNewConditionalDerivativeOrder")] pub struct EventNewConditionalDerivativeOrder { #[prost(string, tag = "1")] #[serde(alias = "marketID")] @@ -1788,11 +1662,8 @@ pub struct EventNewConditionalDerivativeOrder { pub is_market: bool, } #[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 = "/injective.exchange.v1beta1.EventCancelConditionalDerivativeOrder" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.EventCancelConditionalDerivativeOrder")] pub struct EventCancelConditionalDerivativeOrder { #[prost(string, tag = "1")] #[serde(alias = "marketID")] @@ -1805,11 +1676,8 @@ pub struct EventCancelConditionalDerivativeOrder { pub market_order: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.EventConditionalDerivativeOrderTrigger" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.EventConditionalDerivativeOrderTrigger")] pub struct EventConditionalDerivativeOrderTrigger { #[prost(bytes = "vec", tag = "1")] #[serde(alias = "marketID")] @@ -1822,8 +1690,7 @@ pub struct EventConditionalDerivativeOrderTrigger { pub placed_order_hash: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.EventOrderFail")] pub struct EventOrderFail { #[prost(bytes = "vec", tag = "1")] @@ -1834,18 +1701,14 @@ pub struct EventOrderFail { pub flags: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.EventAtomicMarketOrderFeeMultipliersUpdated" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.EventAtomicMarketOrderFeeMultipliersUpdated")] pub struct EventAtomicMarketOrderFeeMultipliersUpdated { #[prost(message, repeated, tag = "1")] pub market_fee_multipliers: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.EventOrderbookUpdate")] pub struct EventOrderbookUpdate { #[prost(message, repeated, tag = "1")] @@ -1854,8 +1717,7 @@ pub struct EventOrderbookUpdate { pub derivative_updates: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.OrderbookUpdate")] pub struct OrderbookUpdate { #[prost(uint64, tag = "1")] @@ -1868,8 +1730,7 @@ pub struct OrderbookUpdate { pub orderbook: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.Orderbook")] pub struct Orderbook { #[prost(bytes = "vec", tag = "1")] @@ -1881,8 +1742,7 @@ pub struct Orderbook { pub sell_levels: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.MsgUpdateParams")] pub struct MsgUpdateParams { /// authority is the address of the governance account. @@ -1895,15 +1755,13 @@ pub struct MsgUpdateParams { pub params: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} /// MsgDeposit defines a SDK message for transferring coins from the sender's /// bank balance into the subaccount's exchange deposits #[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 = "/injective.exchange.v1beta1.MsgDeposit")] pub struct MsgDeposit { #[prost(string, tag = "1")] @@ -1918,15 +1776,13 @@ pub struct MsgDeposit { } /// MsgDepositResponse defines the Msg/Deposit response type. #[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 = "/injective.exchange.v1beta1.MsgDepositResponse")] pub struct MsgDepositResponse {} /// MsgWithdraw defines a SDK message for withdrawing coins from a subaccount's /// deposits to the user's bank balance #[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 = "/injective.exchange.v1beta1.MsgWithdraw")] pub struct MsgWithdraw { #[prost(string, tag = "1")] @@ -1940,15 +1796,13 @@ pub struct MsgWithdraw { } /// MsgWithdraw defines the Msg/Withdraw response type. #[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 = "/injective.exchange.v1beta1.MsgWithdrawResponse")] pub struct MsgWithdrawResponse {} /// MsgCreateSpotLimitOrder defines a SDK message for creating a new spot limit /// order. #[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 = "/injective.exchange.v1beta1.MsgCreateSpotLimitOrder")] pub struct MsgCreateSpotLimitOrder { #[prost(string, tag = "1")] @@ -1959,11 +1813,8 @@ pub struct MsgCreateSpotLimitOrder { /// MsgCreateSpotLimitOrderResponse defines the Msg/CreateSpotOrder response /// type. #[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 = "/injective.exchange.v1beta1.MsgCreateSpotLimitOrderResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateSpotLimitOrderResponse")] pub struct MsgCreateSpotLimitOrderResponse { #[prost(string, tag = "1")] pub order_hash: ::prost::alloc::string::String, @@ -1971,8 +1822,7 @@ pub struct MsgCreateSpotLimitOrderResponse { /// MsgBatchCreateSpotLimitOrders defines a SDK message for creating a new batch /// of spot limit orders. #[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 = "/injective.exchange.v1beta1.MsgBatchCreateSpotLimitOrders")] pub struct MsgBatchCreateSpotLimitOrders { #[prost(string, tag = "1")] @@ -1983,11 +1833,8 @@ pub struct MsgBatchCreateSpotLimitOrders { /// MsgBatchCreateSpotLimitOrdersResponse defines the /// Msg/BatchCreateSpotLimitOrders response type. #[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 = "/injective.exchange.v1beta1.MsgBatchCreateSpotLimitOrdersResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCreateSpotLimitOrdersResponse")] pub struct MsgBatchCreateSpotLimitOrdersResponse { #[prost(string, repeated, tag = "1")] pub order_hashes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, @@ -1995,8 +1842,7 @@ pub struct MsgBatchCreateSpotLimitOrdersResponse { /// MsgInstantSpotMarketLaunch defines a SDK message for creating a new spot /// market by paying listing fee without governance #[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 = "/injective.exchange.v1beta1.MsgInstantSpotMarketLaunch")] pub struct MsgInstantSpotMarketLaunch { #[prost(string, tag = "1")] @@ -2021,20 +1867,14 @@ pub struct MsgInstantSpotMarketLaunch { /// MsgInstantSpotMarketLaunchResponse defines the Msg/InstantSpotMarketLaunch /// response type. #[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 = "/injective.exchange.v1beta1.MsgInstantSpotMarketLaunchResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgInstantSpotMarketLaunchResponse")] pub struct MsgInstantSpotMarketLaunchResponse {} /// MsgInstantPerpetualMarketLaunch defines a SDK message for creating a new /// perpetual futures market by paying listing fee without governance #[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 = "/injective.exchange.v1beta1.MsgInstantPerpetualMarketLaunch" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgInstantPerpetualMarketLaunch")] pub struct MsgInstantPerpetualMarketLaunch { #[prost(string, tag = "1")] pub sender: ::prost::alloc::string::String, @@ -2092,20 +1932,14 @@ pub struct MsgInstantPerpetualMarketLaunch { /// MsgInstantPerpetualMarketLaunchResponse defines the /// Msg/InstantPerpetualMarketLaunchResponse response type. #[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 = "/injective.exchange.v1beta1.MsgInstantPerpetualMarketLaunchResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgInstantPerpetualMarketLaunchResponse")] pub struct MsgInstantPerpetualMarketLaunchResponse {} /// MsgInstantBinaryOptionsMarketLaunch defines a SDK message for creating a new /// perpetual futures market by paying listing fee without governance #[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 = "/injective.exchange.v1beta1.MsgInstantBinaryOptionsMarketLaunch" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgInstantBinaryOptionsMarketLaunch")] pub struct MsgInstantBinaryOptionsMarketLaunch { #[prost(string, tag = "1")] pub sender: ::prost::alloc::string::String, @@ -2172,20 +2006,14 @@ pub struct MsgInstantBinaryOptionsMarketLaunch { /// MsgInstantBinaryOptionsMarketLaunchResponse defines the /// Msg/InstantBinaryOptionsMarketLaunchResponse response type. #[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 = "/injective.exchange.v1beta1.MsgInstantBinaryOptionsMarketLaunchResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgInstantBinaryOptionsMarketLaunchResponse")] pub struct MsgInstantBinaryOptionsMarketLaunchResponse {} /// MsgInstantExpiryFuturesMarketLaunch defines a SDK message for creating a new /// expiry futures market by paying listing fee without governance #[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 = "/injective.exchange.v1beta1.MsgInstantExpiryFuturesMarketLaunch" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgInstantExpiryFuturesMarketLaunch")] pub struct MsgInstantExpiryFuturesMarketLaunch { #[prost(string, tag = "1")] pub sender: ::prost::alloc::string::String, @@ -2250,17 +2078,13 @@ pub struct MsgInstantExpiryFuturesMarketLaunch { /// MsgInstantExpiryFuturesMarketLaunchResponse defines the /// Msg/InstantExpiryFuturesMarketLaunch response type. #[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 = "/injective.exchange.v1beta1.MsgInstantExpiryFuturesMarketLaunchResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgInstantExpiryFuturesMarketLaunchResponse")] pub struct MsgInstantExpiryFuturesMarketLaunchResponse {} /// MsgCreateSpotMarketOrder defines a SDK message for creating a new spot market /// order. #[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 = "/injective.exchange.v1beta1.MsgCreateSpotMarketOrder")] pub struct MsgCreateSpotMarketOrder { #[prost(string, tag = "1")] @@ -2271,11 +2095,8 @@ pub struct MsgCreateSpotMarketOrder { /// MsgCreateSpotMarketOrderResponse defines the Msg/CreateSpotMarketLimitOrder /// response type. #[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 = "/injective.exchange.v1beta1.MsgCreateSpotMarketOrderResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateSpotMarketOrderResponse")] pub struct MsgCreateSpotMarketOrderResponse { #[prost(string, tag = "1")] pub order_hash: ::prost::alloc::string::String, @@ -2283,8 +2104,7 @@ pub struct MsgCreateSpotMarketOrderResponse { pub results: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.SpotMarketOrderResults")] pub struct SpotMarketOrderResults { #[prost(string, tag = "1")] @@ -2296,8 +2116,7 @@ pub struct SpotMarketOrderResults { } /// A Cosmos-SDK MsgCreateDerivativeLimitOrder #[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 = "/injective.exchange.v1beta1.MsgCreateDerivativeLimitOrder")] pub struct MsgCreateDerivativeLimitOrder { #[prost(string, tag = "1")] @@ -2308,22 +2127,16 @@ pub struct MsgCreateDerivativeLimitOrder { /// MsgCreateDerivativeLimitOrderResponse defines the /// Msg/CreateDerivativeMarketOrder response type. #[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 = "/injective.exchange.v1beta1.MsgCreateDerivativeLimitOrderResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateDerivativeLimitOrderResponse")] pub struct MsgCreateDerivativeLimitOrderResponse { #[prost(string, tag = "1")] pub order_hash: ::prost::alloc::string::String, } /// A Cosmos-SDK MsgCreateBinaryOptionsLimitOrder #[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 = "/injective.exchange.v1beta1.MsgCreateBinaryOptionsLimitOrder" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateBinaryOptionsLimitOrder")] pub struct MsgCreateBinaryOptionsLimitOrder { #[prost(string, tag = "1")] pub sender: ::prost::alloc::string::String, @@ -2333,22 +2146,16 @@ pub struct MsgCreateBinaryOptionsLimitOrder { /// MsgCreateBinaryOptionsLimitOrderResponse defines the /// Msg/CreateBinaryOptionsLimitOrder response type. #[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 = "/injective.exchange.v1beta1.MsgCreateBinaryOptionsLimitOrderResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateBinaryOptionsLimitOrderResponse")] pub struct MsgCreateBinaryOptionsLimitOrderResponse { #[prost(string, tag = "1")] pub order_hash: ::prost::alloc::string::String, } /// A Cosmos-SDK MsgBatchCreateDerivativeLimitOrders #[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 = "/injective.exchange.v1beta1.MsgBatchCreateDerivativeLimitOrders" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCreateDerivativeLimitOrders")] pub struct MsgBatchCreateDerivativeLimitOrders { #[prost(string, tag = "1")] pub sender: ::prost::alloc::string::String, @@ -2358,19 +2165,15 @@ pub struct MsgBatchCreateDerivativeLimitOrders { /// MsgBatchCreateDerivativeLimitOrdersResponse defines the /// Msg/BatchCreateDerivativeLimitOrders response type. #[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 = "/injective.exchange.v1beta1.MsgBatchCreateDerivativeLimitOrdersResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCreateDerivativeLimitOrdersResponse")] pub struct MsgBatchCreateDerivativeLimitOrdersResponse { #[prost(string, repeated, tag = "1")] pub order_hashes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// MsgCancelSpotOrder defines the Msg/CancelSpotOrder response type. #[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 = "/injective.exchange.v1beta1.MsgCancelSpotOrder")] pub struct MsgCancelSpotOrder { #[prost(string, tag = "1")] @@ -2388,14 +2191,12 @@ pub struct MsgCancelSpotOrder { } /// MsgCancelSpotOrderResponse defines the Msg/CancelSpotOrder response type. #[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 = "/injective.exchange.v1beta1.MsgCancelSpotOrderResponse")] pub struct MsgCancelSpotOrderResponse {} /// MsgBatchCancelSpotOrders defines the Msg/BatchCancelSpotOrders response type. #[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 = "/injective.exchange.v1beta1.MsgBatchCancelSpotOrders")] pub struct MsgBatchCancelSpotOrders { #[prost(string, tag = "1")] @@ -2406,11 +2207,8 @@ pub struct MsgBatchCancelSpotOrders { /// MsgBatchCancelSpotOrdersResponse defines the Msg/BatchCancelSpotOrders /// response type. #[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 = "/injective.exchange.v1beta1.MsgBatchCancelSpotOrdersResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCancelSpotOrdersResponse")] pub struct MsgBatchCancelSpotOrdersResponse { #[prost(bool, repeated, tag = "1")] pub success: ::prost::alloc::vec::Vec, @@ -2418,11 +2216,8 @@ pub struct MsgBatchCancelSpotOrdersResponse { /// MsgBatchCancelBinaryOptionsOrders defines the /// Msg/BatchCancelBinaryOptionsOrders response type. #[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 = "/injective.exchange.v1beta1.MsgBatchCancelBinaryOptionsOrders" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCancelBinaryOptionsOrders")] pub struct MsgBatchCancelBinaryOptionsOrders { #[prost(string, tag = "1")] pub sender: ::prost::alloc::string::String, @@ -2432,19 +2227,15 @@ pub struct MsgBatchCancelBinaryOptionsOrders { /// BatchCancelBinaryOptionsOrdersResponse defines the /// Msg/BatchCancelBinaryOptionsOrders response type. #[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 = "/injective.exchange.v1beta1.MsgBatchCancelBinaryOptionsOrdersResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCancelBinaryOptionsOrdersResponse")] pub struct MsgBatchCancelBinaryOptionsOrdersResponse { #[prost(bool, repeated, tag = "1")] pub success: ::prost::alloc::vec::Vec, } /// MsgBatchUpdateOrders defines the Msg/BatchUpdateOrders response type. #[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 = "/injective.exchange.v1beta1.MsgBatchUpdateOrders")] pub struct MsgBatchUpdateOrders { #[prost(string, tag = "1")] @@ -2456,14 +2247,10 @@ pub struct MsgBatchUpdateOrders { pub subaccount_id: ::prost::alloc::string::String, #[prost(string, repeated, tag = "3")] #[serde(alias = "spot_marketIDs_to_cancel_all")] - pub spot_market_ids_to_cancel_all: ::prost::alloc::vec::Vec< - ::prost::alloc::string::String, - >, + pub spot_market_ids_to_cancel_all: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(string, repeated, tag = "4")] #[serde(alias = "derivative_marketIDs_to_cancel_all")] - pub derivative_market_ids_to_cancel_all: ::prost::alloc::vec::Vec< - ::prost::alloc::string::String, - >, + pub derivative_market_ids_to_cancel_all: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(message, repeated, tag = "5")] pub spot_orders_to_cancel: ::prost::alloc::vec::Vec, #[prost(message, repeated, tag = "6")] @@ -2476,16 +2263,13 @@ pub struct MsgBatchUpdateOrders { pub binary_options_orders_to_cancel: ::prost::alloc::vec::Vec, #[prost(string, repeated, tag = "10")] #[serde(alias = "binary_options_marketIDs_to_cancel_all")] - pub binary_options_market_ids_to_cancel_all: ::prost::alloc::vec::Vec< - ::prost::alloc::string::String, - >, + pub binary_options_market_ids_to_cancel_all: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(message, repeated, tag = "11")] pub binary_options_orders_to_create: ::prost::alloc::vec::Vec, } /// MsgBatchUpdateOrdersResponse defines the Msg/BatchUpdateOrders response type. #[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 = "/injective.exchange.v1beta1.MsgBatchUpdateOrdersResponse")] pub struct MsgBatchUpdateOrdersResponse { #[prost(bool, repeated, tag = "1")] @@ -2495,20 +2279,15 @@ pub struct MsgBatchUpdateOrdersResponse { #[prost(string, repeated, tag = "3")] pub spot_order_hashes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(string, repeated, tag = "4")] - pub derivative_order_hashes: ::prost::alloc::vec::Vec< - ::prost::alloc::string::String, - >, + pub derivative_order_hashes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(bool, repeated, tag = "5")] pub binary_options_cancel_success: ::prost::alloc::vec::Vec, #[prost(string, repeated, tag = "6")] - pub binary_options_order_hashes: ::prost::alloc::vec::Vec< - ::prost::alloc::string::String, - >, + pub binary_options_order_hashes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// A Cosmos-SDK MsgCreateDerivativeMarketOrder #[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 = "/injective.exchange.v1beta1.MsgCreateDerivativeMarketOrder")] pub struct MsgCreateDerivativeMarketOrder { #[prost(string, tag = "1")] @@ -2519,11 +2298,8 @@ pub struct MsgCreateDerivativeMarketOrder { /// MsgCreateDerivativeMarketOrderResponse defines the /// Msg/CreateDerivativeMarketOrder response type. #[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 = "/injective.exchange.v1beta1.MsgCreateDerivativeMarketOrderResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateDerivativeMarketOrderResponse")] pub struct MsgCreateDerivativeMarketOrderResponse { #[prost(string, tag = "1")] pub order_hash: ::prost::alloc::string::String, @@ -2531,8 +2307,7 @@ pub struct MsgCreateDerivativeMarketOrderResponse { pub results: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.DerivativeMarketOrderResults")] pub struct DerivativeMarketOrderResults { #[prost(string, tag = "1")] @@ -2548,11 +2323,8 @@ pub struct DerivativeMarketOrderResults { } /// A Cosmos-SDK MsgCreateBinaryOptionsMarketOrder #[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 = "/injective.exchange.v1beta1.MsgCreateBinaryOptionsMarketOrder" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateBinaryOptionsMarketOrder")] pub struct MsgCreateBinaryOptionsMarketOrder { #[prost(string, tag = "1")] pub sender: ::prost::alloc::string::String, @@ -2562,11 +2334,8 @@ pub struct MsgCreateBinaryOptionsMarketOrder { /// MsgCreateBinaryOptionsMarketOrderResponse defines the /// Msg/CreateBinaryOptionsMarketOrder response type. #[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 = "/injective.exchange.v1beta1.MsgCreateBinaryOptionsMarketOrderResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateBinaryOptionsMarketOrderResponse")] pub struct MsgCreateBinaryOptionsMarketOrderResponse { #[prost(string, tag = "1")] pub order_hash: ::prost::alloc::string::String, @@ -2575,8 +2344,7 @@ pub struct MsgCreateBinaryOptionsMarketOrderResponse { } /// MsgCancelDerivativeOrder defines the Msg/CancelDerivativeOrder response type. #[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 = "/injective.exchange.v1beta1.MsgCancelDerivativeOrder")] pub struct MsgCancelDerivativeOrder { #[prost(string, tag = "1")] @@ -2602,17 +2370,13 @@ pub struct MsgCancelDerivativeOrder { /// MsgCancelDerivativeOrderResponse defines the /// Msg/CancelDerivativeOrderResponse response type. #[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 = "/injective.exchange.v1beta1.MsgCancelDerivativeOrderResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCancelDerivativeOrderResponse")] pub struct MsgCancelDerivativeOrderResponse {} /// MsgCancelBinaryOptionsOrder defines the Msg/CancelBinaryOptionsOrder response /// type. #[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 = "/injective.exchange.v1beta1.MsgCancelBinaryOptionsOrder")] pub struct MsgCancelBinaryOptionsOrder { #[prost(string, tag = "1")] @@ -2638,15 +2402,11 @@ pub struct MsgCancelBinaryOptionsOrder { /// MsgCancelBinaryOptionsOrderResponse defines the /// Msg/CancelBinaryOptionsOrderResponse response type. #[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 = "/injective.exchange.v1beta1.MsgCancelBinaryOptionsOrderResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCancelBinaryOptionsOrderResponse")] pub struct MsgCancelBinaryOptionsOrderResponse {} #[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 = "/injective.exchange.v1beta1.OrderData")] pub struct OrderData { #[prost(string, tag = "1")] @@ -2670,8 +2430,7 @@ pub struct OrderData { /// MsgBatchCancelDerivativeOrders defines the Msg/CancelDerivativeOrders /// response type. #[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 = "/injective.exchange.v1beta1.MsgBatchCancelDerivativeOrders")] pub struct MsgBatchCancelDerivativeOrders { #[prost(string, tag = "1")] @@ -2682,19 +2441,15 @@ pub struct MsgBatchCancelDerivativeOrders { /// MsgBatchCancelDerivativeOrdersResponse defines the /// Msg/CancelDerivativeOrderResponse response type. #[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 = "/injective.exchange.v1beta1.MsgBatchCancelDerivativeOrdersResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCancelDerivativeOrdersResponse")] pub struct MsgBatchCancelDerivativeOrdersResponse { #[prost(bool, repeated, tag = "1")] pub success: ::prost::alloc::vec::Vec, } /// A Cosmos-SDK MsgSubaccountTransfer #[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 = "/injective.exchange.v1beta1.MsgSubaccountTransfer")] pub struct MsgSubaccountTransfer { #[prost(string, tag = "1")] @@ -2711,14 +2466,12 @@ pub struct MsgSubaccountTransfer { /// MsgSubaccountTransferResponse defines the Msg/SubaccountTransfer response /// type. #[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 = "/injective.exchange.v1beta1.MsgSubaccountTransferResponse")] pub struct MsgSubaccountTransferResponse {} /// A Cosmos-SDK MsgExternalTransfer #[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 = "/injective.exchange.v1beta1.MsgExternalTransfer")] pub struct MsgExternalTransfer { #[prost(string, tag = "1")] @@ -2734,14 +2487,12 @@ pub struct MsgExternalTransfer { } /// MsgExternalTransferResponse defines the Msg/ExternalTransfer response type. #[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 = "/injective.exchange.v1beta1.MsgExternalTransferResponse")] pub struct MsgExternalTransferResponse {} /// A Cosmos-SDK MsgLiquidatePosition #[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 = "/injective.exchange.v1beta1.MsgLiquidatePosition")] pub struct MsgLiquidatePosition { #[prost(string, tag = "1")] @@ -2758,14 +2509,12 @@ pub struct MsgLiquidatePosition { } /// MsgLiquidatePositionResponse defines the Msg/LiquidatePosition response type. #[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 = "/injective.exchange.v1beta1.MsgLiquidatePositionResponse")] pub struct MsgLiquidatePositionResponse {} /// A Cosmos-SDK MsgEmergencySettleMarket #[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 = "/injective.exchange.v1beta1.MsgEmergencySettleMarket")] pub struct MsgEmergencySettleMarket { #[prost(string, tag = "1")] @@ -2780,16 +2529,12 @@ pub struct MsgEmergencySettleMarket { /// MsgEmergencySettleMarketResponse defines the Msg/EmergencySettleMarket /// response type. #[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 = "/injective.exchange.v1beta1.MsgEmergencySettleMarketResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgEmergencySettleMarketResponse")] pub struct MsgEmergencySettleMarketResponse {} /// A Cosmos-SDK MsgIncreasePositionMargin #[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 = "/injective.exchange.v1beta1.MsgIncreasePositionMargin")] pub struct MsgIncreasePositionMargin { #[prost(string, tag = "1")] @@ -2810,16 +2555,12 @@ pub struct MsgIncreasePositionMargin { /// MsgIncreasePositionMarginResponse defines the Msg/IncreasePositionMargin /// response type. #[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 = "/injective.exchange.v1beta1.MsgIncreasePositionMarginResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgIncreasePositionMarginResponse")] pub struct MsgIncreasePositionMarginResponse {} /// MsgPrivilegedExecuteContract defines the Msg/Exec message type #[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 = "/injective.exchange.v1beta1.MsgPrivilegedExecuteContract")] pub struct MsgPrivilegedExecuteContract { #[prost(string, tag = "1")] @@ -2837,21 +2578,15 @@ pub struct MsgPrivilegedExecuteContract { } /// MsgPrivilegedExecuteContractResponse defines the Msg/Exec response type. #[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 = "/injective.exchange.v1beta1.MsgPrivilegedExecuteContractResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgPrivilegedExecuteContractResponse")] pub struct MsgPrivilegedExecuteContractResponse { #[prost(message, repeated, tag = "1")] - pub funds_diff: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub funds_diff: ::prost::alloc::vec::Vec, } /// A Cosmos-SDK MsgRewardsOptOut #[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 = "/injective.exchange.v1beta1.MsgRewardsOptOut")] pub struct MsgRewardsOptOut { #[prost(string, tag = "1")] @@ -2859,14 +2594,12 @@ pub struct MsgRewardsOptOut { } /// MsgRewardsOptOutResponse defines the Msg/RewardsOptOut response type. #[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 = "/injective.exchange.v1beta1.MsgRewardsOptOutResponse")] pub struct MsgRewardsOptOutResponse {} /// A Cosmos-SDK MsgReclaimLockedFunds #[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 = "/injective.exchange.v1beta1.MsgReclaimLockedFunds")] pub struct MsgReclaimLockedFunds { #[prost(string, tag = "1")] @@ -2879,14 +2612,12 @@ pub struct MsgReclaimLockedFunds { /// MsgReclaimLockedFundsResponse defines the Msg/ReclaimLockedFunds response /// type. #[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 = "/injective.exchange.v1beta1.MsgReclaimLockedFundsResponse")] pub struct MsgReclaimLockedFundsResponse {} /// MsgSignData defines an arbitrary, general-purpose, off-chain message #[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 = "/injective.exchange.v1beta1.MsgSignData")] pub struct MsgSignData { /// Signer is the sdk.AccAddress of the message signer @@ -2899,8 +2630,7 @@ pub struct MsgSignData { } /// MsgSignDoc defines an arbitrary, general-purpose, off-chain message #[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 = "/injective.exchange.v1beta1.MsgSignDoc")] pub struct MsgSignDoc { #[prost(string, tag = "1")] @@ -2911,11 +2641,8 @@ pub struct MsgSignDoc { /// MsgAdminUpdateBinaryOptionsMarket is used by the market Admin to operate the /// market #[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 = "/injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarket" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarket")] pub struct MsgAdminUpdateBinaryOptionsMarket { #[prost(string, tag = "1")] pub sender: ::prost::alloc::string::String, @@ -2950,16 +2677,12 @@ pub struct MsgAdminUpdateBinaryOptionsMarket { /// MsgAdminUpdateBinaryOptionsMarketResponse is the response for /// AdminUpdateBinaryOptionsMarket rpc method #[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 = "/injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarketResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarketResponse")] pub struct MsgAdminUpdateBinaryOptionsMarketResponse {} /// GenesisState defines the exchange module's genesis state. #[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 = "/injective.exchange.v1beta1.GenesisState")] pub struct GenesisState { /// params defines all the parameters of related to exchange. @@ -2991,9 +2714,7 @@ pub struct GenesisState { /// expiry_futures_market_info defines the market info for the expiry futures /// markets at genesis #[prost(message, repeated, tag = "9")] - pub expiry_futures_market_info_state: ::prost::alloc::vec::Vec< - ExpiryFuturesMarketInfoState, - >, + pub expiry_futures_market_info_state: ::prost::alloc::vec::Vec, /// perpetual_market_info defines the market info for the perpetual derivative /// markets at genesis #[prost(message, repeated, tag = "10")] @@ -3001,15 +2722,11 @@ pub struct GenesisState { /// perpetual_market_funding_state defines the funding state for the perpetual /// derivative markets at genesis #[prost(message, repeated, tag = "11")] - pub perpetual_market_funding_state: ::prost::alloc::vec::Vec< - PerpetualMarketFundingState, - >, + pub perpetual_market_funding_state: ::prost::alloc::vec::Vec, /// derivative_market_settlement_scheduled defines the scheduled markets for /// settlement at genesis #[prost(message, repeated, tag = "12")] - pub derivative_market_settlement_scheduled: ::prost::alloc::vec::Vec< - DerivativeMarketSettlementInfo, - >, + pub derivative_market_settlement_scheduled: ::prost::alloc::vec::Vec, /// sets spot markets as enabled #[prost(bool, tag = "13")] pub is_spot_exchange_enabled: bool, @@ -3021,45 +2738,31 @@ pub struct GenesisState { pub trading_reward_campaign_info: ::core::option::Option, /// the current and upcoming trading reward campaign pools #[prost(message, repeated, tag = "16")] - pub trading_reward_pool_campaign_schedule: ::prost::alloc::vec::Vec< - CampaignRewardPool, - >, + pub trading_reward_pool_campaign_schedule: ::prost::alloc::vec::Vec, /// the current trading reward account points #[prost(message, repeated, tag = "17")] - pub trading_reward_campaign_account_points: ::prost::alloc::vec::Vec< - TradingRewardCampaignAccountPoints, - >, + pub trading_reward_campaign_account_points: ::prost::alloc::vec::Vec, /// the fee discount schedule #[prost(message, optional, tag = "18")] pub fee_discount_schedule: ::core::option::Option, /// the cached fee discount account tiers with TTL #[prost(message, repeated, tag = "19")] - pub fee_discount_account_tier_ttl: ::prost::alloc::vec::Vec< - FeeDiscountAccountTierTtl, - >, + pub fee_discount_account_tier_ttl: ::prost::alloc::vec::Vec, /// the fee discount paid by accounts in all buckets #[prost(message, repeated, tag = "20")] - pub fee_discount_bucket_volume_accounts: ::prost::alloc::vec::Vec< - FeeDiscountBucketVolumeAccounts, - >, + pub fee_discount_bucket_volume_accounts: ::prost::alloc::vec::Vec, /// sets the first fee cycle as finished #[prost(bool, tag = "21")] pub is_first_fee_cycle_finished: bool, /// the current and upcoming trading reward campaign pending pools #[prost(message, repeated, tag = "22")] - pub pending_trading_reward_pool_campaign_schedule: ::prost::alloc::vec::Vec< - CampaignRewardPool, - >, + pub pending_trading_reward_pool_campaign_schedule: ::prost::alloc::vec::Vec, /// the pending trading reward account points #[prost(message, repeated, tag = "23")] - pub pending_trading_reward_campaign_account_points: ::prost::alloc::vec::Vec< - TradingRewardCampaignAccountPendingPoints, - >, + pub pending_trading_reward_campaign_account_points: ::prost::alloc::vec::Vec, /// the addresses opting out of trading rewards #[prost(string, repeated, tag = "24")] - pub rewards_opt_out_addresses: ::prost::alloc::vec::Vec< - ::prost::alloc::string::String, - >, + pub rewards_opt_out_addresses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(message, repeated, tag = "25")] pub historical_trade_records: ::prost::alloc::vec::Vec, /// binary_options_markets is an array containing the genesis binary options @@ -3070,25 +2773,19 @@ pub struct GenesisState { /// binary options markets scheduled for next-block settlement #[prost(string, repeated, tag = "27")] #[serde(alias = "binary_options_marketIDs_scheduled_for_settlement")] - pub binary_options_market_ids_scheduled_for_settlement: ::prost::alloc::vec::Vec< - ::prost::alloc::string::String, - >, + pub binary_options_market_ids_scheduled_for_settlement: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, /// spot_market_ids_scheduled_to_force_close defines the scheduled markets for /// forced closings at genesis #[prost(string, repeated, tag = "28")] #[serde(alias = "spot_marketIDs_scheduled_to_force_close")] - pub spot_market_ids_scheduled_to_force_close: ::prost::alloc::vec::Vec< - ::prost::alloc::string::String, - >, + pub spot_market_ids_scheduled_to_force_close: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, /// denom_decimals defines the denom decimals for the exchange. #[prost(message, repeated, tag = "29")] pub denom_decimals: ::prost::alloc::vec::Vec, /// conditional_derivative_orderbook contains conditional orderbooks for all /// markets (both lmit and market conditional orders) #[prost(message, repeated, tag = "30")] - pub conditional_derivative_orderbooks: ::prost::alloc::vec::Vec< - ConditionalDerivativeOrderBook, - >, + pub conditional_derivative_orderbooks: ::prost::alloc::vec::Vec, /// market_fee_multipliers contains any non-default atomic order fee /// multipliers #[prost(message, repeated, tag = "31")] @@ -3101,8 +2798,7 @@ pub struct GenesisState { pub market_volumes: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.OrderbookSequence")] pub struct OrderbookSequence { #[prost(uint64, tag = "1")] @@ -3116,8 +2812,7 @@ pub struct OrderbookSequence { pub market_id: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.FeeDiscountAccountTierTTL")] pub struct FeeDiscountAccountTierTtl { #[prost(string, tag = "1")] @@ -3126,11 +2821,8 @@ pub struct FeeDiscountAccountTierTtl { pub tier_ttl: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.FeeDiscountBucketVolumeAccounts" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.FeeDiscountBucketVolumeAccounts")] pub struct FeeDiscountBucketVolumeAccounts { #[prost(int64, tag = "1")] #[serde( @@ -3142,8 +2834,7 @@ pub struct FeeDiscountBucketVolumeAccounts { pub account_volume: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.AccountVolume")] pub struct AccountVolume { #[prost(string, tag = "1")] @@ -3152,11 +2843,8 @@ pub struct AccountVolume { pub volume: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.TradingRewardCampaignAccountPoints" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.TradingRewardCampaignAccountPoints")] pub struct TradingRewardCampaignAccountPoints { #[prost(string, tag = "1")] pub account: ::prost::alloc::string::String, @@ -3164,11 +2852,8 @@ pub struct TradingRewardCampaignAccountPoints { pub points: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.TradingRewardCampaignAccountPendingPoints" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.TradingRewardCampaignAccountPendingPoints")] pub struct TradingRewardCampaignAccountPendingPoints { #[prost(int64, tag = "1")] #[serde( @@ -3181,8 +2866,7 @@ pub struct TradingRewardCampaignAccountPendingPoints { } /// Spot Exchange Limit Orderbook #[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 = "/injective.exchange.v1beta1.SpotOrderBook")] pub struct SpotOrderBook { #[prost(string, tag = "1")] @@ -3195,8 +2879,7 @@ pub struct SpotOrderBook { } /// Derivative Exchange Limit Orderbook #[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 = "/injective.exchange.v1beta1.DerivativeOrderBook")] pub struct DerivativeOrderBook { #[prost(string, tag = "1")] @@ -3209,8 +2892,7 @@ pub struct DerivativeOrderBook { } /// Orderbook containing limit & market conditional orders #[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 = "/injective.exchange.v1beta1.ConditionalDerivativeOrderBook")] pub struct ConditionalDerivativeOrderBook { #[prost(string, tag = "1")] @@ -3226,8 +2908,7 @@ pub struct ConditionalDerivativeOrderBook { pub market_sell_orders: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.Balance")] pub struct Balance { #[prost(string, tag = "1")] @@ -3239,8 +2920,7 @@ pub struct Balance { pub deposits: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.DerivativePosition")] pub struct DerivativePosition { #[prost(string, tag = "1")] @@ -3253,8 +2933,7 @@ pub struct DerivativePosition { pub position: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.SubaccountNonce")] pub struct SubaccountNonce { #[prost(string, tag = "1")] @@ -3264,8 +2943,7 @@ pub struct SubaccountNonce { pub subaccount_trade_nonce: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.ExpiryFuturesMarketInfoState")] pub struct ExpiryFuturesMarketInfoState { #[prost(string, tag = "1")] @@ -3275,8 +2953,7 @@ pub struct ExpiryFuturesMarketInfoState { pub market_info: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.PerpetualMarketFundingState")] pub struct PerpetualMarketFundingState { #[prost(string, tag = "1")] @@ -3286,8 +2963,7 @@ pub struct PerpetualMarketFundingState { pub funding: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.SpotMarketParamUpdateProposal")] pub struct SpotMarketParamUpdateProposal { #[prost(string, tag = "1")] @@ -3323,8 +2999,7 @@ pub struct SpotMarketParamUpdateProposal { pub status: i32, } #[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 = "/injective.exchange.v1beta1.ExchangeEnableProposal")] pub struct ExchangeEnableProposal { #[prost(string, tag = "1")] @@ -3339,62 +3014,40 @@ pub struct ExchangeEnableProposal { pub exchange_type: i32, } #[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 = "/injective.exchange.v1beta1.BatchExchangeModificationProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.BatchExchangeModificationProposal")] pub struct BatchExchangeModificationProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, #[prost(string, tag = "2")] pub description: ::prost::alloc::string::String, #[prost(message, repeated, tag = "3")] - pub spot_market_param_update_proposals: ::prost::alloc::vec::Vec< - SpotMarketParamUpdateProposal, - >, + pub spot_market_param_update_proposals: ::prost::alloc::vec::Vec, #[prost(message, repeated, tag = "4")] - pub derivative_market_param_update_proposals: ::prost::alloc::vec::Vec< - DerivativeMarketParamUpdateProposal, - >, + pub derivative_market_param_update_proposals: ::prost::alloc::vec::Vec, #[prost(message, repeated, tag = "5")] pub spot_market_launch_proposals: ::prost::alloc::vec::Vec, #[prost(message, repeated, tag = "6")] - pub perpetual_market_launch_proposals: ::prost::alloc::vec::Vec< - PerpetualMarketLaunchProposal, - >, + pub perpetual_market_launch_proposals: ::prost::alloc::vec::Vec, #[prost(message, repeated, tag = "7")] - pub expiry_futures_market_launch_proposals: ::prost::alloc::vec::Vec< - ExpiryFuturesMarketLaunchProposal, - >, + pub expiry_futures_market_launch_proposals: ::prost::alloc::vec::Vec, #[prost(message, optional, tag = "8")] - pub trading_reward_campaign_update_proposal: ::core::option::Option< - TradingRewardCampaignUpdateProposal, - >, + pub trading_reward_campaign_update_proposal: ::core::option::Option, #[prost(message, repeated, tag = "9")] - pub binary_options_market_launch_proposals: ::prost::alloc::vec::Vec< - BinaryOptionsMarketLaunchProposal, - >, + pub binary_options_market_launch_proposals: ::prost::alloc::vec::Vec, #[prost(message, repeated, tag = "10")] - pub binary_options_param_update_proposals: ::prost::alloc::vec::Vec< - BinaryOptionsMarketParamUpdateProposal, - >, + pub binary_options_param_update_proposals: ::prost::alloc::vec::Vec, #[prost(message, optional, tag = "11")] - pub denom_decimals_update_proposal: ::core::option::Option< - UpdateDenomDecimalsProposal, - >, + pub denom_decimals_update_proposal: ::core::option::Option, #[prost(message, optional, tag = "12")] pub fee_discount_proposal: ::core::option::Option, #[prost(message, repeated, tag = "13")] - pub market_forced_settlement_proposals: ::prost::alloc::vec::Vec< - MarketForcedSettlementProposal, - >, + pub market_forced_settlement_proposals: ::prost::alloc::vec::Vec, } /// SpotMarketLaunchProposal defines a SDK message for proposing a new spot /// market through governance #[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 = "/injective.exchange.v1beta1.SpotMarketLaunchProposal")] pub struct SpotMarketLaunchProposal { #[prost(string, tag = "1")] @@ -3427,8 +3080,7 @@ pub struct SpotMarketLaunchProposal { /// PerpetualMarketLaunchProposal defines a SDK message for proposing a new /// perpetual futures market through governance #[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 = "/injective.exchange.v1beta1.PerpetualMarketLaunchProposal")] pub struct PerpetualMarketLaunchProposal { #[prost(string, tag = "1")] @@ -3487,11 +3139,8 @@ pub struct PerpetualMarketLaunchProposal { pub min_quantity_tick_size: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.BinaryOptionsMarketLaunchProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.BinaryOptionsMarketLaunchProposal")] pub struct BinaryOptionsMarketLaunchProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -3558,11 +3207,8 @@ pub struct BinaryOptionsMarketLaunchProposal { /// ExpiryFuturesMarketLaunchProposal defines a SDK message for proposing a new /// expiry futures market through governance #[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 = "/injective.exchange.v1beta1.ExpiryFuturesMarketLaunchProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.ExpiryFuturesMarketLaunchProposal")] pub struct ExpiryFuturesMarketLaunchProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -3627,11 +3273,8 @@ pub struct ExpiryFuturesMarketLaunchProposal { pub min_quantity_tick_size: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.DerivativeMarketParamUpdateProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.DerivativeMarketParamUpdateProposal")] pub struct DerivativeMarketParamUpdateProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -3685,8 +3328,7 @@ pub struct DerivativeMarketParamUpdateProposal { pub oracle_params: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.MarketForcedSettlementProposal")] pub struct MarketForcedSettlementProposal { #[prost(string, tag = "1")] @@ -3700,8 +3342,7 @@ pub struct MarketForcedSettlementProposal { pub settlement_price: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.UpdateDenomDecimalsProposal")] pub struct UpdateDenomDecimalsProposal { #[prost(string, tag = "1")] @@ -3712,11 +3353,8 @@ pub struct UpdateDenomDecimalsProposal { pub denom_decimals: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.BinaryOptionsMarketParamUpdateProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.BinaryOptionsMarketParamUpdateProposal")] pub struct BinaryOptionsMarketParamUpdateProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -3775,8 +3413,7 @@ pub struct BinaryOptionsMarketParamUpdateProposal { pub oracle_params: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.ProviderOracleParams")] pub struct ProviderOracleParams { /// Oracle base currency @@ -3801,8 +3438,7 @@ pub struct ProviderOracleParams { pub oracle_type: i32, } #[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 = "/injective.exchange.v1beta1.OracleParams")] pub struct OracleParams { /// Oracle base currency @@ -3827,11 +3463,8 @@ pub struct OracleParams { pub oracle_type: i32, } #[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 = "/injective.exchange.v1beta1.TradingRewardCampaignLaunchProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.TradingRewardCampaignLaunchProposal")] pub struct TradingRewardCampaignLaunchProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -3843,11 +3476,8 @@ pub struct TradingRewardCampaignLaunchProposal { pub campaign_reward_pools: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.TradingRewardCampaignUpdateProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.TradingRewardCampaignUpdateProposal")] pub struct TradingRewardCampaignUpdateProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -3861,8 +3491,7 @@ pub struct TradingRewardCampaignUpdateProposal { pub campaign_reward_pools_updates: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.RewardPointUpdate")] pub struct RewardPointUpdate { #[prost(string, tag = "1")] @@ -3872,11 +3501,8 @@ pub struct RewardPointUpdate { pub new_points: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.TradingRewardPendingPointsUpdateProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.TradingRewardPendingPointsUpdateProposal")] pub struct TradingRewardPendingPointsUpdateProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -3892,8 +3518,7 @@ pub struct TradingRewardPendingPointsUpdateProposal { pub reward_point_updates: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.FeeDiscountProposal")] pub struct FeeDiscountProposal { #[prost(string, tag = "1")] @@ -3904,29 +3529,21 @@ pub struct FeeDiscountProposal { pub schedule: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.BatchCommunityPoolSpendProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.BatchCommunityPoolSpendProposal")] pub struct BatchCommunityPoolSpendProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, #[prost(string, tag = "2")] pub description: ::prost::alloc::string::String, #[prost(message, repeated, tag = "3")] - pub proposals: ::prost::alloc::vec::Vec< - super::super::super::cosmos::distribution::v1beta1::CommunityPoolSpendProposal, - >, + pub proposals: ::prost::alloc::vec::Vec, } /// AtomicMarketOrderFeeMultiplierScheduleProposal defines a SDK message for /// proposing new atomic take fee multipliers for specified markets #[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 = "/injective.exchange.v1beta1.AtomicMarketOrderFeeMultiplierScheduleProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.AtomicMarketOrderFeeMultiplierScheduleProposal")] pub struct AtomicMarketOrderFeeMultiplierScheduleProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -3966,8 +3583,7 @@ impl ExchangeType { } } #[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 = "/injective.exchange.v1beta1.Subaccount")] pub struct Subaccount { #[prost(string, tag = "1")] @@ -3980,8 +3596,7 @@ pub struct Subaccount { pub subaccount_nonce: u32, } #[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 = "/injective.exchange.v1beta1.QuerySubaccountOrdersRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SubaccountOrders", @@ -3996,8 +3611,7 @@ pub struct QuerySubaccountOrdersRequest { pub market_id: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.QuerySubaccountOrdersResponse")] pub struct QuerySubaccountOrdersResponse { #[prost(message, repeated, tag = "1")] @@ -4006,11 +3620,8 @@ pub struct QuerySubaccountOrdersResponse { pub sell_orders: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.SubaccountOrderbookMetadataWithMarket" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.SubaccountOrderbookMetadataWithMarket")] pub struct SubaccountOrderbookMetadataWithMarket { #[prost(message, optional, tag = "1")] pub metadata: ::core::option::Option, @@ -4023,8 +3634,7 @@ pub struct SubaccountOrderbookMetadataWithMarket { /// QueryExchangeParamsRequest is the request type for the Query/ExchangeParams /// RPC method. #[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 = "/injective.exchange.v1beta1.QueryExchangeParamsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/QueryExchangeParams", @@ -4034,8 +3644,7 @@ pub struct QueryExchangeParamsRequest {} /// QueryExchangeParamsRequest is the response type for the Query/ExchangeParams /// RPC method. #[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 = "/injective.exchange.v1beta1.QueryExchangeParamsResponse")] pub struct QueryExchangeParamsResponse { #[prost(message, optional, tag = "1")] @@ -4044,8 +3653,7 @@ pub struct QueryExchangeParamsResponse { /// QuerySubaccountDepositsRequest is the request type for the /// Query/SubaccountDeposits RPC method. #[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 = "/injective.exchange.v1beta1.QuerySubaccountDepositsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SubaccountDeposits", @@ -4061,11 +3669,8 @@ pub struct QuerySubaccountDepositsRequest { /// QuerySubaccountDepositsResponse is the response type for the /// Query/SubaccountDeposits RPC method. #[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 = "/injective.exchange.v1beta1.QuerySubaccountDepositsResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountDepositsResponse")] pub struct QuerySubaccountDepositsResponse { #[prost(map = "string, message", tag = "1")] pub deposits: ::std::collections::HashMap<::prost::alloc::string::String, Deposit>, @@ -4073,8 +3678,7 @@ pub struct QuerySubaccountDepositsResponse { /// QueryExchangeBalancesRequest is the request type for the /// Query/ExchangeBalances RPC method. #[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 = "/injective.exchange.v1beta1.QueryExchangeBalancesRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/ExchangeBalances", @@ -4084,8 +3688,7 @@ pub struct QueryExchangeBalancesRequest {} /// QuerySubaccountDepositsResponse is the response type for the /// Query/SubaccountDeposits RPC method. #[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 = "/injective.exchange.v1beta1.QueryExchangeBalancesResponse")] pub struct QueryExchangeBalancesResponse { #[prost(message, repeated, tag = "1")] @@ -4094,8 +3697,7 @@ pub struct QueryExchangeBalancesResponse { /// QueryAggregateVolumeRequest is the request type for the Query/AggregateVolume /// RPC method. #[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 = "/injective.exchange.v1beta1.QueryAggregateVolumeRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/AggregateVolume", @@ -4109,8 +3711,7 @@ pub struct QueryAggregateVolumeRequest { /// QueryAggregateVolumeResponse is the response type for the /// Query/AggregateVolume RPC method. #[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 = "/injective.exchange.v1beta1.QueryAggregateVolumeResponse")] pub struct QueryAggregateVolumeResponse { /// if an address is specified, then the aggregate_volumes will aggregate the @@ -4121,8 +3722,7 @@ pub struct QueryAggregateVolumeResponse { /// QueryAggregateVolumesRequest is the request type for the /// Query/AggregateVolumes RPC method. #[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 = "/injective.exchange.v1beta1.QueryAggregateVolumesRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/AggregateVolumes", @@ -4138,15 +3738,12 @@ pub struct QueryAggregateVolumesRequest { /// QueryAggregateVolumesResponse is the response type for the /// Query/AggregateVolumes RPC method. #[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 = "/injective.exchange.v1beta1.QueryAggregateVolumesResponse")] pub struct QueryAggregateVolumesResponse { /// the aggregate volume records for the accounts specified #[prost(message, repeated, tag = "1")] - pub aggregate_account_volumes: ::prost::alloc::vec::Vec< - AggregateAccountVolumeRecord, - >, + pub aggregate_account_volumes: ::prost::alloc::vec::Vec, /// the aggregate volumes for the markets specified #[prost(message, repeated, tag = "2")] pub aggregate_market_volumes: ::prost::alloc::vec::Vec, @@ -4154,11 +3751,8 @@ pub struct QueryAggregateVolumesResponse { /// QueryAggregateMarketVolumeRequest is the request type for the /// Query/AggregateMarketVolume RPC method. #[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 = "/injective.exchange.v1beta1.QueryAggregateMarketVolumeRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAggregateMarketVolumeRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/AggregateMarketVolume", response_type = QueryAggregateMarketVolumeResponse @@ -4171,11 +3765,8 @@ pub struct QueryAggregateMarketVolumeRequest { /// QueryAggregateMarketVolumeResponse is the response type for the /// Query/AggregateMarketVolume RPC method. #[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 = "/injective.exchange.v1beta1.QueryAggregateMarketVolumeResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAggregateMarketVolumeResponse")] pub struct QueryAggregateMarketVolumeResponse { #[prost(message, optional, tag = "1")] pub volume: ::core::option::Option, @@ -4183,8 +3774,7 @@ pub struct QueryAggregateMarketVolumeResponse { /// QueryDenomDecimalRequest is the request type for the Query/DenomDecimal RPC /// method. #[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 = "/injective.exchange.v1beta1.QueryDenomDecimalRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/DenomDecimal", @@ -4197,8 +3787,7 @@ pub struct QueryDenomDecimalRequest { /// QueryDenomDecimalResponse is the response type for the Query/DenomDecimal RPC /// method. #[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 = "/injective.exchange.v1beta1.QueryDenomDecimalResponse")] pub struct QueryDenomDecimalResponse { #[prost(uint64, tag = "1")] @@ -4211,8 +3800,7 @@ pub struct QueryDenomDecimalResponse { /// QueryDenomDecimalsRequest is the request type for the Query/DenomDecimals RPC /// method. #[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 = "/injective.exchange.v1beta1.QueryDenomDecimalsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/DenomDecimals", @@ -4226,8 +3814,7 @@ pub struct QueryDenomDecimalsRequest { /// QueryDenomDecimalsRequest is the response type for the Query/DenomDecimals /// RPC method. #[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 = "/injective.exchange.v1beta1.QueryDenomDecimalsResponse")] pub struct QueryDenomDecimalsResponse { #[prost(message, repeated, tag = "1")] @@ -4236,11 +3823,8 @@ pub struct QueryDenomDecimalsResponse { /// QueryAggregateMarketVolumesRequest is the request type for the /// Query/AggregateMarketVolumes RPC method. #[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 = "/injective.exchange.v1beta1.QueryAggregateMarketVolumesRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAggregateMarketVolumesRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/AggregateMarketVolumes", response_type = QueryAggregateMarketVolumesResponse @@ -4253,11 +3837,8 @@ pub struct QueryAggregateMarketVolumesRequest { /// QueryAggregateMarketVolumesResponse is the response type for the /// Query/AggregateMarketVolumes RPC method. #[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 = "/injective.exchange.v1beta1.QueryAggregateMarketVolumesResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAggregateMarketVolumesResponse")] pub struct QueryAggregateMarketVolumesResponse { /// the aggregate volumes for the entire market #[prost(message, repeated, tag = "1")] @@ -4266,8 +3847,7 @@ pub struct QueryAggregateMarketVolumesResponse { /// QuerySubaccountDepositsRequest is the request type for the /// Query/SubaccountDeposits RPC method. #[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 = "/injective.exchange.v1beta1.QuerySubaccountDepositRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SubaccountDeposit", @@ -4283,8 +3863,7 @@ pub struct QuerySubaccountDepositRequest { /// QuerySubaccountDepositsResponse is the response type for the /// Query/SubaccountDeposits RPC method. #[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 = "/injective.exchange.v1beta1.QuerySubaccountDepositResponse")] pub struct QuerySubaccountDepositResponse { #[prost(message, optional, tag = "1")] @@ -4293,8 +3872,7 @@ pub struct QuerySubaccountDepositResponse { /// QuerySpotMarketsRequest is the request type for the Query/SpotMarkets RPC /// method. #[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 = "/injective.exchange.v1beta1.QuerySpotMarketsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SpotMarkets", @@ -4312,8 +3890,7 @@ pub struct QuerySpotMarketsRequest { /// QuerySpotMarketsResponse is the response type for the Query/SpotMarkets RPC /// method. #[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 = "/injective.exchange.v1beta1.QuerySpotMarketsResponse")] pub struct QuerySpotMarketsResponse { #[prost(message, repeated, tag = "1")] @@ -4322,8 +3899,7 @@ pub struct QuerySpotMarketsResponse { /// QuerySpotMarketRequest is the request type for the Query/SpotMarket RPC /// method. #[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 = "/injective.exchange.v1beta1.QuerySpotMarketRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SpotMarket", @@ -4338,8 +3914,7 @@ pub struct QuerySpotMarketRequest { /// QuerySpotMarketResponse is the response type for the Query/SpotMarket RPC /// method. #[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 = "/injective.exchange.v1beta1.QuerySpotMarketResponse")] pub struct QuerySpotMarketResponse { #[prost(message, optional, tag = "1")] @@ -4348,8 +3923,7 @@ pub struct QuerySpotMarketResponse { /// QuerySpotOrderbookRequest is the request type for the Query/SpotOrderbook RPC /// method. #[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 = "/injective.exchange.v1beta1.QuerySpotOrderbookRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SpotOrderbook", @@ -4380,8 +3954,7 @@ pub struct QuerySpotOrderbookRequest { /// QuerySpotOrderbookResponse is the response type for the Query/SpotOrderbook /// RPC method. #[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 = "/injective.exchange.v1beta1.QuerySpotOrderbookResponse")] pub struct QuerySpotOrderbookResponse { #[prost(message, repeated, tag = "1")] @@ -4390,8 +3963,7 @@ pub struct QuerySpotOrderbookResponse { pub sells_price_level: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.FullSpotMarket")] pub struct FullSpotMarket { #[prost(message, optional, tag = "1")] @@ -4404,8 +3976,7 @@ pub struct FullSpotMarket { /// QueryFullSpotMarketsRequest is the request type for the Query/FullSpotMarkets /// RPC method. #[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 = "/injective.exchange.v1beta1.QueryFullSpotMarketsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/FullSpotMarkets", @@ -4427,8 +3998,7 @@ pub struct QueryFullSpotMarketsRequest { /// QueryFullSpotMarketsResponse is the response type for the /// Query/FullSpotMarkets RPC method. #[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 = "/injective.exchange.v1beta1.QueryFullSpotMarketsResponse")] pub struct QueryFullSpotMarketsResponse { #[prost(message, repeated, tag = "1")] @@ -4437,8 +4007,7 @@ pub struct QueryFullSpotMarketsResponse { /// QuerySpotMarketRequest is the request type for the Query/SpotMarket RPC /// method. #[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 = "/injective.exchange.v1beta1.QueryFullSpotMarketRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/FullSpotMarket", @@ -4457,8 +4026,7 @@ pub struct QueryFullSpotMarketRequest { /// QuerySpotMarketResponse is the response type for the Query/SpotMarket RPC /// method. #[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 = "/injective.exchange.v1beta1.QueryFullSpotMarketResponse")] pub struct QueryFullSpotMarketResponse { #[prost(message, optional, tag = "1")] @@ -4467,8 +4035,7 @@ pub struct QueryFullSpotMarketResponse { /// QuerySpotOrdersByHashesRequest is the request type for the /// Query/SpotOrdersByHashes RPC method. #[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 = "/injective.exchange.v1beta1.QuerySpotOrdersByHashesRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SpotOrdersByHashes", @@ -4490,11 +4057,8 @@ pub struct QuerySpotOrdersByHashesRequest { /// QuerySpotOrdersByHashesResponse is the response type for the /// Query/SpotOrdersByHashes RPC method. #[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 = "/injective.exchange.v1beta1.QuerySpotOrdersByHashesResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySpotOrdersByHashesResponse")] pub struct QuerySpotOrdersByHashesResponse { #[prost(message, repeated, tag = "1")] pub orders: ::prost::alloc::vec::Vec, @@ -4502,8 +4066,7 @@ pub struct QuerySpotOrdersByHashesResponse { /// QueryTraderSpotOrdersRequest is the request type for the /// Query/TraderSpotOrders RPC method. #[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 = "/injective.exchange.v1beta1.QueryTraderSpotOrdersRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/TraderSpotOrders", @@ -4522,11 +4085,8 @@ pub struct QueryTraderSpotOrdersRequest { /// QueryAccountAddressSpotOrdersRequest is the request type for the /// Query/AccountAddressSpotOrders RPC method. #[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 = "/injective.exchange.v1beta1.QueryAccountAddressSpotOrdersRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAccountAddressSpotOrdersRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/AccountAddressSpotOrders", response_type = QueryAccountAddressSpotOrdersResponse @@ -4541,8 +4101,7 @@ pub struct QueryAccountAddressSpotOrdersRequest { pub account_address: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.TrimmedSpotLimitOrder")] pub struct TrimmedSpotLimitOrder { /// price of the order @@ -4563,8 +4122,7 @@ pub struct TrimmedSpotLimitOrder { /// QueryTraderSpotOrdersResponse is the response type for the /// Query/TraderSpotOrders RPC method. #[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 = "/injective.exchange.v1beta1.QueryTraderSpotOrdersResponse")] pub struct QueryTraderSpotOrdersResponse { #[prost(message, repeated, tag = "1")] @@ -4573,11 +4131,8 @@ pub struct QueryTraderSpotOrdersResponse { /// QueryAccountAddressSpotOrdersResponse is the response type for the /// Query/AccountAddressSpotOrders RPC method. #[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 = "/injective.exchange.v1beta1.QueryAccountAddressSpotOrdersResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAccountAddressSpotOrdersResponse")] pub struct QueryAccountAddressSpotOrdersResponse { #[prost(message, repeated, tag = "1")] pub orders: ::prost::alloc::vec::Vec, @@ -4585,8 +4140,7 @@ pub struct QueryAccountAddressSpotOrdersResponse { /// QuerySpotMidPriceAndTOBRequest is the request type for the /// Query/SpotMidPriceAndTOB RPC method. #[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 = "/injective.exchange.v1beta1.QuerySpotMidPriceAndTOBRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SpotMidPriceAndTOB", @@ -4601,11 +4155,8 @@ pub struct QuerySpotMidPriceAndTobRequest { /// QuerySpotMidPriceAndTOBResponse is the response type for the /// Query/SpotMidPriceAndTOB RPC method. #[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 = "/injective.exchange.v1beta1.QuerySpotMidPriceAndTOBResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySpotMidPriceAndTOBResponse")] pub struct QuerySpotMidPriceAndTobResponse { /// mid price of the market #[prost(string, tag = "1")] @@ -4620,11 +4171,8 @@ pub struct QuerySpotMidPriceAndTobResponse { /// QueryDerivativeMidPriceAndTOBRequest is the request type for the /// Query/GetDerivativeMidPriceAndTOB RPC method. #[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 = "/injective.exchange.v1beta1.QueryDerivativeMidPriceAndTOBRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeMidPriceAndTOBRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/DerivativeMidPriceAndTOB", response_type = QueryDerivativeMidPriceAndTobResponse @@ -4638,11 +4186,8 @@ pub struct QueryDerivativeMidPriceAndTobRequest { /// QueryDerivativeMidPriceAndTOBResponse is the response type for the /// Query/GetDerivativeMidPriceAndTOB RPC method. #[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 = "/injective.exchange.v1beta1.QueryDerivativeMidPriceAndTOBResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeMidPriceAndTOBResponse")] pub struct QueryDerivativeMidPriceAndTobResponse { /// mid price of the market #[prost(string, tag = "1")] @@ -4657,11 +4202,8 @@ pub struct QueryDerivativeMidPriceAndTobResponse { /// QueryDerivativeOrderbookRequest is the request type for the /// Query/DerivativeOrderbook RPC method. #[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 = "/injective.exchange.v1beta1.QueryDerivativeOrderbookRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeOrderbookRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/DerivativeOrderbook", response_type = QueryDerivativeOrderbookResponse @@ -4683,11 +4225,8 @@ pub struct QueryDerivativeOrderbookRequest { /// QueryDerivativeOrderbookResponse is the response type for the /// Query/DerivativeOrderbook RPC method. #[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 = "/injective.exchange.v1beta1.QueryDerivativeOrderbookResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeOrderbookResponse")] pub struct QueryDerivativeOrderbookResponse { #[prost(message, repeated, tag = "1")] pub buys_price_level: ::prost::alloc::vec::Vec, @@ -4697,11 +4236,8 @@ pub struct QueryDerivativeOrderbookResponse { /// QueryTraderSpotOrdersToCancelUpToAmountRequest is the request type for the /// Query/TraderSpotOrdersToCancelUpToAmountRequest RPC method. #[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 = "/injective.exchange.v1beta1.QueryTraderSpotOrdersToCancelUpToAmountRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTraderSpotOrdersToCancelUpToAmountRequest")] pub struct QueryTraderSpotOrdersToCancelUpToAmountRequest { /// Market ID for the market #[prost(string, tag = "1")] @@ -4732,11 +4268,8 @@ pub struct QueryTraderSpotOrdersToCancelUpToAmountRequest { /// QueryTraderDerivativeOrdersToCancelUpToAmountRequest is the request type for /// the Query/TraderDerivativeOrdersToCancelUpToAmountRequest RPC method. #[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 = "/injective.exchange.v1beta1.QueryTraderDerivativeOrdersToCancelUpToAmountRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTraderDerivativeOrdersToCancelUpToAmountRequest")] pub struct QueryTraderDerivativeOrdersToCancelUpToAmountRequest { /// Market ID for the market #[prost(string, tag = "1")] @@ -4764,11 +4297,8 @@ pub struct QueryTraderDerivativeOrdersToCancelUpToAmountRequest { /// QueryTraderDerivativeOrdersRequest is the request type for the /// Query/TraderDerivativeOrders RPC method. #[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 = "/injective.exchange.v1beta1.QueryTraderDerivativeOrdersRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTraderDerivativeOrdersRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/TraderDerivativeOrders", response_type = QueryTraderDerivativeOrdersResponse @@ -4786,11 +4316,8 @@ pub struct QueryTraderDerivativeOrdersRequest { /// QueryAccountAddressSpotOrdersRequest is the request type for the /// Query/AccountAddressDerivativeOrders RPC method. #[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 = "/injective.exchange.v1beta1.QueryAccountAddressDerivativeOrdersRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAccountAddressDerivativeOrdersRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/AccountAddressDerivativeOrders", response_type = QueryAccountAddressDerivativeOrdersResponse @@ -4805,8 +4332,7 @@ pub struct QueryAccountAddressDerivativeOrdersRequest { pub account_address: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.TrimmedDerivativeLimitOrder")] pub struct TrimmedDerivativeLimitOrder { /// price of the order @@ -4832,11 +4358,8 @@ pub struct TrimmedDerivativeLimitOrder { /// QueryTraderDerivativeOrdersResponse is the response type for the /// Query/TraderDerivativeOrders RPC method. #[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 = "/injective.exchange.v1beta1.QueryTraderDerivativeOrdersResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTraderDerivativeOrdersResponse")] pub struct QueryTraderDerivativeOrdersResponse { #[prost(message, repeated, tag = "1")] pub orders: ::prost::alloc::vec::Vec, @@ -4844,11 +4367,8 @@ pub struct QueryTraderDerivativeOrdersResponse { /// QueryAccountAddressDerivativeOrdersResponse is the response type for the /// Query/AccountAddressDerivativeOrders RPC method. #[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 = "/injective.exchange.v1beta1.QueryAccountAddressDerivativeOrdersResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAccountAddressDerivativeOrdersResponse")] pub struct QueryAccountAddressDerivativeOrdersResponse { #[prost(message, repeated, tag = "1")] pub orders: ::prost::alloc::vec::Vec, @@ -4856,11 +4376,8 @@ pub struct QueryAccountAddressDerivativeOrdersResponse { /// QueryTraderDerivativeOrdersRequest is the request type for the /// Query/TraderDerivativeOrders RPC method. #[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 = "/injective.exchange.v1beta1.QueryDerivativeOrdersByHashesRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeOrdersByHashesRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/DerivativeOrdersByHashes", response_type = QueryDerivativeOrdersByHashesResponse @@ -4881,11 +4398,8 @@ pub struct QueryDerivativeOrdersByHashesRequest { /// QueryDerivativeOrdersByHashesResponse is the response type for the /// Query/DerivativeOrdersByHashes RPC method. #[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 = "/injective.exchange.v1beta1.QueryDerivativeOrdersByHashesResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeOrdersByHashesResponse")] pub struct QueryDerivativeOrdersByHashesResponse { #[prost(message, repeated, tag = "1")] pub orders: ::prost::alloc::vec::Vec, @@ -4893,8 +4407,7 @@ pub struct QueryDerivativeOrdersByHashesResponse { /// QueryDerivativeMarketsRequest is the request type for the /// Query/DerivativeMarkets RPC method. #[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 = "/injective.exchange.v1beta1.QueryDerivativeMarketsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/DerivativeMarkets", @@ -4914,8 +4427,7 @@ pub struct QueryDerivativeMarketsRequest { pub with_mid_price_and_tob: bool, } #[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 = "/injective.exchange.v1beta1.PriceLevel")] pub struct PriceLevel { #[prost(string, tag = "1")] @@ -4925,8 +4437,7 @@ pub struct PriceLevel { pub quantity: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.PerpetualMarketState")] pub struct PerpetualMarketState { #[prost(message, optional, tag = "1")] @@ -4935,8 +4446,7 @@ pub struct PerpetualMarketState { pub funding_info: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.FullDerivativeMarket")] pub struct FullDerivativeMarket { #[prost(message, optional, tag = "1")] @@ -4954,8 +4464,7 @@ pub struct FullDerivativeMarket { pub mod full_derivative_market { use osmosis_std_derive::CosmwasmExt; #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, Eq, ::prost::Oneof)] - #[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema)] + #[derive(Clone, PartialEq, Eq, ::prost::Oneof, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema)] pub enum Info { #[prost(message, tag = "2")] PerpetualInfo(super::PerpetualMarketState), @@ -4966,8 +4475,7 @@ pub mod full_derivative_market { /// QueryDerivativeMarketsResponse is the response type for the /// Query/DerivativeMarkets RPC method. #[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 = "/injective.exchange.v1beta1.QueryDerivativeMarketsResponse")] pub struct QueryDerivativeMarketsResponse { #[prost(message, repeated, tag = "1")] @@ -4976,8 +4484,7 @@ pub struct QueryDerivativeMarketsResponse { /// QueryDerivativeMarketRequest is the request type for the /// Query/DerivativeMarket RPC method. #[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 = "/injective.exchange.v1beta1.QueryDerivativeMarketRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/DerivativeMarket", @@ -4992,8 +4499,7 @@ pub struct QueryDerivativeMarketRequest { /// QueryDerivativeMarketResponse is the response type for the /// Query/DerivativeMarket RPC method. #[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 = "/injective.exchange.v1beta1.QueryDerivativeMarketResponse")] pub struct QueryDerivativeMarketResponse { #[prost(message, optional, tag = "1")] @@ -5002,11 +4508,8 @@ pub struct QueryDerivativeMarketResponse { /// QueryDerivativeMarketAddressRequest is the request type for the /// Query/DerivativeMarketAddress RPC method. #[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 = "/injective.exchange.v1beta1.QueryDerivativeMarketAddressRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeMarketAddressRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/DerivativeMarketAddress", response_type = QueryDerivativeMarketAddressResponse @@ -5020,11 +4523,8 @@ pub struct QueryDerivativeMarketAddressRequest { /// QueryDerivativeMarketAddressResponse is the response type for the /// Query/DerivativeMarketAddress RPC method. #[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 = "/injective.exchange.v1beta1.QueryDerivativeMarketAddressResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeMarketAddressResponse")] pub struct QueryDerivativeMarketAddressResponse { /// address for the market #[prost(string, tag = "1")] @@ -5037,11 +4537,8 @@ pub struct QueryDerivativeMarketAddressResponse { /// QuerySubaccountTradeNonceRequest is the request type for the /// Query/SubaccountTradeNonce RPC method. #[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 = "/injective.exchange.v1beta1.QuerySubaccountTradeNonceRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountTradeNonceRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SubaccountTradeNonce", response_type = QuerySubaccountTradeNonceResponse @@ -5054,11 +4551,8 @@ pub struct QuerySubaccountTradeNonceRequest { /// QuerySubaccountPositionsRequest is the request type for the /// Query/SubaccountPositions RPC method. #[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 = "/injective.exchange.v1beta1.QuerySubaccountPositionsRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountPositionsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SubaccountPositions", response_type = QuerySubaccountPositionsResponse @@ -5071,11 +4565,8 @@ pub struct QuerySubaccountPositionsRequest { /// QuerySubaccountPositionInMarketRequest is the request type for the /// Query/SubaccountPositionInMarket RPC method. #[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 = "/injective.exchange.v1beta1.QuerySubaccountPositionInMarketRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountPositionInMarketRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SubaccountPositionInMarket", response_type = QuerySubaccountPositionInMarketResponse @@ -5091,11 +4582,8 @@ pub struct QuerySubaccountPositionInMarketRequest { /// QuerySubaccountEffectivePositionInMarketRequest is the request type for the /// Query/SubaccountEffectivePositionInMarket RPC method. #[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 = "/injective.exchange.v1beta1.QuerySubaccountEffectivePositionInMarketRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountEffectivePositionInMarketRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SubaccountEffectivePositionInMarket", response_type = QuerySubaccountEffectivePositionInMarketResponse @@ -5111,11 +4599,8 @@ pub struct QuerySubaccountEffectivePositionInMarketRequest { /// QuerySubaccountOrderMetadataRequest is the request type for the /// Query/SubaccountOrderMetadata RPC method. #[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 = "/injective.exchange.v1beta1.QuerySubaccountOrderMetadataRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountOrderMetadataRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SubaccountOrderMetadata", response_type = QuerySubaccountOrderMetadataResponse @@ -5128,11 +4613,8 @@ pub struct QuerySubaccountOrderMetadataRequest { /// QuerySubaccountPositionsResponse is the response type for the /// Query/SubaccountPositions RPC method. #[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 = "/injective.exchange.v1beta1.QuerySubaccountPositionsResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountPositionsResponse")] pub struct QuerySubaccountPositionsResponse { #[prost(message, repeated, tag = "1")] pub state: ::prost::alloc::vec::Vec, @@ -5140,18 +4622,14 @@ pub struct QuerySubaccountPositionsResponse { /// QuerySubaccountPositionInMarketResponse is the response type for the /// Query/SubaccountPositionInMarket RPC method. #[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 = "/injective.exchange.v1beta1.QuerySubaccountPositionInMarketResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountPositionInMarketResponse")] pub struct QuerySubaccountPositionInMarketResponse { #[prost(message, optional, tag = "1")] pub state: ::core::option::Option, } #[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 = "/injective.exchange.v1beta1.EffectivePosition")] pub struct EffectivePosition { #[prost(bool, tag = "1")] @@ -5166,11 +4644,8 @@ pub struct EffectivePosition { /// QuerySubaccountEffectivePositionInMarketResponse is the response type for the /// Query/SubaccountEffectivePositionInMarket RPC method. #[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 = "/injective.exchange.v1beta1.QuerySubaccountEffectivePositionInMarketResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountEffectivePositionInMarketResponse")] pub struct QuerySubaccountEffectivePositionInMarketResponse { #[prost(message, optional, tag = "1")] pub state: ::core::option::Option, @@ -5178,11 +4653,8 @@ pub struct QuerySubaccountEffectivePositionInMarketResponse { /// QueryPerpetualMarketInfoRequest is the request type for the /// Query/PerpetualMarketInfo RPC method. #[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 = "/injective.exchange.v1beta1.QueryPerpetualMarketInfoRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryPerpetualMarketInfoRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/PerpetualMarketInfo", response_type = QueryPerpetualMarketInfoResponse @@ -5195,11 +4667,8 @@ pub struct QueryPerpetualMarketInfoRequest { /// QueryPerpetualMarketInfoResponse is the response type for the /// Query/PerpetualMarketInfo RPC method. #[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 = "/injective.exchange.v1beta1.QueryPerpetualMarketInfoResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryPerpetualMarketInfoResponse")] pub struct QueryPerpetualMarketInfoResponse { #[prost(message, optional, tag = "1")] pub info: ::core::option::Option, @@ -5207,11 +4676,8 @@ pub struct QueryPerpetualMarketInfoResponse { /// QueryExpiryFuturesMarketInfoRequest is the request type for the Query/ /// ExpiryFuturesMarketInfo RPC method. #[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 = "/injective.exchange.v1beta1.QueryExpiryFuturesMarketInfoRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryExpiryFuturesMarketInfoRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/ExpiryFuturesMarketInfo", response_type = QueryExpiryFuturesMarketInfoResponse @@ -5224,11 +4690,8 @@ pub struct QueryExpiryFuturesMarketInfoRequest { /// QueryExpiryFuturesMarketInfoResponse is the response type for the Query/ /// ExpiryFuturesMarketInfo RPC method. #[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 = "/injective.exchange.v1beta1.QueryExpiryFuturesMarketInfoResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryExpiryFuturesMarketInfoResponse")] pub struct QueryExpiryFuturesMarketInfoResponse { #[prost(message, optional, tag = "1")] pub info: ::core::option::Option, @@ -5236,11 +4699,8 @@ pub struct QueryExpiryFuturesMarketInfoResponse { /// QueryPerpetualMarketFundingRequest is the request type for the /// Query/PerpetualMarketFunding RPC method. #[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 = "/injective.exchange.v1beta1.QueryPerpetualMarketFundingRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryPerpetualMarketFundingRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/PerpetualMarketFunding", response_type = QueryPerpetualMarketFundingResponse @@ -5253,11 +4713,8 @@ pub struct QueryPerpetualMarketFundingRequest { /// QueryPerpetualMarketFundingResponse is the response type for the /// Query/PerpetualMarketFunding RPC method. #[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 = "/injective.exchange.v1beta1.QueryPerpetualMarketFundingResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryPerpetualMarketFundingResponse")] pub struct QueryPerpetualMarketFundingResponse { #[prost(message, optional, tag = "1")] pub state: ::core::option::Option, @@ -5265,11 +4722,8 @@ pub struct QueryPerpetualMarketFundingResponse { /// QuerySubaccountOrderMetadataResponse is the response type for the /// Query/SubaccountOrderMetadata RPC method. #[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 = "/injective.exchange.v1beta1.QuerySubaccountOrderMetadataResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountOrderMetadataResponse")] pub struct QuerySubaccountOrderMetadataResponse { #[prost(message, repeated, tag = "1")] pub metadata: ::prost::alloc::vec::Vec, @@ -5277,11 +4731,8 @@ pub struct QuerySubaccountOrderMetadataResponse { /// QuerySubaccountTradeNonceResponse is the response type for the /// Query/SubaccountTradeNonce RPC method. #[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 = "/injective.exchange.v1beta1.QuerySubaccountTradeNonceResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountTradeNonceResponse")] pub struct QuerySubaccountTradeNonceResponse { #[prost(uint32, tag = "1")] #[serde( @@ -5293,8 +4744,7 @@ pub struct QuerySubaccountTradeNonceResponse { /// QueryModuleStateRequest is the request type for the Query/ExchangeModuleState /// RPC method. #[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 = "/injective.exchange.v1beta1.QueryModuleStateRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/ExchangeModuleState", @@ -5304,8 +4754,7 @@ pub struct QueryModuleStateRequest {} /// QueryModuleStateResponse is the response type for the /// Query/ExchangeModuleState RPC method. #[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 = "/injective.exchange.v1beta1.QueryModuleStateResponse")] pub struct QueryModuleStateResponse { #[prost(message, optional, tag = "1")] @@ -5313,8 +4762,7 @@ pub struct QueryModuleStateResponse { } /// QueryPositionsRequest is the request type for the Query/Positions RPC method. #[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 = "/injective.exchange.v1beta1.QueryPositionsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/Positions", @@ -5324,8 +4772,7 @@ pub struct QueryPositionsRequest {} /// QueryPositionsResponse is the response type for the Query/Positions RPC /// method. #[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 = "/injective.exchange.v1beta1.QueryPositionsResponse")] pub struct QueryPositionsResponse { #[prost(message, repeated, tag = "1")] @@ -5334,8 +4781,7 @@ pub struct QueryPositionsResponse { /// QueryTradeRewardPointsRequest is the request type for the /// Query/TradeRewardPoints RPC method. #[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 = "/injective.exchange.v1beta1.QueryTradeRewardPointsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/TradeRewardPoints", @@ -5354,23 +4800,17 @@ pub struct QueryTradeRewardPointsRequest { /// QueryTradeRewardPointsResponse is the response type for the /// Query/TradeRewardPoints RPC method. #[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 = "/injective.exchange.v1beta1.QueryTradeRewardPointsResponse")] pub struct QueryTradeRewardPointsResponse { #[prost(string, repeated, tag = "1")] - pub account_trade_reward_points: ::prost::alloc::vec::Vec< - ::prost::alloc::string::String, - >, + pub account_trade_reward_points: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// QueryTradeRewardCampaignRequest is the request type for the /// Query/TradeRewardCampaign RPC method. #[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 = "/injective.exchange.v1beta1.QueryTradeRewardCampaignRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTradeRewardCampaignRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/TradeRewardCampaign", response_type = QueryTradeRewardCampaignResponse @@ -5379,37 +4819,25 @@ pub struct QueryTradeRewardCampaignRequest {} /// QueryTradeRewardCampaignResponse is the response type for the /// Query/TradeRewardCampaign RPC method. #[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 = "/injective.exchange.v1beta1.QueryTradeRewardCampaignResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTradeRewardCampaignResponse")] pub struct QueryTradeRewardCampaignResponse { #[prost(message, optional, tag = "1")] pub trading_reward_campaign_info: ::core::option::Option, #[prost(message, repeated, tag = "2")] - pub trading_reward_pool_campaign_schedule: ::prost::alloc::vec::Vec< - CampaignRewardPool, - >, + pub trading_reward_pool_campaign_schedule: ::prost::alloc::vec::Vec, #[prost(string, tag = "3")] pub total_trade_reward_points: ::prost::alloc::string::String, #[prost(message, repeated, tag = "4")] - pub pending_trading_reward_pool_campaign_schedule: ::prost::alloc::vec::Vec< - CampaignRewardPool, - >, + pub pending_trading_reward_pool_campaign_schedule: ::prost::alloc::vec::Vec, #[prost(string, repeated, tag = "5")] - pub pending_total_trade_reward_points: ::prost::alloc::vec::Vec< - ::prost::alloc::string::String, - >, + pub pending_total_trade_reward_points: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// QueryIsRegisteredDMMRequest is the request type for the Query/IsRegisteredDMM /// RPC method. #[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 = "/injective.exchange.v1beta1.QueryIsOptedOutOfRewardsRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryIsOptedOutOfRewardsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/IsOptedOutOfRewards", response_type = QueryIsOptedOutOfRewardsResponse @@ -5421,11 +4849,8 @@ pub struct QueryIsOptedOutOfRewardsRequest { /// QueryIsRegisteredDMMResponse is the response type for the /// Query/IsRegisteredDMM RPC method. #[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 = "/injective.exchange.v1beta1.QueryIsOptedOutOfRewardsResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryIsOptedOutOfRewardsResponse")] pub struct QueryIsOptedOutOfRewardsResponse { #[prost(bool, tag = "1")] pub is_opted_out: bool, @@ -5433,11 +4858,8 @@ pub struct QueryIsOptedOutOfRewardsResponse { /// QueryRegisteredDMMsRequest is the request type for the Query/RegisteredDMMs /// RPC method. #[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 = "/injective.exchange.v1beta1.QueryOptedOutOfRewardsAccountsRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryOptedOutOfRewardsAccountsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/OptedOutOfRewardsAccounts", response_type = QueryOptedOutOfRewardsAccountsResponse @@ -5446,11 +4868,8 @@ pub struct QueryOptedOutOfRewardsAccountsRequest {} /// QueryRegisteredDMMsResponse is the response type for the Query/RegisteredDMMs /// RPC method. #[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 = "/injective.exchange.v1beta1.QueryOptedOutOfRewardsAccountsResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryOptedOutOfRewardsAccountsResponse")] pub struct QueryOptedOutOfRewardsAccountsResponse { #[prost(string, repeated, tag = "1")] pub accounts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, @@ -5458,11 +4877,8 @@ pub struct QueryOptedOutOfRewardsAccountsResponse { /// QueryFeeDiscountAccountInfoRequest is the request type for the /// Query/FeeDiscountAccountInfo RPC method. #[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 = "/injective.exchange.v1beta1.QueryFeeDiscountAccountInfoRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryFeeDiscountAccountInfoRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/FeeDiscountAccountInfo", response_type = QueryFeeDiscountAccountInfoResponse @@ -5474,11 +4890,8 @@ pub struct QueryFeeDiscountAccountInfoRequest { /// QueryFeeDiscountAccountInfoResponse is the response type for the /// Query/FeeDiscountAccountInfo RPC method. #[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 = "/injective.exchange.v1beta1.QueryFeeDiscountAccountInfoResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryFeeDiscountAccountInfoResponse")] pub struct QueryFeeDiscountAccountInfoResponse { #[prost(uint64, tag = "1")] #[serde( @@ -5494,11 +4907,8 @@ pub struct QueryFeeDiscountAccountInfoResponse { /// QueryFeeDiscountScheduleRequest is the request type for the /// Query/FeeDiscountSchedule RPC method. #[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 = "/injective.exchange.v1beta1.QueryFeeDiscountScheduleRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryFeeDiscountScheduleRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/FeeDiscountSchedule", response_type = QueryFeeDiscountScheduleResponse @@ -5507,11 +4917,8 @@ pub struct QueryFeeDiscountScheduleRequest {} /// QueryFeeDiscountScheduleResponse is the response type for the /// Query/FeeDiscountSchedule RPC method. #[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 = "/injective.exchange.v1beta1.QueryFeeDiscountScheduleResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryFeeDiscountScheduleResponse")] pub struct QueryFeeDiscountScheduleResponse { #[prost(message, optional, tag = "1")] pub fee_discount_schedule: ::core::option::Option, @@ -5519,8 +4926,7 @@ pub struct QueryFeeDiscountScheduleResponse { /// QueryBalanceMismatchesRequest is the request type for the /// Query/QueryBalanceMismatches RPC method. #[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 = "/injective.exchange.v1beta1.QueryBalanceMismatchesRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/BalanceMismatches", @@ -5535,8 +4941,7 @@ pub struct QueryBalanceMismatchesRequest { pub dust_factor: i64, } #[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 = "/injective.exchange.v1beta1.BalanceMismatch")] pub struct BalanceMismatch { #[prost(string, tag = "1")] @@ -5558,8 +4963,7 @@ pub struct BalanceMismatch { /// QueryBalanceMismatchesResponse is the response type for the /// Query/QueryBalanceMismatches RPC method. #[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 = "/injective.exchange.v1beta1.QueryBalanceMismatchesResponse")] pub struct QueryBalanceMismatchesResponse { #[prost(message, repeated, tag = "1")] @@ -5568,19 +4972,15 @@ pub struct QueryBalanceMismatchesResponse { /// QueryBalanceWithBalanceHoldsRequest is the request type for the /// Query/QueryBalanceWithBalanceHolds RPC method. #[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 = "/injective.exchange.v1beta1.QueryBalanceWithBalanceHoldsRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryBalanceWithBalanceHoldsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/BalanceWithBalanceHolds", response_type = QueryBalanceWithBalanceHoldsResponse )] pub struct QueryBalanceWithBalanceHoldsRequest {} #[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 = "/injective.exchange.v1beta1.BalanceWithMarginHold")] pub struct BalanceWithMarginHold { #[prost(string, tag = "1")] @@ -5598,11 +4998,8 @@ pub struct BalanceWithMarginHold { /// QueryBalanceWithBalanceHoldsResponse is the response type for the /// Query/QueryBalanceWithBalanceHolds RPC method. #[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 = "/injective.exchange.v1beta1.QueryBalanceWithBalanceHoldsResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryBalanceWithBalanceHoldsResponse")] pub struct QueryBalanceWithBalanceHoldsResponse { #[prost(message, repeated, tag = "1")] pub balance_with_balance_holds: ::prost::alloc::vec::Vec, @@ -5610,19 +5007,15 @@ pub struct QueryBalanceWithBalanceHoldsResponse { /// QueryFeeDiscountTierStatisticsRequest is the request type for the /// Query/QueryFeeDiscountTierStatistics RPC method. #[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 = "/injective.exchange.v1beta1.QueryFeeDiscountTierStatisticsRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryFeeDiscountTierStatisticsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/FeeDiscountTierStatistics", response_type = QueryFeeDiscountTierStatisticsResponse )] pub struct QueryFeeDiscountTierStatisticsRequest {} #[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 = "/injective.exchange.v1beta1.TierStatistic")] pub struct TierStatistic { #[prost(uint64, tag = "1")] @@ -5641,11 +5034,8 @@ pub struct TierStatistic { /// QueryFeeDiscountTierStatisticsResponse is the response type for the /// Query/QueryFeeDiscountTierStatistics RPC method. #[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 = "/injective.exchange.v1beta1.QueryFeeDiscountTierStatisticsResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryFeeDiscountTierStatisticsResponse")] pub struct QueryFeeDiscountTierStatisticsResponse { #[prost(message, repeated, tag = "1")] pub statistics: ::prost::alloc::vec::Vec, @@ -5653,8 +5043,7 @@ pub struct QueryFeeDiscountTierStatisticsResponse { /// MitoVaultInfosRequest is the request type for the Query/MitoVaultInfos RPC /// method. #[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 = "/injective.exchange.v1beta1.MitoVaultInfosRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/MitoVaultInfos", @@ -5664,8 +5053,7 @@ pub struct MitoVaultInfosRequest {} /// MitoVaultInfosResponse is the response type for the Query/MitoVaultInfos RPC /// method. #[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 = "/injective.exchange.v1beta1.MitoVaultInfosResponse")] pub struct MitoVaultInfosResponse { #[prost(string, repeated, tag = "1")] @@ -5680,8 +5068,7 @@ pub struct MitoVaultInfosResponse { /// QueryMarketIDFromVaultRequest is the request type for the /// Query/QueryMarketIDFromVault RPC method. #[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 = "/injective.exchange.v1beta1.QueryMarketIDFromVaultRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/QueryMarketIDFromVault", @@ -5694,8 +5081,7 @@ pub struct QueryMarketIdFromVaultRequest { /// QueryMarketIDFromVaultResponse is the response type for the /// Query/QueryMarketIDFromVault RPC method. #[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 = "/injective.exchange.v1beta1.QueryMarketIDFromVaultResponse")] pub struct QueryMarketIdFromVaultResponse { #[prost(string, tag = "1")] @@ -5703,11 +5089,8 @@ pub struct QueryMarketIdFromVaultResponse { pub market_id: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.QueryHistoricalTradeRecordsRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryHistoricalTradeRecordsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/HistoricalTradeRecords", response_type = QueryHistoricalTradeRecordsResponse @@ -5718,11 +5101,8 @@ pub struct QueryHistoricalTradeRecordsRequest { pub market_id: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.QueryHistoricalTradeRecordsResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryHistoricalTradeRecordsResponse")] pub struct QueryHistoricalTradeRecordsResponse { #[prost(message, repeated, tag = "1")] pub trade_records: ::prost::alloc::vec::Vec, @@ -5730,8 +5110,7 @@ pub struct QueryHistoricalTradeRecordsResponse { /// TradeHistoryOptions are the optional params for Query/MarketVolatility RPC /// method. #[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 = "/injective.exchange.v1beta1.TradeHistoryOptions")] pub struct TradeHistoryOptions { /// TradeGroupingSec of 0 means use the chain's default grouping @@ -5762,8 +5141,7 @@ pub struct TradeHistoryOptions { /// QueryMarketVolatilityRequest are the request params for the /// Query/MarketVolatility RPC method. #[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 = "/injective.exchange.v1beta1.QueryMarketVolatilityRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/MarketVolatility", @@ -5779,24 +5157,20 @@ pub struct QueryMarketVolatilityRequest { /// QueryMarketVolatilityResponse is the response type for the /// Query/MarketVolatility RPC method. #[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 = "/injective.exchange.v1beta1.QueryMarketVolatilityResponse")] pub struct QueryMarketVolatilityResponse { #[prost(string, tag = "1")] pub volatility: ::prost::alloc::string::String, #[prost(message, optional, tag = "2")] - pub history_metadata: ::core::option::Option< - super::super::oracle::v1beta1::MetadataStatistics, - >, + pub history_metadata: ::core::option::Option, #[prost(message, repeated, tag = "3")] pub raw_history: ::prost::alloc::vec::Vec, } /// QuerBinaryMarketsRequest is the request type for the Query/BinaryMarkets RPC /// method. #[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 = "/injective.exchange.v1beta1.QueryBinaryMarketsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/BinaryOptionsMarkets", @@ -5810,8 +5184,7 @@ pub struct QueryBinaryMarketsRequest { /// QueryBinaryMarketsResponse is the response type for the Query/BinaryMarkets /// RPC method. #[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 = "/injective.exchange.v1beta1.QueryBinaryMarketsResponse")] pub struct QueryBinaryMarketsResponse { #[prost(message, repeated, tag = "1")] @@ -5820,11 +5193,8 @@ pub struct QueryBinaryMarketsResponse { /// QueryConditionalOrdersRequest is the request type for the /// Query/ConditionalOrders RPC method. #[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 = "/injective.exchange.v1beta1.QueryTraderDerivativeConditionalOrdersRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTraderDerivativeConditionalOrdersRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/TraderDerivativeConditionalOrders", response_type = QueryTraderDerivativeConditionalOrdersResponse @@ -5838,11 +5208,8 @@ pub struct QueryTraderDerivativeConditionalOrdersRequest { pub market_id: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.TrimmedDerivativeConditionalOrder" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.TrimmedDerivativeConditionalOrder")] pub struct TrimmedDerivativeConditionalOrder { /// price of the order #[prost(string, tag = "1")] @@ -5869,21 +5236,15 @@ pub struct TrimmedDerivativeConditionalOrder { /// QueryTraderDerivativeOrdersResponse is the response type for the /// Query/TraderDerivativeOrders RPC method. #[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 = "/injective.exchange.v1beta1.QueryTraderDerivativeConditionalOrdersResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTraderDerivativeConditionalOrdersResponse")] pub struct QueryTraderDerivativeConditionalOrdersResponse { #[prost(message, repeated, tag = "1")] pub orders: ::prost::alloc::vec::Vec, } #[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 = "/injective.exchange.v1beta1.QueryMarketAtomicExecutionFeeMultiplierRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryMarketAtomicExecutionFeeMultiplierRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/MarketAtomicExecutionFeeMultiplier", response_type = QueryMarketAtomicExecutionFeeMultiplierResponse @@ -5894,11 +5255,8 @@ pub struct QueryMarketAtomicExecutionFeeMultiplierRequest { pub market_id: ::prost::alloc::string::String, } #[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 = "/injective.exchange.v1beta1.QueryMarketAtomicExecutionFeeMultiplierResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.exchange.v1beta1.QueryMarketAtomicExecutionFeeMultiplierResponse")] pub struct QueryMarketAtomicExecutionFeeMultiplierResponse { #[prost(string, tag = "1")] pub multiplier: ::prost::alloc::string::String, @@ -5975,9 +5333,7 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ExchangeQuerier<'a, Q> { pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self { Self { querier } } - pub fn query_exchange_params( - &self, - ) -> Result { + pub fn query_exchange_params(&self) -> Result { QueryExchangeParamsRequest {}.query(self.querier) } pub fn subaccount_deposits( @@ -5985,100 +5341,58 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ExchangeQuerier<'a, Q> { subaccount_id: ::prost::alloc::string::String, subaccount: ::core::option::Option, ) -> Result { - QuerySubaccountDepositsRequest { - subaccount_id, - subaccount, - } - .query(self.querier) + QuerySubaccountDepositsRequest { subaccount_id, subaccount }.query(self.querier) } pub fn subaccount_deposit( &self, subaccount_id: ::prost::alloc::string::String, denom: ::prost::alloc::string::String, ) -> Result { - QuerySubaccountDepositRequest { - subaccount_id, - denom, - } - .query(self.querier) + QuerySubaccountDepositRequest { subaccount_id, denom }.query(self.querier) } - pub fn exchange_balances( - &self, - ) -> Result { + pub fn exchange_balances(&self) -> Result { QueryExchangeBalancesRequest {}.query(self.querier) } - pub fn aggregate_volume( - &self, - account: ::prost::alloc::string::String, - ) -> Result { - QueryAggregateVolumeRequest { - account, - } - .query(self.querier) + pub fn aggregate_volume(&self, account: ::prost::alloc::string::String) -> Result { + QueryAggregateVolumeRequest { account }.query(self.querier) } pub fn aggregate_volumes( &self, accounts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, market_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, ) -> Result { - QueryAggregateVolumesRequest { - accounts, - market_ids, - } - .query(self.querier) + QueryAggregateVolumesRequest { accounts, market_ids }.query(self.querier) } pub fn aggregate_market_volume( &self, market_id: ::prost::alloc::string::String, ) -> Result { - QueryAggregateMarketVolumeRequest { - market_id, - } - .query(self.querier) + QueryAggregateMarketVolumeRequest { market_id }.query(self.querier) } pub fn aggregate_market_volumes( &self, market_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, ) -> Result { - QueryAggregateMarketVolumesRequest { - market_ids, - } - .query(self.querier) + QueryAggregateMarketVolumesRequest { market_ids }.query(self.querier) } - pub fn denom_decimal( - &self, - denom: ::prost::alloc::string::String, - ) -> Result { + pub fn denom_decimal(&self, denom: ::prost::alloc::string::String) -> Result { QueryDenomDecimalRequest { denom }.query(self.querier) } pub fn denom_decimals( &self, denoms: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, ) -> Result { - QueryDenomDecimalsRequest { - denoms, - } - .query(self.querier) + QueryDenomDecimalsRequest { denoms }.query(self.querier) } pub fn spot_markets( &self, status: ::prost::alloc::string::String, market_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, ) -> Result { - QuerySpotMarketsRequest { - status, - market_ids, - } - .query(self.querier) + QuerySpotMarketsRequest { status, market_ids }.query(self.querier) } - pub fn spot_market( - &self, - market_id: ::prost::alloc::string::String, - ) -> Result { - QuerySpotMarketRequest { - market_id, - } - .query(self.querier) + pub fn spot_market(&self, market_id: ::prost::alloc::string::String) -> Result { + QuerySpotMarketRequest { market_id }.query(self.querier) } pub fn full_spot_markets( &self, @@ -6091,7 +5405,7 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ExchangeQuerier<'a, Q> { market_ids, with_mid_price_and_tob, } - .query(self.querier) + .query(self.querier) } pub fn full_spot_market( &self, @@ -6102,7 +5416,7 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ExchangeQuerier<'a, Q> { market_id, with_mid_price_and_tob, } - .query(self.querier) + .query(self.querier) } pub fn spot_orderbook( &self, @@ -6119,29 +5433,21 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ExchangeQuerier<'a, Q> { limit_cumulative_notional, limit_cumulative_quantity, } - .query(self.querier) + .query(self.querier) } pub fn trader_spot_orders( &self, market_id: ::prost::alloc::string::String, subaccount_id: ::prost::alloc::string::String, ) -> Result { - QueryTraderSpotOrdersRequest { - market_id, - subaccount_id, - } - .query(self.querier) + QueryTraderSpotOrdersRequest { market_id, subaccount_id }.query(self.querier) } pub fn account_address_spot_orders( &self, market_id: ::prost::alloc::string::String, account_address: ::prost::alloc::string::String, ) -> Result { - QueryAccountAddressSpotOrdersRequest { - market_id, - account_address, - } - .query(self.querier) + QueryAccountAddressSpotOrdersRequest { market_id, account_address }.query(self.querier) } pub fn spot_orders_by_hashes( &self, @@ -6154,47 +5460,33 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ExchangeQuerier<'a, Q> { subaccount_id, order_hashes, } - .query(self.querier) + .query(self.querier) } pub fn subaccount_orders( &self, subaccount_id: ::prost::alloc::string::String, market_id: ::prost::alloc::string::String, ) -> Result { - QuerySubaccountOrdersRequest { - subaccount_id, - market_id, - } - .query(self.querier) + QuerySubaccountOrdersRequest { subaccount_id, market_id }.query(self.querier) } pub fn trader_spot_transient_orders( &self, market_id: ::prost::alloc::string::String, subaccount_id: ::prost::alloc::string::String, ) -> Result { - QueryTraderSpotOrdersRequest { - market_id, - subaccount_id, - } - .query(self.querier) + QueryTraderSpotOrdersRequest { market_id, subaccount_id }.query(self.querier) } pub fn spot_mid_price_and_tob( &self, market_id: ::prost::alloc::string::String, ) -> Result { - QuerySpotMidPriceAndTobRequest { - market_id, - } - .query(self.querier) + QuerySpotMidPriceAndTobRequest { market_id }.query(self.querier) } pub fn derivative_mid_price_and_tob( &self, market_id: ::prost::alloc::string::String, ) -> Result { - QueryDerivativeMidPriceAndTobRequest { - market_id, - } - .query(self.querier) + QueryDerivativeMidPriceAndTobRequest { market_id }.query(self.querier) } pub fn derivative_orderbook( &self, @@ -6207,29 +5499,21 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ExchangeQuerier<'a, Q> { limit, limit_cumulative_notional, } - .query(self.querier) + .query(self.querier) } pub fn trader_derivative_orders( &self, market_id: ::prost::alloc::string::String, subaccount_id: ::prost::alloc::string::String, ) -> Result { - QueryTraderDerivativeOrdersRequest { - market_id, - subaccount_id, - } - .query(self.querier) + QueryTraderDerivativeOrdersRequest { market_id, subaccount_id }.query(self.querier) } pub fn account_address_derivative_orders( &self, market_id: ::prost::alloc::string::String, account_address: ::prost::alloc::string::String, ) -> Result { - QueryAccountAddressDerivativeOrdersRequest { - market_id, - account_address, - } - .query(self.querier) + QueryAccountAddressDerivativeOrdersRequest { market_id, account_address }.query(self.querier) } pub fn derivative_orders_by_hashes( &self, @@ -6242,18 +5526,14 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ExchangeQuerier<'a, Q> { subaccount_id, order_hashes, } - .query(self.querier) + .query(self.querier) } pub fn trader_derivative_transient_orders( &self, market_id: ::prost::alloc::string::String, subaccount_id: ::prost::alloc::string::String, ) -> Result { - QueryTraderDerivativeOrdersRequest { - market_id, - subaccount_id, - } - .query(self.querier) + QueryTraderDerivativeOrdersRequest { market_id, subaccount_id }.query(self.querier) } pub fn derivative_markets( &self, @@ -6266,38 +5546,24 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ExchangeQuerier<'a, Q> { market_ids, with_mid_price_and_tob, } - .query(self.querier) + .query(self.querier) } - pub fn derivative_market( - &self, - market_id: ::prost::alloc::string::String, - ) -> Result { - QueryDerivativeMarketRequest { - market_id, - } - .query(self.querier) + pub fn derivative_market(&self, market_id: ::prost::alloc::string::String) -> Result { + QueryDerivativeMarketRequest { market_id }.query(self.querier) } pub fn derivative_market_address( &self, market_id: ::prost::alloc::string::String, ) -> Result { - QueryDerivativeMarketAddressRequest { - market_id, - } - .query(self.querier) + QueryDerivativeMarketAddressRequest { market_id }.query(self.querier) } pub fn subaccount_trade_nonce( &self, subaccount_id: ::prost::alloc::string::String, ) -> Result { - QuerySubaccountTradeNonceRequest { - subaccount_id, - } - .query(self.querier) + QuerySubaccountTradeNonceRequest { subaccount_id }.query(self.querier) } - pub fn exchange_module_state( - &self, - ) -> Result { + pub fn exchange_module_state(&self) -> Result { QueryModuleStateRequest {}.query(self.querier) } pub fn positions(&self) -> Result { @@ -6307,71 +5573,45 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ExchangeQuerier<'a, Q> { &self, subaccount_id: ::prost::alloc::string::String, ) -> Result { - QuerySubaccountPositionsRequest { - subaccount_id, - } - .query(self.querier) + QuerySubaccountPositionsRequest { subaccount_id }.query(self.querier) } pub fn subaccount_position_in_market( &self, subaccount_id: ::prost::alloc::string::String, market_id: ::prost::alloc::string::String, ) -> Result { - QuerySubaccountPositionInMarketRequest { - subaccount_id, - market_id, - } - .query(self.querier) + QuerySubaccountPositionInMarketRequest { subaccount_id, market_id }.query(self.querier) } pub fn subaccount_effective_position_in_market( &self, subaccount_id: ::prost::alloc::string::String, market_id: ::prost::alloc::string::String, - ) -> Result< - QuerySubaccountEffectivePositionInMarketResponse, - cosmwasm_std::StdError, - > { - QuerySubaccountEffectivePositionInMarketRequest { - subaccount_id, - market_id, - } - .query(self.querier) + ) -> Result { + QuerySubaccountEffectivePositionInMarketRequest { subaccount_id, market_id }.query(self.querier) } pub fn perpetual_market_info( &self, market_id: ::prost::alloc::string::String, ) -> Result { - QueryPerpetualMarketInfoRequest { - market_id, - } - .query(self.querier) + QueryPerpetualMarketInfoRequest { market_id }.query(self.querier) } pub fn expiry_futures_market_info( &self, market_id: ::prost::alloc::string::String, ) -> Result { - QueryExpiryFuturesMarketInfoRequest { - market_id, - } - .query(self.querier) + QueryExpiryFuturesMarketInfoRequest { market_id }.query(self.querier) } pub fn perpetual_market_funding( &self, market_id: ::prost::alloc::string::String, ) -> Result { - QueryPerpetualMarketFundingRequest { - market_id, - } - .query(self.querier) + QueryPerpetualMarketFundingRequest { market_id }.query(self.querier) } pub fn subaccount_order_metadata( &self, subaccount_id: ::prost::alloc::string::String, ) -> Result { - QuerySubaccountOrderMetadataRequest { - subaccount_id, - } - .query(self.querier) + QuerySubaccountOrderMetadataRequest { subaccount_id }.query(self.querier) } pub fn trade_reward_points( &self, @@ -6382,7 +5622,7 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ExchangeQuerier<'a, Q> { accounts, pending_pool_timestamp, } - .query(self.querier) + .query(self.querier) } pub fn pending_trade_reward_points( &self, @@ -6393,88 +5633,52 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ExchangeQuerier<'a, Q> { accounts, pending_pool_timestamp, } - .query(self.querier) + .query(self.querier) } - pub fn trade_reward_campaign( - &self, - ) -> Result { + pub fn trade_reward_campaign(&self) -> Result { QueryTradeRewardCampaignRequest {}.query(self.querier) } pub fn fee_discount_account_info( &self, account: ::prost::alloc::string::String, ) -> Result { - QueryFeeDiscountAccountInfoRequest { - account, - } - .query(self.querier) + QueryFeeDiscountAccountInfoRequest { account }.query(self.querier) } - pub fn fee_discount_schedule( - &self, - ) -> Result { + pub fn fee_discount_schedule(&self) -> Result { QueryFeeDiscountScheduleRequest {}.query(self.querier) } - pub fn balance_mismatches( - &self, - dust_factor: i64, - ) -> Result { - QueryBalanceMismatchesRequest { - dust_factor, - } - .query(self.querier) + pub fn balance_mismatches(&self, dust_factor: i64) -> Result { + QueryBalanceMismatchesRequest { dust_factor }.query(self.querier) } - pub fn balance_with_balance_holds( - &self, - ) -> Result { - QueryBalanceWithBalanceHoldsRequest { - } - .query(self.querier) + pub fn balance_with_balance_holds(&self) -> Result { + QueryBalanceWithBalanceHoldsRequest {}.query(self.querier) } - pub fn fee_discount_tier_statistics( - &self, - ) -> Result { - QueryFeeDiscountTierStatisticsRequest { - } - .query(self.querier) + pub fn fee_discount_tier_statistics(&self) -> Result { + QueryFeeDiscountTierStatisticsRequest {}.query(self.querier) } - pub fn mito_vault_infos( - &self, - ) -> Result { + pub fn mito_vault_infos(&self) -> Result { MitoVaultInfosRequest {}.query(self.querier) } pub fn query_market_id_from_vault( &self, vault_address: ::prost::alloc::string::String, ) -> Result { - QueryMarketIdFromVaultRequest { - vault_address, - } - .query(self.querier) + QueryMarketIdFromVaultRequest { vault_address }.query(self.querier) } pub fn historical_trade_records( &self, market_id: ::prost::alloc::string::String, ) -> Result { - QueryHistoricalTradeRecordsRequest { - market_id, - } - .query(self.querier) + QueryHistoricalTradeRecordsRequest { market_id }.query(self.querier) } pub fn is_opted_out_of_rewards( &self, account: ::prost::alloc::string::String, ) -> Result { - QueryIsOptedOutOfRewardsRequest { - account, - } - .query(self.querier) + QueryIsOptedOutOfRewardsRequest { account }.query(self.querier) } - pub fn opted_out_of_rewards_accounts( - &self, - ) -> Result { - QueryOptedOutOfRewardsAccountsRequest { - } - .query(self.querier) + pub fn opted_out_of_rewards_accounts(&self) -> Result { + QueryOptedOutOfRewardsAccountsRequest {}.query(self.querier) } pub fn market_volatility( &self, @@ -6485,38 +5689,22 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ExchangeQuerier<'a, Q> { market_id, trade_history_options, } - .query(self.querier) + .query(self.querier) } - pub fn binary_options_markets( - &self, - status: ::prost::alloc::string::String, - ) -> Result { - QueryBinaryMarketsRequest { - status, - } - .query(self.querier) + pub fn binary_options_markets(&self, status: ::prost::alloc::string::String) -> Result { + QueryBinaryMarketsRequest { status }.query(self.querier) } pub fn trader_derivative_conditional_orders( &self, subaccount_id: ::prost::alloc::string::String, market_id: ::prost::alloc::string::String, ) -> Result { - QueryTraderDerivativeConditionalOrdersRequest { - subaccount_id, - market_id, - } - .query(self.querier) + QueryTraderDerivativeConditionalOrdersRequest { subaccount_id, market_id }.query(self.querier) } pub fn market_atomic_execution_fee_multiplier( &self, market_id: ::prost::alloc::string::String, - ) -> Result< - QueryMarketAtomicExecutionFeeMultiplierResponse, - cosmwasm_std::StdError, - > { - QueryMarketAtomicExecutionFeeMultiplierRequest { - market_id, - } - .query(self.querier) + ) -> Result { + QueryMarketAtomicExecutionFeeMultiplierRequest { market_id }.query(self.querier) } } diff --git a/packages/injective-std/src/types/injective/insurance/v1beta1.rs b/packages/injective-std/src/types/injective/insurance/v1beta1.rs index c3ab90eb..a74d980e 100644 --- a/packages/injective-std/src/types/injective/insurance/v1beta1.rs +++ b/packages/injective-std/src/types/injective/insurance/v1beta1.rs @@ -1,20 +1,16 @@ use osmosis_std_derive::CosmwasmExt; #[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 = "/injective.insurance.v1beta1.Params")] pub struct Params { /// default_redemption_notice_period_duration defines the default minimum /// notice period duration that must pass after an underwriter sends a /// redemption request before the underwriter can claim his tokens #[prost(message, optional, tag = "1")] - pub default_redemption_notice_period_duration: ::core::option::Option< - crate::shim::Duration, - >, + pub default_redemption_notice_period_duration: ::core::option::Option, } #[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 = "/injective.insurance.v1beta1.InsuranceFund")] pub struct InsuranceFund { /// deposit denomination for the given insurance fund @@ -66,8 +62,7 @@ pub struct InsuranceFund { pub expiry: i64, } #[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 = "/injective.insurance.v1beta1.RedemptionSchedule")] pub struct RedemptionSchedule { /// id of redemption schedule @@ -90,29 +85,24 @@ pub struct RedemptionSchedule { pub claimable_redemption_time: ::core::option::Option, /// the insurance_pool_token amount to redeem #[prost(message, optional, tag = "5")] - pub redemption_amount: ::core::option::Option< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub redemption_amount: ::core::option::Option, } #[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 = "/injective.insurance.v1beta1.EventInsuranceFundUpdate")] pub struct EventInsuranceFundUpdate { #[prost(message, optional, tag = "1")] pub fund: ::core::option::Option, } #[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 = "/injective.insurance.v1beta1.EventRequestRedemption")] pub struct EventRequestRedemption { #[prost(message, optional, tag = "1")] pub schedule: ::core::option::Option, } #[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 = "/injective.insurance.v1beta1.EventWithdrawRedemption")] pub struct EventWithdrawRedemption { /// redemption schedule triggered withdraw @@ -120,13 +110,10 @@ pub struct EventWithdrawRedemption { pub schedule: ::core::option::Option, /// redeem coin amount in base_currency #[prost(message, optional, tag = "2")] - pub redeem_coin: ::core::option::Option< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub redeem_coin: ::core::option::Option, } #[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 = "/injective.insurance.v1beta1.EventUnderwrite")] pub struct EventUnderwrite { /// address of the underwriter @@ -138,17 +125,14 @@ pub struct EventUnderwrite { pub market_id: ::prost::alloc::string::String, /// deposit coin amount #[prost(message, optional, tag = "3")] - pub deposit: ::core::option::Option< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub deposit: ::core::option::Option, /// share coin amount #[prost(message, optional, tag = "4")] pub shares: ::core::option::Option, } /// GenesisState defines the insurance module's genesis state. #[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 = "/injective.insurance.v1beta1.GenesisState")] pub struct GenesisState { /// params defines all the parameters of related to insurance. @@ -183,8 +167,7 @@ pub struct GenesisState { /// QueryInsuranceParamsRequest is the request type for the Query/InsuranceParams /// RPC method. #[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 = "/injective.insurance.v1beta1.QueryInsuranceParamsRequest")] #[proto_query( path = "/injective.insurance.v1beta1.Query/InsuranceParams", @@ -194,8 +177,7 @@ pub struct QueryInsuranceParamsRequest {} /// QueryInsuranceParamsRequest is the response type for the /// Query/InsuranceParams RPC method. #[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 = "/injective.insurance.v1beta1.QueryInsuranceParamsResponse")] pub struct QueryInsuranceParamsResponse { #[prost(message, optional, tag = "1")] @@ -204,8 +186,7 @@ pub struct QueryInsuranceParamsResponse { /// QueryInsuranceFundRequest is the request type for the Query/InsuranceFunds /// RPC method. #[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 = "/injective.insurance.v1beta1.QueryInsuranceFundRequest")] #[proto_query( path = "/injective.insurance.v1beta1.Query/InsuranceFund", @@ -220,8 +201,7 @@ pub struct QueryInsuranceFundRequest { /// QueryInsuranceFundResponse is the response type for the Query/InsuranceFund /// RPC method. #[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 = "/injective.insurance.v1beta1.QueryInsuranceFundResponse")] pub struct QueryInsuranceFundResponse { #[prost(message, optional, tag = "1")] @@ -230,8 +210,7 @@ pub struct QueryInsuranceFundResponse { /// QueryInsuranceFundsRequest is the request type for the Query/InsuranceFunds /// RPC method. #[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 = "/injective.insurance.v1beta1.QueryInsuranceFundsRequest")] #[proto_query( path = "/injective.insurance.v1beta1.Query/InsuranceFunds", @@ -241,8 +220,7 @@ pub struct QueryInsuranceFundsRequest {} /// QueryInsuranceFundsResponse is the response type for the Query/InsuranceFunds /// RPC method. #[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 = "/injective.insurance.v1beta1.QueryInsuranceFundsResponse")] pub struct QueryInsuranceFundsResponse { #[prost(message, repeated, tag = "1")] @@ -251,11 +229,8 @@ pub struct QueryInsuranceFundsResponse { /// QueryEstimatedRedemptionsRequest is the request type for the /// Query/EstimatedRedemptions RPC method. #[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 = "/injective.insurance.v1beta1.QueryEstimatedRedemptionsRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.insurance.v1beta1.QueryEstimatedRedemptionsRequest")] #[proto_query( path = "/injective.insurance.v1beta1.Query/EstimatedRedemptions", response_type = QueryEstimatedRedemptionsResponse @@ -270,25 +245,17 @@ pub struct QueryEstimatedRedemptionsRequest { /// QueryEstimatedRedemptionsResponse is the response type for the /// Query/EstimatedRedemptions RPC method. #[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 = "/injective.insurance.v1beta1.QueryEstimatedRedemptionsResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.insurance.v1beta1.QueryEstimatedRedemptionsResponse")] pub struct QueryEstimatedRedemptionsResponse { #[prost(message, repeated, tag = "1")] - pub amount: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub amount: ::prost::alloc::vec::Vec, } /// QueryPendingRedemptionsRequest is the request type for the /// Query/PendingRedemptions RPC method. #[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 = "/injective.insurance.v1beta1.QueryPendingRedemptionsRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.insurance.v1beta1.QueryPendingRedemptionsRequest")] #[proto_query( path = "/injective.insurance.v1beta1.Query/PendingRedemptions", response_type = QueryPendingRedemptionsResponse @@ -303,22 +270,16 @@ pub struct QueryPendingRedemptionsRequest { /// QueryPendingRedemptionsResponse is the response type for the /// Query/PendingRedemptions RPC method. #[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 = "/injective.insurance.v1beta1.QueryPendingRedemptionsResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.insurance.v1beta1.QueryPendingRedemptionsResponse")] pub struct QueryPendingRedemptionsResponse { #[prost(message, repeated, tag = "1")] - pub amount: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub amount: ::prost::alloc::vec::Vec, } /// QueryModuleStateRequest is the request type for the /// Query/InsuranceModuleState RPC method. #[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 = "/injective.insurance.v1beta1.QueryModuleStateRequest")] #[proto_query( path = "/injective.insurance.v1beta1.Query/InsuranceModuleState", @@ -328,8 +289,7 @@ pub struct QueryModuleStateRequest {} /// QueryModuleStateResponse is the response type for the /// Query/InsuranceModuleState RPC method. #[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 = "/injective.insurance.v1beta1.QueryModuleStateResponse")] pub struct QueryModuleStateResponse { #[prost(message, optional, tag = "1")] @@ -338,8 +298,7 @@ pub struct QueryModuleStateResponse { /// MsgCreateInsuranceFund a message to create an insurance fund for a derivative /// market. #[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 = "/injective.insurance.v1beta1.MsgCreateInsuranceFund")] pub struct MsgCreateInsuranceFund { /// Creator of the insurance fund. @@ -376,22 +335,16 @@ pub struct MsgCreateInsuranceFund { pub expiry: i64, /// Initial deposit of the insurance fund #[prost(message, optional, tag = "8")] - pub initial_deposit: ::core::option::Option< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub initial_deposit: ::core::option::Option, } #[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 = "/injective.insurance.v1beta1.MsgCreateInsuranceFundResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.insurance.v1beta1.MsgCreateInsuranceFundResponse")] pub struct MsgCreateInsuranceFundResponse {} /// MsgUnderwrite defines a message for depositing coins to underwrite an /// insurance fund #[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 = "/injective.insurance.v1beta1.MsgUnderwrite")] pub struct MsgUnderwrite { /// Address of the underwriter. @@ -403,20 +356,16 @@ pub struct MsgUnderwrite { pub market_id: ::prost::alloc::string::String, /// Amount of quote_denom to underwrite the insurance fund. #[prost(message, optional, tag = "3")] - pub deposit: ::core::option::Option< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub deposit: ::core::option::Option, } #[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 = "/injective.insurance.v1beta1.MsgUnderwriteResponse")] pub struct MsgUnderwriteResponse {} /// MsgRequestRedemption defines a message for requesting a redemption of the /// sender's insurance fund tokens #[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 = "/injective.insurance.v1beta1.MsgRequestRedemption")] pub struct MsgRequestRedemption { /// Address of the underwriter requesting a redemption. @@ -431,13 +380,11 @@ pub struct MsgRequestRedemption { pub amount: ::core::option::Option, } #[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 = "/injective.insurance.v1beta1.MsgRequestRedemptionResponse")] pub struct MsgRequestRedemptionResponse {} #[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 = "/injective.insurance.v1beta1.MsgUpdateParams")] pub struct MsgUpdateParams { /// authority is the address of the governance account. @@ -450,8 +397,7 @@ pub struct MsgUpdateParams { pub params: ::core::option::Option, } #[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 = "/injective.insurance.v1beta1.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} pub struct InsuranceQuerier<'a, Q: cosmwasm_std::CustomQuery> { @@ -461,23 +407,13 @@ impl<'a, Q: cosmwasm_std::CustomQuery> InsuranceQuerier<'a, Q> { pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self { Self { querier } } - pub fn insurance_params( - &self, - ) -> Result { + pub fn insurance_params(&self) -> Result { QueryInsuranceParamsRequest {}.query(self.querier) } - pub fn insurance_fund( - &self, - market_id: ::prost::alloc::string::String, - ) -> Result { - QueryInsuranceFundRequest { - market_id, - } - .query(self.querier) + pub fn insurance_fund(&self, market_id: ::prost::alloc::string::String) -> Result { + QueryInsuranceFundRequest { market_id }.query(self.querier) } - pub fn insurance_funds( - &self, - ) -> Result { + pub fn insurance_funds(&self) -> Result { QueryInsuranceFundsRequest {}.query(self.querier) } pub fn estimated_redemptions( @@ -485,26 +421,16 @@ impl<'a, Q: cosmwasm_std::CustomQuery> InsuranceQuerier<'a, Q> { market_id: ::prost::alloc::string::String, address: ::prost::alloc::string::String, ) -> Result { - QueryEstimatedRedemptionsRequest { - market_id, - address, - } - .query(self.querier) + QueryEstimatedRedemptionsRequest { market_id, address }.query(self.querier) } pub fn pending_redemptions( &self, market_id: ::prost::alloc::string::String, address: ::prost::alloc::string::String, ) -> Result { - QueryPendingRedemptionsRequest { - market_id, - address, - } - .query(self.querier) + QueryPendingRedemptionsRequest { market_id, address }.query(self.querier) } - pub fn insurance_module_state( - &self, - ) -> Result { + pub fn insurance_module_state(&self) -> Result { QueryModuleStateRequest {}.query(self.querier) } } diff --git a/packages/injective-std/src/types/injective/oracle/v1beta1.rs b/packages/injective-std/src/types/injective/oracle/v1beta1.rs index 57287864..53cc832b 100644 --- a/packages/injective-std/src/types/injective/oracle/v1beta1.rs +++ b/packages/injective-std/src/types/injective/oracle/v1beta1.rs @@ -1,15 +1,13 @@ use osmosis_std_derive::CosmwasmExt; #[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 = "/injective.oracle.v1beta1.Params")] pub struct Params { #[prost(string, tag = "1")] pub pyth_contract: ::prost::alloc::string::String, } #[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 = "/injective.oracle.v1beta1.OracleInfo")] pub struct OracleInfo { #[prost(string, tag = "1")] @@ -22,8 +20,7 @@ pub struct OracleInfo { pub oracle_type: i32, } #[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 = "/injective.oracle.v1beta1.ChainlinkPriceState")] pub struct ChainlinkPriceState { #[prost(string, tag = "1")] @@ -41,8 +38,7 @@ pub struct ChainlinkPriceState { pub price_state: ::core::option::Option, } #[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 = "/injective.oracle.v1beta1.BandPriceState")] pub struct BandPriceState { #[prost(string, tag = "1")] @@ -66,8 +62,7 @@ pub struct BandPriceState { pub price_state: ::core::option::Option, } #[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 = "/injective.oracle.v1beta1.PriceFeedState")] pub struct PriceFeedState { #[prost(string, tag = "1")] @@ -80,8 +75,7 @@ pub struct PriceFeedState { pub relayers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.oracle.v1beta1.ProviderInfo")] pub struct ProviderInfo { #[prost(string, tag = "1")] @@ -90,8 +84,7 @@ pub struct ProviderInfo { pub relayers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.oracle.v1beta1.ProviderState")] pub struct ProviderState { #[prost(message, optional, tag = "1")] @@ -100,8 +93,7 @@ pub struct ProviderState { pub provider_price_states: ::prost::alloc::vec::Vec, } #[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 = "/injective.oracle.v1beta1.ProviderPriceState")] pub struct ProviderPriceState { #[prost(string, tag = "1")] @@ -110,8 +102,7 @@ pub struct ProviderPriceState { pub state: ::core::option::Option, } #[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 = "/injective.oracle.v1beta1.PriceFeedInfo")] pub struct PriceFeedInfo { #[prost(string, tag = "1")] @@ -120,16 +111,14 @@ pub struct PriceFeedInfo { pub quote: ::prost::alloc::string::String, } #[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 = "/injective.oracle.v1beta1.PriceFeedPrice")] pub struct PriceFeedPrice { #[prost(string, tag = "1")] pub price: ::prost::alloc::string::String, } #[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 = "/injective.oracle.v1beta1.CoinbasePriceState")] pub struct CoinbasePriceState { /// kind should always be "prices" @@ -157,8 +146,7 @@ pub struct CoinbasePriceState { pub price_state: ::core::option::Option, } #[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 = "/injective.oracle.v1beta1.PriceState")] pub struct PriceState { #[prost(string, tag = "1")] @@ -173,8 +161,7 @@ pub struct PriceState { pub timestamp: i64, } #[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 = "/injective.oracle.v1beta1.PythPriceState")] pub struct PythPriceState { #[prost(string, tag = "1")] @@ -196,8 +183,7 @@ pub struct PythPriceState { pub price_state: ::core::option::Option, } #[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 = "/injective.oracle.v1beta1.BandOracleRequest")] pub struct BandOracleRequest { /// Unique Identifier for band ibc oracle request @@ -240,9 +226,7 @@ pub struct BandOracleRequest { /// FeeLimit is the maximum tokens that will be paid to all data source /// providers. #[prost(message, repeated, tag = "6")] - pub fee_limit: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub fee_limit: ::prost::alloc::vec::Vec, /// PrepareGas is amount of gas to pay to prepare raw requests #[prost(uint64, tag = "7")] #[serde( @@ -267,8 +251,7 @@ pub struct BandOracleRequest { pub min_source_count: u64, } #[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 = "/injective.oracle.v1beta1.BandIBCParams")] pub struct BandIbcParams { /// true if Band IBC should be enabled @@ -297,8 +280,7 @@ pub struct BandIbcParams { pub legacy_oracle_ids: ::prost::alloc::vec::Vec, } #[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 = "/injective.oracle.v1beta1.SymbolPriceTimestamp")] pub struct SymbolPriceTimestamp { #[prost(enumeration = "OracleType", tag = "1")] @@ -318,16 +300,14 @@ pub struct SymbolPriceTimestamp { pub timestamp: i64, } #[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 = "/injective.oracle.v1beta1.LastPriceTimestamps")] pub struct LastPriceTimestamps { #[prost(message, repeated, tag = "1")] pub last_price_timestamps: ::prost::alloc::vec::Vec, } #[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 = "/injective.oracle.v1beta1.PriceRecords")] pub struct PriceRecords { #[prost(enumeration = "OracleType", tag = "1")] @@ -343,8 +323,7 @@ pub struct PriceRecords { pub latest_price_records: ::prost::alloc::vec::Vec, } #[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 = "/injective.oracle.v1beta1.PriceRecord")] pub struct PriceRecord { #[prost(int64, tag = "1")] @@ -359,8 +338,7 @@ pub struct PriceRecord { /// MetadataStatistics refers to the metadata summary statistics of the /// historical sample considered #[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 = "/injective.oracle.v1beta1.MetadataStatistics")] pub struct MetadataStatistics { /// GroupCount refers to the number of groups used. Equals RecordsSampleSize if @@ -413,8 +391,7 @@ pub struct MetadataStatistics { pub median_price: ::prost::alloc::string::String, } #[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 = "/injective.oracle.v1beta1.PriceAttestation")] pub struct PriceAttestation { #[prost(string, tag = "1")] @@ -522,8 +499,7 @@ impl OracleType { } } #[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 = "/injective.oracle.v1beta1.SetChainlinkPriceEvent")] pub struct SetChainlinkPriceEvent { #[prost(string, tag = "1")] @@ -540,8 +516,7 @@ pub struct SetChainlinkPriceEvent { } /// Event type upon set ref #[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 = "/injective.oracle.v1beta1.SetBandPriceEvent")] pub struct SetBandPriceEvent { #[prost(string, tag = "1")] @@ -565,8 +540,7 @@ pub struct SetBandPriceEvent { pub request_id: u64, } #[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 = "/injective.oracle.v1beta1.SetBandIBCPriceEvent")] pub struct SetBandIbcPriceEvent { #[prost(string, tag = "1")] @@ -597,8 +571,7 @@ pub struct SetBandIbcPriceEvent { pub client_id: i64, } #[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 = "/injective.oracle.v1beta1.EventBandIBCAckSuccess")] pub struct EventBandIbcAckSuccess { #[prost(string, tag = "1")] @@ -612,8 +585,7 @@ pub struct EventBandIbcAckSuccess { pub client_id: i64, } #[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 = "/injective.oracle.v1beta1.EventBandIBCAckError")] pub struct EventBandIbcAckError { #[prost(string, tag = "1")] @@ -627,8 +599,7 @@ pub struct EventBandIbcAckError { pub client_id: i64, } #[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 = "/injective.oracle.v1beta1.EventBandIBCResponseTimeout")] pub struct EventBandIbcResponseTimeout { #[prost(int64, tag = "1")] @@ -640,8 +611,7 @@ pub struct EventBandIbcResponseTimeout { pub client_id: i64, } #[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 = "/injective.oracle.v1beta1.SetPriceFeedPriceEvent")] pub struct SetPriceFeedPriceEvent { #[prost(string, tag = "1")] @@ -655,8 +625,7 @@ pub struct SetPriceFeedPriceEvent { pub price: ::prost::alloc::string::String, } #[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 = "/injective.oracle.v1beta1.SetProviderPriceEvent")] pub struct SetProviderPriceEvent { #[prost(string, tag = "1")] @@ -669,8 +638,7 @@ pub struct SetProviderPriceEvent { pub price: ::prost::alloc::string::String, } #[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 = "/injective.oracle.v1beta1.SetCoinbasePriceEvent")] pub struct SetCoinbasePriceEvent { #[prost(string, tag = "1")] @@ -685,8 +653,7 @@ pub struct SetCoinbasePriceEvent { pub timestamp: u64, } #[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 = "/injective.oracle.v1beta1.EventSetPythPrices")] pub struct EventSetPythPrices { #[prost(message, repeated, tag = "1")] @@ -694,8 +661,7 @@ pub struct EventSetPythPrices { } /// GenesisState defines the oracle module's genesis state. #[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 = "/injective.oracle.v1beta1.GenesisState")] pub struct GenesisState { /// params defines all the parameters of related to oracle. @@ -741,8 +707,7 @@ pub struct GenesisState { pub pyth_price_states: ::prost::alloc::vec::Vec, } #[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 = "/injective.oracle.v1beta1.CalldataRecord")] pub struct CalldataRecord { #[prost(uint64, tag = "1")] @@ -756,8 +721,7 @@ pub struct CalldataRecord { pub calldata: ::prost::alloc::vec::Vec, } #[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 = "/injective.oracle.v1beta1.GrantBandOraclePrivilegeProposal")] pub struct GrantBandOraclePrivilegeProposal { #[prost(string, tag = "1")] @@ -768,11 +732,8 @@ pub struct GrantBandOraclePrivilegeProposal { pub relayers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.oracle.v1beta1.RevokeBandOraclePrivilegeProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.oracle.v1beta1.RevokeBandOraclePrivilegeProposal")] pub struct RevokeBandOraclePrivilegeProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -782,11 +743,8 @@ pub struct RevokeBandOraclePrivilegeProposal { pub relayers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.oracle.v1beta1.GrantPriceFeederPrivilegeProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.oracle.v1beta1.GrantPriceFeederPrivilegeProposal")] pub struct GrantPriceFeederPrivilegeProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -800,8 +758,7 @@ pub struct GrantPriceFeederPrivilegeProposal { pub relayers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.oracle.v1beta1.GrantProviderPrivilegeProposal")] pub struct GrantProviderPrivilegeProposal { #[prost(string, tag = "1")] @@ -814,8 +771,7 @@ pub struct GrantProviderPrivilegeProposal { pub relayers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.oracle.v1beta1.RevokeProviderPrivilegeProposal")] pub struct RevokeProviderPrivilegeProposal { #[prost(string, tag = "1")] @@ -828,11 +784,8 @@ pub struct RevokeProviderPrivilegeProposal { pub relayers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.oracle.v1beta1.RevokePriceFeederPrivilegeProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.oracle.v1beta1.RevokePriceFeederPrivilegeProposal")] pub struct RevokePriceFeederPrivilegeProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -846,11 +799,8 @@ pub struct RevokePriceFeederPrivilegeProposal { pub relayers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.oracle.v1beta1.AuthorizeBandOracleRequestProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.oracle.v1beta1.AuthorizeBandOracleRequestProposal")] pub struct AuthorizeBandOracleRequestProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -860,8 +810,7 @@ pub struct AuthorizeBandOracleRequestProposal { pub request: ::core::option::Option, } #[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 = "/injective.oracle.v1beta1.UpdateBandOracleRequestProposal")] pub struct UpdateBandOracleRequestProposal { #[prost(string, tag = "1")] @@ -875,8 +824,7 @@ pub struct UpdateBandOracleRequestProposal { pub update_oracle_request: ::core::option::Option, } #[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 = "/injective.oracle.v1beta1.EnableBandIBCProposal")] pub struct EnableBandIbcProposal { #[prost(string, tag = "1")] @@ -887,8 +835,7 @@ pub struct EnableBandIbcProposal { pub band_ibc_params: ::core::option::Option, } #[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 = "/injective.oracle.v1beta1.QueryPythPriceRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/PythPrice", @@ -900,8 +847,7 @@ pub struct QueryPythPriceRequest { pub price_id: ::prost::alloc::string::String, } #[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 = "/injective.oracle.v1beta1.QueryPythPriceResponse")] pub struct QueryPythPriceResponse { #[prost(message, optional, tag = "1")] @@ -910,8 +856,7 @@ pub struct QueryPythPriceResponse { /// QueryOracleParamsRequest is the request type for the Query/OracleParams RPC /// method. #[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 = "/injective.oracle.v1beta1.QueryParamsRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/Params", @@ -921,8 +866,7 @@ pub struct QueryParamsRequest {} /// QueryOracleParamsResponse is the response type for the Query/OracleParams RPC /// method. #[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 = "/injective.oracle.v1beta1.QueryParamsResponse")] pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] @@ -931,8 +875,7 @@ pub struct QueryParamsResponse { /// QueryBandRelayersRequest is the request type for the Query/BandRelayers RPC /// method. #[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 = "/injective.oracle.v1beta1.QueryBandRelayersRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/BandRelayers", @@ -942,8 +885,7 @@ pub struct QueryBandRelayersRequest {} /// QueryBandRelayersResponse is the response type for the Query/BandRelayers RPC /// method. #[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 = "/injective.oracle.v1beta1.QueryBandRelayersResponse")] pub struct QueryBandRelayersResponse { #[prost(string, repeated, tag = "1")] @@ -952,8 +894,7 @@ pub struct QueryBandRelayersResponse { /// QueryBandPriceStatesRequest is the request type for the Query/BandPriceStates /// RPC method. #[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 = "/injective.oracle.v1beta1.QueryBandPriceStatesRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/BandPriceStates", @@ -963,8 +904,7 @@ pub struct QueryBandPriceStatesRequest {} /// QueryBandPriceStatesResponse is the response type for the /// Query/BandPriceStates RPC method. #[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 = "/injective.oracle.v1beta1.QueryBandPriceStatesResponse")] pub struct QueryBandPriceStatesResponse { #[prost(message, repeated, tag = "1")] @@ -973,8 +913,7 @@ pub struct QueryBandPriceStatesResponse { /// QueryBandIBCPriceStatesRequest is the request type for the /// Query/BandIBCPriceStates RPC method. #[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 = "/injective.oracle.v1beta1.QueryBandIBCPriceStatesRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/BandIBCPriceStates", @@ -984,8 +923,7 @@ pub struct QueryBandIbcPriceStatesRequest {} /// QueryBandIBCPriceStatesResponse is the response type for the /// Query/BandIBCPriceStates RPC method. #[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 = "/injective.oracle.v1beta1.QueryBandIBCPriceStatesResponse")] pub struct QueryBandIbcPriceStatesResponse { #[prost(message, repeated, tag = "1")] @@ -994,8 +932,7 @@ pub struct QueryBandIbcPriceStatesResponse { /// QueryPriceFeedPriceStatesRequest is the request type for the /// Query/PriceFeedPriceStates RPC method. #[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 = "/injective.oracle.v1beta1.QueryPriceFeedPriceStatesRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/PriceFeedPriceStates", @@ -1005,11 +942,8 @@ pub struct QueryPriceFeedPriceStatesRequest {} /// QueryPriceFeedPriceStatesResponse is the response type for the /// Query/PriceFeedPriceStates RPC method. #[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 = "/injective.oracle.v1beta1.QueryPriceFeedPriceStatesResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.oracle.v1beta1.QueryPriceFeedPriceStatesResponse")] pub struct QueryPriceFeedPriceStatesResponse { #[prost(message, repeated, tag = "1")] pub price_states: ::prost::alloc::vec::Vec, @@ -1017,8 +951,7 @@ pub struct QueryPriceFeedPriceStatesResponse { /// QueryCoinbasePriceStatesRequest is the request type for the /// Query/CoinbasePriceStates RPC method. #[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 = "/injective.oracle.v1beta1.QueryCoinbasePriceStatesRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/CoinbasePriceStates", @@ -1028,8 +961,7 @@ pub struct QueryCoinbasePriceStatesRequest {} /// QueryCoinbasePriceStatesResponse is the response type for the /// Query/CoinbasePriceStates RPC method. #[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 = "/injective.oracle.v1beta1.QueryCoinbasePriceStatesResponse")] pub struct QueryCoinbasePriceStatesResponse { #[prost(message, repeated, tag = "1")] @@ -1038,8 +970,7 @@ pub struct QueryCoinbasePriceStatesResponse { /// QueryPythPriceStatesRequest is the request type for the /// Query/CoinbasePriceStates RPC method. #[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 = "/injective.oracle.v1beta1.QueryPythPriceStatesRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/PythPriceStates", @@ -1049,8 +980,7 @@ pub struct QueryPythPriceStatesRequest {} /// QueryPythPriceStatesResponse is the response type for the /// Query/CoinbasePriceStates RPC method. #[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 = "/injective.oracle.v1beta1.QueryPythPriceStatesResponse")] pub struct QueryPythPriceStatesResponse { #[prost(message, repeated, tag = "1")] @@ -1059,8 +989,7 @@ pub struct QueryPythPriceStatesResponse { /// QueryProviderPriceStateRequest is the request type for the /// Query/ProviderPriceState RPC method. #[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 = "/injective.oracle.v1beta1.QueryProviderPriceStateRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/ProviderPriceState", @@ -1075,8 +1004,7 @@ pub struct QueryProviderPriceStateRequest { /// QueryProviderPriceStatesResponse is the response type for the /// Query/ProviderPriceStates RPC method. #[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 = "/injective.oracle.v1beta1.QueryProviderPriceStateResponse")] pub struct QueryProviderPriceStateResponse { #[prost(message, optional, tag = "1")] @@ -1085,8 +1013,7 @@ pub struct QueryProviderPriceStateResponse { /// QueryModuleStateRequest is the request type for the Query/OracleModuleState /// RPC method. #[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 = "/injective.oracle.v1beta1.QueryModuleStateRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/OracleModuleState", @@ -1096,19 +1023,15 @@ pub struct QueryModuleStateRequest {} /// QueryModuleStateResponse is the response type for the Query/OracleModuleState /// RPC method. #[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 = "/injective.oracle.v1beta1.QueryModuleStateResponse")] pub struct QueryModuleStateResponse { #[prost(message, optional, tag = "1")] pub state: ::core::option::Option, } #[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 = "/injective.oracle.v1beta1.QueryHistoricalPriceRecordsRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.oracle.v1beta1.QueryHistoricalPriceRecordsRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/HistoricalPriceRecords", response_type = QueryHistoricalPriceRecordsResponse @@ -1125,18 +1048,14 @@ pub struct QueryHistoricalPriceRecordsRequest { pub symbol_id: ::prost::alloc::string::String, } #[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 = "/injective.oracle.v1beta1.QueryHistoricalPriceRecordsResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.oracle.v1beta1.QueryHistoricalPriceRecordsResponse")] pub struct QueryHistoricalPriceRecordsResponse { #[prost(message, repeated, tag = "1")] pub price_records: ::prost::alloc::vec::Vec, } #[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 = "/injective.oracle.v1beta1.OracleHistoryOptions")] pub struct OracleHistoryOptions { /// MaxAge restricts the oracle price records oldest age in seconds from the @@ -1160,8 +1079,7 @@ pub struct OracleHistoryOptions { /// QueryOracleVolatilityRequest is the request type for Query/OracleVolatility /// RPC method. #[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 = "/injective.oracle.v1beta1.QueryOracleVolatilityRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/OracleVolatility", @@ -1178,8 +1096,7 @@ pub struct QueryOracleVolatilityRequest { /// QueryOracleVolatilityResponse is the response type for Query/OracleVolatility /// RPC method. #[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 = "/injective.oracle.v1beta1.QueryOracleVolatilityResponse")] pub struct QueryOracleVolatilityResponse { #[prost(string, tag = "1")] @@ -1190,8 +1107,7 @@ pub struct QueryOracleVolatilityResponse { pub raw_history: ::prost::alloc::vec::Vec, } #[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 = "/injective.oracle.v1beta1.QueryOracleProvidersInfoRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/OracleProvidersInfo", @@ -1199,16 +1115,14 @@ pub struct QueryOracleVolatilityResponse { )] pub struct QueryOracleProvidersInfoRequest {} #[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 = "/injective.oracle.v1beta1.QueryOracleProvidersInfoResponse")] pub struct QueryOracleProvidersInfoResponse { #[prost(message, repeated, tag = "1")] pub providers: ::prost::alloc::vec::Vec, } #[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 = "/injective.oracle.v1beta1.QueryOracleProviderPricesRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/OracleProviderPrices", @@ -1219,11 +1133,8 @@ pub struct QueryOracleProviderPricesRequest { pub provider: ::prost::alloc::string::String, } #[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 = "/injective.oracle.v1beta1.QueryOracleProviderPricesResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.oracle.v1beta1.QueryOracleProviderPricesResponse")] pub struct QueryOracleProviderPricesResponse { #[prost(message, repeated, tag = "1")] pub provider_state: ::prost::alloc::vec::Vec, @@ -1231,8 +1142,7 @@ pub struct QueryOracleProviderPricesResponse { /// QueryOraclePriceRequest is the request type for the Query/OraclePrice RPC /// method. #[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 = "/injective.oracle.v1beta1.QueryOraclePriceRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/OraclePrice", @@ -1251,8 +1161,7 @@ pub struct QueryOraclePriceRequest { pub quote: ::prost::alloc::string::String, } #[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 = "/injective.oracle.v1beta1.PricePairState")] pub struct PricePairState { #[prost(string, tag = "1")] @@ -1281,8 +1190,7 @@ pub struct PricePairState { /// QueryOraclePriceResponse is the response type for the Query/OraclePrice RPC /// method. #[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 = "/injective.oracle.v1beta1.QueryOraclePriceResponse")] pub struct QueryOraclePriceResponse { #[prost(message, optional, tag = "1")] @@ -1291,8 +1199,7 @@ pub struct QueryOraclePriceResponse { /// MsgRelayProviderPrice defines a SDK message for setting a price through the /// provider oracle. #[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 = "/injective.oracle.v1beta1.MsgRelayProviderPrices")] pub struct MsgRelayProviderPrices { #[prost(string, tag = "1")] @@ -1305,15 +1212,13 @@ pub struct MsgRelayProviderPrices { pub prices: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.oracle.v1beta1.MsgRelayProviderPricesResponse")] pub struct MsgRelayProviderPricesResponse {} /// MsgRelayPriceFeedPrice defines a SDK message for setting a price through the /// pricefeed oracle. #[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 = "/injective.oracle.v1beta1.MsgRelayPriceFeedPrice")] pub struct MsgRelayPriceFeedPrice { #[prost(string, tag = "1")] @@ -1327,13 +1232,11 @@ pub struct MsgRelayPriceFeedPrice { pub price: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.oracle.v1beta1.MsgRelayPriceFeedPriceResponse")] pub struct MsgRelayPriceFeedPriceResponse {} #[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 = "/injective.oracle.v1beta1.MsgRelayBandRates")] pub struct MsgRelayBandRates { #[prost(string, tag = "1")] @@ -1348,15 +1251,13 @@ pub struct MsgRelayBandRates { pub request_i_ds: ::prost::alloc::vec::Vec, } #[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 = "/injective.oracle.v1beta1.MsgRelayBandRatesResponse")] pub struct MsgRelayBandRatesResponse {} /// MsgRelayCoinbaseMessages defines a SDK message for relaying price messages /// from Coinbase API. #[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 = "/injective.oracle.v1beta1.MsgRelayCoinbaseMessages")] pub struct MsgRelayCoinbaseMessages { #[prost(string, tag = "1")] @@ -1367,15 +1268,13 @@ pub struct MsgRelayCoinbaseMessages { pub signatures: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } #[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 = "/injective.oracle.v1beta1.MsgRelayCoinbaseMessagesResponse")] pub struct MsgRelayCoinbaseMessagesResponse {} /// MsgRequestBandIBCRates defines a SDK message for requesting data from /// BandChain using IBC. #[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 = "/injective.oracle.v1beta1.MsgRequestBandIBCRates")] pub struct MsgRequestBandIbcRates { #[prost(string, tag = "1")] @@ -1390,14 +1289,12 @@ pub struct MsgRequestBandIbcRates { } /// MsgRequestDataResponse defines the Msg/RequestBandIBCRates response type. #[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 = "/injective.oracle.v1beta1.MsgRequestBandIBCRatesResponse")] pub struct MsgRequestBandIbcRatesResponse {} /// MsgRelayPythPrices defines a SDK message for updating Pyth prices #[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 = "/injective.oracle.v1beta1.MsgRelayPythPrices")] pub struct MsgRelayPythPrices { #[prost(string, tag = "1")] @@ -1407,13 +1304,11 @@ pub struct MsgRelayPythPrices { } /// MsgRelayPythPricesResponse defines the Msg/RelayPythPrices response type. #[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 = "/injective.oracle.v1beta1.MsgRelayPythPricesResponse")] pub struct MsgRelayPythPricesResponse {} #[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 = "/injective.oracle.v1beta1.MsgUpdateParams")] pub struct MsgUpdateParams { /// authority is the address of the governance account. @@ -1426,8 +1321,7 @@ pub struct MsgUpdateParams { pub params: ::core::option::Option, } #[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 = "/injective.oracle.v1beta1.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} pub struct OracleQuerier<'a, Q: cosmwasm_std::CustomQuery> { @@ -1440,36 +1334,22 @@ impl<'a, Q: cosmwasm_std::CustomQuery> OracleQuerier<'a, Q> { pub fn params(&self) -> Result { QueryParamsRequest {}.query(self.querier) } - pub fn band_relayers( - &self, - ) -> Result { + pub fn band_relayers(&self) -> Result { QueryBandRelayersRequest {}.query(self.querier) } - pub fn band_price_states( - &self, - ) -> Result { + pub fn band_price_states(&self) -> Result { QueryBandPriceStatesRequest {}.query(self.querier) } - pub fn band_ibc_price_states( - &self, - ) -> Result { + pub fn band_ibc_price_states(&self) -> Result { QueryBandIbcPriceStatesRequest {}.query(self.querier) } - pub fn price_feed_price_states( - &self, - ) -> Result { - QueryPriceFeedPriceStatesRequest { - } - .query(self.querier) + pub fn price_feed_price_states(&self) -> Result { + QueryPriceFeedPriceStatesRequest {}.query(self.querier) } - pub fn coinbase_price_states( - &self, - ) -> Result { + pub fn coinbase_price_states(&self) -> Result { QueryCoinbasePriceStatesRequest {}.query(self.querier) } - pub fn pyth_price_states( - &self, - ) -> Result { + pub fn pyth_price_states(&self) -> Result { QueryPythPriceStatesRequest {}.query(self.querier) } pub fn provider_price_state( @@ -1477,15 +1357,9 @@ impl<'a, Q: cosmwasm_std::CustomQuery> OracleQuerier<'a, Q> { provider: ::prost::alloc::string::String, symbol: ::prost::alloc::string::String, ) -> Result { - QueryProviderPriceStateRequest { - provider, - symbol, - } - .query(self.querier) + QueryProviderPriceStateRequest { provider, symbol }.query(self.querier) } - pub fn oracle_module_state( - &self, - ) -> Result { + pub fn oracle_module_state(&self) -> Result { QueryModuleStateRequest {}.query(self.querier) } pub fn historical_price_records( @@ -1493,11 +1367,7 @@ impl<'a, Q: cosmwasm_std::CustomQuery> OracleQuerier<'a, Q> { oracle: i32, symbol_id: ::prost::alloc::string::String, ) -> Result { - QueryHistoricalPriceRecordsRequest { - oracle, - symbol_id, - } - .query(self.querier) + QueryHistoricalPriceRecordsRequest { oracle, symbol_id }.query(self.querier) } pub fn oracle_volatility( &self, @@ -1510,21 +1380,16 @@ impl<'a, Q: cosmwasm_std::CustomQuery> OracleQuerier<'a, Q> { quote_info, oracle_history_options, } - .query(self.querier) + .query(self.querier) } - pub fn oracle_providers_info( - &self, - ) -> Result { + pub fn oracle_providers_info(&self) -> Result { QueryOracleProvidersInfoRequest {}.query(self.querier) } pub fn oracle_provider_prices( &self, provider: ::prost::alloc::string::String, ) -> Result { - QueryOracleProviderPricesRequest { - provider, - } - .query(self.querier) + QueryOracleProviderPricesRequest { provider }.query(self.querier) } pub fn oracle_price( &self, @@ -1532,17 +1397,9 @@ impl<'a, Q: cosmwasm_std::CustomQuery> OracleQuerier<'a, Q> { base: ::prost::alloc::string::String, quote: ::prost::alloc::string::String, ) -> Result { - QueryOraclePriceRequest { - oracle_type, - base, - quote, - } - .query(self.querier) + QueryOraclePriceRequest { oracle_type, base, quote }.query(self.querier) } - pub fn pyth_price( - &self, - price_id: ::prost::alloc::string::String, - ) -> Result { + pub fn pyth_price(&self, price_id: ::prost::alloc::string::String) -> Result { QueryPythPriceRequest { price_id }.query(self.querier) } } diff --git a/packages/injective-std/src/types/injective/tokenfactory/v1beta1.rs b/packages/injective-std/src/types/injective/tokenfactory/v1beta1.rs index 0588e690..aeabd525 100644 --- a/packages/injective-std/src/types/injective/tokenfactory/v1beta1.rs +++ b/packages/injective-std/src/types/injective/tokenfactory/v1beta1.rs @@ -3,8 +3,7 @@ use osmosis_std_derive::CosmwasmExt; /// capabilities over a token factory denom. Right now there is only one Admin /// permission, but is planned to be extended to the future. #[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 = "/injective.tokenfactory.v1beta1.DenomAuthorityMetadata")] pub struct DenomAuthorityMetadata { /// Can be empty for no admin, or a valid injective address @@ -12,8 +11,7 @@ pub struct DenomAuthorityMetadata { pub admin: ::prost::alloc::string::String, } #[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 = "/injective.tokenfactory.v1beta1.EventCreateTFDenom")] pub struct EventCreateTfDenom { #[prost(string, tag = "1")] @@ -22,8 +20,7 @@ pub struct EventCreateTfDenom { pub denom: ::prost::alloc::string::String, } #[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 = "/injective.tokenfactory.v1beta1.EventMintTFDenom")] pub struct EventMintTfDenom { #[prost(string, tag = "1")] @@ -32,8 +29,7 @@ pub struct EventMintTfDenom { pub amount: ::core::option::Option, } #[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 = "/injective.tokenfactory.v1beta1.EventBurnDenom")] pub struct EventBurnDenom { #[prost(string, tag = "1")] @@ -42,8 +38,7 @@ pub struct EventBurnDenom { pub amount: ::core::option::Option, } #[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 = "/injective.tokenfactory.v1beta1.EventChangeTFAdmin")] pub struct EventChangeTfAdmin { #[prost(string, tag = "1")] @@ -52,32 +47,25 @@ pub struct EventChangeTfAdmin { pub new_admin_address: ::prost::alloc::string::String, } #[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 = "/injective.tokenfactory.v1beta1.EventSetTFDenomMetadata")] pub struct EventSetTfDenomMetadata { #[prost(string, tag = "1")] pub denom: ::prost::alloc::string::String, #[prost(message, optional, tag = "2")] - pub metadata: ::core::option::Option< - super::super::super::cosmos::bank::v1beta1::Metadata, - >, + pub metadata: ::core::option::Option, } /// Params defines the parameters for the tokenfactory 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 = "/injective.tokenfactory.v1beta1.Params")] pub struct Params { #[prost(message, repeated, tag = "1")] - pub denom_creation_fee: ::prost::alloc::vec::Vec< - super::super::super::cosmos::base::v1beta1::Coin, - >, + pub denom_creation_fee: ::prost::alloc::vec::Vec, } /// GenesisState defines the tokenfactory module's genesis state. #[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 = "/injective.tokenfactory.v1beta1.GenesisState")] pub struct GenesisState { /// params defines the parameters of the module. @@ -90,8 +78,7 @@ pub struct GenesisState { /// state. The structure contains DenomAuthorityMetadata which defines the /// denom's admin. #[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 = "/injective.tokenfactory.v1beta1.GenesisDenom")] pub struct GenesisDenom { #[prost(string, tag = "1")] @@ -105,8 +92,7 @@ pub struct GenesisDenom { } /// QueryParamsRequest is the request type for the Query/Params RPC method. #[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 = "/injective.tokenfactory.v1beta1.QueryParamsRequest")] #[proto_query( path = "/injective.tokenfactory.v1beta1.Query/Params", @@ -115,8 +101,7 @@ pub struct GenesisDenom { pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. #[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 = "/injective.tokenfactory.v1beta1.QueryParamsResponse")] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -126,11 +111,8 @@ pub struct QueryParamsResponse { /// QueryDenomAuthorityMetadataRequest defines the request structure for the /// DenomAuthorityMetadata gRPC query. #[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 = "/injective.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest")] #[proto_query( path = "/injective.tokenfactory.v1beta1.Query/DenomAuthorityMetadata", response_type = QueryDenomAuthorityMetadataResponse @@ -144,11 +126,8 @@ pub struct QueryDenomAuthorityMetadataRequest { /// QueryDenomAuthorityMetadataResponse defines the response structure for the /// DenomAuthorityMetadata gRPC query. #[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 = "/injective.tokenfactory.v1beta1.QueryDenomAuthorityMetadataResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.tokenfactory.v1beta1.QueryDenomAuthorityMetadataResponse")] pub struct QueryDenomAuthorityMetadataResponse { #[prost(message, optional, tag = "1")] pub authority_metadata: ::core::option::Option, @@ -156,11 +135,8 @@ pub struct QueryDenomAuthorityMetadataResponse { /// QueryDenomsFromCreatorRequest defines the request structure for the /// DenomsFromCreator gRPC query. #[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 = "/injective.tokenfactory.v1beta1.QueryDenomsFromCreatorRequest" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.tokenfactory.v1beta1.QueryDenomsFromCreatorRequest")] #[proto_query( path = "/injective.tokenfactory.v1beta1.Query/DenomsFromCreator", response_type = QueryDenomsFromCreatorResponse @@ -172,11 +148,8 @@ pub struct QueryDenomsFromCreatorRequest { /// QueryDenomsFromCreatorRequest defines the response structure for the /// DenomsFromCreator gRPC query. #[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 = "/injective.tokenfactory.v1beta1.QueryDenomsFromCreatorResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.tokenfactory.v1beta1.QueryDenomsFromCreatorResponse")] pub struct QueryDenomsFromCreatorResponse { #[prost(string, repeated, tag = "1")] pub denoms: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, @@ -184,8 +157,7 @@ pub struct QueryDenomsFromCreatorResponse { /// QueryModuleStateRequest is the request type for the /// Query/TokenfactoryModuleState RPC method. #[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 = "/injective.tokenfactory.v1beta1.QueryModuleStateRequest")] #[proto_query( path = "/injective.tokenfactory.v1beta1.Query/TokenfactoryModuleState", @@ -195,8 +167,7 @@ pub struct QueryModuleStateRequest {} /// QueryModuleStateResponse is the response type for the /// Query/TokenfactoryModuleState RPC method. #[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 = "/injective.tokenfactory.v1beta1.QueryModuleStateResponse")] pub struct QueryModuleStateResponse { #[prost(message, optional, tag = "1")] @@ -212,8 +183,7 @@ pub struct QueryModuleStateResponse { /// originally set to be the creator, but this can be changed later. The token /// denom does not indicate the current admin. #[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 = "/injective.tokenfactory.v1beta1.MsgCreateDenom")] pub struct MsgCreateDenom { #[prost(string, tag = "1")] @@ -229,8 +199,7 @@ pub struct MsgCreateDenom { /// MsgCreateDenomResponse is the return value of MsgCreateDenom /// It returns the full string of the newly created denom #[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 = "/injective.tokenfactory.v1beta1.MsgCreateDenomResponse")] pub struct MsgCreateDenomResponse { #[prost(string, tag = "1")] @@ -239,8 +208,7 @@ pub struct MsgCreateDenomResponse { /// MsgMint is the sdk.Msg type for allowing an admin account to mint /// more of a token. For now, we only support minting to the sender 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 = "/injective.tokenfactory.v1beta1.MsgMint")] pub struct MsgMint { #[prost(string, tag = "1")] @@ -249,15 +217,13 @@ pub struct MsgMint { pub amount: ::core::option::Option, } #[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 = "/injective.tokenfactory.v1beta1.MsgMintResponse")] pub struct MsgMintResponse {} /// MsgBurn is the sdk.Msg type for allowing an admin account to burn /// a token. For now, we only support burning from the sender 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 = "/injective.tokenfactory.v1beta1.MsgBurn")] pub struct MsgBurn { #[prost(string, tag = "1")] @@ -266,15 +232,13 @@ pub struct MsgBurn { pub amount: ::core::option::Option, } #[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 = "/injective.tokenfactory.v1beta1.MsgBurnResponse")] pub struct MsgBurnResponse {} /// MsgChangeAdmin is the sdk.Msg type for allowing an admin account to reassign /// adminship of a denom to a new 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 = "/injective.tokenfactory.v1beta1.MsgChangeAdmin")] pub struct MsgChangeAdmin { #[prost(string, tag = "1")] @@ -287,36 +251,28 @@ pub struct MsgChangeAdmin { /// MsgChangeAdminResponse defines the response structure for an executed /// MsgChangeAdmin message. #[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 = "/injective.tokenfactory.v1beta1.MsgChangeAdminResponse")] pub struct MsgChangeAdminResponse {} /// MsgSetDenomMetadata is the sdk.Msg type for allowing an admin account to set /// the denom's bank metadata #[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 = "/injective.tokenfactory.v1beta1.MsgSetDenomMetadata")] pub struct MsgSetDenomMetadata { #[prost(string, tag = "1")] pub sender: ::prost::alloc::string::String, #[prost(message, optional, tag = "2")] - pub metadata: ::core::option::Option< - super::super::super::cosmos::bank::v1beta1::Metadata, - >, + pub metadata: ::core::option::Option, } /// MsgSetDenomMetadataResponse defines the response structure for an executed /// MsgSetDenomMetadata message. #[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 = "/injective.tokenfactory.v1beta1.MsgSetDenomMetadataResponse" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.tokenfactory.v1beta1.MsgSetDenomMetadataResponse")] pub struct MsgSetDenomMetadataResponse {} #[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 = "/injective.tokenfactory.v1beta1.MsgUpdateParams")] pub struct MsgUpdateParams { /// authority is the address of the governance account. @@ -329,8 +285,7 @@ pub struct MsgUpdateParams { pub params: ::core::option::Option, } #[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 = "/injective.tokenfactory.v1beta1.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} pub struct TokenfactoryQuerier<'a, Q: cosmwasm_std::CustomQuery> { @@ -348,24 +303,12 @@ impl<'a, Q: cosmwasm_std::CustomQuery> TokenfactoryQuerier<'a, Q> { creator: ::prost::alloc::string::String, sub_denom: ::prost::alloc::string::String, ) -> Result { - QueryDenomAuthorityMetadataRequest { - creator, - sub_denom, - } - .query(self.querier) + QueryDenomAuthorityMetadataRequest { creator, sub_denom }.query(self.querier) } - pub fn denoms_from_creator( - &self, - creator: ::prost::alloc::string::String, - ) -> Result { - QueryDenomsFromCreatorRequest { - creator, - } - .query(self.querier) + pub fn denoms_from_creator(&self, creator: ::prost::alloc::string::String) -> Result { + QueryDenomsFromCreatorRequest { creator }.query(self.querier) } - pub fn tokenfactory_module_state( - &self, - ) -> Result { + pub fn tokenfactory_module_state(&self) -> Result { QueryModuleStateRequest {}.query(self.querier) } } diff --git a/packages/injective-std/src/types/injective/wasmx/v1.rs b/packages/injective-std/src/types/injective/wasmx/v1.rs index 8378c732..070f767d 100644 --- a/packages/injective-std/src/types/injective/wasmx/v1.rs +++ b/packages/injective-std/src/types/injective/wasmx/v1.rs @@ -1,7 +1,6 @@ use osmosis_std_derive::CosmwasmExt; #[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 = "/injective.wasmx.v1.ContractRegistrationRequestProposal")] pub struct ContractRegistrationRequestProposal { #[prost(string, tag = "1")] @@ -9,29 +8,21 @@ pub struct ContractRegistrationRequestProposal { #[prost(string, tag = "2")] pub description: ::prost::alloc::string::String, #[prost(message, optional, tag = "3")] - pub contract_registration_request: ::core::option::Option< - ContractRegistrationRequest, - >, + pub contract_registration_request: ::core::option::Option, } #[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 = "/injective.wasmx.v1.BatchContractRegistrationRequestProposal" -)] +#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/injective.wasmx.v1.BatchContractRegistrationRequestProposal")] pub struct BatchContractRegistrationRequestProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, #[prost(string, tag = "2")] pub description: ::prost::alloc::string::String, #[prost(message, repeated, tag = "3")] - pub contract_registration_requests: ::prost::alloc::vec::Vec< - ContractRegistrationRequest, - >, + pub contract_registration_requests: ::prost::alloc::vec::Vec, } #[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 = "/injective.wasmx.v1.BatchContractDeregistrationProposal")] pub struct BatchContractDeregistrationProposal { #[prost(string, tag = "1")] @@ -42,8 +33,7 @@ pub struct BatchContractDeregistrationProposal { pub contracts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[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 = "/injective.wasmx.v1.ContractRegistrationRequest")] pub struct ContractRegistrationRequest { /// Unique Identifier for contract instance to be registered. @@ -95,8 +85,7 @@ pub struct ContractRegistrationRequest { pub funding_mode: i32, } #[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 = "/injective.wasmx.v1.BatchStoreCodeProposal")] pub struct BatchStoreCodeProposal { #[prost(string, tag = "1")] @@ -104,9 +93,7 @@ pub struct BatchStoreCodeProposal { #[prost(string, tag = "2")] pub description: ::prost::alloc::string::String, #[prost(message, repeated, tag = "3")] - pub proposals: ::prost::alloc::vec::Vec< - super::super::super::cosmwasm::wasm::v1::StoreCodeProposal, - >, + pub proposals: ::prost::alloc::vec::Vec, } #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] @@ -142,8 +129,7 @@ impl FundingMode { } } #[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 = "/injective.wasmx.v1.Params")] pub struct Params { /// Set the status to active to indicate that contracts can be executed in @@ -176,8 +162,7 @@ pub struct Params { pub min_gas_price: u64, } #[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 = "/injective.wasmx.v1.RegisteredContract")] pub struct RegisteredContract { /// limit of gas per BB execution @@ -222,8 +207,7 @@ pub struct RegisteredContract { pub fund_mode: i32, } #[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 = "/injective.wasmx.v1.EventContractExecution")] pub struct EventContractExecution { #[prost(string, tag = "1")] @@ -236,8 +220,7 @@ pub struct EventContractExecution { pub execution_error: ::prost::alloc::string::String, } #[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 = "/injective.wasmx.v1.EventContractRegistered")] pub struct EventContractRegistered { #[prost(string, tag = "1")] @@ -271,16 +254,14 @@ pub struct EventContractRegistered { pub funding_mode: i32, } #[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 = "/injective.wasmx.v1.EventContractDeregistered")] pub struct EventContractDeregistered { #[prost(string, tag = "1")] pub contract_address: ::prost::alloc::string::String, } #[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 = "/injective.wasmx.v1.RegisteredContractWithAddress")] pub struct RegisteredContractWithAddress { #[prost(string, tag = "1")] @@ -290,8 +271,7 @@ pub struct RegisteredContractWithAddress { } /// GenesisState defines the wasmx module's genesis state. #[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 = "/injective.wasmx.v1.GenesisState")] pub struct GenesisState { /// params defines all the parameters of related to wasmx. @@ -305,8 +285,7 @@ pub struct GenesisState { /// QueryWasmxParamsRequest is the request type for the Query/WasmxParams RPC /// method. #[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 = "/injective.wasmx.v1.QueryWasmxParamsRequest")] #[proto_query( path = "/injective.wasmx.v1.Query/WasmxParams", @@ -316,8 +295,7 @@ pub struct QueryWasmxParamsRequest {} /// QueryWasmxParamsRequest is the response type for the Query/WasmxParams RPC /// method. #[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 = "/injective.wasmx.v1.QueryWasmxParamsResponse")] pub struct QueryWasmxParamsResponse { #[prost(message, optional, tag = "1")] @@ -326,8 +304,7 @@ pub struct QueryWasmxParamsResponse { /// QueryModuleStateRequest is the request type for the Query/WasmxModuleState /// RPC method. #[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 = "/injective.wasmx.v1.QueryModuleStateRequest")] #[proto_query( path = "/injective.wasmx.v1.Query/WasmxModuleState", @@ -337,8 +314,7 @@ pub struct QueryModuleStateRequest {} /// QueryModuleStateResponse is the response type for the Query/WasmxModuleState /// RPC method. #[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 = "/injective.wasmx.v1.QueryModuleStateResponse")] pub struct QueryModuleStateResponse { #[prost(message, optional, tag = "1")] @@ -346,8 +322,7 @@ pub struct QueryModuleStateResponse { } /// Contract registration info #[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 = "/injective.wasmx.v1.QueryContractRegistrationInfoRequest")] #[proto_query( path = "/injective.wasmx.v1.Query/ContractRegistrationInfo", @@ -358,8 +333,7 @@ pub struct QueryContractRegistrationInfoRequest { pub contract_address: ::prost::alloc::string::String, } #[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 = "/injective.wasmx.v1.QueryContractRegistrationInfoResponse")] pub struct QueryContractRegistrationInfoResponse { #[prost(message, optional, tag = "1")] @@ -368,8 +342,7 @@ pub struct QueryContractRegistrationInfoResponse { /// MsgExecuteContractCompat submits the given message data to a smart contract, /// compatible with EIP712 #[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 = "/injective.wasmx.v1.MsgExecuteContractCompat")] pub struct MsgExecuteContractCompat { /// Sender is the that actor that signed the messages @@ -387,8 +360,7 @@ pub struct MsgExecuteContractCompat { } /// MsgExecuteContractCompatResponse returns execution result data. #[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 = "/injective.wasmx.v1.MsgExecuteContractCompatResponse")] pub struct MsgExecuteContractCompatResponse { /// Data contains bytes to returned from the contract @@ -396,8 +368,7 @@ pub struct MsgExecuteContractCompatResponse { pub data: ::prost::alloc::vec::Vec, } #[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 = "/injective.wasmx.v1.MsgUpdateContract")] pub struct MsgUpdateContract { #[prost(string, tag = "1")] @@ -424,13 +395,11 @@ pub struct MsgUpdateContract { pub admin_address: ::prost::alloc::string::String, } #[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 = "/injective.wasmx.v1.MsgUpdateContractResponse")] pub struct MsgUpdateContractResponse {} #[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 = "/injective.wasmx.v1.MsgActivateContract")] pub struct MsgActivateContract { #[prost(string, tag = "1")] @@ -440,13 +409,11 @@ pub struct MsgActivateContract { pub contract_address: ::prost::alloc::string::String, } #[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 = "/injective.wasmx.v1.MsgActivateContractResponse")] pub struct MsgActivateContractResponse {} #[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 = "/injective.wasmx.v1.MsgDeactivateContract")] pub struct MsgDeactivateContract { #[prost(string, tag = "1")] @@ -456,13 +423,11 @@ pub struct MsgDeactivateContract { pub contract_address: ::prost::alloc::string::String, } #[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 = "/injective.wasmx.v1.MsgDeactivateContractResponse")] pub struct MsgDeactivateContractResponse {} #[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 = "/injective.wasmx.v1.MsgUpdateParams")] pub struct MsgUpdateParams { /// authority is the address of the governance account. @@ -475,25 +440,20 @@ pub struct MsgUpdateParams { pub params: ::core::option::Option, } #[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 = "/injective.wasmx.v1.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} #[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 = "/injective.wasmx.v1.MsgRegisterContract")] pub struct MsgRegisterContract { #[prost(string, tag = "1")] pub sender: ::prost::alloc::string::String, #[prost(message, optional, tag = "2")] - pub contract_registration_request: ::core::option::Option< - ContractRegistrationRequest, - >, + pub contract_registration_request: ::core::option::Option, } #[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 = "/injective.wasmx.v1.MsgRegisterContractResponse")] pub struct MsgRegisterContractResponse {} pub struct WasmxQuerier<'a, Q: cosmwasm_std::CustomQuery> { @@ -503,23 +463,16 @@ impl<'a, Q: cosmwasm_std::CustomQuery> WasmxQuerier<'a, Q> { pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self { Self { querier } } - pub fn wasmx_params( - &self, - ) -> Result { + pub fn wasmx_params(&self) -> Result { QueryWasmxParamsRequest {}.query(self.querier) } pub fn contract_registration_info( &self, contract_address: ::prost::alloc::string::String, ) -> Result { - QueryContractRegistrationInfoRequest { - contract_address, - } - .query(self.querier) + QueryContractRegistrationInfoRequest { contract_address }.query(self.querier) } - pub fn wasmx_module_state( - &self, - ) -> Result { + pub fn wasmx_module_state(&self) -> Result { QueryModuleStateRequest {}.query(self.querier) } }