diff --git a/Cargo.lock b/Cargo.lock index 95cf4e37..d7127bbd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -204,7 +204,7 @@ name = "atomic-order-example" version = "0.2.0" dependencies = [ "cosmwasm-schema 1.5.8", - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "cosmwasm-storage", "cw-multi-test", "cw-storage-plus", @@ -212,8 +212,8 @@ dependencies = [ "cw2", "injective-cosmwasm 0.3.1", "injective-math 0.3.0", - "injective-std 1.13.2", - "prost 0.12.6", + "injective-std 1.13.3", + "prost 0.13.4", "schemars", "serde", "thiserror", @@ -547,9 +547,9 @@ dependencies = [ [[package]] name = "cosmwasm-core" -version = "2.1.4" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f6ceb8624260d0d3a67c4e1a1d43fc7e9406720afbcb124521501dd138f90aa" +checksum = "c34c440d4d8e3ecec783d0f9c89d25565168b0f4cdb80a1f6a387cf2168c0740" [[package]] name = "cosmwasm-crypto" @@ -566,15 +566,16 @@ dependencies = [ [[package]] name = "cosmwasm-crypto" -version = "2.1.4" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4125381e5fd7fefe9f614640049648088015eca2b60d861465329a5d87dfa538" +checksum = "134e765161d60228cc27635032d2a466542ca83fd6c87f3c87f4963c0bd51008" dependencies = [ "ark-bls12-381", "ark-ec", "ark-ff", "ark-serialize", "cosmwasm-core", + "curve25519-dalek 4.1.3", "digest 0.10.7", "ecdsa", "ed25519-zebra 4.0.3", @@ -598,9 +599,9 @@ dependencies = [ [[package]] name = "cosmwasm-derive" -version = "2.1.4" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b5658b1dc64e10b56ae7a449f678f96932a96f6cfad1769d608d1d1d656480a" +checksum = "3c94a4b93e722c91d2e58471cfe69480f4a656cfccacd8bfda5638f2a5d4512b" dependencies = [ "proc-macro2", "quote", @@ -679,19 +680,20 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "2.1.4" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70eb7ab0c1e99dd6207496963ba2a457c4128ac9ad9c72a83f8d9808542b849b" +checksum = "4434e556b0aebff34bf082e75d175b5d7edbcf1d90d4cedb59623a1249fff567" dependencies = [ "base64 0.22.1", "bech32 0.11.0", "bnum 0.11.0", "cosmwasm-core", - "cosmwasm-crypto 2.1.4", - "cosmwasm-derive 2.1.4", + "cosmwasm-crypto 2.2.0", + "cosmwasm-derive 2.2.0", "derive_more", "hex", "rand_core 0.6.4", + "rmp-serde", "schemars", "serde", "serde-json-wasm 1.0.1", @@ -833,12 +835,12 @@ checksum = "b0ae276e7a06ad1b7e7da78a3d68aba80634cde30ee7fe8259a94e653603fef8" dependencies = [ "anyhow", "bech32 0.11.0", - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "cw-storage-plus", "cw-utils", "derivative", "itertools 0.13.0", - "prost 0.13.3", + "prost 0.13.4", "schemars", "serde", "sha2 0.10.8", @@ -851,7 +853,7 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f13360e9007f51998d42b1bc6b7fa0141f74feae61ed5fd1e5b0a89eec7b5de1" dependencies = [ - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "schemars", "serde", ] @@ -863,7 +865,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07dfee7f12f802431a856984a32bce1cb7da1e6c006b5409e3981035ce562dec" dependencies = [ "cosmwasm-schema 2.1.4", - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "schemars", "serde", "thiserror", @@ -876,7 +878,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b04852cd38f044c0751259d5f78255d07590d136b8a86d4e09efdd7666bd6d27" dependencies = [ "cosmwasm-schema 2.1.4", - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "cw-storage-plus", "schemars", "semver", @@ -966,11 +968,11 @@ checksum = "59f8e79d1fbf76bdfbde321e902714bf6c49df88a7dda6fc682fc2979226962d" name = "dummy" version = "1.1.0" dependencies = [ - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "cw-storage-plus", "cw2", "injective-cosmwasm 0.3.1", - "injective-std 1.13.2", + "injective-std 1.13.3", "schemars", "serde", "thiserror", @@ -1591,7 +1593,7 @@ name = "injective-cosmwasm" version = "0.3.1" dependencies = [ "cosmwasm-schema 1.5.8", - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "cw-storage-plus", "ethereum-types", "hex", @@ -1611,7 +1613,7 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a551fbe7bae0747a41ce81a1e7d5ba96ef089a7f0b3f05ab5a9b510248a709a7" dependencies = [ - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "cw-storage-plus", "ethereum-types", "hex", @@ -1629,15 +1631,15 @@ version = "1.0.0" dependencies = [ "cosmos-sdk-proto", "cosmwasm-schema 1.5.8", - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "cw-storage-plus", "cw2", "injective-cosmwasm 0.3.1", "injective-math 0.3.0", - "injective-std 1.13.2", + "injective-std 1.13.3", "injective-test-tube", "injective-testing", - "prost 0.12.6", + "prost 0.13.4", "schemars", "serde", "thiserror", @@ -1650,15 +1652,15 @@ dependencies = [ "base64 0.21.7", "cosmos-sdk-proto", "cosmwasm-schema 1.5.8", - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "cw-storage-plus", "cw2", "injective-cosmwasm 0.3.1", "injective-math 0.3.0", - "injective-std 1.13.2", + "injective-std 1.13.3", "injective-test-tube", "injective-testing", - "prost 0.12.6", + "prost 0.13.4", "schemars", "serde", "serde_json", @@ -1670,7 +1672,7 @@ name = "injective-math" version = "0.3.0" dependencies = [ "cosmwasm-schema 1.5.8", - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "ethereum-types", "primitive-types", "schemars", @@ -1684,7 +1686,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "194fb5cb49537b0b9137d02a563b7019003220fb4affff05ad6cdc6fee3509c9" dependencies = [ - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "ethereum-types", "primitive-types", "schemars", @@ -1699,8 +1701,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0e5193cb9520754f60b9e9af08a662ddf298d2e1a579200b9a447064b64db8b" dependencies = [ "chrono", - "cosmwasm-std 2.1.4", - "injective-std-derive 1.13.0 (registry+https://github.com/rust-lang/crates.io-index)", + "cosmwasm-std 2.2.0", + "injective-std-derive 1.13.0", "prost 0.12.6", "prost-types 0.12.6", "schemars", @@ -1710,13 +1712,13 @@ dependencies = [ [[package]] name = "injective-std" -version = "1.13.2" +version = "1.13.3" dependencies = [ "chrono", - "cosmwasm-std 2.1.4", - "injective-std-derive 1.13.0", - "prost 0.12.6", - "prost-types 0.12.6", + "cosmwasm-std 2.2.0", + "injective-std-derive 1.13.3", + "prost 0.13.4", + "prost-types 0.13.4", "schemars", "serde", "serde-cw-value", @@ -1725,28 +1727,28 @@ dependencies = [ [[package]] name = "injective-std-derive" version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2721d8c2fed1fd1dff4cd6d119711a74acf27a6eeea6bf09cd44d192119e52ea" dependencies = [ - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "itertools 0.10.5", "proc-macro2", - "prost 0.12.6", "quote", - "serde", "syn 1.0.109", - "trybuild", ] [[package]] name = "injective-std-derive" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2721d8c2fed1fd1dff4cd6d119711a74acf27a6eeea6bf09cd44d192119e52ea" +version = "1.13.3" dependencies = [ - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "itertools 0.10.5", "proc-macro2", + "prost 0.13.4", "quote", + "serde", "syn 1.0.109", + "trybuild", ] [[package]] @@ -1758,7 +1760,7 @@ dependencies = [ "base64 0.21.7", "bindgen", "cosmrs", - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "hex", "injective-cosmwasm 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "injective-std 1.13.0", @@ -1775,13 +1777,13 @@ version = "1.1.3" dependencies = [ "anyhow", "base64 0.21.7", - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "cw-multi-test", "injective-cosmwasm 0.3.1", "injective-math 0.3.0", - "injective-std 1.13.2", + "injective-std 1.13.3", "injective-test-tube", - "prost 0.12.6", + "prost 0.13.4", "rand 0.4.6", "regex", "secp256k1", @@ -2183,12 +2185,12 @@ dependencies = [ [[package]] name = "prost" -version = "0.13.3" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b0487d90e047de87f984913713b85c601c05609aad5b0df4b4573fbf69aa13f" +checksum = "2c0fef6c4230e4ccf618a35c59d7ede15dea37de8427500f50aff708806e42ec" dependencies = [ "bytes", - "prost-derive 0.13.3", + "prost-derive 0.13.4", ] [[package]] @@ -2219,9 +2221,9 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.13.3" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9552f850d5f0964a4e4d0bf306459ac29323ddfbae05e35a7c0d35cb0803cc5" +checksum = "157c5a9d7ea5c2ed2d9fb8f495b64759f7816c7eaea54ba3978f0d63000162e3" dependencies = [ "anyhow", "itertools 0.13.0", @@ -2248,6 +2250,15 @@ dependencies = [ "prost 0.12.6", ] +[[package]] +name = "prost-types" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc2f1e56baa61e93533aebc21af4d2134b70f66275e0fcdf3cbe43d77ff7e8fc" +dependencies = [ + "prost 0.13.4", +] + [[package]] name = "quote" version = "1.0.37" @@ -2476,6 +2487,28 @@ dependencies = [ "rustc-hex", ] +[[package]] +name = "rmp" +version = "0.8.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "228ed7c16fa39782c3b3468e974aec2795e9089153cd08ee2e9aefb3613334c4" +dependencies = [ + "byteorder", + "num-traits", + "paste", +] + +[[package]] +name = "rmp-serde" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52e599a477cf9840e92f2cde9a7189e67b42c57532749bf90aea6ec10facd4db" +dependencies = [ + "byteorder", + "rmp", + "serde", +] + [[package]] name = "rustc-demangle" version = "0.1.24" @@ -3094,7 +3127,7 @@ checksum = "3c3a4e34619e6417613fab682de9a196848f4a56653ac71b95b5860b6d87c7cd" dependencies = [ "base64 0.21.7", "cosmrs", - "cosmwasm-std 2.1.4", + "cosmwasm-std 2.2.0", "prost 0.12.6", "serde", "serde_json", diff --git a/Cargo.toml b/Cargo.toml index 8cabe864..8271a40a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ base64 = { version = "0.21.5" } chrono = { version = "0.4.27", default-features = false } cosmos-sdk-proto = { version = "0.20.0", default-features = false } cosmwasm-schema = { version = "1.5.0" } -cosmwasm-std = { version = "2.1.0", features = [ "abort", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "cosmwasm_2_0", "iterator", "stargate" ] } +cosmwasm-std = { version = "2.2.0", features = [ "abort", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "cosmwasm_2_0", "iterator", "stargate" ] } cosmwasm-storage = { version = "1.5.2", features = [ "iterator" ] } cw-multi-test = { version = "2.1.0" } cw-storage-plus = { version = "2.0.0" } @@ -22,15 +22,15 @@ ethereum-types = { version = "0.5.2" } hex = { version = "0.4.3", features = [ "serde" ] } injective-cosmwasm = { version = "0.3.0", path = "./packages/injective-cosmwasm" } injective-math = { version = "0.3.0", path = "./packages/injective-math" } -injective-std = { version = "1.13.2", path = "./packages/injective-std" } +injective-std = { version = "1.13.3", path = "./packages/injective-std" } injective-std-derive = { version = "1.13.0", path = "./packages/injective-std-derive" } injective-test-tube = { version = "1.13.2" } injective-testing = { version = "1.1.0", path = "./packages/injective-testing" } itertools = { version = "0.10.3" } primitive-types = { version = "0.12.2", default-features = false } proc-macro2 = { version = "1.0.40" } -prost = { version = "0.12.6" } -prost-types = { version = "0.12.6", default-features = false } +prost = { version = "0.13.4", features = [ "prost-derive" ] } +prost-types = { version = "0.13.4", default-features = false } quote = { version = "1.0.20" } rand = { version = "0.4.6" } regex = { version = "1.11.1" } diff --git a/packages/injective-std-derive/Cargo.toml b/packages/injective-std-derive/Cargo.toml index 49c5eaa0..9410b33f 100644 --- a/packages/injective-std-derive/Cargo.toml +++ b/packages/injective-std-derive/Cargo.toml @@ -3,7 +3,7 @@ description = "Procedural macro for injective-std" edition = "2021" license = "MIT OR Apache-2.0" name = "injective-std-derive" -version = "1.13.0" +version = "1.13.3" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/packages/injective-std/Cargo.toml b/packages/injective-std/Cargo.toml index bb15f97c..919d163d 100644 --- a/packages/injective-std/Cargo.toml +++ b/packages/injective-std/Cargo.toml @@ -5,16 +5,16 @@ license = "MIT OR Apache-2.0" name = "injective-std" readme = "README.md" repository = "https://github.com/InjectiveLabs/cw-injective/tree/dev/packages/injective-std" -version = "1.13.2" +version = "1.13.3" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -chrono = { workspace = true } -cosmwasm-std = { workspace = true } -injective-std-derive = { workspace = true, path = "../injective-std-derive" } -prost = { workspace = true } -prost-types = { workspace = true } -schemars = { workspace = true } -serde = { workspace = true } -serde-cw-value = { workspace = true } +chrono = { workspace = true } +cosmwasm-std = { workspace = true } +osmosis-std-derive = { package = "injective-std-derive", path = "../injective-std-derive" } +prost = { workspace = true } +prost-types = { workspace = true } +schemars = { workspace = true } +serde = { workspace = true } +serde-cw-value = { workspace = true } 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 fefe129f..42ec7fe6 100644 --- a/packages/injective-std/src/types/cosmos/auth/module/v1.rs +++ b/packages/injective-std/src/types/cosmos/auth/module/v1.rs @@ -1,7 +1,8 @@ -use injective_std_derive::CosmwasmExt; +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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -16,7 +17,8 @@ pub struct Module { } /// ModuleAccountPermission represents permissions for a module account. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 878f807a..9dfd5330 100644 --- a/packages/injective-std/src/types/cosmos/auth/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/auth/v1beta1.rs @@ -1,9 +1,10 @@ -use injective_std_derive::CosmwasmExt; +use osmosis_std_derive::CosmwasmExt; /// BaseAccount defines a base account type. It contains all the necessary fields /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.BaseAccount")] pub struct BaseAccount { #[prost(string, tag = "1")] @@ -25,7 +26,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.ModuleAccount")] pub struct ModuleAccount { #[prost(message, optional, tag = "1")] @@ -39,7 +41,8 @@ pub struct ModuleAccount { /// /// Since: cosmos-sdk 0.47 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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). @@ -52,7 +55,8 @@ pub struct ModuleCredential { } /// Params defines the parameters for the auth module. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.Params")] pub struct Params { #[prost(uint64, tag = "1")] @@ -88,7 +92,8 @@ pub struct Params { } /// GenesisState defines the auth module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -102,7 +107,8 @@ pub struct GenesisState { /// /// Since: cosmos-sdk 0.43 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.QueryAccountsRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/Accounts", @@ -111,13 +117,16 @@ pub struct GenesisState { pub struct QueryAccountsRequest { /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "1")] - pub pagination: ::core::option::Option, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.QueryAccountsResponse")] pub struct QueryAccountsResponse { /// accounts are the existing accounts @@ -125,11 +134,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// QueryAccountRequest is the request type for the Query/Account RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.QueryAccountRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/Account", @@ -142,7 +154,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -151,7 +164,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.QueryParamsRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/Params", @@ -160,7 +174,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -171,7 +186,8 @@ pub struct QueryParamsResponse { /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.QueryModuleAccountsRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/ModuleAccounts", @@ -182,7 +198,8 @@ pub struct QueryModuleAccountsRequest {} /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.QueryModuleAccountsResponse")] pub struct QueryModuleAccountsResponse { #[prost(message, repeated, tag = "1")] @@ -190,7 +207,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/ModuleAccountByName", @@ -202,7 +220,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse")] pub struct QueryModuleAccountByNameResponse { #[prost(message, optional, tag = "1")] @@ -212,7 +231,8 @@ pub struct QueryModuleAccountByNameResponse { /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.Bech32PrefixRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/Bech32Prefix", @@ -223,7 +243,8 @@ pub struct Bech32PrefixRequest {} /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.Bech32PrefixResponse")] pub struct Bech32PrefixResponse { #[prost(string, tag = "1")] @@ -233,7 +254,8 @@ pub struct Bech32PrefixResponse { /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.AddressBytesToStringRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/AddressBytesToString", @@ -247,7 +269,8 @@ pub struct AddressBytesToStringRequest { /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.AddressBytesToStringResponse")] pub struct AddressBytesToStringResponse { #[prost(string, tag = "1")] @@ -257,7 +280,8 @@ pub struct AddressBytesToStringResponse { /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.AddressStringToBytesRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/AddressStringToBytes", @@ -271,7 +295,8 @@ pub struct AddressStringToBytesRequest { /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.AddressStringToBytesResponse")] pub struct AddressStringToBytesResponse { #[prost(bytes = "vec", tag = "1")] @@ -281,7 +306,8 @@ pub struct AddressStringToBytesResponse { /// /// Since: cosmos-sdk 0.46.2 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/AccountAddressByID", @@ -316,7 +342,8 @@ pub struct QueryAccountAddressByIdRequest { /// /// Since: cosmos-sdk 0.46.2 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse")] pub struct QueryAccountAddressByIdResponse { #[prost(string, tag = "1")] @@ -326,7 +353,8 @@ pub struct QueryAccountAddressByIdResponse { /// /// Since: cosmos-sdk 0.47 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.auth.v1beta1.QueryAccountInfoRequest")] #[proto_query( path = "/cosmos.auth.v1beta1.Query/AccountInfo", @@ -341,7 +369,8 @@ pub struct QueryAccountInfoRequest { /// /// Since: cosmos-sdk 0.47 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -352,7 +381,8 @@ pub struct QueryAccountInfoResponse { /// /// Since: cosmos-sdk 0.47 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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). @@ -369,7 +399,8 @@ pub struct MsgUpdateParams { /// /// Since: cosmos-sdk 0.47 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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> { @@ -381,24 +412,45 @@ impl<'a, Q: cosmwasm_std::CustomQuery> AuthQuerier<'a, Q> { } pub fn accounts( &self, - pagination: ::core::option::Option, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> 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) @@ -407,15 +459,24 @@ 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 ff091a87..e2730dc8 100644 --- a/packages/injective-std/src/types/cosmos/authz/module/v1.rs +++ b/packages/injective-std/src/types/cosmos/authz/module/v1.rs @@ -1,6 +1,7 @@ -use injective_std_derive::CosmwasmExt; +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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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 a56dd0b1..a01ed751 100644 --- a/packages/injective-std/src/types/cosmos/authz/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/authz/v1beta1.rs @@ -1,8 +1,9 @@ -use injective_std_derive::CosmwasmExt; +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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -12,7 +13,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.authz.v1beta1.Grant")] pub struct Grant { #[prost(message, optional, tag = "1")] @@ -26,7 +28,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.authz.v1beta1.GrantAuthorization")] pub struct GrantAuthorization { #[prost(string, tag = "1")] @@ -40,7 +43,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -49,7 +53,8 @@ pub struct GrantQueueItem { } /// EventGrant is emitted on Msg/Grant #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -64,7 +69,8 @@ pub struct EventGrant { } /// EventRevoke is emitted on Msg/Revoke #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -79,7 +85,8 @@ pub struct EventRevoke { } /// GenesisState defines the authz module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.authz.v1beta1.GenesisState")] pub struct GenesisState { #[prost(message, repeated, tag = "1")] @@ -87,7 +94,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.authz.v1beta1.QueryGrantsRequest")] #[proto_query( path = "/cosmos.authz.v1beta1.Query/Grants", @@ -103,11 +111,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// QueryGrantsResponse is the response type for the Query/Authorizations RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -115,11 +126,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.authz.v1beta1.QueryGranterGrantsRequest")] #[proto_query( path = "/cosmos.authz.v1beta1.Query/GranterGrants", @@ -130,11 +144,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -142,11 +159,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest")] #[proto_query( path = "/cosmos.authz.v1beta1.Query/GranteeGrants", @@ -157,11 +177,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -169,12 +192,15 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.authz.v1beta1.MsgGrant")] pub struct MsgGrant { #[prost(string, tag = "1")] @@ -186,14 +212,16 @@ pub struct MsgGrant { } /// MsgGrantResponse defines the Msg/MsgGrant response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.authz.v1beta1.MsgGrantResponse")] pub struct MsgGrantResponse {} /// MsgExec attempts to execute the provided messages using /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.authz.v1beta1.MsgExec")] pub struct MsgExec { #[prost(string, tag = "1")] @@ -206,7 +234,8 @@ pub struct MsgExec { } /// MsgExecResponse defines the Msg/MsgExecResponse response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.authz.v1beta1.MsgExecResponse")] pub struct MsgExecResponse { #[prost(bytes = "vec", repeated, tag = "1")] @@ -215,7 +244,8 @@ pub struct MsgExecResponse { /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.authz.v1beta1.MsgRevoke")] pub struct MsgRevoke { #[prost(string, tag = "1")] @@ -227,12 +257,14 @@ pub struct MsgRevoke { } /// MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.authz.v1beta1.MsgRevokeResponse")] pub struct MsgRevokeResponse {} /// MsgExecCompatResponse defines the Msg/MsgExecCompatResponse response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.authz.v1beta1.MsgExecCompatResponse")] pub struct MsgExecCompatResponse { #[prost(bytes = "vec", repeated, tag = "1")] @@ -241,7 +273,8 @@ pub struct MsgExecCompatResponse { /// MsgExecCompat supports legacy amino codec for frontend metamask signing /// Functions are same as MsgExec, but input for msgs is array of strings #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.authz.v1beta1.MsgExecCompat")] pub struct MsgExecCompat { #[prost(string, tag = "1")] @@ -261,7 +294,9 @@ 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, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> Result { QueryGrantsRequest { granter, @@ -269,20 +304,32 @@ 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, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> 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, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> 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 7d7fe1eb..dab1fd35 100644 --- a/packages/injective-std/src/types/cosmos/bank/module/v1.rs +++ b/packages/injective-std/src/types/cosmos/bank/module/v1.rs @@ -1,14 +1,17 @@ -use injective_std_derive::CosmwasmExt; +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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.module.v1.Module")] pub struct Module { /// blocked_module_accounts_override configures exceptional module accounts which should be blocked from receiving /// funds. If left empty it defaults to the list of account names supplied in the auth module configuration as /// module_account_permissions #[prost(string, repeated, tag = "1")] - pub blocked_module_accounts_override: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + pub blocked_module_accounts_override: ::prost::alloc::vec::Vec< + ::prost::alloc::string::String, + >, /// authority defines the custom module authority. If not set, defaults to the governance module. #[prost(string, tag = "2")] pub authority: ::prost::alloc::string::String, diff --git a/packages/injective-std/src/types/cosmos/bank/v1beta1.rs b/packages/injective-std/src/types/cosmos/bank/v1beta1.rs index add8d942..774e742a 100644 --- a/packages/injective-std/src/types/cosmos/bank/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/bank/v1beta1.rs @@ -1,10 +1,11 @@ -use injective_std_derive::CosmwasmExt; +use osmosis_std_derive::CosmwasmExt; /// SendAuthorization allows the grantee to spend up to spend_limit coins from /// the granter's account. /// /// Since: cosmos-sdk 0.43 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.SendAuthorization")] pub struct SendAuthorization { #[prost(message, repeated, tag = "1")] @@ -18,7 +19,8 @@ pub struct SendAuthorization { } /// Params defines the parameters for the bank module. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -35,7 +37,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.SendEnabledSendEnabled")] pub struct SendEnabled { #[prost(string, tag = "1")] @@ -45,7 +48,8 @@ pub struct SendEnabled { } /// Input models transaction input. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.InputInput")] pub struct Input { #[prost(string, tag = "1")] @@ -55,7 +59,8 @@ pub struct Input { } /// Output models transaction outputs. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.OutputOutput")] pub struct Output { #[prost(string, tag = "1")] @@ -67,7 +72,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.SupplySupply")] #[deprecated] pub struct Supply { @@ -77,7 +83,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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). @@ -101,7 +108,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.MetadataMetadata")] pub struct Metadata { #[prost(string, tag = "1")] @@ -150,7 +158,8 @@ pub struct Metadata { } /// EventSetBalance is an event that tracks the latest bank balance. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.EventSetBalances")] pub struct EventSetBalances { #[prost(message, repeated, tag = "1")] @@ -158,7 +167,8 @@ pub struct EventSetBalances { } /// BalanceUpdate contains a given address's latest balance #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.BalanceUpdate")] pub struct BalanceUpdate { #[prost(bytes = "vec", tag = "1")] @@ -171,7 +181,8 @@ pub struct BalanceUpdate { } /// GenesisState defines the bank module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -196,7 +207,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -208,7 +220,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.QueryBalanceRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/Balance", @@ -224,7 +237,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -233,7 +247,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.QueryAllBalancesRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/AllBalances", @@ -245,7 +260,9 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, /// resolve_denom is the flag to resolve the denom into a human-readable form from the metadata. /// /// Since: cosmos-sdk 0.50 @@ -255,7 +272,8 @@ pub struct QueryAllBalancesRequest { /// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -263,14 +281,17 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/SpendableBalances", @@ -282,14 +303,17 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -297,14 +321,17 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/SpendableBalanceByDenom", @@ -323,7 +350,8 @@ pub struct QuerySpendableBalanceByDenomRequest { /// /// Since: cosmos-sdk 0.47 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -333,7 +361,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.QueryTotalSupplyRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/TotalSupply", @@ -344,12 +373,15 @@ pub struct QueryTotalSupplyRequest { /// /// Since: cosmos-sdk 0.43 #[prost(message, optional, tag = "1")] - pub pagination: ::core::option::Option, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC /// method #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -359,11 +391,14 @@ pub struct QueryTotalSupplyResponse { /// /// Since: cosmos-sdk 0.43 #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.QuerySupplyOfRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/SupplyOf", @@ -376,7 +411,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -385,7 +421,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.QueryParamsRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/Params", @@ -394,7 +431,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.QueryParamsResponse")] pub struct QueryParamsResponse { /// params provides the parameters of the bank module. @@ -403,7 +441,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/DenomsMetadata", @@ -412,12 +451,15 @@ pub struct QueryParamsResponse { pub struct QueryDenomsMetadataRequest { /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "1")] - pub pagination: ::core::option::Option, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -425,11 +467,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.QueryDenomMetadataRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/DenomMetadata", @@ -443,7 +488,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -453,8 +499,11 @@ pub struct QueryDenomMetadataResponse { /// QueryDenomMetadataByQueryStringRequest is the request type for the Query/DenomMetadata RPC method. /// Identical with QueryDenomMetadataRequest but receives denom as query string. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest" +)] #[proto_query( path = "/cosmos.bank.v1beta1.Query/DenomMetadataByQueryString", response_type = QueryDenomMetadataByQueryStringResponse @@ -467,8 +516,11 @@ pub struct QueryDenomMetadataByQueryStringRequest { /// QueryDenomMetadataByQueryStringResponse is the response type for the Query/DenomMetadata RPC /// method. Identical with QueryDenomMetadataResponse but receives denom as query string in request. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse" +)] pub struct QueryDenomMetadataByQueryStringResponse { /// metadata describes and provides all the client information for the requested token. #[prost(message, optional, tag = "1")] @@ -478,7 +530,8 @@ pub struct QueryDenomMetadataByQueryStringResponse { /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.QueryDenomOwnersRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/DenomOwners", @@ -490,7 +543,9 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// DenomOwner defines structure representing an account that owns or holds a /// particular denominated token. It contains the account address and account @@ -498,7 +553,8 @@ pub struct QueryDenomOwnersRequest { /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -512,14 +568,17 @@ pub struct DenomOwner { /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// QueryDenomOwnersByQueryRequest defines the request type for the DenomOwnersByQuery RPC query, /// which queries for a paginated set of all account holders of a particular @@ -527,7 +586,8 @@ pub struct QueryDenomOwnersResponse { /// /// Since: cosmos-sdk 0.50.3 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/DenomOwnersByQuery", @@ -539,26 +599,32 @@ pub struct QueryDenomOwnersByQueryRequest { pub denom: ::prost::alloc::string::String, /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// QueryDenomOwnersByQueryResponse defines the RPC response of a DenomOwnersByQuery RPC query. /// /// Since: cosmos-sdk 0.50.3 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse")] pub struct QueryDenomOwnersByQueryResponse { #[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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.QuerySendEnabledRequest")] #[proto_query( path = "/cosmos.bank.v1beta1.Query/SendEnabled", @@ -571,13 +637,16 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.QuerySendEnabledResponse")] pub struct QuerySendEnabledResponse { #[prost(message, repeated, tag = "1")] @@ -585,11 +654,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.MsgSend")] pub struct MsgSend { #[prost(string, tag = "1")] @@ -601,12 +673,14 @@ pub struct MsgSend { } /// MsgSendResponse defines the Msg/Send response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -618,14 +692,16 @@ pub struct MsgMultiSend { } /// MsgMultiSendResponse defines the Msg/MultiSend response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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). @@ -642,7 +718,8 @@ pub struct MsgUpdateParams { /// /// Since: cosmos-sdk 0.47 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -653,7 +730,8 @@ pub struct MsgUpdateParamsResponse {} /// /// Since: cosmos-sdk 0.47 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.bank.v1beta1.MsgSetSendEnabled")] pub struct MsgSetSendEnabled { /// authority is the address that controls the module. @@ -673,7 +751,8 @@ pub struct MsgSetSendEnabled { /// /// Since: cosmos-sdk 0.47 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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> { @@ -688,12 +767,18 @@ 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, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, resolve_denom: bool, ) -> Result { QueryAllBalancesRequest { @@ -701,68 +786,115 @@ impl<'a, Q: cosmwasm_std::CustomQuery> BankQuerier<'a, Q> { pagination, resolve_denom, } - .query(self.querier) + .query(self.querier) } pub fn spendable_balances( &self, address: ::prost::alloc::string::String, - pagination: ::core::option::Option, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> 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, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> 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 denom_metadata_by_query_string( &self, denom: ::prost::alloc::string::String, ) -> Result { - QueryDenomMetadataByQueryStringRequest { denom }.query(self.querier) + QueryDenomMetadataByQueryStringRequest { + denom, + } + .query(self.querier) } pub fn denoms_metadata( &self, - pagination: ::core::option::Option, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> 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, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> Result { - QueryDenomOwnersRequest { denom, pagination }.query(self.querier) + QueryDenomOwnersRequest { + denom, + pagination, + } + .query(self.querier) } pub fn denom_owners_by_query( &self, denom: ::prost::alloc::string::String, - pagination: ::core::option::Option, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> Result { - QueryDenomOwnersByQueryRequest { denom, pagination }.query(self.querier) + QueryDenomOwnersByQueryRequest { + denom, + pagination, + } + .query(self.querier) } pub fn send_enabled( &self, denoms: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - pagination: ::core::option::Option, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> 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 e9cd3c53..47568213 100644 --- a/packages/injective-std/src/types/cosmos/base/node/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/base/node/v1beta1.rs @@ -1,12 +1,14 @@ -use injective_std_derive::CosmwasmExt; +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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.base.node.v1beta1.ConfigResponse")] pub struct ConfigResponse { #[prost(string, tag = "1")] @@ -24,12 +26,14 @@ pub struct ConfigResponse { } /// StateRequest defines the request structure for the status of a node. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.base.node.v1beta1.StatusRequest")] pub struct StatusRequest {} /// StateResponse defines the response structure for the status of a node. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.base.node.v1beta1.StatusResponse")] pub struct StatusResponse { /// earliest block height available in the store 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 af7312d1..0c243361 100644 --- a/packages/injective-std/src/types/cosmos/base/query/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/base/query/v1beta1.rs @@ -1,4 +1,4 @@ -use injective_std_derive::CosmwasmExt; +use osmosis_std_derive::CosmwasmExt; /// PageRequest is to be embedded in gRPC request messages for efficient /// pagination. Ex: /// @@ -7,8 +7,11 @@ use injective_std_derive::CosmwasmExt; /// PageRequest pagination = 2; /// } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.base.query.v1beta1.PageRequestPageRequestPageRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -52,8 +55,11 @@ pub struct PageRequest { /// PageResponse page = 2; /// } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.base.query.v1beta1.PageResponsePageResponsePageResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 7048c4d3..97b6601c 100644 --- a/packages/injective-std/src/types/cosmos/base/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/base/v1beta1.rs @@ -1,11 +1,12 @@ -use injective_std_derive::CosmwasmExt; +use osmosis_std_derive::CosmwasmExt; /// Coin defines a token with a denomination and an amount. /// /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.base.v1beta1.Coin")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.base.v1beta1.CoinCoinCoin")] pub struct Coin { #[prost(string, tag = "1")] pub denom: ::prost::alloc::string::String, @@ -17,8 +18,9 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.base.v1beta1.DecCoin")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.base.v1beta1.DecCoinDecCoinDecCoin")] pub struct DecCoin { #[prost(string, tag = "1")] pub denom: ::prost::alloc::string::String, @@ -28,8 +30,9 @@ pub struct DecCoin { /// IntProto defines a Protobuf wrapper around an Int object. /// Deprecated: Prefer to use math.Int directly. It supports binary Marshal and Unmarshal. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.base.v1beta1.IntProto")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.base.v1beta1.IntProtoIntProtoIntProto")] pub struct IntProto { #[prost(string, tag = "1")] pub int: ::prost::alloc::string::String, @@ -37,8 +40,9 @@ pub struct IntProto { /// DecProto defines a Protobuf wrapper around a Dec object. /// Deprecated: Prefer to use math.LegacyDec directly. It supports binary Marshal and Unmarshal. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.base.v1beta1.DecProto")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmos.base.v1beta1.DecProtoDecProtoDecProto")] pub struct DecProto { #[prost(string, tag = "1")] pub dec: ::prost::alloc::string::String, 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 5284ed70..29d49653 100644 --- a/packages/injective-std/src/types/cosmos/distribution/module/v1.rs +++ b/packages/injective-std/src/types/cosmos/distribution/module/v1.rs @@ -1,7 +1,8 @@ -use injective_std_derive::CosmwasmExt; +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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 45f5c629..9eaa9c94 100644 --- a/packages/injective-std/src/types/cosmos/distribution/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/distribution/v1beta1.rs @@ -1,7 +1,8 @@ -use injective_std_derive::CosmwasmExt; +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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.distribution.v1beta1.ParamsParams")] pub struct Params { #[prost(string, tag = "1")] @@ -32,11 +33,16 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsValidatorHistoricalRewards")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub cumulative_reward_ratio: ::prost::alloc::vec::Vec< + super::super::base::v1beta1::DecCoin, + >, #[prost(uint32, tag = "2")] #[serde( serialize_with = "crate::serde::as_str::serialize", @@ -48,8 +54,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsValidatorCurrentRewards")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -63,8 +72,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionValidatorAccumulatedCommission")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -72,8 +84,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsValidatorOutstandingRewards")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -83,8 +98,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorSlashEventValidatorSlashEvent")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/cosmos.distribution.v1beta1.ValidatorSlashEventValidatorSlashEvent" +)] pub struct ValidatorSlashEvent { #[prost(uint64, tag = "1")] #[serde( @@ -97,15 +115,19 @@ pub struct ValidatorSlashEvent { } /// ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorSlashEventsValidatorSlashEvents")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.distribution.v1beta1.FeePoolFeePool")] pub struct FeePool { #[prost(message, repeated, tag = "1")] @@ -120,8 +142,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalCommunityPoolSpendProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalCommunityPoolSpendProposal" +)] #[deprecated] pub struct CommunityPoolSpendProposal { #[prost(string, tag = "1")] @@ -140,8 +165,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.DelegatorStartingInfoDelegatorStartingInfo")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/cosmos.distribution.v1beta1.DelegatorStartingInfoDelegatorStartingInfo" +)] pub struct DelegatorStartingInfo { #[prost(uint64, tag = "1")] #[serde( @@ -161,8 +189,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.DelegationDelegatorRewardDelegationDelegatorReward")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -172,8 +203,11 @@ pub struct DelegationDelegatorReward { /// CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal /// with a deposit #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDepositCommunityPoolSpendProposalWithDeposit")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -190,7 +224,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -202,21 +237,29 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub outstanding_rewards: ::prost::alloc::vec::Vec< + super::super::base::v1beta1::DecCoin, + >, } /// ValidatorAccumulatedCommissionRecord is used for import / export via genesis /// json. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -228,8 +271,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -247,7 +293,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -259,7 +306,8 @@ pub struct ValidatorCurrentRewardsRecord { } /// DelegatorStartingInfoRecord used for import / export via genesis json. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -274,7 +322,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -300,7 +349,8 @@ pub struct ValidatorSlashEventRecord { } /// GenesisState defines the distribution module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -320,13 +370,19 @@ 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, + pub validator_accumulated_commissions: ::prost::alloc::vec::Vec< + ValidatorAccumulatedCommissionRecord, + >, /// fee_pool defines the historical rewards of all validators at genesis. #[prost(message, repeated, tag = "7")] - pub validator_historical_rewards: ::prost::alloc::vec::Vec, + pub validator_historical_rewards: ::prost::alloc::vec::Vec< + ValidatorHistoricalRewardsRecord, + >, /// fee_pool defines the current rewards of all validators at genesis. #[prost(message, repeated, tag = "8")] - pub validator_current_rewards: ::prost::alloc::vec::Vec, + pub validator_current_rewards: ::prost::alloc::vec::Vec< + ValidatorCurrentRewardsRecord, + >, /// fee_pool defines the delegator starting infos at genesis. #[prost(message, repeated, tag = "9")] pub delegator_starting_infos: ::prost::alloc::vec::Vec, @@ -336,7 +392,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryParamsRequest")] #[proto_query( path = "/cosmos.distribution.v1beta1.Query/Params", @@ -345,7 +402,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -354,8 +412,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -367,15 +428,20 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub self_bond_rewards: ::prost::alloc::vec::Vec< + super::super::base::v1beta1::DecCoin, + >, /// commission defines the commission the validator received. #[prost(message, repeated, tag = "3")] pub commission: ::prost::alloc::vec::Vec, @@ -383,8 +449,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -397,8 +466,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -406,8 +478,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -420,8 +495,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -430,7 +508,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest")] #[proto_query( path = "/cosmos.distribution.v1beta1.Query/ValidatorSlashes", @@ -456,12 +535,15 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// QueryValidatorSlashesResponse is the response type for the /// Query/ValidatorSlashes RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -469,12 +551,15 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// QueryDelegationRewardsRequest is the request type for the /// Query/DelegationRewards RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest")] #[proto_query( path = "/cosmos.distribution.v1beta1.Query/DelegationRewards", @@ -491,8 +576,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -501,8 +589,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -515,8 +606,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -528,8 +622,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -542,8 +639,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -552,8 +652,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -566,8 +669,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -576,7 +682,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest")] #[proto_query( path = "/cosmos.distribution.v1beta1.Query/CommunityPool", @@ -586,7 +693,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse")] pub struct QueryCommunityPoolResponse { /// pool defines community pool's coins. @@ -596,7 +704,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress")] pub struct MsgSetWithdrawAddress { #[prost(string, tag = "1")] @@ -607,13 +716,15 @@ pub struct MsgSetWithdrawAddress { /// MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response /// type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward")] pub struct MsgWithdrawDelegatorReward { #[prost(string, tag = "1")] @@ -624,8 +735,11 @@ pub struct MsgWithdrawDelegatorReward { /// MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward /// response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -634,8 +748,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -643,8 +760,11 @@ pub struct MsgWithdrawValidatorCommission { /// MsgWithdrawValidatorCommissionResponse defines the /// Msg/WithdrawValidatorCommission response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -653,7 +773,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.distribution.v1beta1.MsgFundCommunityPool")] pub struct MsgFundCommunityPool { #[prost(message, repeated, tag = "1")] @@ -663,14 +784,16 @@ pub struct MsgFundCommunityPool { } /// MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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). @@ -687,7 +810,8 @@ pub struct MsgUpdateParams { /// /// Since: cosmos-sdk 0.47 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -696,7 +820,8 @@ pub struct MsgUpdateParamsResponse {} /// /// Since: cosmos-sdk 0.47 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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). @@ -712,7 +837,8 @@ pub struct MsgCommunityPoolSpend { /// /// Since: cosmos-sdk 0.47 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse")] pub struct MsgCommunityPoolSpendResponse {} /// DepositValidatorRewardsPool defines the request structure to provide @@ -720,8 +846,11 @@ pub struct MsgCommunityPoolSpendResponse {} /// /// Since: cosmos-sdk 0.50 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool" +)] pub struct MsgDepositValidatorRewardsPool { #[prost(string, tag = "1")] pub depositor: ::prost::alloc::string::String, @@ -735,8 +864,11 @@ pub struct MsgDepositValidatorRewardsPool { /// /// Since: cosmos-sdk 0.50 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse" +)] pub struct MsgDepositValidatorRewardsPoolResponse {} pub struct DistributionQuerier<'a, Q: cosmwasm_std::CustomQuery> { querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>, @@ -752,26 +884,37 @@ 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, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> Result { QueryValidatorSlashesRequest { validator_address, @@ -779,7 +922,7 @@ impl<'a, Q: cosmwasm_std::CustomQuery> DistributionQuerier<'a, Q> { ending_height, pagination, } - .query(self.querier) + .query(self.querier) } pub fn delegation_rewards( &self, @@ -790,27 +933,38 @@ 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 e4400590..9f4618fc 100644 --- a/packages/injective-std/src/types/cosmos/feegrant/module/v1.rs +++ b/packages/injective-std/src/types/cosmos/feegrant/module/v1.rs @@ -1,6 +1,7 @@ -use injective_std_derive::CosmwasmExt; +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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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 2f14929e..4fa5ba82 100644 --- a/packages/injective-std/src/types/cosmos/feegrant/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/feegrant/v1beta1.rs @@ -1,8 +1,9 @@ -use injective_std_derive::CosmwasmExt; +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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -17,7 +18,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.feegrant.v1beta1.PeriodicAllowance")] pub struct PeriodicAllowance { /// basic specifies a struct of `BasicAllowance` @@ -42,7 +44,8 @@ pub struct PeriodicAllowance { } /// AllowedMsgAllowance creates allowance only for specified message types. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -54,7 +57,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -69,7 +73,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.feegrant.v1beta1.GenesisState")] pub struct GenesisState { #[prost(message, repeated, tag = "1")] @@ -77,7 +82,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.feegrant.v1beta1.QueryAllowanceRequest")] #[proto_query( path = "/cosmos.feegrant.v1beta1.Query/Allowance", @@ -93,7 +99,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -102,7 +109,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.feegrant.v1beta1.QueryAllowancesRequest")] #[proto_query( path = "/cosmos.feegrant.v1beta1.Query/Allowances", @@ -113,11 +121,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// QueryAllowancesResponse is the response type for the Query/Allowances RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -125,13 +136,16 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest")] #[proto_query( path = "/cosmos.feegrant.v1beta1.Query/AllowancesByGranter", @@ -142,13 +156,16 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -156,12 +173,15 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -176,12 +196,14 @@ pub struct MsgGrantAllowance { } /// MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -193,14 +215,16 @@ pub struct MsgRevokeAllowance { } /// MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse")] pub struct MsgRevokeAllowanceResponse {} /// MsgPruneAllowances prunes expired fee allowances. /// /// Since cosmos-sdk 0.50 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.feegrant.v1beta1.MsgPruneAllowances")] pub struct MsgPruneAllowances { /// pruner is the address of the user pruning expired allowances. @@ -211,7 +235,8 @@ pub struct MsgPruneAllowances { /// /// Since cosmos-sdk 0.50 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse")] pub struct MsgPruneAllowancesResponse {} pub struct FeegrantQuerier<'a, Q: cosmwasm_std::CustomQuery> { @@ -226,20 +251,36 @@ 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, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> 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, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> 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 a273e5ed..ebe67598 100644 --- a/packages/injective-std/src/types/cosmos/gov/module/v1.rs +++ b/packages/injective-std/src/types/cosmos/gov/module/v1.rs @@ -1,7 +1,8 @@ -use injective_std_derive::CosmwasmExt; +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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 ee6742a6..43c98d80 100644 --- a/packages/injective-std/src/types/cosmos/gov/v1.rs +++ b/packages/injective-std/src/types/cosmos/gov/v1.rs @@ -1,7 +1,8 @@ -use injective_std_derive::CosmwasmExt; +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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -18,7 +19,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -38,7 +40,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -112,7 +115,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -131,7 +135,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -155,7 +160,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.DepositParams")] #[deprecated] pub struct DepositParams { @@ -169,7 +175,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.VotingParams")] #[deprecated] pub struct VotingParams { @@ -179,7 +186,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.TallyParams")] #[deprecated] pub struct TallyParams { @@ -199,7 +207,8 @@ pub struct TallyParams { /// /// Since: cosmos-sdk 0.47 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -249,7 +258,9 @@ pub struct Params { pub expedited_threshold: ::prost::alloc::string::String, /// Minimum expedited deposit for a proposal to enter voting period. #[prost(message, repeated, tag = "12")] - pub expedited_min_deposit: ::prost::alloc::vec::Vec, + pub expedited_min_deposit: ::prost::alloc::vec::Vec< + super::super::base::v1beta1::Coin, + >, /// burn deposits if a proposal does not meet quorum #[prost(bool, tag = "13")] pub burn_vote_quorum: bool, @@ -362,7 +373,8 @@ impl ProposalStatus { } /// GenesisState defines the gov module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -413,7 +425,8 @@ pub struct GenesisState { } /// QueryConstitutionRequest is the request type for the Query/Constitution RPC method #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.QueryConstitutionRequest")] #[proto_query( path = "/cosmos.gov.v1.Query/Constitution", @@ -422,7 +435,8 @@ pub struct GenesisState { pub struct QueryConstitutionRequest {} /// QueryConstitutionResponse is the response type for the Query/Constitution RPC method #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.QueryConstitutionResponse")] pub struct QueryConstitutionResponse { #[prost(string, tag = "1")] @@ -430,7 +444,8 @@ pub struct QueryConstitutionResponse { } /// QueryProposalRequest is the request type for the Query/Proposal RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.QueryProposalRequest")] #[proto_query( path = "/cosmos.gov.v1.Query/Proposal", @@ -448,7 +463,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.QueryProposalResponse")] pub struct QueryProposalResponse { /// proposal is the requested governance proposal. @@ -457,7 +473,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.QueryProposalsRequest")] #[proto_query( path = "/cosmos.gov.v1.Query/Proposals", @@ -479,12 +496,15 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// QueryProposalsResponse is the response type for the Query/Proposals RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -492,11 +512,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// QueryVoteRequest is the request type for the Query/Vote RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 { @@ -514,7 +537,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.QueryVoteResponse")] pub struct QueryVoteResponse { /// vote defines the queried vote. @@ -523,7 +547,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 { @@ -537,11 +562,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// QueryVotesResponse is the response type for the Query/Votes RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.QueryVotesResponse")] pub struct QueryVotesResponse { /// votes defines the queried votes. @@ -549,11 +577,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// QueryParamsRequest is the request type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 { @@ -564,7 +595,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.QueryParamsResponse")] pub struct QueryParamsResponse { /// Deprecated: Prefer to use `params` instead. @@ -590,7 +622,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.QueryDepositRequest")] #[proto_query( path = "/cosmos.gov.v1.Query/Deposit", @@ -611,7 +644,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.QueryDepositResponse")] pub struct QueryDepositResponse { /// deposit defines the requested deposit. @@ -620,7 +654,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.QueryDepositsRequest")] #[proto_query( path = "/cosmos.gov.v1.Query/Deposits", @@ -637,11 +672,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// QueryDepositsResponse is the response type for the Query/Deposits RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.QueryDepositsResponse")] pub struct QueryDepositsResponse { /// deposits defines the requested deposits. @@ -649,11 +687,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// QueryTallyResultRequest is the request type for the Query/Tally RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.QueryTallyResultRequest")] #[proto_query( path = "/cosmos.gov.v1.Query/TallyResult", @@ -671,7 +712,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.QueryTallyResultResponse")] pub struct QueryTallyResultResponse { /// tally defines the requested tally. @@ -681,7 +723,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -714,7 +757,8 @@ pub struct MsgSubmitProposal { } /// MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -729,7 +773,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.MsgExecLegacyContent")] pub struct MsgExecLegacyContent { /// content is the proposal's content. @@ -741,12 +786,14 @@ pub struct MsgExecLegacyContent { } /// MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -773,12 +820,14 @@ pub struct MsgVote { } /// MsgVoteResponse defines the Msg/Vote response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -801,12 +850,14 @@ pub struct MsgVoteWeighted { } /// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -826,14 +877,16 @@ pub struct MsgDeposit { } /// MsgDepositResponse defines the Msg/Deposit response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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). @@ -850,14 +903,16 @@ pub struct MsgUpdateParams { /// /// Since: cosmos-sdk 0.47 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} /// MsgCancelProposal is the Msg/CancelProposal request type. /// /// Since: cosmos-sdk 0.50 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.MsgCancelProposal")] pub struct MsgCancelProposal { /// proposal_id defines the unique id of the proposal. @@ -877,7 +932,8 @@ pub struct MsgCancelProposal { /// /// Since: cosmos-sdk 0.50 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1.MsgCancelProposalResponse")] pub struct MsgCancelProposalResponse { /// proposal_id defines the unique id of the proposal. @@ -906,18 +962,28 @@ impl<'a, Q: cosmwasm_std::CustomQuery> GovQuerier<'a, Q> { pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self { Self { querier } } - pub fn constitution(&self) -> Result { + pub fn constitution( + &self, + ) -> Result { QueryConstitutionRequest {}.query(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, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> Result { QueryProposalsRequest { proposal_status, @@ -925,32 +991,69 @@ 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, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> 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, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> 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 095a4b15..71e80eb6 100644 --- a/packages/injective-std/src/types/cosmos/gov/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/gov/v1beta1.rs @@ -1,9 +1,10 @@ -use injective_std_derive::CosmwasmExt; +use osmosis_std_derive::CosmwasmExt; /// WeightedVoteOption defines a unit of vote for vote split. /// /// Since: cosmos-sdk 0.43 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -20,7 +21,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.TextProposal")] pub struct TextProposal { /// title of the proposal. @@ -33,7 +35,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -53,7 +56,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -97,7 +101,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -116,7 +121,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -148,7 +154,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -161,7 +168,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.VotingParams")] pub struct VotingParams { /// Duration of the voting period. @@ -170,7 +178,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -280,7 +289,8 @@ impl ProposalStatus { } /// GenesisState defines the gov module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -312,7 +322,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.QueryProposalRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/Proposal", @@ -330,7 +341,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.QueryProposalResponse")] pub struct QueryProposalResponse { #[prost(message, optional, tag = "1")] @@ -338,7 +350,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.QueryProposalsRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/Proposals", @@ -360,12 +373,15 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// QueryProposalsResponse is the response type for the Query/Proposals RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -373,11 +389,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// QueryVoteRequest is the request type for the Query/Vote RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.QueryVoteRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/Vote", @@ -398,7 +417,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.QueryVoteResponse")] pub struct QueryVoteResponse { /// vote defines the queried vote. @@ -407,7 +427,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.QueryVotesRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/Votes", @@ -424,11 +445,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// QueryVotesResponse is the response type for the Query/Votes RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.QueryVotesResponse")] pub struct QueryVotesResponse { /// votes defines the queried votes. @@ -436,11 +460,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// QueryParamsRequest is the request type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.QueryParamsRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/Params", @@ -454,7 +481,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -469,7 +497,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.QueryDepositRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/Deposit", @@ -490,7 +519,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.QueryDepositResponse")] pub struct QueryDepositResponse { /// deposit defines the requested deposit. @@ -499,7 +529,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.QueryDepositsRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/Deposits", @@ -516,11 +547,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, } /// QueryDepositsResponse is the response type for the Query/Deposits RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.QueryDepositsResponse")] pub struct QueryDepositsResponse { /// deposits defines the requested deposits. @@ -528,11 +562,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageResponse, + >, } /// QueryTallyResultRequest is the request type for the Query/Tally RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.QueryTallyResultRequest")] #[proto_query( path = "/cosmos.gov.v1beta1.Query/TallyResult", @@ -550,7 +587,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.QueryTallyResultResponse")] pub struct QueryTallyResultResponse { /// tally defines the requested tally. @@ -560,7 +598,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.gov.v1beta1.MsgSubmitProposal")] pub struct MsgSubmitProposal { /// content is the proposal's content. @@ -575,7 +614,8 @@ pub struct MsgSubmitProposal { } /// MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -589,7 +629,8 @@ pub struct MsgSubmitProposalResponse { } /// MsgVote defines a message to cast a vote. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -613,14 +654,16 @@ pub struct MsgVote { } /// MsgVoteResponse defines the Msg/Vote response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -642,12 +685,14 @@ pub struct MsgVoteWeighted { /// /// Since: cosmos-sdk 0.43 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -667,7 +712,8 @@ pub struct MsgDeposit { } /// MsgDepositResponse defines the Msg/Deposit response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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> { @@ -677,15 +723,23 @@ 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, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> Result { QueryProposalsRequest { proposal_status, @@ -693,32 +747,69 @@ 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, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> 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, + pagination: ::core::option::Option< + super::super::base::query::v1beta1::PageRequest, + >, ) -> 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 1e91e960..0188b1be 100644 --- a/packages/injective-std/src/types/cosmos/params/module/v1.rs +++ b/packages/injective-std/src/types/cosmos/params/module/v1.rs @@ -1,6 +1,7 @@ -use injective_std_derive::CosmwasmExt; +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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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 514e40dc..2898e05a 100644 --- a/packages/injective-std/src/types/cosmos/params/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/params/v1beta1.rs @@ -1,7 +1,8 @@ -use injective_std_derive::CosmwasmExt; +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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.params.v1beta1.ParameterChangeProposal")] pub struct ParameterChangeProposal { #[prost(string, tag = "1")] @@ -14,7 +15,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.params.v1beta1.ParamChange")] pub struct ParamChange { #[prost(string, tag = "1")] @@ -26,7 +28,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.params.v1beta1.QueryParamsRequest")] #[proto_query( path = "/cosmos.params.v1beta1.Query/Params", @@ -42,7 +45,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.params.v1beta1.QueryParamsResponse")] pub struct QueryParamsResponse { /// param defines the queried parameter. @@ -54,7 +58,8 @@ pub struct QueryParamsResponse { /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.params.v1beta1.QuerySubspacesRequest")] #[proto_query( path = "/cosmos.params.v1beta1.Query/Subspaces", @@ -66,7 +71,8 @@ pub struct QuerySubspacesRequest {} /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.params.v1beta1.QuerySubspacesResponse")] pub struct QuerySubspacesResponse { #[prost(message, repeated, tag = "1")] @@ -77,7 +83,8 @@ pub struct QuerySubspacesResponse { /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.params.v1beta1.Subspace")] pub struct Subspace { #[prost(string, tag = "1")] @@ -97,7 +104,11 @@ 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 1d966588..418053a6 100644 --- a/packages/injective-std/src/types/cosmos/staking/v1beta1.rs +++ b/packages/injective-std/src/types/cosmos/staking/v1beta1.rs @@ -1,4 +1,4 @@ -use injective_std_derive::CosmwasmExt; +use osmosis_std_derive::CosmwasmExt; /// NOTE: The following type is not implemented due to current limitations of code generator /// which currently has issue with tendermint_proto. /// This will be fixed in the upcoming release. @@ -7,7 +7,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -22,7 +23,8 @@ pub struct CommissionRates { } /// Commission defines commission parameters for a given validator. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -34,7 +36,8 @@ pub struct Commission { } /// Description defines a validator description. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -62,7 +65,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -122,7 +126,8 @@ pub struct Validator { } /// ValAddresses defines a repeated set of validator addresses. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.ValAddresses")] pub struct ValAddresses { #[prost(string, repeated, tag = "1")] @@ -132,7 +137,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.DVPair")] pub struct DvPair { #[prost(string, tag = "1")] @@ -142,7 +148,8 @@ pub struct DvPair { } /// DVPairs defines an array of DVPair objects. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.DVPairs")] pub struct DvPairs { #[prost(message, repeated, tag = "1")] @@ -153,7 +160,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.DVVTriplet")] pub struct DvvTriplet { #[prost(string, tag = "1")] @@ -165,7 +173,8 @@ pub struct DvvTriplet { } /// DVVTriplets defines an array of DVVTriplet objects. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.DVVTriplets")] pub struct DvvTriplets { #[prost(message, repeated, tag = "1")] @@ -175,7 +184,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.Delegation")] pub struct Delegation { /// delegator_address is the encoded address of the delegator. @@ -191,7 +201,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.UnbondingDelegation")] pub struct UnbondingDelegation { /// delegator_address is the encoded address of the delegator. @@ -208,7 +219,8 @@ pub struct UnbondingDelegation { } /// UnbondingDelegationEntry defines an unbonding object with relevant metadata. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -245,7 +257,8 @@ pub struct UnbondingDelegationEntry { } /// RedelegationEntry defines a redelegation object with relevant metadata. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -283,7 +296,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -303,7 +317,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -340,7 +355,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.DelegationResponse")] pub struct DelegationResponse { #[prost(message, optional, tag = "1")] @@ -352,7 +368,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.RedelegationEntryResponse")] pub struct RedelegationEntryResponse { #[prost(message, optional, tag = "1")] @@ -364,7 +381,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.RedelegationResponse")] pub struct RedelegationResponse { #[prost(message, optional, tag = "1")] @@ -375,7 +393,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.Pool")] pub struct Pool { #[prost(string, tag = "1")] @@ -462,7 +481,8 @@ impl Infraction { } /// GenesisState defines the staking module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -494,7 +514,8 @@ pub struct GenesisState { } /// LastValidatorPower required for validator set update logic. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -510,7 +531,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.MsgCreateValidator")] pub struct MsgCreateValidator { #[prost(message, optional, tag = "1")] @@ -534,12 +556,14 @@ pub struct MsgCreateValidator { } /// MsgCreateValidatorResponse defines the Msg/CreateValidator response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.MsgEditValidator")] pub struct MsgEditValidator { #[prost(message, optional, tag = "1")] @@ -557,13 +581,15 @@ pub struct MsgEditValidator { } /// MsgEditValidatorResponse defines the Msg/EditValidator response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.MsgDelegate")] pub struct MsgDelegate { #[prost(string, tag = "1")] @@ -575,13 +601,15 @@ pub struct MsgDelegate { } /// MsgDelegateResponse defines the Msg/Delegate response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.MsgBeginRedelegate")] pub struct MsgBeginRedelegate { #[prost(string, tag = "1")] @@ -595,7 +623,8 @@ pub struct MsgBeginRedelegate { } /// MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse")] pub struct MsgBeginRedelegateResponse { #[prost(message, optional, tag = "1")] @@ -604,7 +633,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.MsgUndelegate")] pub struct MsgUndelegate { #[prost(string, tag = "1")] @@ -616,7 +646,8 @@ pub struct MsgUndelegate { } /// MsgUndelegateResponse defines the Msg/Undelegate response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.MsgUndelegateResponse")] pub struct MsgUndelegateResponse { #[prost(message, optional, tag = "1")] @@ -631,7 +662,8 @@ pub struct MsgUndelegateResponse { /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation")] pub struct MsgCancelUnbondingDelegation { #[prost(string, tag = "1")] @@ -653,14 +685,18 @@ pub struct MsgCancelUnbondingDelegation { /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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). @@ -677,6 +713,7 @@ pub struct MsgUpdateParams { /// /// Since: cosmos-sdk 0.47 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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 80265b17..882d4ac7 100644 --- a/packages/injective-std/src/types/cosmwasm/wasm/v1.rs +++ b/packages/injective-std/src/types/cosmwasm/wasm/v1.rs @@ -1,7 +1,8 @@ -use injective_std_derive::CosmwasmExt; +use osmosis_std_derive::CosmwasmExt; /// AccessTypeParam #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.AccessTypeParamAccessTypeParam")] pub struct AccessTypeParam { #[prost(enumeration = "AccessType", tag = "1")] @@ -13,7 +14,8 @@ pub struct AccessTypeParam { } /// AccessConfig access control type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.AccessConfigAccessConfig")] pub struct AccessConfig { #[prost(enumeration = "AccessType", tag = "1")] @@ -27,7 +29,8 @@ pub struct AccessConfig { } /// Params defines the set of wasm parameters. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.ParamsParams")] pub struct Params { #[prost(message, optional, tag = "1")] @@ -41,7 +44,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -56,7 +60,8 @@ pub struct CodeInfo { } /// ContractInfo stores a WASM contract instance #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -89,8 +94,11 @@ pub struct ContractInfo { } /// ContractCodeHistoryEntry metadata to a contract. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmwasm.wasm.v1.ContractCodeHistoryEntryContractCodeHistoryEntry")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/cosmwasm.wasm.v1.ContractCodeHistoryEntryContractCodeHistoryEntry" +)] pub struct ContractCodeHistoryEntry { #[prost(enumeration = "ContractCodeHistoryOperationType", tag = "1")] #[serde( @@ -115,7 +123,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -136,7 +145,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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) @@ -146,6 +156,86 @@ pub struct Model { #[prost(bytes = "vec", tag = "2")] pub value: ::prost::alloc::vec::Vec, } +/// EventCodeStored is emitted when contract code is checked and stored +#[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.EventCodeStored")] +pub struct EventCodeStored { + /// CodeID is the reference to the stored Wasm code + #[prost(uint64, tag = "1")] + #[serde(alias = "codeID")] + #[serde( + serialize_with = "crate::serde::as_str::serialize", + deserialize_with = "crate::serde::as_str::deserialize" + )] + pub code_id: u64, + /// Creator address who initially stored the code + #[prost(string, tag = "2")] + pub creator: ::prost::alloc::string::String, + #[prost(message, optional, tag = "3")] + pub access_config: ::core::option::Option, + #[prost(bytes = "vec", tag = "4")] + pub checksum: ::prost::alloc::vec::Vec, +} +/// EventContractInstantiated is emitted when contract is instantiated +#[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.EventContractInstantiated")] +pub struct EventContractInstantiated { + #[prost(string, tag = "1")] + pub contract_address: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub admin: ::prost::alloc::string::String, + #[prost(uint64, tag = "3")] + #[serde(alias = "codeID")] + #[serde( + serialize_with = "crate::serde::as_str::serialize", + deserialize_with = "crate::serde::as_str::deserialize" + )] + pub code_id: u64, + /// Funds coins that are transferred to the contract on instantiation + #[prost(message, repeated, tag = "4")] + pub funds: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, + #[prost(bytes = "vec", tag = "5")] + pub msg: ::prost::alloc::vec::Vec, + #[prost(string, tag = "6")] + pub label: ::prost::alloc::string::String, + #[prost(string, tag = "7")] + pub creator: ::prost::alloc::string::String, +} +/// EventContractMigrated is emitted when a contract get migrated to another code +#[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.EventContractMigrated")] +pub struct EventContractMigrated { + #[prost(uint64, tag = "1")] + #[serde(alias = "codeID")] + #[serde( + serialize_with = "crate::serde::as_str::serialize", + deserialize_with = "crate::serde::as_str::deserialize" + )] + pub code_id: u64, + #[prost(string, tag = "2")] + pub contract_address: ::prost::alloc::string::String, + #[prost(bytes = "vec", tag = "3")] + pub msg: ::prost::alloc::vec::Vec, +} +/// EventContractAdminSet is emitted when new admin is set +#[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.EventContractAdminSet")] +pub struct EventContractAdminSet { + #[prost(string, tag = "1")] + pub contract_address: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub new_admin: ::prost::alloc::string::String, +} /// AccessType permission types #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] @@ -205,10 +295,18 @@ 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. @@ -225,7 +323,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.StoreCodeAuthorization")] pub struct StoreCodeAuthorization { /// Grants for code upload @@ -235,7 +334,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.ContractExecutionAuthorization")] pub struct ContractExecutionAuthorization { /// Grants for contract executions @@ -245,7 +345,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.ContractMigrationAuthorization")] pub struct ContractMigrationAuthorization { /// Grants for contract migrations @@ -254,7 +355,8 @@ pub struct ContractMigrationAuthorization { } /// CodeGrant a granted permission for a single code #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -270,7 +372,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -289,7 +392,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -303,18 +407,22 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub amounts: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -326,20 +434,24 @@ 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, + pub amounts: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -350,7 +462,8 @@ pub struct AcceptedMessageKeysFilter { /// executed. /// Since: wasmd 0.30 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -359,7 +472,8 @@ pub struct AcceptedMessagesFilter { } /// GenesisState - genesis state of x/wasm #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.GenesisState")] pub struct GenesisState { #[prost(message, optional, tag = "1")] @@ -373,7 +487,8 @@ pub struct GenesisState { } /// Code struct encompasses CodeInfo and CodeBytes #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.Code")] pub struct Code { #[prost(uint64, tag = "1")] @@ -393,7 +508,8 @@ pub struct Code { } /// Contract struct encompasses ContractAddress, ContractInfo, and ContractState #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.Contract")] pub struct Contract { #[prost(string, tag = "1")] @@ -407,7 +523,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.Sequence")] pub struct Sequence { #[prost(bytes = "vec", tag = "1")] @@ -421,7 +538,8 @@ pub struct Sequence { } /// MsgIBCSend #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -450,7 +568,8 @@ pub struct MsgIbcSend { } /// MsgIBCSendResponse #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -461,9 +580,16 @@ pub struct MsgIbcSendResponse { )] pub sequence: u64, } +/// MsgIBCWriteAcknowledgementResponse +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgIBCWriteAcknowledgementResponse")] +pub struct MsgIbcWriteAcknowledgementResponse {} /// MsgIBCCloseChannel port and channel need to be owned by the contract #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.MsgIBCCloseChannel")] pub struct MsgIbcCloseChannel { #[prost(string, tag = "2")] @@ -474,7 +600,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.StoreCodeProposalStoreCodeProposal")] #[deprecated] pub struct StoreCodeProposal { @@ -513,8 +640,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmwasm.wasm.v1.InstantiateContractProposalInstantiateContractProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/cosmwasm.wasm.v1.InstantiateContractProposalInstantiateContractProposal" +)] #[deprecated] pub struct InstantiateContractProposal { /// Title is a short summary @@ -545,15 +675,20 @@ 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, + pub funds: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmwasm.wasm.v1.InstantiateContract2ProposalInstantiateContract2Proposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/cosmwasm.wasm.v1.InstantiateContract2ProposalInstantiateContract2Proposal" +)] #[deprecated] pub struct InstantiateContract2Proposal { /// Title is a short summary @@ -584,7 +719,9 @@ 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, + pub funds: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, /// 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, @@ -598,8 +735,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmwasm.wasm.v1.MigrateContractProposalMigrateContractProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/cosmwasm.wasm.v1.MigrateContractProposalMigrateContractProposal" +)] #[deprecated] pub struct MigrateContractProposal { /// Title is a short summary @@ -630,7 +770,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.SudoContractProposalSudoContractProposal")] #[deprecated] pub struct SudoContractProposal { @@ -652,8 +793,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmwasm.wasm.v1.ExecuteContractProposalExecuteContractProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/cosmwasm.wasm.v1.ExecuteContractProposalExecuteContractProposal" +)] #[deprecated] pub struct ExecuteContractProposal { /// Title is a short summary @@ -673,14 +817,17 @@ 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, + pub funds: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.UpdateAdminProposalUpdateAdminProposal")] #[deprecated] pub struct UpdateAdminProposal { @@ -702,7 +849,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.ClearAdminProposalClearAdminProposal")] #[deprecated] pub struct ClearAdminProposal { @@ -721,7 +869,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.PinCodesProposalPinCodesProposal")] #[deprecated] pub struct PinCodesProposal { @@ -741,7 +890,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.UnpinCodesProposalUnpinCodesProposal")] #[deprecated] pub struct UnpinCodesProposal { @@ -759,7 +909,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -779,8 +930,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposalUpdateInstantiateConfigProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposalUpdateInstantiateConfigProposal" +)] #[deprecated] pub struct UpdateInstantiateConfigProposal { /// Title is a short summary @@ -799,8 +953,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposalStoreAndInstantiateContractProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposalStoreAndInstantiateContractProposal" +)] #[deprecated] pub struct StoreAndInstantiateContractProposal { /// Title is a short summary @@ -832,7 +989,9 @@ 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, + pub funds: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, /// Source is the URL where the code is hosted #[prost(string, tag = "11")] pub source: ::prost::alloc::string::String, @@ -848,7 +1007,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.QueryContractInfoRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/ContractInfo", @@ -862,7 +1022,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -874,7 +1035,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.QueryContractHistoryRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/ContractHistory", @@ -886,24 +1048,30 @@ 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, + pub pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageRequest, + >, } /// QueryContractHistoryResponse is the response type for the /// Query/ContractHistory RPC method #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageResponse, + >, } /// QueryContractsByCodeRequest is the request type for the Query/ContractsByCode /// RPC method #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.QueryContractsByCodeRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/ContractsByCode", @@ -920,12 +1088,15 @@ 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, + pub pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageRequest, + >, } /// QueryContractsByCodeResponse is the response type for the /// Query/ContractsByCode RPC method #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -933,12 +1104,15 @@ 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, + pub pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageResponse, + >, } /// QueryAllContractStateRequest is the request type for the /// Query/AllContractState RPC method #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.QueryAllContractStateRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/AllContractState", @@ -950,24 +1124,30 @@ 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, + pub pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageRequest, + >, } /// QueryAllContractStateResponse is the response type for the /// Query/AllContractState RPC method #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageResponse, + >, } /// QueryRawContractStateRequest is the request type for the /// Query/RawContractState RPC method #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.QueryRawContractStateRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/RawContractState", @@ -983,7 +1163,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.QueryRawContractStateResponse")] pub struct QueryRawContractStateResponse { /// Data contains the raw store data @@ -993,7 +1174,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.QuerySmartContractStateRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/SmartContractState", @@ -1010,7 +1192,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1019,7 +1202,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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 { @@ -1034,7 +1218,8 @@ pub struct QueryCodeRequest { } /// CodeInfoResponse contains code meta data from CodeInfo #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.CodeInfoResponse")] pub struct CodeInfoResponse { /// id for legacy support @@ -1054,7 +1239,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.QueryCodeResponse")] pub struct QueryCodeResponse { #[prost(message, optional, tag = "1")] @@ -1064,7 +1250,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.QueryCodesRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/Codes", @@ -1073,23 +1260,29 @@ pub struct QueryCodeResponse { pub struct QueryCodesRequest { /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "1")] - pub pagination: ::core::option::Option, + pub pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageRequest, + >, } /// QueryCodesResponse is the response type for the Query/Codes RPC method #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageResponse, + >, } /// QueryPinnedCodesRequest is the request type for the Query/PinnedCodes /// RPC method #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.QueryPinnedCodesRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/PinnedCodes", @@ -1098,12 +1291,15 @@ pub struct QueryCodesResponse { pub struct QueryPinnedCodesRequest { /// pagination defines an optional pagination for the request. #[prost(message, optional, tag = "2")] - pub pagination: ::core::option::Option, + pub pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageRequest, + >, } /// QueryPinnedCodesResponse is the response type for the /// Query/PinnedCodes RPC method #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -1111,11 +1307,14 @@ 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, + pub pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageResponse, + >, } /// QueryParamsRequest is the request type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.QueryParamsRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/Params", @@ -1124,7 +1323,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -1134,7 +1334,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.QueryContractsByCreatorRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/ContractsByCreator", @@ -1146,12 +1347,15 @@ 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, + pub pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageRequest, + >, } /// QueryContractsByCreatorResponse is the response type for the /// Query/ContractsByCreator RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.QueryContractsByCreatorResponse")] pub struct QueryContractsByCreatorResponse { /// ContractAddresses result set @@ -1159,12 +1363,15 @@ 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, + pub pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageResponse, + >, } /// QueryBuildAddressRequest is the request type for the Query/BuildAddress RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.QueryBuildAddressRequest")] #[proto_query( path = "/cosmwasm.wasm.v1.Query/BuildAddress", @@ -1188,7 +1395,8 @@ pub struct QueryBuildAddressRequest { /// QueryBuildAddressResponse is the response type for the Query/BuildAddress RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.QueryBuildAddressResponse")] pub struct QueryBuildAddressResponse { /// Address is the contract address @@ -1197,7 +1405,8 @@ pub struct QueryBuildAddressResponse { } /// MsgStoreCode submit Wasm code to the system #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1213,7 +1422,8 @@ pub struct MsgStoreCode { } /// MsgStoreCodeResponse returns store result data. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1231,7 +1441,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1256,11 +1467,14 @@ 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, + pub funds: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, } /// MsgInstantiateContractResponse return instantiation result data #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -1273,7 +1487,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1298,7 +1513,9 @@ 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, + pub funds: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, /// 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, @@ -1309,7 +1526,8 @@ pub struct MsgInstantiateContract2 { } /// MsgInstantiateContract2Response return instantiation result data #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -1321,7 +1539,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1335,11 +1554,14 @@ 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, + pub funds: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, } /// MsgExecuteContractResponse returns execution result data. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1348,7 +1570,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1371,7 +1594,8 @@ pub struct MsgMigrateContract { } /// MsgMigrateContractResponse returns contract migration result data. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -1381,7 +1605,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1396,12 +1621,14 @@ pub struct MsgUpdateAdmin { } /// MsgUpdateAdminResponse returns empty data #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1413,12 +1640,14 @@ pub struct MsgClearAdmin { } /// MsgClearAdminResponse returns empty data #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1438,14 +1667,16 @@ pub struct MsgUpdateInstantiateConfig { } /// MsgUpdateInstantiateConfigResponse returns empty data #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -1462,14 +1693,16 @@ pub struct MsgUpdateParams { /// /// Since: 0.40 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -1487,7 +1720,8 @@ pub struct MsgSudoContract { /// /// Since: 0.40 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1498,7 +1732,8 @@ pub struct MsgSudoContractResponse { /// /// Since: 0.40 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -1514,14 +1749,16 @@ pub struct MsgPinCodes { /// /// Since: 0.40 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -1537,7 +1774,8 @@ pub struct MsgUnpinCodes { /// /// Since: 0.40 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/cosmwasm.wasm.v1.MsgUnpinCodesResponse")] pub struct MsgUnpinCodesResponse {} /// MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract @@ -1545,7 +1783,8 @@ pub struct MsgUnpinCodesResponse {} /// /// Since: 0.40 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -1573,7 +1812,9 @@ 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, + pub funds: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, /// Source is the URL where the code is hosted #[prost(string, tag = "10")] pub source: ::prost::alloc::string::String, @@ -1591,7 +1832,8 @@ pub struct MsgStoreAndInstantiateContract { /// /// Since: 0.40 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -1604,7 +1846,8 @@ pub struct MsgStoreAndInstantiateContractResponse { /// MsgAddCodeUploadParamsAddresses is the /// MsgAddCodeUploadParamsAddresses request type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -1616,13 +1859,15 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -1634,15 +1879,19 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -1666,7 +1915,8 @@ pub struct MsgStoreAndMigrateContract { /// /// Since: 0.42 #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1686,7 +1936,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1701,7 +1952,8 @@ pub struct MsgUpdateContractLabel { } /// MsgUpdateContractLabelResponse returns empty data #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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> { @@ -1711,58 +1963,100 @@ 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, + pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageRequest, + >, ) -> 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, + pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageRequest, + >, ) -> 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, + pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageRequest, + >, ) -> 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, + pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageRequest, + >, ) -> Result { QueryCodesRequest { pagination }.query(self.querier) } pub fn pinned_codes( &self, - pagination: ::core::option::Option, + pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageRequest, + >, ) -> Result { - QueryPinnedCodesRequest { pagination }.query(self.querier) + QueryPinnedCodesRequest { + pagination, + } + .query(self.querier) } pub fn params(&self) -> Result { QueryParamsRequest {}.query(self.querier) @@ -1770,9 +2064,15 @@ 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, + pagination: ::core::option::Option< + super::super::super::cosmos::base::query::v1beta1::PageRequest, + >, ) -> Result { - QueryContractsByCreatorRequest { creator_address, pagination }.query(self.querier) + QueryContractsByCreatorRequest { + creator_address, + pagination, + } + .query(self.querier) } pub fn build_address( &self, @@ -1787,6 +2087,6 @@ impl<'a, Q: cosmwasm_std::CustomQuery> WasmQuerier<'a, Q> { salt, init_args, } - .query(self.querier) + .query(self.querier) } } diff --git a/packages/injective-std/src/types/injective/auction/mod.rs b/packages/injective-std/src/types/injective/auction/mod.rs index af03bfd7..9f64fc82 100644 --- a/packages/injective-std/src/types/injective/auction/mod.rs +++ b/packages/injective-std/src/types/injective/auction/mod.rs @@ -1,2 +1 @@ -#![allow(non_snake_case)] pub mod v1beta1; diff --git a/packages/injective-std/src/types/injective/auction/v1beta1.rs b/packages/injective-std/src/types/injective/auction/v1beta1.rs index 7b3f9bf7..fe657f55 100644 --- a/packages/injective-std/src/types/injective/auction/v1beta1.rs +++ b/packages/injective-std/src/types/injective/auction/v1beta1.rs @@ -1,6 +1,7 @@ -use injective_std_derive::CosmwasmExt; +use osmosis_std_derive::CosmwasmExt; #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -13,32 +14,31 @@ pub struct Params { /// min_next_bid_increment_rate defines the minimum increment rate for new bids #[prost(string, tag = "2")] pub min_next_bid_increment_rate: ::prost::alloc::string::String, + /// inj_basket_max_cap defines the maximum cap for INJ contained in an auction basket + #[prost(string, tag = "3")] + pub inj_basket_max_cap: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.auction.v1beta1.Bid")] pub struct Bid { #[prost(string, tag = "1")] pub bidder: ::prost::alloc::string::String, - // #[prost(string, tag = "2")] - // pub amount: ::prost::alloc::string::String, - // NOTE: THIS IS A FIX FOR RUST BINDINGS, PLEASE COPY IN FUTURE RELEASES - #[prost(message, optional, tag = "2")] - pub amount: ::core::option::Option, + #[prost(string, tag = "2")] + pub amount: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.auction.v1beta1.LastAuctionResult")] pub struct LastAuctionResult { /// winner describes the address of the winner #[prost(string, tag = "1")] pub winner: ::prost::alloc::string::String, /// amount describes the amount the winner get from the auction - // #[prost(string, tag = "2")] - // pub amount: ::prost::alloc::string::String, - // NOTE: THIS IS A FIX FOR RUST BINDINGS, PLEASE COPY IN FUTURE RELEASES - #[prost(message, optional, tag = "2")] - pub amount: ::core::option::Option, + #[prost(string, tag = "2")] + pub amount: ::prost::alloc::string::String, /// round defines the round number of auction #[prost(uint64, tag = "3")] #[serde( @@ -48,18 +48,16 @@ pub struct LastAuctionResult { pub round: u64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.auction.v1beta1.EventBid")] pub struct EventBid { /// bidder describes the address of bidder #[prost(string, tag = "1")] pub bidder: ::prost::alloc::string::String, /// amount describes the amount the bidder put on the auction - // #[prost(string, tag = "2")] - // pub amount: ::prost::alloc::string::String, - // NOTE: THIS IS A FIX FOR RUST BINDINGS, PLEASE COPY IN FUTURE RELEASES - #[prost(message, optional, tag = "2")] - pub amount: ::core::option::Option, + #[prost(string, tag = "2")] + pub amount: ::prost::alloc::string::String, /// round defines the round number of auction #[prost(uint64, tag = "3")] #[serde( @@ -69,18 +67,16 @@ pub struct EventBid { pub round: u64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 #[prost(string, tag = "1")] pub winner: ::prost::alloc::string::String, /// amount describes the amount the winner get from the auction - // #[prost(string, tag = "2")] - // pub amount: ::prost::alloc::string::String, - // NOTE: THIS IS A FIX FOR RUST BINDINGS, PLEASE COPY IN FUTURE RELEASES - #[prost(message, optional, tag = "2")] - pub amount: ::core::option::Option, + #[prost(string, tag = "2")] + pub amount: ::prost::alloc::string::String, /// round defines the round number of auction #[prost(uint64, tag = "3")] #[serde( @@ -90,7 +86,8 @@ pub struct EventAuctionResult { pub round: u64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -110,11 +107,14 @@ 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, + pub new_basket: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, } /// GenesisState defines the auction module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -144,7 +144,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.auction.v1beta1.QueryAuctionParamsRequest")] #[proto_query( path = "/injective.auction.v1beta1.Query/AuctionParams", @@ -154,7 +155,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.auction.v1beta1.QueryAuctionParamsResponse")] pub struct QueryAuctionParamsResponse { #[prost(message, optional, tag = "1")] @@ -163,8 +165,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.auction.v1beta1.QueryCurrentAuctionBasketRequest")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -173,37 +178,43 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.auction.v1beta1.QueryCurrentAuctionBasketResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub amount: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, /// auctionRound describes current auction round #[prost(uint64, tag = "2")] #[serde( serialize_with = "crate::serde::as_str::serialize", deserialize_with = "crate::serde::as_str::deserialize" )] - pub auctionRound: u64, + pub auction_round: u64, /// auctionClosingTime describes auction close time for the round #[prost(int64, tag = "3")] #[serde( serialize_with = "crate::serde::as_str::serialize", deserialize_with = "crate::serde::as_str::deserialize" )] - pub auctionClosingTime: i64, + pub auction_closing_time: i64, /// highestBidder describes highest bidder on current round #[prost(string, tag = "4")] - pub highestBidder: ::prost::alloc::string::String, + pub highest_bidder: ::prost::alloc::string::String, /// highestBidAmount describes highest bid amount on current round #[prost(string, tag = "5")] - pub highestBidAmount: ::prost::alloc::string::String, + pub highest_bid_amount: ::prost::alloc::string::String, } /// QueryModuleStateRequest is the request type for the Query/AuctionModuleState /// RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.auction.v1beta1.QueryModuleStateRequest")] #[proto_query( path = "/injective.auction.v1beta1.Query/AuctionModuleState", @@ -213,14 +224,16 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.auction.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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.auction.v1beta1.QueryLastAuctionResultRequest")] #[proto_query( path = "/injective.auction.v1beta1.Query/LastAuctionResult", @@ -228,7 +241,8 @@ pub struct QueryModuleStateResponse { )] pub struct QueryLastAuctionResultRequest {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.auction.v1beta1.QueryLastAuctionResultResponse")] pub struct QueryLastAuctionResultResponse { #[prost(message, optional, tag = "1")] @@ -236,14 +250,17 @@ pub struct QueryLastAuctionResultResponse { } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub bid_amount: ::core::option::Option< + super::super::super::cosmos::base::v1beta1::Coin, + >, /// the current auction round being bid on #[prost(uint64, tag = "3")] #[serde( @@ -253,11 +270,13 @@ pub struct MsgBid { pub round: u64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -270,7 +289,8 @@ pub struct MsgUpdateParams { pub params: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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> { @@ -280,16 +300,26 @@ 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) } - pub fn last_auction_result(&self) -> Result { + pub fn last_auction_result( + &self, + ) -> Result { QueryLastAuctionResultRequest {}.query(self.querier) } } diff --git a/packages/injective-std/src/types/injective/exchange/mod.rs b/packages/injective-std/src/types/injective/exchange/mod.rs index af03bfd7..9f64fc82 100644 --- a/packages/injective-std/src/types/injective/exchange/mod.rs +++ b/packages/injective-std/src/types/injective/exchange/mod.rs @@ -1,2 +1 @@ -#![allow(non_snake_case)] pub mod v1beta1; diff --git a/packages/injective-std/src/types/injective/exchange/v1beta1.rs b/packages/injective-std/src/types/injective/exchange/v1beta1.rs index 6d5bdbaa..526b9f9e 100644 --- a/packages/injective-std/src/types/injective/exchange/v1beta1.rs +++ b/packages/injective-std/src/types/injective/exchange/v1beta1.rs @@ -1,7 +1,8 @@ -use injective_std_derive::CosmwasmExt; +use osmosis_std_derive::CosmwasmExt; /// spot authz messages #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.CreateSpotLimitOrderAuthz")] pub struct CreateSpotLimitOrderAuthz { #[prost(string, tag = "1")] @@ -12,7 +13,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.CreateSpotMarketOrderAuthz")] pub struct CreateSpotMarketOrderAuthz { #[prost(string, tag = "1")] @@ -23,8 +25,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.BatchCreateSpotLimitOrdersAuthz")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -34,7 +39,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.CancelSpotOrderAuthz")] pub struct CancelSpotOrderAuthz { #[prost(string, tag = "1")] @@ -45,7 +51,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.BatchCancelSpotOrdersAuthz")] pub struct BatchCancelSpotOrdersAuthz { #[prost(string, tag = "1")] @@ -57,8 +64,11 @@ pub struct BatchCancelSpotOrdersAuthz { } /// derivative authz messages #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.CreateDerivativeLimitOrderAuthz")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -68,8 +78,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.CreateDerivativeMarketOrderAuthz")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -79,8 +92,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.BatchCreateDerivativeLimitOrdersAuthz")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -90,7 +106,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.CancelDerivativeOrderAuthz")] pub struct CancelDerivativeOrderAuthz { #[prost(string, tag = "1")] @@ -101,8 +118,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.BatchCancelDerivativeOrdersAuthz")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -113,7 +133,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.BatchUpdateOrdersAuthz")] pub struct BatchUpdateOrdersAuthz { #[prost(string, tag = "1")] @@ -125,17 +146,22 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub spot_market_instant_listing_fee: ::core::option::Option< + super::super::super::cosmos::base::v1beta1::Coin, + >, /// 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, + pub derivative_market_instant_listing_fee: ::core::option::Option< + super::super::super::cosmos::base::v1beta1::Coin, + >, /// default_spot_maker_fee defines the default exchange trade fee for makers on /// a spot market #[prost(string, tag = "3")] @@ -214,7 +240,9 @@ 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, + pub binary_options_market_instant_listing_fee: ::core::option::Option< + super::super::super::cosmos::base::v1beta1::Coin, + >, /// atomic_market_order_access_level defines the required access permissions /// for executing atomic market orders #[prost(enumeration = "AtomicMarketOrderAccessLevel", tag = "19")] @@ -264,7 +292,8 @@ pub struct Params { pub inj_auction_max_cap: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MarketFeeMultiplier")] pub struct MarketFeeMultiplier { #[prost(string, tag = "1")] @@ -275,7 +304,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.DerivativeMarket")] pub struct DerivativeMarket { /// Ticker for the derivative contract. @@ -329,7 +359,7 @@ pub struct DerivativeMarket { /// true if the market is a perpetual market. false if the market is an expiry /// futures market #[prost(bool, tag = "13")] - pub isPerpetual: bool, + pub is_perpetual: bool, /// Status of the market #[prost(enumeration = "MarketStatus", tag = "14")] #[serde( @@ -362,7 +392,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.BinaryOptionsMarket")] pub struct BinaryOptionsMarket { /// Ticker for the derivative contract. @@ -452,7 +483,8 @@ pub struct BinaryOptionsMarket { pub admin_permissions: u32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.ExpiryFuturesMarketInfo")] pub struct ExpiryFuturesMarketInfo { /// market ID. @@ -485,7 +517,8 @@ pub struct ExpiryFuturesMarketInfo { pub settlement_price: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.PerpetualMarketInfo")] pub struct PerpetualMarketInfo { /// market ID. @@ -517,7 +550,8 @@ pub struct PerpetualMarketInfo { pub funding_interval: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -535,7 +569,8 @@ pub struct PerpetualMarketFunding { pub last_timestamp: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.DerivativeMarketSettlementInfo")] pub struct DerivativeMarketSettlementInfo { /// market ID. @@ -547,7 +582,8 @@ pub struct DerivativeMarketSettlementInfo { pub settlement_price: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.NextFundingTimestamp")] pub struct NextFundingTimestamp { #[prost(int64, tag = "1")] @@ -558,7 +594,8 @@ pub struct NextFundingTimestamp { pub next_timestamp: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MidPriceAndTOB")] pub struct MidPriceAndTob { /// mid price of the market @@ -573,7 +610,8 @@ pub struct MidPriceAndTob { } /// An object describing trade pair of two assets. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -632,7 +670,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.Deposit")] pub struct Deposit { #[prost(string, tag = "1")] @@ -641,7 +680,8 @@ pub struct Deposit { pub total_balance: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.SubaccountTradeNonce")] pub struct SubaccountTradeNonce { #[prost(uint32, tag = "1")] @@ -652,7 +692,8 @@ pub struct SubaccountTradeNonce { pub nonce: u32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -672,7 +713,8 @@ pub struct OrderInfo { pub cid: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -695,7 +737,8 @@ pub struct SpotOrder { } /// A valid Spot limit order with Metadata. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -719,7 +762,8 @@ pub struct SpotLimitOrder { } /// A valid Spot market order with Metadata. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -741,7 +785,8 @@ pub struct SpotMarketOrder { pub trigger_price: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -766,7 +811,8 @@ pub struct DerivativeOrder { pub trigger_price: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.SubaccountOrderbookMetadata")] pub struct SubaccountOrderbookMetadata { #[prost(uint32, tag = "1")] @@ -803,7 +849,8 @@ pub struct SubaccountOrderbookMetadata { pub reduce_only_conditional_order_count: u32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.SubaccountOrder")] pub struct SubaccountOrder { /// price of the order @@ -813,12 +860,13 @@ pub struct SubaccountOrder { #[prost(string, tag = "2")] pub quantity: ::prost::alloc::string::String, #[prost(bool, tag = "3")] - pub isReduceOnly: bool, + pub is_reduce_only: bool, #[prost(string, tag = "4")] pub cid: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.SubaccountOrderData")] pub struct SubaccountOrderData { #[prost(message, optional, tag = "1")] @@ -828,7 +876,8 @@ pub struct SubaccountOrderData { } /// A valid Derivative limit order with Metadata. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -855,7 +904,8 @@ pub struct DerivativeLimitOrder { } /// A valid Derivative market order with Metadata. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -879,11 +929,12 @@ pub struct DerivativeMarketOrder { pub order_hash: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.Position")] pub struct Position { #[prost(bool, tag = "1")] - pub isLong: bool, + pub is_long: bool, #[prost(string, tag = "2")] pub quantity: ::prost::alloc::string::String, #[prost(string, tag = "3")] @@ -894,7 +945,8 @@ pub struct Position { pub cumulative_funding_entry: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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,10 +954,11 @@ pub struct MarketOrderIndicator { #[serde(alias = "marketID")] pub market_id: ::prost::alloc::string::String, #[prost(bool, tag = "2")] - pub isBuy: bool, + pub is_buy: bool, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.TradeLog")] pub struct TradeLog { #[prost(string, tag = "1")] @@ -926,7 +979,8 @@ pub struct TradeLog { pub cid: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.PositionDelta")] pub struct PositionDelta { #[prost(bool, tag = "1")] @@ -939,7 +993,8 @@ pub struct PositionDelta { pub execution_price: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.DerivativeTradeLog")] pub struct DerivativeTradeLog { #[prost(bytes = "vec", tag = "1")] @@ -961,7 +1016,8 @@ pub struct DerivativeTradeLog { pub pnl: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.SubaccountPosition")] pub struct SubaccountPosition { #[prost(message, optional, tag = "1")] @@ -971,7 +1027,8 @@ pub struct SubaccountPosition { pub subaccount_id: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.SubaccountDeposit")] pub struct SubaccountDeposit { #[prost(bytes = "vec", tag = "1")] @@ -981,7 +1038,8 @@ pub struct SubaccountDeposit { pub deposit: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.DepositUpdate")] pub struct DepositUpdate { #[prost(string, tag = "1")] @@ -990,7 +1048,8 @@ pub struct DepositUpdate { pub deposits: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.PointsMultiplier")] pub struct PointsMultiplier { #[prost(string, tag = "1")] @@ -999,22 +1058,28 @@ pub struct PointsMultiplier { pub taker_points_multiplier: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.CampaignRewardPool")] pub struct CampaignRewardPool { #[prost(int64, tag = "1")] @@ -1026,10 +1091,13 @@ 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, + pub max_campaign_rewards: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1044,14 +1112,19 @@ 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, + pub trading_reward_boost_info: ::core::option::Option< + TradingRewardCampaignBoostInfo, + >, /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.FeeDiscountTierInfo")] pub struct FeeDiscountTierInfo { #[prost(string, tag = "1")] @@ -1064,7 +1137,8 @@ pub struct FeeDiscountTierInfo { pub volume: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.FeeDiscountSchedule")] pub struct FeeDiscountSchedule { #[prost(uint64, tag = "1")] @@ -1090,10 +1164,13 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.FeeDiscountTierTTL")] pub struct FeeDiscountTierTtl { #[prost(uint64, tag = "1")] @@ -1110,7 +1187,8 @@ pub struct FeeDiscountTierTtl { pub ttl_timestamp: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.VolumeRecord")] pub struct VolumeRecord { #[prost(string, tag = "1")] @@ -1119,16 +1197,20 @@ pub struct VolumeRecord { pub taker_volume: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub rewards: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.TradeRecords")] pub struct TradeRecords { #[prost(string, tag = "1")] @@ -1138,7 +1220,8 @@ pub struct TradeRecords { pub latest_trade_records: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.SubaccountIDs")] pub struct SubaccountIDs { #[prost(bytes = "vec", repeated, tag = "1")] @@ -1146,7 +1229,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.TradeRecord")] pub struct TradeRecord { #[prost(int64, tag = "1")] @@ -1161,7 +1245,8 @@ pub struct TradeRecord { pub quantity: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.Level")] pub struct Level { /// price @@ -1172,8 +1257,11 @@ pub struct Level { pub q: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.AggregateSubaccountVolumeRecord")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -1182,7 +1270,8 @@ pub struct AggregateSubaccountVolumeRecord { pub market_volumes: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.AggregateAccountVolumeRecord")] pub struct AggregateAccountVolumeRecord { #[prost(string, tag = "1")] @@ -1191,7 +1280,8 @@ pub struct AggregateAccountVolumeRecord { pub market_volumes: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MarketVolume")] pub struct MarketVolume { #[prost(string, tag = "1")] @@ -1201,7 +1291,8 @@ pub struct MarketVolume { pub volume: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.DenomDecimals")] pub struct DenomDecimals { #[prost(string, tag = "1")] @@ -1214,7 +1305,8 @@ pub struct DenomDecimals { pub decimals: u64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.GrantAuthorization")] pub struct GrantAuthorization { #[prost(string, tag = "1")] @@ -1223,7 +1315,8 @@ pub struct GrantAuthorization { pub amount: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.ActiveGrant")] pub struct ActiveGrant { #[prost(string, tag = "1")] @@ -1232,7 +1325,8 @@ pub struct ActiveGrant { pub amount: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EffectiveGrant")] pub struct EffectiveGrant { #[prost(string, tag = "1")] @@ -1260,7 +1354,9 @@ 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", } @@ -1269,7 +1365,9 @@ 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, @@ -1456,7 +1554,8 @@ impl OrderMask { } } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventBatchSpotExecution")] pub struct EventBatchSpotExecution { #[prost(string, tag = "1")] @@ -1469,12 +1568,13 @@ pub struct EventBatchSpotExecution { serialize_with = "crate::serde::as_str::serialize", deserialize_with = "crate::serde::as_str::deserialize" )] - pub executionType: i32, + pub execution_type: i32, #[prost(message, repeated, tag = "4")] pub trades: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventBatchDerivativeExecution")] pub struct EventBatchDerivativeExecution { #[prost(string, tag = "1")] @@ -1492,12 +1592,13 @@ pub struct EventBatchDerivativeExecution { serialize_with = "crate::serde::as_str::serialize", deserialize_with = "crate::serde::as_str::deserialize" )] - pub executionType: i32, + pub execution_type: i32, #[prost(message, repeated, tag = "6")] pub trades: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventLostFundsFromLiquidation")] pub struct EventLostFundsFromLiquidation { #[prost(string, tag = "1")] @@ -1512,7 +1613,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventBatchDerivativePosition")] pub struct EventBatchDerivativePosition { #[prost(string, tag = "1")] @@ -1522,7 +1624,8 @@ pub struct EventBatchDerivativePosition { pub positions: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventDerivativeMarketPaused")] pub struct EventDerivativeMarketPaused { #[prost(string, tag = "1")] @@ -1536,7 +1639,8 @@ pub struct EventDerivativeMarketPaused { pub missing_funds_rate: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventMarketBeyondBankruptcy")] pub struct EventMarketBeyondBankruptcy { #[prost(string, tag = "1")] @@ -1548,7 +1652,8 @@ pub struct EventMarketBeyondBankruptcy { pub missing_market_funds: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventAllPositionsHaircut")] pub struct EventAllPositionsHaircut { #[prost(string, tag = "1")] @@ -1560,14 +1665,16 @@ pub struct EventAllPositionsHaircut { pub missing_funds_rate: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventNewSpotOrders")] pub struct EventNewSpotOrders { #[prost(string, tag = "1")] @@ -1579,7 +1686,8 @@ pub struct EventNewSpotOrders { pub sell_orders: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventNewDerivativeOrders")] pub struct EventNewDerivativeOrders { #[prost(string, tag = "1")] @@ -1591,7 +1699,8 @@ pub struct EventNewDerivativeOrders { pub sell_orders: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventCancelSpotOrder")] pub struct EventCancelSpotOrder { #[prost(string, tag = "1")] @@ -1601,14 +1710,16 @@ pub struct EventCancelSpotOrder { pub order: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventPerpetualMarketUpdate")] pub struct EventPerpetualMarketUpdate { #[prost(message, optional, tag = "1")] @@ -1619,7 +1730,8 @@ pub struct EventPerpetualMarketUpdate { pub funding: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventExpiryFuturesMarketUpdate")] pub struct EventExpiryFuturesMarketUpdate { #[prost(message, optional, tag = "1")] @@ -1628,8 +1740,11 @@ pub struct EventExpiryFuturesMarketUpdate { pub expiry_futures_market_info: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.EventPerpetualMarketFundingUpdate")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -1644,7 +1759,8 @@ pub struct EventPerpetualMarketFundingUpdate { pub mark_price: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventSubaccountDeposit")] pub struct EventSubaccountDeposit { #[prost(string, tag = "1")] @@ -1656,7 +1772,8 @@ pub struct EventSubaccountDeposit { pub amount: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventSubaccountWithdraw")] pub struct EventSubaccountWithdraw { #[prost(bytes = "vec", tag = "1")] @@ -1668,7 +1785,8 @@ pub struct EventSubaccountWithdraw { pub amount: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventSubaccountBalanceTransfer")] pub struct EventSubaccountBalanceTransfer { #[prost(string, tag = "1")] @@ -1681,14 +1799,16 @@ pub struct EventSubaccountBalanceTransfer { pub amount: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.DerivativeMarketOrderCancel")] pub struct DerivativeMarketOrderCancel { #[prost(message, optional, tag = "1")] @@ -1697,29 +1817,34 @@ pub struct DerivativeMarketOrderCancel { pub cancel_quantity: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventCancelDerivativeOrder")] pub struct EventCancelDerivativeOrder { #[prost(string, tag = "1")] #[serde(alias = "marketID")] pub market_id: ::prost::alloc::string::String, #[prost(bool, tag = "2")] - pub isLimitCancel: bool, + pub is_limit_cancel: bool, #[prost(message, optional, tag = "3")] pub limit_order: ::core::option::Option, #[prost(message, optional, tag = "4")] pub market_order_cancel: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.EventTradingRewardCampaignUpdate")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -1727,15 +1852,19 @@ pub struct EventTradingRewardCampaignUpdate { pub campaign_reward_pools: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.EventNewConditionalDerivativeOrder")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -1748,28 +1877,34 @@ pub struct EventNewConditionalDerivativeOrder { pub is_market: bool, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.EventCancelConditionalDerivativeOrder")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] pub market_id: ::prost::alloc::string::String, #[prost(bool, tag = "2")] - pub isLimitCancel: bool, + pub is_limit_cancel: bool, #[prost(message, optional, tag = "3")] pub limit_order: ::core::option::Option, #[prost(message, optional, tag = "4")] pub market_order: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.EventConditionalDerivativeOrderTrigger")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] pub market_id: ::prost::alloc::vec::Vec, #[prost(bool, tag = "2")] - pub isLimitTrigger: bool, + pub is_limit_trigger: bool, #[prost(bytes = "vec", tag = "3")] pub triggered_order_hash: ::prost::alloc::vec::Vec, #[prost(bytes = "vec", tag = "4")] @@ -1778,7 +1913,8 @@ pub struct EventConditionalDerivativeOrderTrigger { pub triggered_order_cid: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventOrderFail")] pub struct EventOrderFail { #[prost(bytes = "vec", tag = "1")] @@ -1791,14 +1927,18 @@ pub struct EventOrderFail { pub cids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.EventAtomicMarketOrderFeeMultipliersUpdated")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventOrderbookUpdate")] pub struct EventOrderbookUpdate { #[prost(message, repeated, tag = "1")] @@ -1807,7 +1947,8 @@ pub struct EventOrderbookUpdate { pub derivative_updates: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.OrderbookUpdate")] pub struct OrderbookUpdate { #[prost(uint64, tag = "1")] @@ -1820,7 +1961,8 @@ pub struct OrderbookUpdate { pub orderbook: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.Orderbook")] pub struct Orderbook { #[prost(bytes = "vec", tag = "1")] @@ -1832,7 +1974,8 @@ pub struct Orderbook { pub sell_levels: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventGrantAuthorizations")] pub struct EventGrantAuthorizations { #[prost(string, tag = "1")] @@ -1841,7 +1984,8 @@ pub struct EventGrantAuthorizations { pub grants: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventGrantActivation")] pub struct EventGrantActivation { #[prost(string, tag = "1")] @@ -1852,7 +1996,8 @@ pub struct EventGrantActivation { pub amount: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventInvalidGrant")] pub struct EventInvalidGrant { #[prost(string, tag = "1")] @@ -1861,7 +2006,8 @@ pub struct EventInvalidGrant { pub granter: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EventOrderCancelFail")] pub struct EventOrderCancelFail { #[prost(string, tag = "1")] @@ -1878,7 +2024,8 @@ pub struct EventOrderCancelFail { pub description: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgUpdateSpotMarket")] pub struct MsgUpdateSpotMarket { /// current admin address of the associated market @@ -1902,11 +2049,13 @@ pub struct MsgUpdateSpotMarket { pub new_min_notional: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgUpdateSpotMarketResponse")] pub struct MsgUpdateSpotMarketResponse {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgUpdateDerivativeMarket")] pub struct MsgUpdateDerivativeMarket { /// current admin address of the associated market @@ -1936,11 +2085,15 @@ pub struct MsgUpdateDerivativeMarket { pub new_maintenance_margin_ratio: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgUpdateDerivativeMarketResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.exchange.v1beta1.MsgUpdateDerivativeMarketResponse" +)] pub struct MsgUpdateDerivativeMarketResponse {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -1953,13 +2106,15 @@ pub struct MsgUpdateParams { pub params: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgDeposit")] pub struct MsgDeposit { #[prost(string, tag = "1")] @@ -1974,13 +2129,15 @@ pub struct MsgDeposit { } /// MsgDepositResponse defines the Msg/Deposit response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgWithdraw")] pub struct MsgWithdraw { #[prost(string, tag = "1")] @@ -1994,13 +2151,15 @@ pub struct MsgWithdraw { } /// MsgWithdraw defines the Msg/Withdraw response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateSpotLimitOrder")] pub struct MsgCreateSpotLimitOrder { #[prost(string, tag = "1")] @@ -2011,8 +2170,11 @@ pub struct MsgCreateSpotLimitOrder { /// MsgCreateSpotLimitOrderResponse defines the Msg/CreateSpotOrder response /// type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateSpotLimitOrderResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -2022,7 +2184,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCreateSpotLimitOrders")] pub struct MsgBatchCreateSpotLimitOrders { #[prost(string, tag = "1")] @@ -2033,8 +2196,11 @@ pub struct MsgBatchCreateSpotLimitOrders { /// MsgBatchCreateSpotLimitOrdersResponse defines the /// Msg/BatchCreateSpotLimitOrders response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCreateSpotLimitOrdersResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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>, @@ -2046,7 +2212,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgInstantSpotMarketLaunch")] pub struct MsgInstantSpotMarketLaunch { #[prost(string, tag = "1")] @@ -2075,14 +2242,20 @@ pub struct MsgInstantSpotMarketLaunch { /// MsgInstantSpotMarketLaunchResponse defines the Msg/InstantSpotMarketLaunch /// response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgInstantSpotMarketLaunchResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgInstantPerpetualMarketLaunch")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -2144,14 +2317,20 @@ pub struct MsgInstantPerpetualMarketLaunch { /// MsgInstantPerpetualMarketLaunchResponse defines the /// Msg/InstantPerpetualMarketLaunchResponse response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgInstantPerpetualMarketLaunchResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgInstantBinaryOptionsMarketLaunch")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -2222,14 +2401,20 @@ pub struct MsgInstantBinaryOptionsMarketLaunch { /// MsgInstantBinaryOptionsMarketLaunchResponse defines the /// Msg/InstantBinaryOptionsMarketLaunchResponse response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgInstantBinaryOptionsMarketLaunchResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgInstantExpiryFuturesMarketLaunch")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -2298,13 +2483,17 @@ pub struct MsgInstantExpiryFuturesMarketLaunch { /// MsgInstantExpiryFuturesMarketLaunchResponse defines the /// Msg/InstantExpiryFuturesMarketLaunch response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgInstantExpiryFuturesMarketLaunchResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateSpotMarketOrder")] pub struct MsgCreateSpotMarketOrder { #[prost(string, tag = "1")] @@ -2315,8 +2504,11 @@ pub struct MsgCreateSpotMarketOrder { /// MsgCreateSpotMarketOrderResponse defines the Msg/CreateSpotMarketLimitOrder /// response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateSpotMarketOrderResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -2326,7 +2518,8 @@ pub struct MsgCreateSpotMarketOrderResponse { pub cid: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.SpotMarketOrderResults")] pub struct SpotMarketOrderResults { #[prost(string, tag = "1")] @@ -2338,7 +2531,8 @@ pub struct SpotMarketOrderResults { } /// A Cosmos-SDK MsgCreateDerivativeLimitOrder #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateDerivativeLimitOrder")] pub struct MsgCreateDerivativeLimitOrder { #[prost(string, tag = "1")] @@ -2349,8 +2543,11 @@ pub struct MsgCreateDerivativeLimitOrder { /// MsgCreateDerivativeLimitOrderResponse defines the /// Msg/CreateDerivativeMarketOrder response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateDerivativeLimitOrderResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -2359,8 +2556,11 @@ pub struct MsgCreateDerivativeLimitOrderResponse { } /// A Cosmos-SDK MsgCreateBinaryOptionsLimitOrder #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateBinaryOptionsLimitOrder")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -2370,8 +2570,11 @@ pub struct MsgCreateBinaryOptionsLimitOrder { /// MsgCreateBinaryOptionsLimitOrderResponse defines the /// Msg/CreateBinaryOptionsLimitOrder response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateBinaryOptionsLimitOrderResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -2380,8 +2583,11 @@ pub struct MsgCreateBinaryOptionsLimitOrderResponse { } /// A Cosmos-SDK MsgBatchCreateDerivativeLimitOrders #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCreateDerivativeLimitOrders")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -2391,8 +2597,11 @@ pub struct MsgBatchCreateDerivativeLimitOrders { /// MsgBatchCreateDerivativeLimitOrdersResponse defines the /// Msg/BatchCreateDerivativeLimitOrders response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCreateDerivativeLimitOrdersResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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>, @@ -2403,7 +2612,8 @@ pub struct MsgBatchCreateDerivativeLimitOrdersResponse { } /// MsgCancelSpotOrder defines the Msg/CancelSpotOrder response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgCancelSpotOrder")] pub struct MsgCancelSpotOrder { #[prost(string, tag = "1")] @@ -2421,12 +2631,14 @@ pub struct MsgCancelSpotOrder { } /// MsgCancelSpotOrderResponse defines the Msg/CancelSpotOrder response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCancelSpotOrders")] pub struct MsgBatchCancelSpotOrders { #[prost(string, tag = "1")] @@ -2437,8 +2649,11 @@ pub struct MsgBatchCancelSpotOrders { /// MsgBatchCancelSpotOrdersResponse defines the Msg/BatchCancelSpotOrders /// response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCancelSpotOrdersResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -2446,8 +2661,11 @@ pub struct MsgBatchCancelSpotOrdersResponse { /// MsgBatchCancelBinaryOptionsOrders defines the /// Msg/BatchCancelBinaryOptionsOrders response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCancelBinaryOptionsOrders")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -2457,15 +2675,19 @@ pub struct MsgBatchCancelBinaryOptionsOrders { /// BatchCancelBinaryOptionsOrdersResponse defines the /// Msg/BatchCancelBinaryOptionsOrders response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCancelBinaryOptionsOrdersResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchUpdateOrders")] pub struct MsgBatchUpdateOrders { #[prost(string, tag = "1")] @@ -2477,10 +2699,14 @@ 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")] @@ -2493,13 +2719,16 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchUpdateOrdersResponse")] pub struct MsgBatchUpdateOrdersResponse { #[prost(bool, repeated, tag = "1")] @@ -2509,27 +2738,44 @@ 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, + >, #[prost(string, repeated, tag = "7")] - pub created_spot_orders_cids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + pub created_spot_orders_cids: ::prost::alloc::vec::Vec< + ::prost::alloc::string::String, + >, #[prost(string, repeated, tag = "8")] - pub failed_spot_orders_cids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + pub failed_spot_orders_cids: ::prost::alloc::vec::Vec< + ::prost::alloc::string::String, + >, #[prost(string, repeated, tag = "9")] - pub created_derivative_orders_cids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + pub created_derivative_orders_cids: ::prost::alloc::vec::Vec< + ::prost::alloc::string::String, + >, #[prost(string, repeated, tag = "10")] - pub failed_derivative_orders_cids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + pub failed_derivative_orders_cids: ::prost::alloc::vec::Vec< + ::prost::alloc::string::String, + >, #[prost(string, repeated, tag = "11")] - pub created_binary_options_orders_cids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + pub created_binary_options_orders_cids: ::prost::alloc::vec::Vec< + ::prost::alloc::string::String, + >, #[prost(string, repeated, tag = "12")] - pub failed_binary_options_orders_cids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + pub failed_binary_options_orders_cids: ::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateDerivativeMarketOrder")] pub struct MsgCreateDerivativeMarketOrder { #[prost(string, tag = "1")] @@ -2540,8 +2786,11 @@ pub struct MsgCreateDerivativeMarketOrder { /// MsgCreateDerivativeMarketOrderResponse defines the /// Msg/CreateDerivativeMarketOrder response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateDerivativeMarketOrderResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -2551,7 +2800,8 @@ pub struct MsgCreateDerivativeMarketOrderResponse { pub cid: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.DerivativeMarketOrderResults")] pub struct DerivativeMarketOrderResults { #[prost(string, tag = "1")] @@ -2567,8 +2817,11 @@ pub struct DerivativeMarketOrderResults { } /// A Cosmos-SDK MsgCreateBinaryOptionsMarketOrder #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateBinaryOptionsMarketOrder")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -2578,8 +2831,11 @@ pub struct MsgCreateBinaryOptionsMarketOrder { /// MsgCreateBinaryOptionsMarketOrderResponse defines the /// Msg/CreateBinaryOptionsMarketOrder response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCreateBinaryOptionsMarketOrderResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -2590,7 +2846,8 @@ pub struct MsgCreateBinaryOptionsMarketOrderResponse { } /// MsgCancelDerivativeOrder defines the Msg/CancelDerivativeOrder response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgCancelDerivativeOrder")] pub struct MsgCancelDerivativeOrder { #[prost(string, tag = "1")] @@ -2616,13 +2873,17 @@ pub struct MsgCancelDerivativeOrder { /// MsgCancelDerivativeOrderResponse defines the /// Msg/CancelDerivativeOrderResponse response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCancelDerivativeOrderResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgCancelBinaryOptionsOrder")] pub struct MsgCancelBinaryOptionsOrder { #[prost(string, tag = "1")] @@ -2648,11 +2909,15 @@ pub struct MsgCancelBinaryOptionsOrder { /// MsgCancelBinaryOptionsOrderResponse defines the /// Msg/CancelBinaryOptionsOrderResponse response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgCancelBinaryOptionsOrderResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.OrderData")] pub struct OrderData { #[prost(string, tag = "1")] @@ -2676,7 +2941,8 @@ pub struct OrderData { /// MsgBatchCancelDerivativeOrders defines the Msg/CancelDerivativeOrders /// response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCancelDerivativeOrders")] pub struct MsgBatchCancelDerivativeOrders { #[prost(string, tag = "1")] @@ -2687,15 +2953,19 @@ pub struct MsgBatchCancelDerivativeOrders { /// MsgBatchCancelDerivativeOrdersResponse defines the /// Msg/CancelDerivativeOrderResponse response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgBatchCancelDerivativeOrdersResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgSubaccountTransfer")] pub struct MsgSubaccountTransfer { #[prost(string, tag = "1")] @@ -2712,12 +2982,14 @@ pub struct MsgSubaccountTransfer { /// MsgSubaccountTransferResponse defines the Msg/SubaccountTransfer response /// type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgExternalTransfer")] pub struct MsgExternalTransfer { #[prost(string, tag = "1")] @@ -2733,12 +3005,14 @@ pub struct MsgExternalTransfer { } /// MsgExternalTransferResponse defines the Msg/ExternalTransfer response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgLiquidatePosition")] pub struct MsgLiquidatePosition { #[prost(string, tag = "1")] @@ -2755,12 +3029,14 @@ pub struct MsgLiquidatePosition { } /// MsgLiquidatePositionResponse defines the Msg/LiquidatePosition response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgEmergencySettleMarket")] pub struct MsgEmergencySettleMarket { #[prost(string, tag = "1")] @@ -2775,12 +3051,16 @@ pub struct MsgEmergencySettleMarket { /// MsgEmergencySettleMarketResponse defines the Msg/EmergencySettleMarket /// response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgEmergencySettleMarketResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgIncreasePositionMargin")] pub struct MsgIncreasePositionMargin { #[prost(string, tag = "1")] @@ -2801,12 +3081,16 @@ pub struct MsgIncreasePositionMargin { /// MsgIncreasePositionMarginResponse defines the Msg/IncreasePositionMargin /// response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgIncreasePositionMarginResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.exchange.v1beta1.MsgIncreasePositionMarginResponse" +)] pub struct MsgIncreasePositionMarginResponse {} /// A Cosmos-SDK MsgDecreasePositionMargin #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgDecreasePositionMargin")] pub struct MsgDecreasePositionMargin { #[prost(string, tag = "1")] @@ -2827,12 +3111,16 @@ pub struct MsgDecreasePositionMargin { /// MsgDecreasePositionMarginResponse defines the Msg/MsgDecreasePositionMargin /// response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgDecreasePositionMarginResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.exchange.v1beta1.MsgDecreasePositionMarginResponse" +)] pub struct MsgDecreasePositionMarginResponse {} /// MsgPrivilegedExecuteContract defines the Msg/Exec message type #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgPrivilegedExecuteContract")] pub struct MsgPrivilegedExecuteContract { #[prost(string, tag = "1")] @@ -2850,15 +3138,21 @@ pub struct MsgPrivilegedExecuteContract { } /// MsgPrivilegedExecuteContractResponse defines the Msg/Exec response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgPrivilegedExecuteContractResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub funds_diff: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, } /// A Cosmos-SDK MsgRewardsOptOut #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgRewardsOptOut")] pub struct MsgRewardsOptOut { #[prost(string, tag = "1")] @@ -2866,12 +3160,14 @@ pub struct MsgRewardsOptOut { } /// MsgRewardsOptOutResponse defines the Msg/RewardsOptOut response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgReclaimLockedFunds")] pub struct MsgReclaimLockedFunds { #[prost(string, tag = "1")] @@ -2884,12 +3180,14 @@ pub struct MsgReclaimLockedFunds { /// MsgReclaimLockedFundsResponse defines the Msg/ReclaimLockedFunds response /// type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -2902,7 +3200,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgSignDoc")] pub struct MsgSignDoc { #[prost(string, tag = "1")] @@ -2913,8 +3212,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarket")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -2949,12 +3251,16 @@ pub struct MsgAdminUpdateBinaryOptionsMarket { /// MsgAdminUpdateBinaryOptionsMarketResponse is the response for /// AdminUpdateBinaryOptionsMarket rpc method #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarketResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarketResponse" +)] pub struct MsgAdminUpdateBinaryOptionsMarketResponse {} /// MsgAuthorizeStakeGrants grants stakes to grantees. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgAuthorizeStakeGrants")] pub struct MsgAuthorizeStakeGrants { #[prost(string, tag = "1")] @@ -2963,12 +3269,16 @@ pub struct MsgAuthorizeStakeGrants { pub grants: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.MsgAuthorizeStakeGrantsResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.exchange.v1beta1.MsgAuthorizeStakeGrantsResponse" +)] pub struct MsgAuthorizeStakeGrantsResponse {} /// MsgActivateStakeGrant allows a grantee to activate a stake grant. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgActivateStakeGrant")] pub struct MsgActivateStakeGrant { #[prost(string, tag = "1")] @@ -2977,12 +3287,14 @@ pub struct MsgActivateStakeGrant { pub granter: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MsgActivateStakeGrantResponse")] pub struct MsgActivateStakeGrantResponse {} /// GenesisState defines the exchange module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -3014,7 +3326,9 @@ 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, + pub expiry_futures_market_info_state: ::prost::alloc::vec::Vec< + ExpiryFuturesMarketInfoState, + >, /// perpetual_market_info defines the market info for the perpetual derivative /// markets at genesis #[prost(message, repeated, tag = "10")] @@ -3022,11 +3336,15 @@ 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, + pub perpetual_market_funding_state: ::prost::alloc::vec::Vec< + PerpetualMarketFundingState, + >, /// 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, + pub derivative_market_settlement_scheduled: ::prost::alloc::vec::Vec< + DerivativeMarketSettlementInfo, + >, /// sets spot markets as enabled #[prost(bool, tag = "13")] pub is_spot_exchange_enabled: bool, @@ -3038,31 +3356,45 @@ 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, + pub trading_reward_pool_campaign_schedule: ::prost::alloc::vec::Vec< + CampaignRewardPool, + >, /// the current trading reward account points #[prost(message, repeated, tag = "17")] - pub trading_reward_campaign_account_points: ::prost::alloc::vec::Vec, + pub trading_reward_campaign_account_points: ::prost::alloc::vec::Vec< + TradingRewardCampaignAccountPoints, + >, /// 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, + pub fee_discount_account_tier_ttl: ::prost::alloc::vec::Vec< + FeeDiscountAccountTierTtl, + >, /// the fee discount paid by accounts in all buckets #[prost(message, repeated, tag = "20")] - pub fee_discount_bucket_volume_accounts: ::prost::alloc::vec::Vec, + pub fee_discount_bucket_volume_accounts: ::prost::alloc::vec::Vec< + FeeDiscountBucketVolumeAccounts, + >, /// 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, + pub pending_trading_reward_pool_campaign_schedule: ::prost::alloc::vec::Vec< + CampaignRewardPool, + >, /// the pending trading reward account points #[prost(message, repeated, tag = "23")] - pub pending_trading_reward_campaign_account_points: ::prost::alloc::vec::Vec, + pub pending_trading_reward_campaign_account_points: ::prost::alloc::vec::Vec< + TradingRewardCampaignAccountPendingPoints, + >, /// 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 @@ -3073,19 +3405,25 @@ 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, + pub conditional_derivative_orderbooks: ::prost::alloc::vec::Vec< + ConditionalDerivativeOrderBook, + >, /// market_fee_multipliers contains any non-default atomic order fee /// multipliers #[prost(message, repeated, tag = "31")] @@ -3102,7 +3440,8 @@ pub struct GenesisState { pub active_grants: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.OrderbookSequence")] pub struct OrderbookSequence { #[prost(uint64, tag = "1")] @@ -3116,7 +3455,8 @@ pub struct OrderbookSequence { pub market_id: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.FeeDiscountAccountTierTTL")] pub struct FeeDiscountAccountTierTtl { #[prost(string, tag = "1")] @@ -3125,8 +3465,11 @@ pub struct FeeDiscountAccountTierTtl { pub tier_ttl: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.FeeDiscountBucketVolumeAccounts")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.exchange.v1beta1.FeeDiscountBucketVolumeAccounts" +)] pub struct FeeDiscountBucketVolumeAccounts { #[prost(int64, tag = "1")] #[serde( @@ -3138,7 +3481,8 @@ pub struct FeeDiscountBucketVolumeAccounts { pub account_volume: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.AccountVolume")] pub struct AccountVolume { #[prost(string, tag = "1")] @@ -3147,8 +3491,11 @@ pub struct AccountVolume { pub volume: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.TradingRewardCampaignAccountPoints")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -3156,8 +3503,11 @@ pub struct TradingRewardCampaignAccountPoints { pub points: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.TradingRewardCampaignAccountPendingPoints")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.exchange.v1beta1.TradingRewardCampaignAccountPendingPoints" +)] pub struct TradingRewardCampaignAccountPendingPoints { #[prost(int64, tag = "1")] #[serde( @@ -3170,33 +3520,36 @@ pub struct TradingRewardCampaignAccountPendingPoints { } /// Spot Exchange Limit Orderbook #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.SpotOrderBook")] pub struct SpotOrderBook { #[prost(string, tag = "1")] #[serde(alias = "marketID")] pub market_id: ::prost::alloc::string::String, #[prost(bool, tag = "2")] - pub isBuySide: bool, + pub is_buy_side: bool, #[prost(message, repeated, tag = "3")] pub orders: ::prost::alloc::vec::Vec, } /// Derivative Exchange Limit Orderbook #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.DerivativeOrderBook")] pub struct DerivativeOrderBook { #[prost(string, tag = "1")] #[serde(alias = "marketID")] pub market_id: ::prost::alloc::string::String, #[prost(bool, tag = "2")] - pub isBuySide: bool, + pub is_buy_side: bool, #[prost(message, repeated, tag = "3")] pub orders: ::prost::alloc::vec::Vec, } /// Orderbook containing limit & market conditional orders #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.ConditionalDerivativeOrderBook")] pub struct ConditionalDerivativeOrderBook { #[prost(string, tag = "1")] @@ -3212,7 +3565,8 @@ pub struct ConditionalDerivativeOrderBook { pub market_sell_orders: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.Balance")] pub struct Balance { #[prost(string, tag = "1")] @@ -3224,7 +3578,8 @@ pub struct Balance { pub deposits: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.DerivativePosition")] pub struct DerivativePosition { #[prost(string, tag = "1")] @@ -3237,7 +3592,8 @@ pub struct DerivativePosition { pub position: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.SubaccountNonce")] pub struct SubaccountNonce { #[prost(string, tag = "1")] @@ -3247,7 +3603,8 @@ pub struct SubaccountNonce { pub subaccount_trade_nonce: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.ExpiryFuturesMarketInfoState")] pub struct ExpiryFuturesMarketInfoState { #[prost(string, tag = "1")] @@ -3257,7 +3614,8 @@ pub struct ExpiryFuturesMarketInfoState { pub market_info: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.PerpetualMarketFundingState")] pub struct PerpetualMarketFundingState { #[prost(string, tag = "1")] @@ -3267,7 +3625,8 @@ pub struct PerpetualMarketFundingState { pub funding: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.FullGrantAuthorizations")] pub struct FullGrantAuthorizations { #[prost(string, tag = "1")] @@ -3284,7 +3643,8 @@ pub struct FullGrantAuthorizations { pub grants: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.FullActiveGrant")] pub struct FullActiveGrant { #[prost(string, tag = "1")] @@ -3293,7 +3653,8 @@ pub struct FullActiveGrant { pub active_grant: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.SpotMarketParamUpdateProposal")] pub struct SpotMarketParamUpdateProposal { #[prost(string, tag = "1")] @@ -3337,7 +3698,8 @@ pub struct SpotMarketParamUpdateProposal { pub admin_info: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.ExchangeEnableProposal")] pub struct ExchangeEnableProposal { #[prost(string, tag = "1")] @@ -3349,43 +3711,65 @@ pub struct ExchangeEnableProposal { serialize_with = "crate::serde::as_str::serialize", deserialize_with = "crate::serde::as_str::deserialize" )] - pub exchangeType: i32, + pub exchange_type: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.BatchExchangeModificationProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub spot_market_param_update_proposals: ::prost::alloc::vec::Vec< + SpotMarketParamUpdateProposal, + >, #[prost(message, repeated, tag = "4")] - pub derivative_market_param_update_proposals: ::prost::alloc::vec::Vec, + pub derivative_market_param_update_proposals: ::prost::alloc::vec::Vec< + DerivativeMarketParamUpdateProposal, + >, #[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, + pub perpetual_market_launch_proposals: ::prost::alloc::vec::Vec< + PerpetualMarketLaunchProposal, + >, #[prost(message, repeated, tag = "7")] - pub expiry_futures_market_launch_proposals: ::prost::alloc::vec::Vec, + pub expiry_futures_market_launch_proposals: ::prost::alloc::vec::Vec< + ExpiryFuturesMarketLaunchProposal, + >, #[prost(message, optional, tag = "8")] - pub trading_reward_campaign_update_proposal: ::core::option::Option, + pub trading_reward_campaign_update_proposal: ::core::option::Option< + TradingRewardCampaignUpdateProposal, + >, #[prost(message, repeated, tag = "9")] - pub binary_options_market_launch_proposals: ::prost::alloc::vec::Vec, + pub binary_options_market_launch_proposals: ::prost::alloc::vec::Vec< + BinaryOptionsMarketLaunchProposal, + >, #[prost(message, repeated, tag = "10")] - pub binary_options_param_update_proposals: ::prost::alloc::vec::Vec, + pub binary_options_param_update_proposals: ::prost::alloc::vec::Vec< + BinaryOptionsMarketParamUpdateProposal, + >, #[prost(message, optional, tag = "11")] - pub denom_decimals_update_proposal: ::core::option::Option, + pub denom_decimals_update_proposal: ::core::option::Option< + UpdateDenomDecimalsProposal, + >, #[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, + pub market_forced_settlement_proposals: ::prost::alloc::vec::Vec< + MarketForcedSettlementProposal, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.SpotMarketLaunchProposal")] pub struct SpotMarketLaunchProposal { #[prost(string, tag = "1")] @@ -3423,7 +3807,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.PerpetualMarketLaunchProposal")] pub struct PerpetualMarketLaunchProposal { #[prost(string, tag = "1")] @@ -3488,8 +3873,11 @@ pub struct PerpetualMarketLaunchProposal { pub admin_info: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.BinaryOptionsMarketLaunchProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -3566,8 +3954,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.ExpiryFuturesMarketLaunchProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -3638,8 +4029,11 @@ pub struct ExpiryFuturesMarketLaunchProposal { pub admin_info: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.DerivativeMarketParamUpdateProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -3701,7 +4095,8 @@ pub struct DerivativeMarketParamUpdateProposal { pub admin_info: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.AdminInfo")] pub struct AdminInfo { #[prost(string, tag = "1")] @@ -3714,7 +4109,8 @@ pub struct AdminInfo { pub admin_permissions: u32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MarketForcedSettlementProposal")] pub struct MarketForcedSettlementProposal { #[prost(string, tag = "1")] @@ -3728,7 +4124,8 @@ pub struct MarketForcedSettlementProposal { pub settlement_price: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.UpdateDenomDecimalsProposal")] pub struct UpdateDenomDecimalsProposal { #[prost(string, tag = "1")] @@ -3739,8 +4136,11 @@ pub struct UpdateDenomDecimalsProposal { pub denom_decimals: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.BinaryOptionsMarketParamUpdateProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -3805,7 +4205,8 @@ pub struct BinaryOptionsMarketParamUpdateProposal { pub min_notional: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.ProviderOracleParams")] pub struct ProviderOracleParams { /// Oracle base currency @@ -3830,7 +4231,8 @@ pub struct ProviderOracleParams { pub oracle_type: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.OracleParams")] pub struct OracleParams { /// Oracle base currency @@ -3855,8 +4257,11 @@ pub struct OracleParams { pub oracle_type: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.TradingRewardCampaignLaunchProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -3868,8 +4273,11 @@ pub struct TradingRewardCampaignLaunchProposal { pub campaign_reward_pools: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.TradingRewardCampaignUpdateProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -3883,7 +4291,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.RewardPointUpdate")] pub struct RewardPointUpdate { #[prost(string, tag = "1")] @@ -3893,8 +4302,11 @@ pub struct RewardPointUpdate { pub new_points: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.TradingRewardPendingPointsUpdateProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -3910,7 +4322,8 @@ pub struct TradingRewardPendingPointsUpdateProposal { pub reward_point_updates: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.FeeDiscountProposal")] pub struct FeeDiscountProposal { #[prost(string, tag = "1")] @@ -3921,21 +4334,29 @@ pub struct FeeDiscountProposal { pub schedule: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.BatchCommunityPoolSpendProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub proposals: ::prost::alloc::vec::Vec< + super::super::super::cosmos::distribution::v1beta1::CommunityPoolSpendProposal, + >, } /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.AtomicMarketOrderFeeMultiplierScheduleProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -3975,7 +4396,8 @@ impl ExchangeType { } } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.Subaccount")] pub struct Subaccount { #[prost(string, tag = "1")] @@ -3988,7 +4410,8 @@ pub struct Subaccount { pub subaccount_nonce: u32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountOrdersRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SubaccountOrders", @@ -4003,7 +4426,8 @@ pub struct QuerySubaccountOrdersRequest { pub market_id: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountOrdersResponse")] pub struct QuerySubaccountOrdersResponse { #[prost(message, repeated, tag = "1")] @@ -4012,8 +4436,11 @@ pub struct QuerySubaccountOrdersResponse { pub sell_orders: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.SubaccountOrderbookMetadataWithMarket")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -4026,7 +4453,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryExchangeParamsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/QueryExchangeParams", @@ -4036,7 +4464,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryExchangeParamsResponse")] pub struct QueryExchangeParamsResponse { #[prost(message, optional, tag = "1")] @@ -4045,7 +4474,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountDepositsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SubaccountDeposits", @@ -4061,8 +4491,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountDepositsResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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>, @@ -4070,7 +4503,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryExchangeBalancesRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/ExchangeBalances", @@ -4080,7 +4514,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryExchangeBalancesResponse")] pub struct QueryExchangeBalancesResponse { #[prost(message, repeated, tag = "1")] @@ -4089,7 +4524,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryAggregateVolumeRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/AggregateVolume", @@ -4103,7 +4539,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -4114,7 +4551,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryAggregateVolumesRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/AggregateVolumes", @@ -4130,12 +4568,15 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub aggregate_account_volumes: ::prost::alloc::vec::Vec< + AggregateAccountVolumeRecord, + >, /// the aggregate volumes for the markets specified #[prost(message, repeated, tag = "2")] pub aggregate_market_volumes: ::prost::alloc::vec::Vec, @@ -4143,8 +4584,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAggregateMarketVolumeRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -4157,8 +4601,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAggregateMarketVolumeResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -4166,7 +4613,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryDenomDecimalRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/DenomDecimal", @@ -4179,7 +4627,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryDenomDecimalResponse")] pub struct QueryDenomDecimalResponse { #[prost(uint64, tag = "1")] @@ -4192,7 +4641,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryDenomDecimalsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/DenomDecimals", @@ -4206,7 +4656,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryDenomDecimalsResponse")] pub struct QueryDenomDecimalsResponse { #[prost(message, repeated, tag = "1")] @@ -4215,8 +4666,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAggregateMarketVolumesRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -4229,8 +4683,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAggregateMarketVolumesResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -4239,7 +4696,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountDepositRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SubaccountDeposit", @@ -4255,7 +4713,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountDepositResponse")] pub struct QuerySubaccountDepositResponse { #[prost(message, optional, tag = "1")] @@ -4264,7 +4723,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QuerySpotMarketsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SpotMarkets", @@ -4282,7 +4742,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QuerySpotMarketsResponse")] pub struct QuerySpotMarketsResponse { #[prost(message, repeated, tag = "1")] @@ -4291,7 +4752,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QuerySpotMarketRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SpotMarket", @@ -4306,7 +4768,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QuerySpotMarketResponse")] pub struct QuerySpotMarketResponse { #[prost(message, optional, tag = "1")] @@ -4315,7 +4778,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QuerySpotOrderbookRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SpotOrderbook", @@ -4346,7 +4810,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QuerySpotOrderbookResponse")] pub struct QuerySpotOrderbookResponse { #[prost(message, repeated, tag = "1")] @@ -4355,7 +4820,8 @@ pub struct QuerySpotOrderbookResponse { pub sells_price_level: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.FullSpotMarket")] pub struct FullSpotMarket { #[prost(message, optional, tag = "1")] @@ -4368,7 +4834,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryFullSpotMarketsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/FullSpotMarkets", @@ -4390,7 +4857,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryFullSpotMarketsResponse")] pub struct QueryFullSpotMarketsResponse { #[prost(message, repeated, tag = "1")] @@ -4399,7 +4867,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryFullSpotMarketRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/FullSpotMarket", @@ -4418,7 +4887,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryFullSpotMarketResponse")] pub struct QueryFullSpotMarketResponse { #[prost(message, optional, tag = "1")] @@ -4427,7 +4897,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QuerySpotOrdersByHashesRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SpotOrdersByHashes", @@ -4449,8 +4920,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySpotOrdersByHashesResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -4458,7 +4932,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryTraderSpotOrdersRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/TraderSpotOrders", @@ -4477,8 +4952,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAccountAddressSpotOrdersRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -4493,7 +4971,8 @@ pub struct QueryAccountAddressSpotOrdersRequest { pub account_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.TrimmedSpotLimitOrder")] pub struct TrimmedSpotLimitOrder { /// price of the order @@ -4516,7 +4995,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryTraderSpotOrdersResponse")] pub struct QueryTraderSpotOrdersResponse { #[prost(message, repeated, tag = "1")] @@ -4525,8 +5005,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAccountAddressSpotOrdersResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -4534,7 +5017,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QuerySpotMidPriceAndTOBRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/SpotMidPriceAndTOB", @@ -4549,8 +5033,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySpotMidPriceAndTOBResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -4565,8 +5052,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeMidPriceAndTOBRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -4580,8 +5070,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeMidPriceAndTOBResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -4596,8 +5089,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeOrderbookRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -4619,8 +5115,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeOrderbookResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -4630,8 +5129,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTraderSpotOrdersToCancelUpToAmountRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -4662,8 +5164,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTraderDerivativeOrdersToCancelUpToAmountRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -4691,8 +5196,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTraderDerivativeOrdersRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -4710,8 +5218,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAccountAddressDerivativeOrdersRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -4726,7 +5237,8 @@ pub struct QueryAccountAddressDerivativeOrdersRequest { pub account_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.TrimmedDerivativeLimitOrder")] pub struct TrimmedDerivativeLimitOrder { /// price of the order @@ -4754,8 +5266,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTraderDerivativeOrdersResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -4763,8 +5278,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryAccountAddressDerivativeOrdersResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -4772,8 +5290,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeOrdersByHashesRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -4794,8 +5315,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeOrdersByHashesResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -4803,7 +5327,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeMarketsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/DerivativeMarkets", @@ -4823,7 +5348,8 @@ pub struct QueryDerivativeMarketsRequest { pub with_mid_price_and_tob: bool, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.PriceLevel")] pub struct PriceLevel { #[prost(string, tag = "1")] @@ -4833,7 +5359,8 @@ pub struct PriceLevel { pub quantity: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.PerpetualMarketState")] pub struct PerpetualMarketState { #[prost(message, optional, tag = "1")] @@ -4842,7 +5369,8 @@ pub struct PerpetualMarketState { pub funding_info: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.FullDerivativeMarket")] pub struct FullDerivativeMarket { #[prost(message, optional, tag = "1")] @@ -4858,9 +5386,10 @@ pub struct FullDerivativeMarket { } /// Nested message and enum types in `FullDerivativeMarket`. pub mod full_derivative_market { - use injective_std_derive::CosmwasmExt; + use osmosis_std_derive::CosmwasmExt; #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, Eq, ::prost::Oneof, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema)] + #[derive(Clone, PartialEq, Eq, ::prost::Oneof)] + #[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema)] pub enum Info { #[prost(message, tag = "2")] PerpetualInfo(super::PerpetualMarketState), @@ -4871,7 +5400,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeMarketsResponse")] pub struct QueryDerivativeMarketsResponse { #[prost(message, repeated, tag = "1")] @@ -4880,7 +5410,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeMarketRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/DerivativeMarket", @@ -4895,7 +5426,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeMarketResponse")] pub struct QueryDerivativeMarketResponse { #[prost(message, optional, tag = "1")] @@ -4904,8 +5436,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeMarketAddressRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -4919,8 +5454,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryDerivativeMarketAddressResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -4933,8 +5471,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountTradeNonceRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -4947,8 +5488,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountPositionsRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -4961,8 +5505,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountPositionInMarketRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -4978,8 +5525,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountEffectivePositionInMarketRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -4995,8 +5545,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountOrderMetadataRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -5009,8 +5562,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountPositionsResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -5018,14 +5574,18 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountPositionInMarketResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.EffectivePosition")] pub struct EffectivePosition { #[prost(bool, tag = "1")] @@ -5040,8 +5600,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountEffectivePositionInMarketResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -5049,8 +5612,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryPerpetualMarketInfoRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -5063,8 +5629,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryPerpetualMarketInfoResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -5072,8 +5641,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryExpiryFuturesMarketInfoRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -5086,8 +5658,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryExpiryFuturesMarketInfoResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -5095,8 +5670,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryPerpetualMarketFundingRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -5109,8 +5687,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryPerpetualMarketFundingResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -5118,8 +5699,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountOrderMetadataResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -5127,8 +5711,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QuerySubaccountTradeNonceResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.exchange.v1beta1.QuerySubaccountTradeNonceResponse" +)] pub struct QuerySubaccountTradeNonceResponse { #[prost(uint32, tag = "1")] #[serde( @@ -5140,7 +5727,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryModuleStateRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/ExchangeModuleState", @@ -5150,7 +5738,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryModuleStateResponse")] pub struct QueryModuleStateResponse { #[prost(message, optional, tag = "1")] @@ -5158,7 +5747,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryPositionsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/Positions", @@ -5168,7 +5758,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryPositionsResponse")] pub struct QueryPositionsResponse { #[prost(message, repeated, tag = "1")] @@ -5177,7 +5768,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryTradeRewardPointsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/TradeRewardPoints", @@ -5196,17 +5788,23 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTradeRewardCampaignRequest")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -5215,25 +5813,37 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTradeRewardCampaignResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub trading_reward_pool_campaign_schedule: ::prost::alloc::vec::Vec< + CampaignRewardPool, + >, #[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, + pub pending_trading_reward_pool_campaign_schedule: ::prost::alloc::vec::Vec< + CampaignRewardPool, + >, #[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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryIsOptedOutOfRewardsRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -5245,8 +5855,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryIsOptedOutOfRewardsResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -5254,8 +5867,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryOptedOutOfRewardsAccountsRequest")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -5264,8 +5880,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryOptedOutOfRewardsAccountsResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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>, @@ -5273,8 +5892,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryFeeDiscountAccountInfoRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -5286,8 +5908,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryFeeDiscountAccountInfoResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.exchange.v1beta1.QueryFeeDiscountAccountInfoResponse" +)] pub struct QueryFeeDiscountAccountInfoResponse { #[prost(uint64, tag = "1")] #[serde( @@ -5303,8 +5928,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryFeeDiscountScheduleRequest")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -5313,8 +5941,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryFeeDiscountScheduleResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -5322,7 +5953,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryBalanceMismatchesRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/BalanceMismatches", @@ -5337,7 +5969,8 @@ pub struct QueryBalanceMismatchesRequest { pub dust_factor: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.BalanceMismatch")] pub struct BalanceMismatch { #[prost(string, tag = "1")] @@ -5359,7 +5992,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryBalanceMismatchesResponse")] pub struct QueryBalanceMismatchesResponse { #[prost(message, repeated, tag = "1")] @@ -5368,15 +6002,19 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryBalanceWithBalanceHoldsRequest")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.BalanceWithMarginHold")] pub struct BalanceWithMarginHold { #[prost(string, tag = "1")] @@ -5394,8 +6032,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryBalanceWithBalanceHoldsResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -5403,15 +6044,19 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryFeeDiscountTierStatisticsRequest")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.TierStatistic")] pub struct TierStatistic { #[prost(uint64, tag = "1")] @@ -5430,8 +6075,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryFeeDiscountTierStatisticsResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -5439,7 +6087,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MitoVaultInfosRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/MitoVaultInfos", @@ -5449,7 +6098,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.MitoVaultInfosResponse")] pub struct MitoVaultInfosResponse { #[prost(string, repeated, tag = "1")] @@ -5464,7 +6114,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryMarketIDFromVaultRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/QueryMarketIDFromVault", @@ -5477,7 +6128,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryMarketIDFromVaultResponse")] pub struct QueryMarketIdFromVaultResponse { #[prost(string, tag = "1")] @@ -5485,8 +6137,11 @@ pub struct QueryMarketIdFromVaultResponse { pub market_id: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryHistoricalTradeRecordsRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -5497,8 +6152,11 @@ pub struct QueryHistoricalTradeRecordsRequest { pub market_id: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryHistoricalTradeRecordsResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -5506,7 +6164,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -5537,7 +6196,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryMarketVolatilityRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/MarketVolatility", @@ -5553,20 +6213,24 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub history_metadata: ::core::option::Option< + super::super::oracle::v1beta1::MetadataStatistics, + >, #[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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryBinaryMarketsRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/BinaryOptionsMarkets", @@ -5580,7 +6244,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryBinaryMarketsResponse")] pub struct QueryBinaryMarketsResponse { #[prost(message, repeated, tag = "1")] @@ -5589,8 +6254,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTraderDerivativeConditionalOrdersRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -5604,8 +6272,11 @@ pub struct QueryTraderDerivativeConditionalOrdersRequest { pub market_id: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.TrimmedDerivativeConditionalOrder")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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")] @@ -5618,14 +6289,14 @@ pub struct TrimmedDerivativeConditionalOrder { pub margin: ::prost::alloc::string::String, /// price to trigger the order #[prost(string, tag = "4")] - pub triggerPrice: ::prost::alloc::string::String, + pub trigger_price: ::prost::alloc::string::String, /// true if the order is a buy /// /// ensure omitempty is not in jsontag #[prost(bool, tag = "5")] - pub isBuy: bool, + pub is_buy: bool, #[prost(bool, tag = "6")] - pub isLimit: bool, + pub is_limit: bool, #[prost(string, tag = "7")] pub order_hash: ::prost::alloc::string::String, #[prost(string, tag = "8")] @@ -5634,15 +6305,21 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryTraderDerivativeConditionalOrdersResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryMarketAtomicExecutionFeeMultiplierRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -5653,14 +6330,18 @@ pub struct QueryMarketAtomicExecutionFeeMultiplierRequest { pub market_id: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryMarketAtomicExecutionFeeMultiplierResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryActiveStakeGrantRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/ActiveStakeGrant", @@ -5671,7 +6352,8 @@ pub struct QueryActiveStakeGrantRequest { pub grantee: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryActiveStakeGrantResponse")] pub struct QueryActiveStakeGrantResponse { #[prost(message, optional, tag = "1")] @@ -5680,7 +6362,8 @@ pub struct QueryActiveStakeGrantResponse { pub effective_grant: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.exchange.v1beta1.QueryGrantAuthorizationRequest")] #[proto_query( path = "/injective.exchange.v1beta1.Query/GrantAuthorization", @@ -5693,15 +6376,21 @@ pub struct QueryGrantAuthorizationRequest { pub grantee: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryGrantAuthorizationResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.exchange.v1beta1.QueryGrantAuthorizationResponse" +)] pub struct QueryGrantAuthorizationResponse { #[prost(string, tag = "1")] pub amount: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryGrantAuthorizationsRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.exchange.v1beta1.QueryGrantAuthorizationsRequest" +)] #[proto_query( path = "/injective.exchange.v1beta1.Query/GrantAuthorizations", response_type = QueryGrantAuthorizationsResponse @@ -5711,8 +6400,11 @@ pub struct QueryGrantAuthorizationsRequest { pub granter: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.exchange.v1beta1.QueryGrantAuthorizationsResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.exchange.v1beta1.QueryGrantAuthorizationsResponse" +)] pub struct QueryGrantAuthorizationsResponse { #[prost(string, tag = "1")] pub total_grant_amount: ::prost::alloc::string::String, @@ -5791,7 +6483,9 @@ 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( @@ -5799,58 +6493,100 @@ 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, @@ -5863,7 +6599,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, @@ -5874,7 +6610,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, @@ -5891,21 +6627,29 @@ 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, @@ -5918,33 +6662,47 @@ 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, @@ -5957,21 +6715,29 @@ 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, @@ -5984,14 +6750,18 @@ 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, @@ -6004,24 +6774,38 @@ 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 { @@ -6031,45 +6815,71 @@ 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 { - QuerySubaccountEffectivePositionInMarketRequest { subaccount_id, market_id }.query(self.querier) + ) -> Result< + QuerySubaccountEffectivePositionInMarketResponse, + cosmwasm_std::StdError, + > { + 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, @@ -6080,7 +6890,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, @@ -6091,52 +6901,88 @@ 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, @@ -6147,35 +6993,67 @@ 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 { - QueryMarketAtomicExecutionFeeMultiplierRequest { market_id }.query(self.querier) + ) -> Result< + QueryMarketAtomicExecutionFeeMultiplierResponse, + cosmwasm_std::StdError, + > { + QueryMarketAtomicExecutionFeeMultiplierRequest { + market_id, + } + .query(self.querier) } - pub fn active_stake_grant(&self, grantee: ::prost::alloc::string::String) -> Result { - QueryActiveStakeGrantRequest { grantee }.query(self.querier) + pub fn active_stake_grant( + &self, + grantee: ::prost::alloc::string::String, + ) -> Result { + QueryActiveStakeGrantRequest { + grantee, + } + .query(self.querier) } pub fn grant_authorization( &self, granter: ::prost::alloc::string::String, grantee: ::prost::alloc::string::String, ) -> Result { - QueryGrantAuthorizationRequest { granter, grantee }.query(self.querier) + QueryGrantAuthorizationRequest { + granter, + grantee, + } + .query(self.querier) } - pub fn grant_authorizations(&self, granter: ::prost::alloc::string::String) -> Result { - QueryGrantAuthorizationsRequest { granter }.query(self.querier) + pub fn grant_authorizations( + &self, + granter: ::prost::alloc::string::String, + ) -> Result { + QueryGrantAuthorizationsRequest { + granter, + } + .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 7fef0b22..c223a9df 100644 --- a/packages/injective-std/src/types/injective/insurance/v1beta1.rs +++ b/packages/injective-std/src/types/injective/insurance/v1beta1.rs @@ -1,16 +1,20 @@ -use injective_std_derive::CosmwasmExt; +use osmosis_std_derive::CosmwasmExt; #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub default_redemption_notice_period_duration: ::core::option::Option< + crate::shim::Duration, + >, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -62,7 +66,8 @@ pub struct InsuranceFund { pub expiry: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.insurance.v1beta1.RedemptionSchedule")] pub struct RedemptionSchedule { /// id of redemption schedule @@ -85,24 +90,29 @@ 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, + pub redemption_amount: ::core::option::Option< + super::super::super::cosmos::base::v1beta1::Coin, + >, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.insurance.v1beta1.EventWithdrawRedemption")] pub struct EventWithdrawRedemption { /// redemption schedule triggered withdraw @@ -110,10 +120,13 @@ 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, + pub redeem_coin: ::core::option::Option< + super::super::super::cosmos::base::v1beta1::Coin, + >, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.insurance.v1beta1.EventUnderwrite")] pub struct EventUnderwrite { /// address of the underwriter @@ -125,13 +138,16 @@ pub struct EventUnderwrite { pub market_id: ::prost::alloc::string::String, /// deposit coin amount #[prost(message, optional, tag = "3")] - pub deposit: ::core::option::Option, + pub deposit: ::core::option::Option< + super::super::super::cosmos::base::v1beta1::Coin, + >, /// share coin amount #[prost(message, optional, tag = "4")] pub shares: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.insurance.v1beta1.EventInsuranceWithdraw")] pub struct EventInsuranceWithdraw { #[prost(string, tag = "1")] @@ -140,11 +156,14 @@ pub struct EventInsuranceWithdraw { #[prost(string, tag = "2")] pub market_ticker: ::prost::alloc::string::String, #[prost(message, optional, tag = "3")] - pub withdrawal: ::core::option::Option, + pub withdrawal: ::core::option::Option< + super::super::super::cosmos::base::v1beta1::Coin, + >, } /// GenesisState defines the insurance module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -179,7 +198,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.insurance.v1beta1.QueryInsuranceParamsRequest")] #[proto_query( path = "/injective.insurance.v1beta1.Query/InsuranceParams", @@ -189,7 +209,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.insurance.v1beta1.QueryInsuranceParamsResponse")] pub struct QueryInsuranceParamsResponse { #[prost(message, optional, tag = "1")] @@ -198,7 +219,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.insurance.v1beta1.QueryInsuranceFundRequest")] #[proto_query( path = "/injective.insurance.v1beta1.Query/InsuranceFund", @@ -213,7 +235,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.insurance.v1beta1.QueryInsuranceFundResponse")] pub struct QueryInsuranceFundResponse { #[prost(message, optional, tag = "1")] @@ -222,7 +245,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.insurance.v1beta1.QueryInsuranceFundsRequest")] #[proto_query( path = "/injective.insurance.v1beta1.Query/InsuranceFunds", @@ -232,7 +256,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.insurance.v1beta1.QueryInsuranceFundsResponse")] pub struct QueryInsuranceFundsResponse { #[prost(message, repeated, tag = "1")] @@ -241,8 +266,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.insurance.v1beta1.QueryEstimatedRedemptionsRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -257,17 +285,25 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.insurance.v1beta1.QueryEstimatedRedemptionsResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub amount: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, } /// QueryPendingRedemptionsRequest is the request type for the /// Query/PendingRedemptions RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.insurance.v1beta1.QueryPendingRedemptionsRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -282,16 +318,22 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.insurance.v1beta1.QueryPendingRedemptionsResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub amount: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, } /// QueryModuleStateRequest is the request type for the /// Query/InsuranceModuleState RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.insurance.v1beta1.QueryModuleStateRequest")] #[proto_query( path = "/injective.insurance.v1beta1.Query/InsuranceModuleState", @@ -301,7 +343,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.insurance.v1beta1.QueryModuleStateResponse")] pub struct QueryModuleStateResponse { #[prost(message, optional, tag = "1")] @@ -310,7 +353,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.insurance.v1beta1.MsgCreateInsuranceFund")] pub struct MsgCreateInsuranceFund { /// Creator of the insurance fund. @@ -347,16 +391,22 @@ pub struct MsgCreateInsuranceFund { pub expiry: i64, /// Initial deposit of the insurance fund #[prost(message, optional, tag = "8")] - pub initial_deposit: ::core::option::Option, + pub initial_deposit: ::core::option::Option< + super::super::super::cosmos::base::v1beta1::Coin, + >, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.insurance.v1beta1.MsgCreateInsuranceFundResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.insurance.v1beta1.MsgUnderwrite")] pub struct MsgUnderwrite { /// Address of the underwriter. @@ -368,16 +418,20 @@ 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, + pub deposit: ::core::option::Option< + super::super::super::cosmos::base::v1beta1::Coin, + >, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -392,11 +446,13 @@ pub struct MsgRequestRedemption { pub amount: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -409,7 +465,8 @@ pub struct MsgUpdateParams { pub params: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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> { @@ -419,13 +476,23 @@ 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( @@ -433,16 +500,26 @@ 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 df7772fa..860dfbf4 100644 --- a/packages/injective-std/src/types/injective/oracle/v1beta1.rs +++ b/packages/injective-std/src/types/injective/oracle/v1beta1.rs @@ -1,13 +1,15 @@ -use injective_std_derive::CosmwasmExt; +use osmosis_std_derive::CosmwasmExt; #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.OracleInfo")] pub struct OracleInfo { #[prost(string, tag = "1")] @@ -20,7 +22,8 @@ pub struct OracleInfo { pub oracle_type: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.ChainlinkPriceState")] pub struct ChainlinkPriceState { #[prost(string, tag = "1")] @@ -38,7 +41,8 @@ pub struct ChainlinkPriceState { pub price_state: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.BandPriceState")] pub struct BandPriceState { #[prost(string, tag = "1")] @@ -62,7 +66,8 @@ pub struct BandPriceState { pub price_state: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.PriceFeedState")] pub struct PriceFeedState { #[prost(string, tag = "1")] @@ -75,7 +80,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.ProviderInfo")] pub struct ProviderInfo { #[prost(string, tag = "1")] @@ -84,7 +90,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.ProviderState")] pub struct ProviderState { #[prost(message, optional, tag = "1")] @@ -93,7 +100,8 @@ pub struct ProviderState { pub provider_price_states: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.ProviderPriceState")] pub struct ProviderPriceState { #[prost(string, tag = "1")] @@ -102,7 +110,8 @@ pub struct ProviderPriceState { pub state: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.PriceFeedInfo")] pub struct PriceFeedInfo { #[prost(string, tag = "1")] @@ -111,14 +120,16 @@ pub struct PriceFeedInfo { pub quote: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.CoinbasePriceState")] pub struct CoinbasePriceState { /// kind should always be "prices" @@ -146,7 +157,8 @@ pub struct CoinbasePriceState { pub price_state: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.StorkPriceState")] pub struct StorkPriceState { /// timestamp of the when the price was signed by stork @@ -167,7 +179,8 @@ pub struct StorkPriceState { pub price_state: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.PriceState")] pub struct PriceState { #[prost(string, tag = "1")] @@ -182,7 +195,8 @@ pub struct PriceState { pub timestamp: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.PythPriceState")] pub struct PythPriceState { #[prost(string, tag = "1")] @@ -204,7 +218,8 @@ pub struct PythPriceState { pub price_state: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -247,7 +262,9 @@ 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, + pub fee_limit: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, /// PrepareGas is amount of gas to pay to prepare raw requests #[prost(uint64, tag = "7")] #[serde( @@ -272,7 +289,8 @@ pub struct BandOracleRequest { pub min_source_count: u64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -301,7 +319,8 @@ pub struct BandIbcParams { pub legacy_oracle_ids: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.SymbolPriceTimestamp")] pub struct SymbolPriceTimestamp { #[prost(enumeration = "OracleType", tag = "1")] @@ -321,14 +340,16 @@ pub struct SymbolPriceTimestamp { pub timestamp: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.PriceRecords")] pub struct PriceRecords { #[prost(enumeration = "OracleType", tag = "1")] @@ -344,7 +365,8 @@ pub struct PriceRecords { pub latest_price_records: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.PriceRecord")] pub struct PriceRecord { #[prost(int64, tag = "1")] @@ -359,7 +381,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -412,7 +435,8 @@ pub struct MetadataStatistics { pub median_price: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.PriceAttestation")] pub struct PriceAttestation { #[prost(string, tag = "1")] @@ -463,7 +487,8 @@ pub struct PriceAttestation { pub publish_time: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.AssetPair")] pub struct AssetPair { #[prost(string, tag = "1")] @@ -473,7 +498,8 @@ pub struct AssetPair { pub signed_prices: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.SignedPriceOfAssetPair")] pub struct SignedPriceOfAssetPair { #[prost(string, tag = "1")] @@ -550,7 +576,8 @@ impl OracleType { } } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.SetChainlinkPriceEvent")] pub struct SetChainlinkPriceEvent { #[prost(string, tag = "1")] @@ -567,7 +594,8 @@ pub struct SetChainlinkPriceEvent { } /// Event type upon set ref #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.SetBandPriceEvent")] pub struct SetBandPriceEvent { #[prost(string, tag = "1")] @@ -591,7 +619,8 @@ pub struct SetBandPriceEvent { pub request_id: u64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.SetBandIBCPriceEvent")] pub struct SetBandIbcPriceEvent { #[prost(string, tag = "1")] @@ -622,7 +651,8 @@ pub struct SetBandIbcPriceEvent { pub client_id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.EventBandIBCAckSuccess")] pub struct EventBandIbcAckSuccess { #[prost(string, tag = "1")] @@ -636,7 +666,8 @@ pub struct EventBandIbcAckSuccess { pub client_id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.EventBandIBCAckError")] pub struct EventBandIbcAckError { #[prost(string, tag = "1")] @@ -650,7 +681,8 @@ pub struct EventBandIbcAckError { pub client_id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.EventBandIBCResponseTimeout")] pub struct EventBandIbcResponseTimeout { #[prost(int64, tag = "1")] @@ -662,7 +694,8 @@ pub struct EventBandIbcResponseTimeout { pub client_id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.SetPriceFeedPriceEvent")] pub struct SetPriceFeedPriceEvent { #[prost(string, tag = "1")] @@ -676,7 +709,8 @@ pub struct SetPriceFeedPriceEvent { pub price: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.SetProviderPriceEvent")] pub struct SetProviderPriceEvent { #[prost(string, tag = "1")] @@ -689,7 +723,8 @@ pub struct SetProviderPriceEvent { pub price: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.SetCoinbasePriceEvent")] pub struct SetCoinbasePriceEvent { #[prost(string, tag = "1")] @@ -704,14 +739,16 @@ pub struct SetCoinbasePriceEvent { pub timestamp: u64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.EventSetStorkPrices")] pub struct EventSetStorkPrices { #[prost(message, repeated, tag = "1")] pub prices: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.EventSetPythPrices")] pub struct EventSetPythPrices { #[prost(message, repeated, tag = "1")] @@ -719,7 +756,8 @@ pub struct EventSetPythPrices { } /// GenesisState defines the oracle module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -769,7 +807,8 @@ pub struct GenesisState { pub stork_publishers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.CalldataRecord")] pub struct CalldataRecord { #[prost(uint64, tag = "1")] @@ -783,7 +822,8 @@ pub struct CalldataRecord { pub calldata: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.GrantBandOraclePrivilegeProposal")] pub struct GrantBandOraclePrivilegeProposal { #[prost(string, tag = "1")] @@ -794,8 +834,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.oracle.v1beta1.RevokeBandOraclePrivilegeProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -805,8 +848,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.oracle.v1beta1.GrantPriceFeederPrivilegeProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -820,7 +866,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.GrantProviderPrivilegeProposal")] pub struct GrantProviderPrivilegeProposal { #[prost(string, tag = "1")] @@ -833,7 +880,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.RevokeProviderPrivilegeProposal")] pub struct RevokeProviderPrivilegeProposal { #[prost(string, tag = "1")] @@ -846,8 +894,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.oracle.v1beta1.RevokePriceFeederPrivilegeProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -861,8 +912,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.oracle.v1beta1.AuthorizeBandOracleRequestProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -872,7 +926,8 @@ pub struct AuthorizeBandOracleRequestProposal { pub request: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.UpdateBandOracleRequestProposal")] pub struct UpdateBandOracleRequestProposal { #[prost(string, tag = "1")] @@ -886,7 +941,8 @@ pub struct UpdateBandOracleRequestProposal { pub update_oracle_request: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.EnableBandIBCProposal")] pub struct EnableBandIbcProposal { #[prost(string, tag = "1")] @@ -897,8 +953,11 @@ pub struct EnableBandIbcProposal { pub band_ibc_params: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.oracle.v1beta1.GrantStorkPublisherPrivilegeProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.oracle.v1beta1.GrantStorkPublisherPrivilegeProposal" +)] pub struct GrantStorkPublisherPrivilegeProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -908,8 +967,11 @@ pub struct GrantStorkPublisherPrivilegeProposal { pub stork_publishers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.oracle.v1beta1.RevokeStorkPublisherPrivilegeProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.oracle.v1beta1.RevokeStorkPublisherPrivilegeProposal" +)] pub struct RevokeStorkPublisherPrivilegeProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -919,7 +981,8 @@ pub struct RevokeStorkPublisherPrivilegeProposal { pub stork_publishers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryPythPriceRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/PythPrice", @@ -931,7 +994,8 @@ pub struct QueryPythPriceRequest { pub price_id: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryPythPriceResponse")] pub struct QueryPythPriceResponse { #[prost(message, optional, tag = "1")] @@ -940,7 +1004,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryParamsRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/Params", @@ -950,7 +1015,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryParamsResponse")] pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] @@ -959,7 +1025,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryBandRelayersRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/BandRelayers", @@ -969,7 +1036,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryBandRelayersResponse")] pub struct QueryBandRelayersResponse { #[prost(string, repeated, tag = "1")] @@ -978,7 +1046,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryBandPriceStatesRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/BandPriceStates", @@ -988,7 +1057,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryBandPriceStatesResponse")] pub struct QueryBandPriceStatesResponse { #[prost(message, repeated, tag = "1")] @@ -997,7 +1067,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryBandIBCPriceStatesRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/BandIBCPriceStates", @@ -1007,7 +1078,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryBandIBCPriceStatesResponse")] pub struct QueryBandIbcPriceStatesResponse { #[prost(message, repeated, tag = "1")] @@ -1016,7 +1088,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryPriceFeedPriceStatesRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/PriceFeedPriceStates", @@ -1026,8 +1099,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.oracle.v1beta1.QueryPriceFeedPriceStatesResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -1035,7 +1111,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryCoinbasePriceStatesRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/CoinbasePriceStates", @@ -1045,7 +1122,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryCoinbasePriceStatesResponse")] pub struct QueryCoinbasePriceStatesResponse { #[prost(message, repeated, tag = "1")] @@ -1054,7 +1132,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryPythPriceStatesRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/PythPriceStates", @@ -1064,7 +1143,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryPythPriceStatesResponse")] pub struct QueryPythPriceStatesResponse { #[prost(message, repeated, tag = "1")] @@ -1073,7 +1153,8 @@ pub struct QueryPythPriceStatesResponse { /// QueryStorkPriceStatesRequest is the request type for the /// Query/StorkPriceStates RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryStorkPriceStatesRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/StorkPriceStates", @@ -1083,7 +1164,8 @@ pub struct QueryStorkPriceStatesRequest {} /// QueryStorkPriceStatesResponse is the response type for the /// Query/StorkPriceStates RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryStorkPriceStatesResponse")] pub struct QueryStorkPriceStatesResponse { #[prost(message, repeated, tag = "1")] @@ -1092,7 +1174,8 @@ pub struct QueryStorkPriceStatesResponse { /// QueryStorkPublishersRequest is the request type for the /// Query/StorkPublishers RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryStorkPublishersRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/StorkPublishers", @@ -1102,7 +1185,8 @@ pub struct QueryStorkPublishersRequest {} /// QueryStorkPublishersResponse is the response type for the /// Query/StorkPublishers RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryStorkPublishersResponse")] pub struct QueryStorkPublishersResponse { #[prost(string, repeated, tag = "1")] @@ -1111,7 +1195,8 @@ pub struct QueryStorkPublishersResponse { /// QueryProviderPriceStateRequest is the request type for the /// Query/ProviderPriceState RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryProviderPriceStateRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/ProviderPriceState", @@ -1126,7 +1211,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryProviderPriceStateResponse")] pub struct QueryProviderPriceStateResponse { #[prost(message, optional, tag = "1")] @@ -1135,7 +1221,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryModuleStateRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/OracleModuleState", @@ -1145,15 +1232,19 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.oracle.v1beta1.QueryHistoricalPriceRecordsRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1170,14 +1261,18 @@ pub struct QueryHistoricalPriceRecordsRequest { pub symbol_id: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.oracle.v1beta1.QueryHistoricalPriceRecordsResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -1201,7 +1296,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryOracleVolatilityRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/OracleVolatility", @@ -1218,7 +1314,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryOracleVolatilityResponse")] pub struct QueryOracleVolatilityResponse { #[prost(string, tag = "1")] @@ -1229,7 +1326,8 @@ pub struct QueryOracleVolatilityResponse { pub raw_history: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryOracleProvidersInfoRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/OracleProvidersInfo", @@ -1237,14 +1335,16 @@ pub struct QueryOracleVolatilityResponse { )] pub struct QueryOracleProvidersInfoRequest {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryOracleProviderPricesRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/OracleProviderPrices", @@ -1255,8 +1355,11 @@ pub struct QueryOracleProviderPricesRequest { pub provider: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.oracle.v1beta1.QueryOracleProviderPricesResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -1265,7 +1368,8 @@ pub struct QueryOracleProviderPricesResponse { /// oracle result will be returned as base_price * 10^base_decimals / quote_price /// * 10^quote_decimals #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.ScalingOptions")] pub struct ScalingOptions { #[prost(uint32, tag = "1")] @@ -1284,7 +1388,8 @@ pub struct ScalingOptions { /// QueryOraclePriceRequest is the request type for the Query/OraclePrice RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryOraclePriceRequest")] #[proto_query( path = "/injective.oracle.v1beta1.Query/OraclePrice", @@ -1305,7 +1410,8 @@ pub struct QueryOraclePriceRequest { pub scaling_options: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.PricePairState")] pub struct PricePairState { #[prost(string, tag = "1")] @@ -1334,7 +1440,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.QueryOraclePriceResponse")] pub struct QueryOraclePriceResponse { #[prost(message, optional, tag = "1")] @@ -1343,7 +1450,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.MsgRelayProviderPrices")] pub struct MsgRelayProviderPrices { #[prost(string, tag = "1")] @@ -1356,13 +1464,15 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.MsgRelayPriceFeedPrice")] pub struct MsgRelayPriceFeedPrice { #[prost(string, tag = "1")] @@ -1376,11 +1486,13 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.MsgRelayBandRates")] pub struct MsgRelayBandRates { #[prost(string, tag = "1")] @@ -1395,13 +1507,15 @@ pub struct MsgRelayBandRates { pub request_i_ds: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.MsgRelayCoinbaseMessages")] pub struct MsgRelayCoinbaseMessages { #[prost(string, tag = "1")] @@ -1412,13 +1526,15 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.MsgRelayCoinbaseMessagesResponse")] pub struct MsgRelayCoinbaseMessagesResponse {} /// MsgRelayStorkPrices defines a SDK message for relaying price message /// from Stork API. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.MsgRelayStorkPrices")] pub struct MsgRelayStorkPrices { #[prost(string, tag = "1")] @@ -1427,13 +1543,15 @@ pub struct MsgRelayStorkPrices { pub asset_pairs: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.MsgRelayStorkPricesResponse")] pub struct MsgRelayStorkPricesResponse {} /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.MsgRequestBandIBCRates")] pub struct MsgRequestBandIbcRates { #[prost(string, tag = "1")] @@ -1448,12 +1566,14 @@ pub struct MsgRequestBandIbcRates { } /// MsgRequestDataResponse defines the Msg/RequestBandIBCRates response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.oracle.v1beta1.MsgRelayPythPrices")] pub struct MsgRelayPythPrices { #[prost(string, tag = "1")] @@ -1463,11 +1583,13 @@ pub struct MsgRelayPythPrices { } /// MsgRelayPythPricesResponse defines the Msg/RelayPythPrices response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -1480,7 +1602,8 @@ pub struct MsgUpdateParams { pub params: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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> { @@ -1493,28 +1616,46 @@ 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 stork_price_states(&self) -> Result { + pub fn stork_price_states( + &self, + ) -> Result { QueryStorkPriceStatesRequest {}.query(self.querier) } - pub fn stork_publishers(&self) -> Result { + pub fn stork_publishers( + &self, + ) -> Result { QueryStorkPublishersRequest {}.query(self.querier) } pub fn provider_price_state( @@ -1522,9 +1663,15 @@ 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( @@ -1532,7 +1679,11 @@ 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, @@ -1545,16 +1696,21 @@ 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, @@ -1569,9 +1725,12 @@ impl<'a, Q: cosmwasm_std::CustomQuery> OracleQuerier<'a, Q> { quote, scaling_options, } - .query(self.querier) + .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/peggy/mod.rs b/packages/injective-std/src/types/injective/peggy/mod.rs index 57102a8b..a3a6d96c 100644 --- a/packages/injective-std/src/types/injective/peggy/mod.rs +++ b/packages/injective-std/src/types/injective/peggy/mod.rs @@ -1,2 +1 @@ -#![allow(non_snake_case)] pub mod v1; diff --git a/packages/injective-std/src/types/injective/peggy/v1.rs b/packages/injective-std/src/types/injective/peggy/v1.rs index f98e4a18..a74a3047 100644 --- a/packages/injective-std/src/types/injective/peggy/v1.rs +++ b/packages/injective-std/src/types/injective/peggy/v1.rs @@ -1,4 +1,4 @@ -use injective_std_derive::CosmwasmExt; +use osmosis_std_derive::CosmwasmExt; /// Attestation is an aggregate of `claims` that eventually becomes `observed` by /// all orchestrators /// EVENT_NONCE: @@ -15,7 +15,8 @@ use injective_std_derive::CosmwasmExt; /// exact details of the claim but there is no reason to store those exact /// details becuause the next message sender will kindly provide you with them. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.Attestation")] pub struct Attestation { #[prost(bool, tag = "1")] @@ -38,7 +39,8 @@ pub struct Attestation { /// (note: developers should look up the token symbol using the address on ETH to /// display for UI) #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.ERC20Token")] pub struct Erc20Token { #[prost(string, tag = "1")] @@ -86,7 +88,8 @@ impl ClaimType { } /// OutgoingTxBatch represents a batch of transactions going from Peggy to ETH #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.OutgoingTxBatch")] pub struct OutgoingTxBatch { #[prost(uint64, tag = "1")] @@ -114,7 +117,8 @@ pub struct OutgoingTxBatch { } /// OutgoingTransferTx represents an individual send from Peggy to ETH #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.OutgoingTransferTx")] pub struct OutgoingTransferTx { #[prost(uint64, tag = "1")] @@ -150,23 +154,32 @@ impl SignType { pub fn as_str_name(&self) -> &'static str { match self { SignType::Unknown => "SIGN_TYPE_UNKNOWN", - SignType::OrchestratorSignedMultiSigUpdate => "SIGN_TYPE_ORCHESTRATOR_SIGNED_MULTI_SIG_UPDATE", - SignType::OrchestratorSignedWithdrawBatch => "SIGN_TYPE_ORCHESTRATOR_SIGNED_WITHDRAW_BATCH", + SignType::OrchestratorSignedMultiSigUpdate => { + "SIGN_TYPE_ORCHESTRATOR_SIGNED_MULTI_SIG_UPDATE" + } + SignType::OrchestratorSignedWithdrawBatch => { + "SIGN_TYPE_ORCHESTRATOR_SIGNED_WITHDRAW_BATCH" + } } } /// Creates an enum from field names used in the ProtoBuf definition. pub fn from_str_name(value: &str) -> ::core::option::Option { match value { "SIGN_TYPE_UNKNOWN" => Some(Self::Unknown), - "SIGN_TYPE_ORCHESTRATOR_SIGNED_MULTI_SIG_UPDATE" => Some(Self::OrchestratorSignedMultiSigUpdate), - "SIGN_TYPE_ORCHESTRATOR_SIGNED_WITHDRAW_BATCH" => Some(Self::OrchestratorSignedWithdrawBatch), + "SIGN_TYPE_ORCHESTRATOR_SIGNED_MULTI_SIG_UPDATE" => { + Some(Self::OrchestratorSignedMultiSigUpdate) + } + "SIGN_TYPE_ORCHESTRATOR_SIGNED_WITHDRAW_BATCH" => { + Some(Self::OrchestratorSignedWithdrawBatch) + } _ => None, } } } /// BridgeValidator represents a validator's ETH address and its power #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.BridgeValidator")] pub struct BridgeValidator { #[prost(uint64, tag = "1")] @@ -182,7 +195,8 @@ pub struct BridgeValidator { /// maintains an ETH key to sign messages, these are used to check signatures on /// ETH because of the significant gas savings #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.Valset")] pub struct Valset { #[prost(uint64, tag = "1")] @@ -211,7 +225,8 @@ pub struct Valset { /// outward and always produce batches with timeouts in the future /// even if no Ethereum block height has been relayed for a long time #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.LastObservedEthereumBlockHeight")] pub struct LastObservedEthereumBlockHeight { #[prost(uint64, tag = "1")] @@ -229,7 +244,8 @@ pub struct LastObservedEthereumBlockHeight { } /// LastClaimEvent stores last claim event details of validator. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.LastClaimEvent")] pub struct LastClaimEvent { #[prost(uint64, tag = "1")] @@ -248,7 +264,8 @@ pub struct LastClaimEvent { /// This records the relationship between an ERC20 token and the denom /// of the corresponding Cosmos originated asset #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.ERC20ToDenom")] pub struct Erc20ToDenom { #[prost(string, tag = "1")] @@ -257,7 +274,8 @@ pub struct Erc20ToDenom { pub denom: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventAttestationObserved")] pub struct EventAttestationObserved { #[prost(enumeration = "ClaimType", tag = "1")] @@ -286,7 +304,8 @@ pub struct EventAttestationObserved { pub nonce: u64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventBridgeWithdrawCanceled")] pub struct EventBridgeWithdrawCanceled { #[prost(string, tag = "1")] @@ -300,7 +319,8 @@ pub struct EventBridgeWithdrawCanceled { pub bridge_chain_id: u64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventOutgoingBatch")] pub struct EventOutgoingBatch { #[prost(string, tag = "1")] @@ -324,7 +344,8 @@ pub struct EventOutgoingBatch { pub batch_tx_ids: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventOutgoingBatchCanceled")] pub struct EventOutgoingBatchCanceled { #[prost(string, tag = "1")] @@ -351,7 +372,8 @@ pub struct EventOutgoingBatchCanceled { pub nonce: u64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventValsetUpdateRequest")] pub struct EventValsetUpdateRequest { #[prost(uint64, tag = "1")] @@ -374,7 +396,8 @@ pub struct EventValsetUpdateRequest { pub reward_token: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventSetOrchestratorAddresses")] pub struct EventSetOrchestratorAddresses { #[prost(string, tag = "1")] @@ -385,7 +408,8 @@ pub struct EventSetOrchestratorAddresses { pub operator_eth_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventValsetConfirm")] pub struct EventValsetConfirm { #[prost(uint64, tag = "1")] @@ -398,7 +422,8 @@ pub struct EventValsetConfirm { pub orchestrator_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventSendToEth")] pub struct EventSendToEth { #[prost(uint64, tag = "1")] @@ -418,7 +443,8 @@ pub struct EventSendToEth { pub bridge_fee: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventConfirmBatch")] pub struct EventConfirmBatch { #[prost(uint64, tag = "1")] @@ -431,7 +457,8 @@ pub struct EventConfirmBatch { pub orchestrator_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventAttestationVote")] pub struct EventAttestationVote { #[prost(uint64, tag = "1")] @@ -447,7 +474,8 @@ pub struct EventAttestationVote { pub voter: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventDepositClaim")] pub struct EventDepositClaim { #[prost(uint64, tag = "1")] @@ -479,7 +507,8 @@ pub struct EventDepositClaim { pub data: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventWithdrawClaim")] pub struct EventWithdrawClaim { #[prost(uint64, tag = "1")] @@ -509,7 +538,8 @@ pub struct EventWithdrawClaim { pub orchestrator_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventERC20DeployedClaim")] pub struct EventErc20DeployedClaim { #[prost(uint64, tag = "1")] @@ -545,7 +575,8 @@ pub struct EventErc20DeployedClaim { pub orchestrator_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventValsetUpdateClaim")] pub struct EventValsetUpdateClaim { #[prost(uint64, tag = "1")] @@ -579,7 +610,8 @@ pub struct EventValsetUpdateClaim { pub orchestrator_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventCancelSendToEth")] pub struct EventCancelSendToEth { #[prost(uint64, tag = "1")] @@ -591,7 +623,8 @@ pub struct EventCancelSendToEth { pub outgoing_tx_id: u64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventSubmitBadSignatureEvidence")] pub struct EventSubmitBadSignatureEvidence { #[prost(string, tag = "1")] @@ -600,7 +633,8 @@ pub struct EventSubmitBadSignatureEvidence { pub bad_eth_signature_subject: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.EventValidatorSlash")] pub struct EventValidatorSlash { #[prost(int64, tag = "1")] @@ -619,7 +653,8 @@ pub struct EventValidatorSlash { pub moniker: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.Params")] pub struct Params { #[prost(string, tag = "1")] @@ -701,7 +736,9 @@ pub struct Params { )] pub bridge_contract_start_height: u64, #[prost(message, optional, tag = "21")] - pub valset_reward: ::core::option::Option, + pub valset_reward: ::core::option::Option< + super::super::super::cosmos::base::v1beta1::Coin, + >, #[prost(string, repeated, tag = "22")] pub admins: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } @@ -719,7 +756,8 @@ pub struct Params { /// This is a hex encoded 0x Ethereum public key that will be used by this /// validator on Ethereum #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgSetOrchestratorAddresses")] pub struct MsgSetOrchestratorAddresses { #[prost(string, tag = "1")] @@ -730,7 +768,8 @@ pub struct MsgSetOrchestratorAddresses { pub eth_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgSetOrchestratorAddressesResponse")] pub struct MsgSetOrchestratorAddressesResponse {} /// MsgValsetConfirm @@ -749,7 +788,8 @@ pub struct MsgSetOrchestratorAddressesResponse {} /// chain store and submit them to Ethereum to update the validator set /// ------------- #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgValsetConfirm")] pub struct MsgValsetConfirm { #[prost(uint64, tag = "1")] @@ -766,7 +806,8 @@ pub struct MsgValsetConfirm { pub signature: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgValsetConfirmResponse")] pub struct MsgValsetConfirmResponse {} /// MsgSendToEth @@ -782,7 +823,8 @@ pub struct MsgValsetConfirmResponse {} /// actually send this message in the first place. So a successful send has /// two layers of fees for the user #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgSendToEth")] pub struct MsgSendToEth { #[prost(string, tag = "1")] @@ -792,10 +834,13 @@ pub struct MsgSendToEth { #[prost(message, optional, tag = "3")] pub amount: ::core::option::Option, #[prost(message, optional, tag = "4")] - pub bridge_fee: ::core::option::Option, + pub bridge_fee: ::core::option::Option< + super::super::super::cosmos::base::v1beta1::Coin, + >, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgSendToEthResponse")] pub struct MsgSendToEthResponse {} /// MsgRequestBatch @@ -808,7 +853,8 @@ pub struct MsgSendToEthResponse {} /// can finally submit the batch /// ------------- #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgRequestBatch")] pub struct MsgRequestBatch { #[prost(string, tag = "1")] @@ -817,7 +863,8 @@ pub struct MsgRequestBatch { pub denom: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgRequestBatchResponse")] pub struct MsgRequestBatchResponse {} /// MsgConfirmBatch @@ -829,7 +876,8 @@ pub struct MsgRequestBatchResponse {} /// as well as an Ethereum signature over this batch by the validator /// ------------- #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgConfirmBatch")] pub struct MsgConfirmBatch { #[prost(uint64, tag = "1")] @@ -848,7 +896,8 @@ pub struct MsgConfirmBatch { pub signature: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgConfirmBatchResponse")] pub struct MsgConfirmBatchResponse {} /// EthereumBridgeDepositClaim @@ -857,7 +906,8 @@ pub struct MsgConfirmBatchResponse {} /// issued to the Cosmos address in question /// ------------- #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgDepositClaim")] pub struct MsgDepositClaim { #[prost(uint64, tag = "1")] @@ -886,13 +936,15 @@ pub struct MsgDepositClaim { pub data: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgDepositClaimResponse")] pub struct MsgDepositClaimResponse {} /// WithdrawClaim claims that a batch of withdrawal /// operations on the bridge contract was executed. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgWithdrawClaim")] pub struct MsgWithdrawClaim { #[prost(uint64, tag = "1")] @@ -919,14 +971,16 @@ pub struct MsgWithdrawClaim { pub orchestrator: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgWithdrawClaimResponse")] pub struct MsgWithdrawClaimResponse {} /// ERC20DeployedClaim allows the Cosmos module /// to learn about an ERC20 that someone deployed /// to represent a Cosmos asset #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgERC20DeployedClaim")] pub struct MsgErc20DeployedClaim { #[prost(uint64, tag = "1")] @@ -959,14 +1013,16 @@ pub struct MsgErc20DeployedClaim { pub orchestrator: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgERC20DeployedClaimResponse")] pub struct MsgErc20DeployedClaimResponse {} /// This call allows the sender (and only the sender) /// to cancel a given MsgSendToEth and recieve a refund /// of the tokens #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgCancelSendToEth")] pub struct MsgCancelSendToEth { #[prost(uint64, tag = "1")] @@ -980,14 +1036,16 @@ pub struct MsgCancelSendToEth { pub sender: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgCancelSendToEthResponse")] pub struct MsgCancelSendToEthResponse {} /// This call allows anyone to submit evidence that a /// validator has signed a valset, batch, or logic call that never /// existed. Subject contains the batch, valset, or logic call. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgSubmitBadSignatureEvidence")] pub struct MsgSubmitBadSignatureEvidence { #[prost(message, optional, tag = "1")] @@ -998,13 +1056,15 @@ pub struct MsgSubmitBadSignatureEvidence { pub sender: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgSubmitBadSignatureEvidenceResponse")] pub struct MsgSubmitBadSignatureEvidenceResponse {} /// This informs the Cosmos module that a validator /// set has been updated. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgValsetUpdatedClaim")] pub struct MsgValsetUpdatedClaim { #[prost(uint64, tag = "1")] @@ -1035,11 +1095,13 @@ pub struct MsgValsetUpdatedClaim { pub orchestrator: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgValsetUpdatedClaimResponse")] pub struct MsgValsetUpdatedClaimResponse {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgUpdateParams")] pub struct MsgUpdateParams { /// authority is the address of the governance account. @@ -1052,13 +1114,15 @@ pub struct MsgUpdateParams { pub params: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} /// MsgBlacklistEthereumAddresses defines the message used to add Ethereum /// addresses to peggy blacklist. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgBlacklistEthereumAddresses")] pub struct MsgBlacklistEthereumAddresses { /// signer address @@ -1071,13 +1135,15 @@ pub struct MsgBlacklistEthereumAddresses { /// MsgBlacklistEthereumAddressesResponse defines the /// MsgBlacklistEthereumAddresses response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgBlacklistEthereumAddressesResponse")] pub struct MsgBlacklistEthereumAddressesResponse {} /// MsgRevokeEthereumBlacklist defines the message used to remove Ethereum /// addresses from peggy blacklist. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgRevokeEthereumBlacklist")] pub struct MsgRevokeEthereumBlacklist { /// signer address @@ -1090,12 +1156,14 @@ pub struct MsgRevokeEthereumBlacklist { /// MsgRevokeEthereumBlacklistResponse defines the MsgRevokeEthereumBlacklist /// response type. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MsgRevokeEthereumBlacklistResponse")] pub struct MsgRevokeEthereumBlacklistResponse {} /// GenesisState struct #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.GenesisState")] pub struct GenesisState { #[prost(message, optional, tag = "1")] @@ -1149,14 +1217,16 @@ pub struct GenesisState { } /// IDSet represents a set of IDs #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.IDSet")] pub struct IdSet { #[prost(uint64, repeated, tag = "1")] pub ids: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.BatchFees")] pub struct BatchFees { #[prost(string, tag = "1")] @@ -1165,7 +1235,8 @@ pub struct BatchFees { pub total_fees: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryParamsRequest")] #[proto_query( path = "/injective.peggy.v1.Query/Params", @@ -1173,14 +1244,16 @@ pub struct BatchFees { )] pub struct QueryParamsRequest {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryParamsResponse")] pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryCurrentValsetRequest")] #[proto_query( path = "/injective.peggy.v1.Query/CurrentValset", @@ -1188,14 +1261,16 @@ pub struct QueryParamsResponse { )] pub struct QueryCurrentValsetRequest {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryCurrentValsetResponse")] pub struct QueryCurrentValsetResponse { #[prost(message, optional, tag = "1")] pub valset: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryValsetRequestRequest")] #[proto_query( path = "/injective.peggy.v1.Query/ValsetRequest", @@ -1210,14 +1285,16 @@ pub struct QueryValsetRequestRequest { pub nonce: u64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryValsetRequestResponse")] pub struct QueryValsetRequestResponse { #[prost(message, optional, tag = "1")] pub valset: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryValsetConfirmRequest")] #[proto_query( path = "/injective.peggy.v1.Query/ValsetConfirm", @@ -1234,14 +1311,16 @@ pub struct QueryValsetConfirmRequest { pub address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryValsetConfirmResponse")] pub struct QueryValsetConfirmResponse { #[prost(message, optional, tag = "1")] pub confirm: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryValsetConfirmsByNonceRequest")] #[proto_query( path = "/injective.peggy.v1.Query/ValsetConfirmsByNonce", @@ -1256,14 +1335,16 @@ pub struct QueryValsetConfirmsByNonceRequest { pub nonce: u64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryValsetConfirmsByNonceResponse")] pub struct QueryValsetConfirmsByNonceResponse { #[prost(message, repeated, tag = "1")] pub confirms: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryLastValsetRequestsRequest")] #[proto_query( path = "/injective.peggy.v1.Query/LastValsetRequests", @@ -1271,15 +1352,19 @@ pub struct QueryValsetConfirmsByNonceResponse { )] pub struct QueryLastValsetRequestsRequest {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryLastValsetRequestsResponse")] pub struct QueryLastValsetRequestsResponse { #[prost(message, repeated, tag = "1")] pub valsets: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.peggy.v1.QueryLastPendingValsetRequestByAddrRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.peggy.v1.QueryLastPendingValsetRequestByAddrRequest" +)] #[proto_query( path = "/injective.peggy.v1.Query/LastPendingValsetRequestByAddr", response_type = QueryLastPendingValsetRequestByAddrResponse @@ -1289,14 +1374,18 @@ pub struct QueryLastPendingValsetRequestByAddrRequest { pub address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.peggy.v1.QueryLastPendingValsetRequestByAddrResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.peggy.v1.QueryLastPendingValsetRequestByAddrResponse" +)] pub struct QueryLastPendingValsetRequestByAddrResponse { #[prost(message, repeated, tag = "1")] pub valsets: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryBatchFeeRequest")] #[proto_query( path = "/injective.peggy.v1.Query/BatchFees", @@ -1304,17 +1393,19 @@ pub struct QueryLastPendingValsetRequestByAddrResponse { )] pub struct QueryBatchFeeRequest {} #[allow(clippy::derive_partial_eq_without_eq)] -#[allow(non_snake_case)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryBatchFeeResponse")] pub struct QueryBatchFeeResponse { - #[allow(non_snake_case)] #[prost(message, repeated, tag = "1")] - pub batchFees: ::prost::alloc::vec::Vec, + pub batch_fees: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.peggy.v1.QueryLastPendingBatchRequestByAddrRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.peggy.v1.QueryLastPendingBatchRequestByAddrRequest" +)] #[proto_query( path = "/injective.peggy.v1.Query/LastPendingBatchRequestByAddr", response_type = QueryLastPendingBatchRequestByAddrResponse @@ -1324,14 +1415,18 @@ pub struct QueryLastPendingBatchRequestByAddrRequest { pub address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.peggy.v1.QueryLastPendingBatchRequestByAddrResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.peggy.v1.QueryLastPendingBatchRequestByAddrResponse" +)] pub struct QueryLastPendingBatchRequestByAddrResponse { #[prost(message, optional, tag = "1")] pub batch: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryOutgoingTxBatchesRequest")] #[proto_query( path = "/injective.peggy.v1.Query/OutgoingTxBatches", @@ -1339,14 +1434,16 @@ pub struct QueryLastPendingBatchRequestByAddrResponse { )] pub struct QueryOutgoingTxBatchesRequest {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryOutgoingTxBatchesResponse")] pub struct QueryOutgoingTxBatchesResponse { #[prost(message, repeated, tag = "1")] pub batches: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryBatchRequestByNonceRequest")] #[proto_query( path = "/injective.peggy.v1.Query/BatchRequestByNonce", @@ -1363,14 +1460,16 @@ pub struct QueryBatchRequestByNonceRequest { pub contract_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryBatchRequestByNonceResponse")] pub struct QueryBatchRequestByNonceResponse { #[prost(message, optional, tag = "1")] pub batch: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryBatchConfirmsRequest")] #[proto_query( path = "/injective.peggy.v1.Query/BatchConfirms", @@ -1387,14 +1486,16 @@ pub struct QueryBatchConfirmsRequest { pub contract_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryBatchConfirmsResponse")] pub struct QueryBatchConfirmsResponse { #[prost(message, repeated, tag = "1")] pub confirms: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryLastEventByAddrRequest")] #[proto_query( path = "/injective.peggy.v1.Query/LastEventByAddr", @@ -1405,14 +1506,16 @@ pub struct QueryLastEventByAddrRequest { pub address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryLastEventByAddrResponse")] pub struct QueryLastEventByAddrResponse { #[prost(message, optional, tag = "1")] pub last_claim_event: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryERC20ToDenomRequest")] #[proto_query( path = "/injective.peggy.v1.Query/ERC20ToDenom", @@ -1423,7 +1526,8 @@ pub struct QueryErc20ToDenomRequest { pub erc20: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryERC20ToDenomResponse")] pub struct QueryErc20ToDenomResponse { #[prost(string, tag = "1")] @@ -1432,7 +1536,8 @@ pub struct QueryErc20ToDenomResponse { pub cosmos_originated: bool, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryDenomToERC20Request")] #[proto_query( path = "/injective.peggy.v1.Query/DenomToERC20", @@ -1443,7 +1548,8 @@ pub struct QueryDenomToErc20Request { pub denom: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryDenomToERC20Response")] pub struct QueryDenomToErc20Response { #[prost(string, tag = "1")] @@ -1452,7 +1558,8 @@ pub struct QueryDenomToErc20Response { pub cosmos_originated: bool, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryDelegateKeysByValidatorAddress")] #[proto_query( path = "/injective.peggy.v1.Query/GetDelegateKeyByValidator", @@ -1463,8 +1570,11 @@ pub struct QueryDelegateKeysByValidatorAddress { pub validator_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.peggy.v1.QueryDelegateKeysByValidatorAddressResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.peggy.v1.QueryDelegateKeysByValidatorAddressResponse" +)] pub struct QueryDelegateKeysByValidatorAddressResponse { #[prost(string, tag = "1")] pub eth_address: ::prost::alloc::string::String, @@ -1472,7 +1582,8 @@ pub struct QueryDelegateKeysByValidatorAddressResponse { pub orchestrator_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryDelegateKeysByEthAddress")] #[proto_query( path = "/injective.peggy.v1.Query/GetDelegateKeyByEth", @@ -1483,7 +1594,8 @@ pub struct QueryDelegateKeysByEthAddress { pub eth_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryDelegateKeysByEthAddressResponse")] pub struct QueryDelegateKeysByEthAddressResponse { #[prost(string, tag = "1")] @@ -1492,7 +1604,8 @@ pub struct QueryDelegateKeysByEthAddressResponse { pub orchestrator_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryDelegateKeysByOrchestratorAddress")] #[proto_query( path = "/injective.peggy.v1.Query/GetDelegateKeyByOrchestrator", @@ -1503,8 +1616,11 @@ pub struct QueryDelegateKeysByOrchestratorAddress { pub orchestrator_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.peggy.v1.QueryDelegateKeysByOrchestratorAddressResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.peggy.v1.QueryDelegateKeysByOrchestratorAddressResponse" +)] pub struct QueryDelegateKeysByOrchestratorAddressResponse { #[prost(string, tag = "1")] pub validator_address: ::prost::alloc::string::String, @@ -1512,7 +1628,8 @@ pub struct QueryDelegateKeysByOrchestratorAddressResponse { pub eth_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryPendingSendToEth")] #[proto_query( path = "/injective.peggy.v1.Query/GetPendingSendToEth", @@ -1523,7 +1640,8 @@ pub struct QueryPendingSendToEth { pub sender_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryPendingSendToEthResponse")] pub struct QueryPendingSendToEthResponse { #[prost(message, repeated, tag = "1")] @@ -1534,7 +1652,8 @@ pub struct QueryPendingSendToEthResponse { /// QueryModuleStateRequest is the request type for the Query/PeggyModuleState /// RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.QueryModuleStateRequest")] #[proto_query( path = "/injective.peggy.v1.Query/PeggyModuleState", @@ -1544,14 +1663,16 @@ pub struct QueryModuleStateRequest {} /// QueryModuleStateResponse is the response type for the Query/PeggyModuleState /// RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MissingNoncesRequest")] #[proto_query( path = "/injective.peggy.v1.Query/MissingPeggoNonces", @@ -1559,7 +1680,8 @@ pub struct QueryModuleStateResponse { )] pub struct MissingNoncesRequest {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.peggy.v1.MissingNoncesResponse")] pub struct MissingNoncesResponse { #[prost(string, repeated, tag = "1")] @@ -1575,90 +1697,155 @@ impl<'a, Q: cosmwasm_std::CustomQuery> PeggyQuerier<'a, Q> { pub fn params(&self) -> Result { QueryParamsRequest {}.query(self.querier) } - pub fn current_valset(&self) -> Result { + pub fn current_valset( + &self, + ) -> Result { QueryCurrentValsetRequest {}.query(self.querier) } - pub fn valset_request(&self, nonce: u64) -> Result { + pub fn valset_request( + &self, + nonce: u64, + ) -> Result { QueryValsetRequestRequest { nonce }.query(self.querier) } - pub fn valset_confirm(&self, nonce: u64, address: ::prost::alloc::string::String) -> Result { - QueryValsetConfirmRequest { nonce, address }.query(self.querier) + pub fn valset_confirm( + &self, + nonce: u64, + address: ::prost::alloc::string::String, + ) -> Result { + QueryValsetConfirmRequest { + nonce, + address, + } + .query(self.querier) } - pub fn valset_confirms_by_nonce(&self, nonce: u64) -> Result { - QueryValsetConfirmsByNonceRequest { nonce }.query(self.querier) + pub fn valset_confirms_by_nonce( + &self, + nonce: u64, + ) -> Result { + QueryValsetConfirmsByNonceRequest { + nonce, + } + .query(self.querier) } - pub fn last_valset_requests(&self) -> Result { + pub fn last_valset_requests( + &self, + ) -> Result { QueryLastValsetRequestsRequest {}.query(self.querier) } pub fn last_pending_valset_request_by_addr( &self, address: ::prost::alloc::string::String, ) -> Result { - QueryLastPendingValsetRequestByAddrRequest { address }.query(self.querier) + QueryLastPendingValsetRequestByAddrRequest { + address, + } + .query(self.querier) } - pub fn last_event_by_addr(&self, address: ::prost::alloc::string::String) -> Result { - QueryLastEventByAddrRequest { address }.query(self.querier) + pub fn last_event_by_addr( + &self, + address: ::prost::alloc::string::String, + ) -> Result { + QueryLastEventByAddrRequest { + address, + } + .query(self.querier) } pub fn get_pending_send_to_eth( &self, sender_address: ::prost::alloc::string::String, ) -> Result { - QueryPendingSendToEth { sender_address }.query(self.querier) + QueryPendingSendToEth { + sender_address, + } + .query(self.querier) } pub fn batch_fees(&self) -> Result { QueryBatchFeeRequest {}.query(self.querier) } - pub fn outgoing_tx_batches(&self) -> Result { + pub fn outgoing_tx_batches( + &self, + ) -> Result { QueryOutgoingTxBatchesRequest {}.query(self.querier) } pub fn last_pending_batch_request_by_addr( &self, address: ::prost::alloc::string::String, ) -> Result { - QueryLastPendingBatchRequestByAddrRequest { address }.query(self.querier) + QueryLastPendingBatchRequestByAddrRequest { + address, + } + .query(self.querier) } pub fn batch_request_by_nonce( &self, nonce: u64, contract_address: ::prost::alloc::string::String, ) -> Result { - QueryBatchRequestByNonceRequest { nonce, contract_address }.query(self.querier) + QueryBatchRequestByNonceRequest { + nonce, + contract_address, + } + .query(self.querier) } pub fn batch_confirms( &self, nonce: u64, contract_address: ::prost::alloc::string::String, ) -> Result { - QueryBatchConfirmsRequest { nonce, contract_address }.query(self.querier) + QueryBatchConfirmsRequest { + nonce, + contract_address, + } + .query(self.querier) } - pub fn erc20_to_denom(&self, erc20: ::prost::alloc::string::String) -> Result { + pub fn erc20_to_denom( + &self, + erc20: ::prost::alloc::string::String, + ) -> Result { QueryErc20ToDenomRequest { erc20 }.query(self.querier) } - pub fn denom_to_erc20(&self, denom: ::prost::alloc::string::String) -> Result { + pub fn denom_to_erc20( + &self, + denom: ::prost::alloc::string::String, + ) -> Result { QueryDenomToErc20Request { denom }.query(self.querier) } pub fn get_delegate_key_by_validator( &self, validator_address: ::prost::alloc::string::String, ) -> Result { - QueryDelegateKeysByValidatorAddress { validator_address }.query(self.querier) + QueryDelegateKeysByValidatorAddress { + validator_address, + } + .query(self.querier) } pub fn get_delegate_key_by_eth( &self, eth_address: ::prost::alloc::string::String, ) -> Result { - QueryDelegateKeysByEthAddress { eth_address }.query(self.querier) + QueryDelegateKeysByEthAddress { + eth_address, + } + .query(self.querier) } pub fn get_delegate_key_by_orchestrator( &self, orchestrator_address: ::prost::alloc::string::String, ) -> Result { - QueryDelegateKeysByOrchestratorAddress { orchestrator_address }.query(self.querier) + QueryDelegateKeysByOrchestratorAddress { + orchestrator_address, + } + .query(self.querier) } - pub fn peggy_module_state(&self) -> Result { + pub fn peggy_module_state( + &self, + ) -> Result { QueryModuleStateRequest {}.query(self.querier) } - pub fn missing_peggo_nonces(&self) -> Result { + pub fn missing_peggo_nonces( + &self, + ) -> Result { MissingNoncesRequest {}.query(self.querier) } } diff --git a/packages/injective-std/src/types/injective/permissions/v1beta1.rs b/packages/injective-std/src/types/injective/permissions/v1beta1.rs index 8ba446d6..601b5922 100644 --- a/packages/injective-std/src/types/injective/permissions/v1beta1.rs +++ b/packages/injective-std/src/types/injective/permissions/v1beta1.rs @@ -1,16 +1,20 @@ -use injective_std_derive::CosmwasmExt; +use osmosis_std_derive::CosmwasmExt; #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.EventSetVoucher")] pub struct EventSetVoucher { #[prost(string, tag = "1")] pub addr: ::prost::alloc::string::String, #[prost(message, optional, tag = "2")] - pub voucher: ::core::option::Option, + pub voucher: ::core::option::Option< + super::super::super::cosmos::base::v1beta1::Coin, + >, } /// Params defines the parameters for the permissions module. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.Params")] pub struct Params { #[prost(uint64, tag = "1")] @@ -22,7 +26,8 @@ pub struct Params { } /// Namespace defines a permissions namespace #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.Namespace")] pub struct Namespace { /// tokenfactory denom to which this namespace applies to @@ -44,7 +49,8 @@ pub struct Namespace { pub address_roles: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.AddressRoles")] pub struct AddressRoles { #[prost(string, tag = "1")] @@ -54,7 +60,8 @@ pub struct AddressRoles { } /// Role is only used for storage #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.Role")] pub struct Role { #[prost(string, tag = "1")] @@ -68,7 +75,8 @@ pub struct Role { } /// used in storage #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.RoleIDs")] pub struct RoleIDs { #[prost(uint32, repeated, tag = "1")] @@ -76,14 +84,18 @@ pub struct RoleIDs { pub role_ids: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.Voucher")] pub struct Voucher { #[prost(message, repeated, tag = "1")] - pub coins: ::prost::alloc::vec::Vec, + pub coins: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.AddressVoucher")] pub struct AddressVoucher { #[prost(string, tag = "1")] @@ -127,7 +139,8 @@ impl Action { } /// GenesisState defines the permissions module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.GenesisState")] pub struct GenesisState { /// params defines the parameters of the module. @@ -138,7 +151,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.QueryParamsRequest")] #[proto_query( path = "/injective.permissions.v1beta1.Query/Params", @@ -147,7 +161,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.QueryParamsResponse")] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -157,7 +172,8 @@ pub struct QueryParamsResponse { /// QueryAllNamespacesRequest is the request type for the Query/AllNamespaces RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.QueryAllNamespacesRequest")] #[proto_query( path = "/injective.permissions.v1beta1.Query/AllNamespaces", @@ -167,7 +183,8 @@ pub struct QueryAllNamespacesRequest {} /// QueryAllNamespacesResponse is the response type for the Query/AllNamespaces /// RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.QueryAllNamespacesResponse")] pub struct QueryAllNamespacesResponse { #[prost(message, repeated, tag = "1")] @@ -176,8 +193,11 @@ pub struct QueryAllNamespacesResponse { /// QueryNamespaceByDenomRequest is the request type for the /// Query/NamespaceByDenom RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.permissions.v1beta1.QueryNamespaceByDenomRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.permissions.v1beta1.QueryNamespaceByDenomRequest" +)] #[proto_query( path = "/injective.permissions.v1beta1.Query/NamespaceByDenom", response_type = QueryNamespaceByDenomResponse @@ -191,8 +211,11 @@ pub struct QueryNamespaceByDenomRequest { /// QueryNamespaceByDenomResponse is the response type for the /// Query/NamespaceByDenom RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.permissions.v1beta1.QueryNamespaceByDenomResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.permissions.v1beta1.QueryNamespaceByDenomResponse" +)] pub struct QueryNamespaceByDenomResponse { #[prost(message, optional, tag = "1")] pub namespace: ::core::option::Option, @@ -200,7 +223,8 @@ pub struct QueryNamespaceByDenomResponse { /// QueryAddressesByRoleRequest is the request type for the Query/AddressesByRole /// RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.QueryAddressesByRoleRequest")] #[proto_query( path = "/injective.permissions.v1beta1.Query/AddressesByRole", @@ -215,14 +239,18 @@ pub struct QueryAddressesByRoleRequest { /// QueryAddressesByRoleResponse is the response type for the /// Query/AddressesByRole RPC method. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.permissions.v1beta1.QueryAddressesByRoleResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.permissions.v1beta1.QueryAddressesByRoleResponse" +)] pub struct QueryAddressesByRoleResponse { #[prost(string, repeated, tag = "1")] pub addresses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.QueryAddressRolesRequest")] #[proto_query( path = "/injective.permissions.v1beta1.Query/AddressRoles", @@ -235,15 +263,19 @@ pub struct QueryAddressRolesRequest { pub address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.QueryAddressRolesResponse")] pub struct QueryAddressRolesResponse { #[prost(string, repeated, tag = "1")] pub roles: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.permissions.v1beta1.QueryVouchersForAddressRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.permissions.v1beta1.QueryVouchersForAddressRequest" +)] #[proto_query( path = "/injective.permissions.v1beta1.Query/VouchersForAddress", response_type = QueryVouchersForAddressResponse @@ -253,14 +285,20 @@ pub struct QueryVouchersForAddressRequest { pub address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.permissions.v1beta1.QueryVouchersForAddressResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.permissions.v1beta1.QueryVouchersForAddressResponse" +)] pub struct QueryVouchersForAddressResponse { #[prost(message, repeated, tag = "1")] - pub vouchers: ::prost::alloc::vec::Vec, + pub vouchers: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.MsgUpdateParams")] pub struct MsgUpdateParams { /// authority is the address of the governance account. @@ -273,11 +311,13 @@ pub struct MsgUpdateParams { pub params: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.MsgCreateNamespace")] pub struct MsgCreateNamespace { #[prost(string, tag = "1")] @@ -286,11 +326,13 @@ pub struct MsgCreateNamespace { pub namespace: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.MsgCreateNamespaceResponse")] pub struct MsgCreateNamespaceResponse {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.MsgDeleteNamespace")] pub struct MsgDeleteNamespace { #[prost(string, tag = "1")] @@ -299,11 +341,13 @@ pub struct MsgDeleteNamespace { pub namespace_denom: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.MsgDeleteNamespaceResponse")] pub struct MsgDeleteNamespaceResponse {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.MsgUpdateNamespace")] pub struct MsgUpdateNamespace { #[prost(string, tag = "1")] @@ -323,42 +367,76 @@ pub struct MsgUpdateNamespace { } /// Nested message and enum types in `MsgUpdateNamespace`. pub mod msg_update_namespace { - use injective_std_derive::CosmwasmExt; + use osmosis_std_derive::CosmwasmExt; #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] - #[proto_message(type_url = "/injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetWasmHook")] + #[derive(Clone, PartialEq, Eq, ::prost::Message)] + #[derive( + ::serde::Serialize, + ::serde::Deserialize, + ::schemars::JsonSchema, + CosmwasmExt + )] + #[proto_message( + type_url = "/injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetWasmHook" + )] pub struct MsgSetWasmHook { #[prost(string, tag = "1")] pub new_value: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] - #[proto_message(type_url = "/injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetMintsPaused")] + #[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] + #[derive( + ::serde::Serialize, + ::serde::Deserialize, + ::schemars::JsonSchema, + CosmwasmExt + )] + #[proto_message( + type_url = "/injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetMintsPaused" + )] pub struct MsgSetMintsPaused { #[prost(bool, tag = "1")] pub new_value: bool, } #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] - #[proto_message(type_url = "/injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetSendsPaused")] + #[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] + #[derive( + ::serde::Serialize, + ::serde::Deserialize, + ::schemars::JsonSchema, + CosmwasmExt + )] + #[proto_message( + type_url = "/injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetSendsPaused" + )] pub struct MsgSetSendsPaused { #[prost(bool, tag = "1")] pub new_value: bool, } #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] - #[proto_message(type_url = "/injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetBurnsPaused")] + #[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] + #[derive( + ::serde::Serialize, + ::serde::Deserialize, + ::schemars::JsonSchema, + CosmwasmExt + )] + #[proto_message( + type_url = "/injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetBurnsPaused" + )] pub struct MsgSetBurnsPaused { #[prost(bool, tag = "1")] pub new_value: bool, } } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.MsgUpdateNamespaceResponse")] pub struct MsgUpdateNamespaceResponse {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.MsgUpdateNamespaceRoles")] pub struct MsgUpdateNamespaceRoles { #[prost(string, tag = "1")] @@ -374,11 +452,15 @@ pub struct MsgUpdateNamespaceRoles { pub address_roles: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.permissions.v1beta1.MsgUpdateNamespaceRolesResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.permissions.v1beta1.MsgUpdateNamespaceRolesResponse" +)] pub struct MsgUpdateNamespaceRolesResponse {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.MsgRevokeNamespaceRoles")] pub struct MsgRevokeNamespaceRoles { #[prost(string, tag = "1")] @@ -391,11 +473,15 @@ pub struct MsgRevokeNamespaceRoles { pub address_roles_to_revoke: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.permissions.v1beta1.MsgRevokeNamespaceRolesResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[proto_message( + type_url = "/injective.permissions.v1beta1.MsgRevokeNamespaceRolesResponse" +)] pub struct MsgRevokeNamespaceRolesResponse {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.MsgClaimVoucher")] pub struct MsgClaimVoucher { #[prost(string, tag = "1")] @@ -404,7 +490,8 @@ pub struct MsgClaimVoucher { pub denom: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.permissions.v1beta1.MsgClaimVoucherResponse")] pub struct MsgClaimVoucherResponse {} pub struct PermissionsQuerier<'a, Q: cosmwasm_std::CustomQuery> { @@ -417,7 +504,9 @@ impl<'a, Q: cosmwasm_std::CustomQuery> PermissionsQuerier<'a, Q> { pub fn params(&self) -> Result { QueryParamsRequest {}.query(self.querier) } - pub fn all_namespaces(&self) -> Result { + pub fn all_namespaces( + &self, + ) -> Result { QueryAllNamespacesRequest {}.query(self.querier) } pub fn namespace_by_denom( @@ -425,23 +514,41 @@ impl<'a, Q: cosmwasm_std::CustomQuery> PermissionsQuerier<'a, Q> { denom: ::prost::alloc::string::String, include_roles: bool, ) -> Result { - QueryNamespaceByDenomRequest { denom, include_roles }.query(self.querier) + QueryNamespaceByDenomRequest { + denom, + include_roles, + } + .query(self.querier) } pub fn address_roles( &self, denom: ::prost::alloc::string::String, address: ::prost::alloc::string::String, ) -> Result { - QueryAddressRolesRequest { denom, address }.query(self.querier) + QueryAddressRolesRequest { + denom, + address, + } + .query(self.querier) } pub fn addresses_by_role( &self, denom: ::prost::alloc::string::String, role: ::prost::alloc::string::String, ) -> Result { - QueryAddressesByRoleRequest { denom, role }.query(self.querier) + QueryAddressesByRoleRequest { + denom, + role, + } + .query(self.querier) } - pub fn vouchers_for_address(&self, address: ::prost::alloc::string::String) -> Result { - QueryVouchersForAddressRequest { address }.query(self.querier) + pub fn vouchers_for_address( + &self, + address: ::prost::alloc::string::String, + ) -> Result { + QueryVouchersForAddressRequest { + address, + } + .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 05ffa033..c889d892 100644 --- a/packages/injective-std/src/types/injective/tokenfactory/v1beta1.rs +++ b/packages/injective-std/src/types/injective/tokenfactory/v1beta1.rs @@ -1,9 +1,10 @@ -use injective_std_derive::CosmwasmExt; +use osmosis_std_derive::CosmwasmExt; /// DenomAuthorityMetadata specifies metadata for addresses that have specific /// 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -11,7 +12,8 @@ pub struct DenomAuthorityMetadata { pub admin: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.tokenfactory.v1beta1.EventCreateTFDenom")] pub struct EventCreateTfDenom { #[prost(string, tag = "1")] @@ -20,7 +22,8 @@ pub struct EventCreateTfDenom { pub denom: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.tokenfactory.v1beta1.EventMintTFDenom")] pub struct EventMintTfDenom { #[prost(string, tag = "1")] @@ -29,7 +32,8 @@ pub struct EventMintTfDenom { pub amount: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.tokenfactory.v1beta1.EventBurnDenom")] pub struct EventBurnDenom { #[prost(string, tag = "1")] @@ -38,7 +42,8 @@ pub struct EventBurnDenom { pub amount: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.tokenfactory.v1beta1.EventChangeTFAdmin")] pub struct EventChangeTfAdmin { #[prost(string, tag = "1")] @@ -47,25 +52,32 @@ pub struct EventChangeTfAdmin { pub new_admin_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub metadata: ::core::option::Option< + super::super::super::cosmos::bank::v1beta1::Metadata, + >, } /// Params defines the parameters for the tokenfactory module. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub denom_creation_fee: ::prost::alloc::vec::Vec< + super::super::super::cosmos::base::v1beta1::Coin, + >, } /// GenesisState defines the tokenfactory module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -78,7 +90,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.tokenfactory.v1beta1.GenesisDenom")] pub struct GenesisDenom { #[prost(string, tag = "1")] @@ -98,7 +111,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.tokenfactory.v1beta1.QueryParamsRequest")] #[proto_query( path = "/injective.tokenfactory.v1beta1.Query/Params", @@ -107,7 +121,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -117,8 +132,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -132,8 +150,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.tokenfactory.v1beta1.QueryDenomAuthorityMetadataResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, @@ -141,8 +162,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.tokenfactory.v1beta1.QueryDenomsFromCreatorRequest")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -154,8 +178,11 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.tokenfactory.v1beta1.QueryDenomsFromCreatorResponse")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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>, @@ -163,7 +190,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.tokenfactory.v1beta1.QueryModuleStateRequest")] #[proto_query( path = "/injective.tokenfactory.v1beta1.Query/TokenfactoryModuleState", @@ -173,7 +201,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.tokenfactory.v1beta1.QueryModuleStateResponse")] pub struct QueryModuleStateResponse { #[prost(message, optional, tag = "1")] @@ -189,7 +218,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.tokenfactory.v1beta1.MsgCreateDenom")] pub struct MsgCreateDenom { #[prost(string, tag = "1")] @@ -211,7 +241,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.tokenfactory.v1beta1.MsgCreateDenomResponse")] pub struct MsgCreateDenomResponse { #[prost(string, tag = "1")] @@ -220,7 +251,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.tokenfactory.v1beta1.MsgMint")] pub struct MsgMint { #[prost(string, tag = "1")] @@ -229,13 +261,15 @@ pub struct MsgMint { pub amount: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.tokenfactory.v1beta1.MsgBurn")] pub struct MsgBurn { #[prost(string, tag = "1")] @@ -244,13 +278,15 @@ pub struct MsgBurn { pub amount: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.tokenfactory.v1beta1.MsgChangeAdmin")] pub struct MsgChangeAdmin { #[prost(string, tag = "1")] @@ -263,28 +299,36 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub metadata: ::core::option::Option< + super::super::super::cosmos::bank::v1beta1::Metadata, + >, } /// MsgSetDenomMetadataResponse defines the response structure for an executed /// MsgSetDenomMetadata message. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.tokenfactory.v1beta1.MsgSetDenomMetadataResponse")] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -297,7 +341,8 @@ pub struct MsgUpdateParams { pub params: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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> { @@ -315,12 +360,24 @@ 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 2afde2c3..29599147 100644 --- a/packages/injective-std/src/types/injective/wasmx/v1.rs +++ b/packages/injective-std/src/types/injective/wasmx/v1.rs @@ -1,6 +1,7 @@ -use injective_std_derive::CosmwasmExt; +use osmosis_std_derive::CosmwasmExt; #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.ContractRegistrationRequestProposal")] pub struct ContractRegistrationRequestProposal { #[prost(string, tag = "1")] @@ -8,21 +9,29 @@ 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, + pub contract_registration_request: ::core::option::Option< + ContractRegistrationRequest, + >, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] -#[proto_message(type_url = "/injective.wasmx.v1.BatchContractRegistrationRequestProposal")] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub contract_registration_requests: ::prost::alloc::vec::Vec< + ContractRegistrationRequest, + >, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.BatchContractDeregistrationProposal")] pub struct BatchContractDeregistrationProposal { #[prost(string, tag = "1")] @@ -33,7 +42,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -85,7 +95,8 @@ pub struct ContractRegistrationRequest { pub funding_mode: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.BatchStoreCodeProposal")] pub struct BatchStoreCodeProposal { #[prost(string, tag = "1")] @@ -93,7 +104,9 @@ pub struct BatchStoreCodeProposal { #[prost(string, tag = "2")] pub description: ::prost::alloc::string::String, #[prost(message, repeated, tag = "3")] - pub proposals: ::prost::alloc::vec::Vec, + pub proposals: ::prost::alloc::vec::Vec< + super::super::super::cosmwasm::wasm::v1::StoreCodeProposal, + >, } #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] @@ -129,7 +142,8 @@ impl FundingMode { } } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -161,10 +175,13 @@ pub struct Params { )] pub min_gas_price: u64, #[prost(message, optional, tag = "5")] - pub register_contract_access: ::core::option::Option, + pub register_contract_access: ::core::option::Option< + super::super::super::cosmwasm::wasm::v1::AccessConfig, + >, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.RegisteredContract")] pub struct RegisteredContract { /// limit of gas per BB execution @@ -209,7 +226,8 @@ pub struct RegisteredContract { pub fund_mode: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.EventContractExecution")] pub struct EventContractExecution { #[prost(string, tag = "1")] @@ -222,7 +240,8 @@ pub struct EventContractExecution { pub execution_error: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.EventContractRegistered")] pub struct EventContractRegistered { #[prost(string, tag = "1")] @@ -256,14 +275,16 @@ pub struct EventContractRegistered { pub funding_mode: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.RegisteredContractWithAddress")] pub struct RegisteredContractWithAddress { #[prost(string, tag = "1")] @@ -273,7 +294,8 @@ pub struct RegisteredContractWithAddress { } /// GenesisState defines the wasmx module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -287,7 +309,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.QueryWasmxParamsRequest")] #[proto_query( path = "/injective.wasmx.v1.Query/WasmxParams", @@ -297,7 +320,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.QueryWasmxParamsResponse")] pub struct QueryWasmxParamsResponse { #[prost(message, optional, tag = "1")] @@ -306,7 +330,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.QueryModuleStateRequest")] #[proto_query( path = "/injective.wasmx.v1.Query/WasmxModuleState", @@ -316,7 +341,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.QueryModuleStateResponse")] pub struct QueryModuleStateResponse { #[prost(message, optional, tag = "1")] @@ -324,7 +350,8 @@ pub struct QueryModuleStateResponse { } /// Contract registration info #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.QueryContractRegistrationInfoRequest")] #[proto_query( path = "/injective.wasmx.v1.Query/ContractRegistrationInfo", @@ -335,7 +362,8 @@ pub struct QueryContractRegistrationInfoRequest { pub contract_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.QueryContractRegistrationInfoResponse")] pub struct QueryContractRegistrationInfoResponse { #[prost(message, optional, tag = "1")] @@ -344,7 +372,8 @@ 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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -362,7 +391,8 @@ pub struct MsgExecuteContractCompat { } /// MsgExecuteContractCompatResponse returns execution result data. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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 @@ -370,7 +400,8 @@ pub struct MsgExecuteContractCompatResponse { pub data: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.MsgUpdateContract")] pub struct MsgUpdateContract { #[prost(string, tag = "1")] @@ -397,11 +428,13 @@ pub struct MsgUpdateContract { pub admin_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.MsgActivateContract")] pub struct MsgActivateContract { #[prost(string, tag = "1")] @@ -411,11 +444,13 @@ pub struct MsgActivateContract { pub contract_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] #[proto_message(type_url = "/injective.wasmx.v1.MsgDeactivateContract")] pub struct MsgDeactivateContract { #[prost(string, tag = "1")] @@ -425,11 +460,13 @@ pub struct MsgDeactivateContract { pub contract_address: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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. @@ -442,20 +479,25 @@ pub struct MsgUpdateParams { pub params: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, PartialEq, Eq, ::prost::Message)] +#[derive(::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, + pub contract_registration_request: ::core::option::Option< + ContractRegistrationRequest, + >, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] +#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message)] +#[derive(::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> { @@ -465,16 +507,23 @@ 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) } } diff --git a/packages/injective-testing/Cargo.toml b/packages/injective-testing/Cargo.toml index c31ba41d..4d004c21 100644 --- a/packages/injective-testing/Cargo.toml +++ b/packages/injective-testing/Cargo.toml @@ -12,9 +12,9 @@ anyhow = { workspace = true } base64 = { workspace = true } cosmwasm-std = { workspace = true } cw-multi-test = { workspace = true } -injective-cosmwasm = { workspace = true, path = "../injective-cosmwasm" } -injective-math = { workspace = true, path = "../injective-math" } -injective-std = { workspace = true, path = "../injective-std" } +injective-cosmwasm = { workspace = true } +injective-math = { workspace = true } +injective-std = { workspace = true } injective-test-tube = { workspace = true } prost = { workspace = true } rand = { workspace = true }